0

Why when I die, the walkspeed does not save?

Asked by 3 months ago

So I made a script saying if you have one coin, walkspeed is = 21

local players = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function(Click)
if players.leaderstats.Coins.Value >= 1 then

players.Character.Humanoid.WalkSpeed = 21
end
end)


But it came to my attention that when you die, your walkspeed get reset. can you help me?

0
But it came to my attention that when you die, your walkspeed resets. can you help me? kickoff127 15 — 3mo

0
Answered by 3 months ago
Edited 3 months ago
local players = game.Players.LocalPlayer
local thews = "something idk make it a numvalue"
script.Parent.MouseButton1Click:Connect(function(Click)
if players.leaderstats.Coins.Value >= 1 then

players.Character.Humanoid.WalkSpeed = 21
thews = 21
end
end)