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
Смотрите видео HOW TO MAKE A TRAIL GAMEPASS 🛠️ Roblox Studio Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Itz_FloppyFish 11 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,056 раз и оно понравилось 241 людям.