#how do i make leaderstats value = walkspeed ?

17 messages · Page 1 of 1 (latest)

unborn bramble
#

i cant figure it out

#

how do i make a leaderstats value (speed) update, and change the walkspeed of the player

#

for example starting walkspeed is 4 but when person collects stuff, and the value goes up or down, the walkspeed will always be the same as the value

#

and update

#

only for the player

marsh prism
#

you can do

#

.Changed() on the value and do Hum.WalkSpeed = Value.Value

#

so like

#

in a localscript

local Value = YourValueHere

Value.Changed:Connect(function()
Hum.WalkSpeed = Value.Value
end)

unborn bramble
#

where do i place it?

#

@marsh prism

marsh prism
#

well its a localscript so you could place it in StarterCharacterScripts

wise nymphBOT
#

studio** You are now Level 4! **studio

unborn bramble
#

thxx

#

lemme try

#

nope

scenic crow
#

You can use the value of your currency as the walkspeed