Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Stop walkspeed resetting on Death?

Asked by
Ben_B 9
4 years ago

Would I need to add a remote event + charadded as ive tried with Charadded and it does not work, thanks.

01while true do
02    wait()
03    local player = game.Players.LocalPlayer
04local value = player:WaitForChild("WalkspeedShop").W20.Value
05local value2 = player:WaitForChild("WalkspeedShop").W23.Value
06local value3 = player:WaitForChild("WalkspeedShop").W25.Value
07local value4 = player:WaitForChild("WalkspeedShop").W26.Value
08local value5 = player:WaitForChild("WalkspeedShop").W27.Value
09local value6 = player:WaitForChild("WalkspeedShop").W28.Value
10local value7 = player:WaitForChild("WalkspeedShop").W29.Value
11local value8 = player:WaitForChild("WalkspeedShop").W30.Value
12 
13if value8 == true then
14    player.Character.Humanoid.WalkSpeed = 30
15    break
View all 37 lines...
0
explain more :v Necro_las 412 — 4y
0
Hmm Where Did You Place The Script? crueluu 169 — 4y
0
In StarterGui Ben_B 9 — 4y
0
Try using the CharacterAdded event and have all the meat of your code in there. If im not mistaken, the character loads in again after death triggering the function. Audiimo 105 — 4y
0
Thank you ill try that Ben_B 9 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

You could probably get the players WalkSpeed every time you change it then put it back on them after they die.

Ad

Answer this question