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: How do i make health not regan?

Previous Thread :: Next Thread 
Fr00bl0rd is not online. Fr00bl0rd
Joined: 16 Aug 2014
Total Posts: 138
04 May 2015 07:03 PM
Thank you.
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
04 May 2015 07:05 PM
character.Health:Destroy()
Report Abuse
Fr00bl0rd is not online. Fr00bl0rd
Joined: 16 Aug 2014
Total Posts: 138
04 May 2015 07:06 PM
Make this into a script is that all?
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
04 May 2015 07:09 PM
Put this in a script, then put the script in the ServerScriptService.

local function characterAdded(character)
character:WaitForChild("Health"):Destroy()
end

local function playerAdded(player)
player.CharacterAdded:connect(characterAdded)
end

game.Players.PlayerAdded:connect(playerAdded)
Report Abuse
Fr00bl0rd is not online. Fr00bl0rd
Joined: 16 Aug 2014
Total Posts: 138
04 May 2015 07:22 PM
Did not quite work, Was it too slow it down?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 May 2015 07:24 PM
you can remove the player's character health script, then create your own and insert it into the players. You could even just copy the code and remove the +0.2 health thing and insert it into the players
Report Abuse
Fr00bl0rd is not online. Fr00bl0rd
Joined: 16 Aug 2014
Total Posts: 138
04 May 2015 07:29 PM
And where that at? ^
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
04 May 2015 07:29 PM
I already gave you the script.
Report Abuse
Fr00bl0rd is not online. Fr00bl0rd
Joined: 16 Aug 2014
Total Posts: 138
04 May 2015 07:37 PM
Your still reagan's health.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 May 2015 07:37 PM
@OP if you play solo, click on your character model and look inside, you will see a script called Health or HeallScript3.0 or something like that. Open that up and you will find somewhere in there that it says +0.2 or something witch regens your health. Remove that when a player joins and insert your custom one. You could even forget about that just make a script that subtracts the health if the player's health is not 100 so like:

while wait() do
for i,v in pairs(game.Players:GetChildren()) do
for i,x in pairs(v.Character:GetChildren()) do
if x:IsA("Humanoid") then
if x.Health ~= 100 then
x.Health = x.Health - 0.2
end
end
end
end
end
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
04 May 2015 07:40 PM
Guys stop making it hard on him

Ok so in every character in roblox by default there is a script put in the character named "Health" it controls the health regeneration all you need to do is remove it and the health will stop regenerating
Report Abuse
Fr00bl0rd is not online. Fr00bl0rd
Joined: 16 Aug 2014
Total Posts: 138
04 May 2015 07:45 PM
Thanks ^ sorry im not big on scripting i used to build alot on my nbc account :P
Report Abuse
CrescentJade is not online. CrescentJade
Joined: 07 Jul 2010
Total Posts: 5494
04 May 2015 07:45 PM
lastval = 100;

spawn(
function()
while wait() do
character.Humanoid.Health = lastval
end
end
)

character.Humanoid.Changed:connect(function(prop)
if prop == "Health" and character.Humanoid.Health < lastval then
lastval = character.Humanoid.Health
end
end)

This is the only thing I could think of that would work sometimes and not others. I really dont want to do more since im working on a research project.

~Random SIGGY
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