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
 

Deleting a script from a script?

Previous Thread :: Next Thread 
Casadis is not online. Casadis
Joined: 05 Aug 2013
Total Posts: 115
28 Jun 2015 03:13 PM
I've been trying to use FindFirstChild() to locate a script and destroy it, but it always returns nil. Any ideas? ( I'm trying to stop player health regeneration )
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
28 Jun 2015 03:14 PM
LocalScript:

local plr = game.Players.LocalPlayer
local chr = plr.Character or plr.CharacterAdded:wait()

chr:WaitForChild("Health"):Destroy()
Report Abuse
Casadis is not online. Casadis
Joined: 05 Aug 2013
Total Posts: 115
28 Jun 2015 03:16 PM
Thank you!
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