I have a gamepass, I want a trail to be given to someone if they have the gamepass. I have the trail code all set up, so as of now everyone has this trail. I am trying to figure out how I can incorporate this code into an if statement, basically stating that if they own the gamepass then run the code that gives the trail to them. im not rly a scripter and i need help
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) local trial = game.ServerStorage.Trial:Clone() trial.Parent = char.Head local attachment0 = Instance.new("Attachment",char.Head) attachment0.Name = "TrialAttachment0" local attachment1 = Instance.new("Attachment",char.HumanoidRootPart) attachment1.Name = "TrialAttachment1" trial.Attachment0 = attachment0 trial.Attachment1 = attachment1 end) end)
that code gives the player the trail i have made in serverstorage. i also know that it says trial insteaad, but that is fine because in serverstorage it is called trial. so i just need someone to help me put this in a if statement that finds out if they own the gamepass and then gives that player the trail.
gamepass: https://www.roblox.com/game-pass/7879375/Viente-VIP
my discord is nick.#9677 if anyone wants to further help me
