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 » Scripting Helpers
Home Search
 

Re: Trying to keep player health from auto regen

Previous Thread :: Next Thread 
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
14 Aug 2014 09:50 PM
This script use to keep a player from automatically regenerating health, but no it removes the health bar from the player.... Anyone know the fix?

function Added(Model)
wait(5);
if Model == nil then return end
if Model.Name == "Health" then
if Model == nil then return end
print("Removed Health");
Model:remove();
end
end
game.Workspace.DescendantAdded:connect(Added)
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
14 Aug 2014 09:51 PM
Nvm just realized it was because of some thing else
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
14 Aug 2014 09:52 PM
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
if c:findFirstChild("Health") then
c:Destroy(0
end
end)
end)

Health is the default health regen script
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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