so i am trying to make an aot game so im making a tips and tricks menu where if you stand next to a character a gui will show and if you press a button it will show some tips and tricks. but i got an error saying attempt to index nil with 'WaitForChild' it is a normal script that is enabling the playergui if that helps
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Players.LocalPlayer:WaitForChild("PlayerGui").Tips.Enabled = true
end
end)

2 comments
thank you it worked
You shouldn't drop the Humanoid filter.