while true do
wait(0.1)
local ServerScriptService = game:GetService(“ServerScriptService”)
if player.Character == nil then
player.CharacterAdded:Wait()
end
local startPosition = player.Character.Head.CFrame.Position
wait(1)
local Distance = (startPosition - player.Character.Head.CFrame.Position).Magnitute
if Distance > 1 then
Humanoid.Walkspeed = Humanoid.Walkspeed + 1
Speed = player.leaderstats.Speed
Speed.Value = 1
Speed.Value = Speed.Value + 1
Speed.Value = player.Character.Humanoid.Walkspeed
end
end
Yes I’ve tested it and tried to edit it after it not working but it didn’t work. I wonder if it has something to do with the fact that speed might still not be connected to my script… It says in the script that
Speed.Value = 1
It doesn’t show up in the game when I play the game. It’s defaulted at 0.
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:FindFirstChild("Humanoid")