generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Tool doesnt work after respawn.

Previous Thread :: Next Thread 
waverlycole is not online. waverlycole
Joined: 30 Nov 2010
Total Posts: 139
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
waverlycole is not online. waverlycole
Joined: 30 Nov 2010
Total Posts: 139
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
waverlycole is not online. waverlycole
Joined: 30 Nov 2010
Total Posts: 139
30 Oct 2016 04:49 PM
bump
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
30 Oct 2016 04:50 PM
Any output? This should work fine.
Report Abuse
waverlycole is not online. waverlycole
Joined: 30 Nov 2010
Total Posts: 139
30 Oct 2016 04:52 PM
Nope. No output, no errors. Nothing.
Report Abuse
waverlycole is not online. waverlycole
Joined: 30 Nov 2010
Total Posts: 139
30 Oct 2016 04:56 PM
any ideas on how to fix?
Report Abuse
waverlycole is not online. waverlycole
Joined: 30 Nov 2010
Total Posts: 139
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image