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

4 comments
There's a question mark in end
Also you should be using the Running event and use the Character property
The questionmark was a accident when copied
using game:GetService("RunService").Stepped:Connect(function() end) is a better way than saying while wait(.5) do, because it is called every frame.