local player = game.Players.LocalPlayer local ls = player:WaitForChild('leaderstats') local Points = ls.Points while true do wait(0.5) if game.Workspace[player.Name].Character.Humanoid.MoveDirection.Magnitude > 0 then Points.Value = Points.Value +1 end end)
It's supposed to add points to the player when player is moving
Hello, tightanfall!
local player = game.Players.LocalPlayer local ls = player:WaitForChild('leaderstats') local Points = ls.Points while true do wait(0.5) if game.Workspace[player.Name].Humanoid.MoveDirection.Magnitude > 0 then -- The .Character here was causing the problem, as when using game.Workspace[player.Name] you already get the character Points.Value = Points.Value +1 end end)
Hope this helps, if not post a comment below
Good Luck with your games