Hey, I am making speed simulator game. Can someone help me?
local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) wait(.5) local Humanoid = character:WaitForChild("Humanoid") Humanoid.Running:Connect(function(speed) local leaderstats = player:FindFirstChild("leaderstats") local WalkSpeed = player:FindFirstChild("Confings"):FindFirstChild("WalkSpeed") wait(1) if speed > 0 then leaderstats:WaitForChild("Steps").Value = leaderstats:WaitForChild("Steps").Value +1 WalkSpeed.Value = WalkSpeed.Value +0.1 end end) end) end)
23:18:49.739 - ServerScriptService.PlayerSettings:38: attempt to index a nil value
23:18:49.740 - Stack Begin
23:18:49.740 - Script 'ServerScriptService.PlayerSettings', Line 38
23:18:49.741 - Stack End