while true do wait(5)
lessons=math.random(1,5)
if lessons == 1 then
--swimming
game:WaitForChild("ServerStorage").Lessons:clone().Parent = game.Players.LocalPlayer.PlayerGui
game:WaitForChild("Players").LocalPlayer.PlayerGui.Lessons.Swimming.Visible = true
wait(60)
end
end
and i get the error ServerScriptService.Lessons:5: attempt to index field 'LocalPlayer' (a nil value) how did i fix it? Edit now geting this Infinitie yield possible on "Game:WaitForChild"

4 comments
normal script
You can not use LocalPlayer in a Server Script. You can only use LocalPlayer in a LocalScript.
helped alot
but still not working