Gamepass Rainbow Trails Do Not Work?
I made a script so that my donators could get VIP trails but it doesn't seem to work, can anyone see why?
This is where the parts for the script is. Eg the trail and script itself.
http://imgur.com/gallery/D6Ezu
This is the script.
06 | function playerHasPass(plr) |
07 | for _,id in pairs (passIDs) do |
08 | if game.MarketplaceService:PlayerOwnsAsset(plr, id) then |
15 | script.Parent.Touched:connect( function (hit) |
16 | local plr = game.Players:GetPlayerFromCharacter(hit.Parent) |
18 | if playerHasPass(plr) then |
19 | game.Players.PlayerAdded:Connect( function (player) |
20 | player.CharacterAdded:Connect( function (char) |
21 | local trail = game.ServerStorage.Trail:Clone() |
22 | trail.Parent = char.Head |
23 | local attachment 0 = Instance.new( "Attachment" ,char.Head) |
24 | attachment 0. Name = "trailAttachment0" |
25 | local attachment 1 = Instance.new( "Attachment" ,char.Torso) |
26 | attachment 1. Name = "TrailAttachment1" |
27 | trail.Attachment 0 = attachment 0 |
28 | trail.Attachment 1 = attachment 1 |
32 | print ( "Player doesnt have the pass" ) |
I'm not very good with scripts, so if anyone could find out, could you send me a script fix and a explanation please?