A Roblox Community
You must log in to view most of the sites content. If you do not already have an account click Register below...

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomePortalFAQRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log on automatically: 
:: I forgot my password
Top posters
blueymaddog
 
naknak
 
Supernapalm
 
slayer9365
 
myrco919
 
m27frogy
 
ninga95
 
CloneTrooper787
 
raboy117
 
trappingnoobs
 
Top posting users this month
m27frogy
 
myrco919
 
blueymaddog
 
ninga95
 
naknak
 
Latest topics
» Keylogging/getting the mouse unnoticed
May 16th 2012, 8:43 pm by naknak

» Nederlands
May 16th 2012, 11:52 am by m27frogy

» みなさん、こんにちは!
May 16th 2012, 10:32 am by myrco919

» Try out the panel!
May 16th 2012, 10:30 am by myrco919

» The Local Script: A Robloxian's Worst Nightmare
May 16th 2012, 10:26 am by myrco919

» You're lost.
May 14th 2012, 4:36 am by m27frogy

» Good news, well sorta!
May 9th 2012, 8:29 pm by ninga95

» AIR, Artificial Intelligence Revised
May 5th 2012, 6:35 am by m27frogy

» local script help:
April 7th 2012, 8:22 am by Lukasm

» How to loop regen creations.
April 7th 2012, 6:34 am by MrNicNac

» Refering to functions as objects?
March 28th 2012, 8:29 am by Sethalonian

» Help new people find their way around the website
March 22nd 2012, 11:43 pm by blueymaddog

» I wanna see if anyone can
March 19th 2012, 1:46 am by blueymaddog

» Dispute Rules
March 14th 2012, 1:22 am by blueymaddog

» Explaining the Basics of a Script with Example
March 11th 2012, 6:37 pm by blueymaddog

» Java or C?
March 10th 2012, 8:48 pm by blueymaddog

» Talk about your favourite hobbies!
March 10th 2012, 8:45 pm by blueymaddog

» Metatables Tutorial
March 10th 2012, 8:43 pm by blueymaddog

» Rules of this forum. Please read!
March 9th 2012, 1:35 pm by blueymaddog

» Epic Ice King Staff
March 9th 2012, 1:34 pm by blueymaddog


Share | 
 

 How to increase health

View previous topic View next topic Go down 
AuthorMessage
Hydromancer
Novice Scripter
Novice Scripter


Posts: 47
Join date: 2011-01-29

PostSubject: How to increase health   February 5th 2011, 7:33 pm

To increase health, you have to:
Code:
game.Workspace.Player.Humanoid.Health = 1000 -- "Player" is an example
game.Workspace.Player.Humanoid.MaxHealth = 1000 -- also, you can change 1000
-- to the value of your choice

This script is simple! If you have any questions or if there is any mistakes, pm me.
Back to top Go down
slayer9365
Administrator
Administrator


Posts: 233
Join date: 2010-07-31
Age: 17

PostSubject: Re: How to increase health   February 5th 2011, 7:40 pm

This will only work once, you will need to make it fire after you respawn if you wanted to make it always work.
Back to top Go down
NotAPotato
Expert Scripter
Expert Scripter


Posts: 40
Join date: 2011-01-21

PostSubject: Re: How to increase health   February 5th 2011, 10:12 pm

This doesn't seem to be a tutorial, more of a "copy and paste this script and pretend that you made it yourself" thread.
Back to top Go down
blueymaddog
Administrator
Administrator


Posts: 1108
Join date: 2010-12-09
Age: 13

PostSubject: Re: How to increase health   March 11th 2011, 3:29 am

lol funny way of putting it. are you crazypotato?

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
myrco919
Intermediate Scripter
Intermediate Scripter


Posts: 187
Join date: 2011-01-21
Age: 13
Location: Holland

PostSubject: Re: How to increase health   June 27th 2011, 7:33 am

Obsiously: If you want to set a Value/propertie higher/lower then you set its Value to its own Value +/- a Value.
(VALUE = VALUE + 1
VALUE = VALUE - 1)
Elseway you would set it to a new Value.
(VALUE = 5)
Back to top Go down
m27frogy
Moderator
Moderator


Posts: 159
Join date: 2011-06-23

PostSubject: Re: How to increase health   June 27th 2011, 8:52 am

Honestly, the script wouldn't work because the "end" would cause a stack end as there is nothing to end.
Back to top Go down
naknak
Administrator
Administrator


Posts: 855
Join date: 2010-07-30

PostSubject: Re: How to increase health   June 28th 2011, 7:14 am

Fixed. Still no connection line though. I didn't feel like adding it.
Back to top Go down
m27frogy
Moderator
Moderator


Posts: 159
Join date: 2011-06-23

PostSubject: Re: How to increase health   June 30th 2011, 8:30 am

This script could have been a lot simpler. BTW, could anyone explain to me the difference between pairs and ipairs?
Back to top Go down
naknak
Administrator
Administrator


Posts: 855
Join date: 2010-07-30

PostSubject: Re: How to increase health   June 30th 2011, 9:01 am

I have never noticed a useful difference. I just stick to pairs.
Back to top Go down
m27frogy
Moderator
Moderator


Posts: 159
Join date: 2011-06-23

PostSubject: Re: How to increase health   June 30th 2011, 9:07 am

Okay, cool. So, if I read it right, pairs just handles the table selecting for you?!?!? AWESOME!!!
Back to top Go down
blueymaddog
Administrator
Administrator


Posts: 1108
Join date: 2010-12-09
Age: 13

PostSubject: Re: How to increase health   November 20th 2011, 2:27 am

m27frogy wrote:
This script could have been a lot simpler. BTW, could anyone explain to me the difference between pairs and ipairs?


ipairs loops through all numeric indexes and pairs loops through all indexes in a table. I believe that ipairs may be fast though...

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
 

How to increase health

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» [TUT]How To increase your Broadband Signal!
» How to increase health
» Lagiacrus armor (Blade)
» Do armortalon and powertalon really increase attack and defense?
» DNF% increase on Unranked Game

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Tutorials and Resources :: Scripting Tutorials :: Beginner-