local Trail= game.ServerStorage["Rainbow Trail"]
local passIDs = {
971425430
}
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(plr)
plr.CharacterAdded:Connect(function(char)
local plrTrail = Trail:Clone()
plrTrail.Parent = char.HumanoidRootPart
if char:FindFirstChild("UpperTorso") then
plrTrail.Attachment0 = char.Head.FaceFrontAttachment
plrTrail.Attachment1 = char.UpperTorso.WaistRigAttachment
else
plrTrail.Attachment0 = char.Head.FaceFrontAttachment
plrTrail.Attachment1 = char.Torso.WaistBackAttachment
end
end)
end)
COMMUNITY QUESTION
Why does this give the trail to everyone?
1 answer
Maybe try this? Put this in a LocalScript:
function Close(player)
if game:GetService("MarketplaceService"):UserOwnsGamePassASync(player, 971425430) then
--input code here
end
Hope it works.
7 comments
0
0
player.UserId isnt a thing lol
0
Well oof. I'm new. Hopefully the link I sent you helps.
0
I edited the post. Try it again?
0
yeah I did that but it don't work
0
it was a server
0
UserId is a thing.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
its probably because you never did :GetService("MarketPlaceService")
Isn't this the same thing? "if game:GetService("GamePassService"):PlayerHasPass(plr, id) then"