So I've been having lots of difficulties with my script. I looked at the tutorials on how to use RemoteEvent but it just confused me as I'm a new game scripter and maker so I removed it all so I could (Hopefully) get it to work with some help. So here's the code, hopefully one of you great people can edit this to make it compatible or try and walk me through what needs to be done.
local id = 996728468
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:Connect(function(character)
if game:GetService("GamePassService"):PlayerHasPass(player, id) then
character.Humanoid.WalkSpeed = 75
player.PlayerGui:WaitForChild("NoticeGUI").Note.Visible = true
player.PlayerGui:WaitForChild("ScreenGui").Run.Visible = true
player.PlayerGui:WaitForChild("ScreenGui").Walk.Visible = true
player.PlayerGui:WaitForChild("ScreenGui").TextButton.Visible = false
else
--Awaiting use
end
end)
end)
For further info, the problem is when FilteringEnabled is on, the output says "Infinite yield possible on player.PlayerGui:WaitForChild("NoticeGUI")"
Thanks for your time.

1 comment
Why did this get downvoted. Seriously? These are sources to learn how to use them.