So, I have a leaderstat called "Speed" and I want the player's character's speed to be equal to the players leaderstat plus the original (16)
EX: Leaderstats Speed = 23 then character speed = 39
Here's what I have, it definently does not work (Localscript in StarterCharacterScripts):
local plr = game.Players.LocalPlayer
plr.leaderstats.Speed.Changed(function()
wait(0.05)
local char = plr.Character
local Lname = char.Name
local h = char.Humanoid
local tt = h.WalkSpeed - h.WalkSpeed
local gg = plr.leaderstats.Speed
while true do
h.WalkSpeed = tt + gg
end
end)

4 comments
You are checking an infinite times a second. When will that second pass?
You realise your 'tt' variable is going to be equal to 0 right?
i think originally i wanted player walkspeed to be equal to just their speed, not their speed plus their leaderstat
hiimgoodpack, so how would i fix that