I am trying to add rainbow trail into my game passes, but I dont how to do it. Can someone help me?
COMMUNITY QUESTION
Trail Gamepass adding to my game help??
1 answer
local passIDs = {
971425430;
000000000
}
function playerHasPass(plr)
for _,id in pairs(passIDs) do
if game:GetService("GamePassService"):PlayerHasPass(plr, id) then
return true
end
end
return false
end
game.Players.PlayerAdded:Connect(function(player)
if playerHasPass(plr) then
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.Torso)
attachment1.Name = "TrailAttachment1"
trail.Attachment0 = attachment0
trail.Attachment1 = attachment1
end)
end
end)
Put the trail in ServerStorage and call it "Trail".
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
thx so much. why there are two ids in the codes? 971425430 and 000000000??
thx so much. why there are two ids in the codes? 971425430 and 000000000??
So you can add more than one of you want. If you want to add a third, put a ; on the second one and write another under and so on.