In todays video I show you how to make a Trail Gamepass!
Hope you enjoyed the video, Have a lovely rest of your day!
If you are a bit confused what to do, Feel free to message me on Discord and Ill help you out!
NEW FloppyFish Merch Store: https://itz-floppyfish.creator-spring...
Script:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local Trail = game.ServerStorage.Trail:Clone()
Trail.Parent = char.Head
local Attachment0 = Instance.new("Attachment",char.Head)
Attachment0.Name = "TrailAttachment0"
local Attachment1 = Instance.new("Attachment",char.HumanoidRootPart)
Attachment1.Name = "TrailAttachment1"
Trail.Attachment0 = Attachment0
Trail.Attachment1 = Attachment1
end)
end)
local gamepassID = 1234567890 -- Change this to your Gamepass ID
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
wait(2)
local Trail = char.Head.Trail
local MarketPlaceService = game:GetService("MarketplaceService")
local UserID = player.UserId
local Bought = MarketPlaceService:UserOwnsGamePassAsync(UserID,gamepassID)
if Bought then
Trail.Enabled = true -- This makes the trail visible if the player owns the gamepass
Trail.Lifetime = 3 -- This determins how long the trail will be shown until its removed
else
Trail.Enabled = false -- This assures that if the player doesnt own the Gamepass, The Trail will not be enabled.
end
end)
end)
🌟 Floppys Discord Server: / discord
🌟 Floppys Roblox Game : https://www.roblox.com/games/11301003...
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
Watch video HOW TO MAKE A TRAIL GAMEPASS 🛠️ Roblox Studio Tutorial online without registration, duration hours minute second in high quality. This video was added by user Itz_FloppyFish 11 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,056 once and liked it 241 people.