|
| 30 Oct 2016 04:24 PM |
I made a speed coil script, it is a local script. Can someone tell me why it stops working after the player dies? And yes i re-name Humanoid to humanoid so the player cannot reset.
player = game.Players.LocalPlayer.Character
function onEquipped() local hum = player:WaitForChild("humanoid") if hum then hum.WalkSpeed = hum.WalkSpeed + (16*.5) script.Parent.Handle.Speed:Play() end end function onUnequipped() local hum = player:WaitForChild("humanoid") if hum then hum.WalkSpeed = hum.WalkSpeed - (16*.5) end end
script.Parent.Equipped:connect(onEquipped) script.Parent.Unequipped:connect(onUnequipped) |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2016 04:39 PM |
| i saw a similar post where someone said guis in a players backpack wouldnt work after respawn. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Oct 2016 04:50 PM |
| Any output? This should work fine. |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2016 04:52 PM |
| Nope. No output, no errors. Nothing. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Oct 2016 05:12 PM |
Okay so im like 80% sure this isnt supposed to happen, but if anyone has same problem this is how i fixed it...
place inside tool script
script.Parent.Disabled = true wait() script.Parent.Disabled = false |
|
|
| Report Abuse |
|
|