Darkier23
|
  |
| Joined: 06 Jan 2012 |
| Total Posts: 1222 |
|
|
| 16 Jan 2012 07:00 PM |
| I'm learning to script at Dingdong Beginner place. I'm on Lesson 6, which is Functions. I just wanna test my self, on what I have learned. Oh yea, my scripting account is Kezowe! |
|
|
| Report Abuse |
|
|
Bubby4j
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 1831 |
|
|
| 16 Jan 2012 07:04 PM |
while tru do wait(0.1) print("Hai") end
It's supposed to print Hai every tenth on a second. (I'm not a beginner, this is just a example) |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 07:04 PM |
Workspace.sniper6727.Health = 0
Just made it especially for you :D
_______________ ☣-dєαdrícswσrd-☣ _______________ |
|
|
| Report Abuse |
|
|
Darkier23
|
  |
| Joined: 06 Jan 2012 |
| Total Posts: 1222 |
|
|
| 16 Jan 2012 07:05 PM |
while true do wait(0.1) print("Hai") end |
|
|
| Report Abuse |
|
|
Darkier23
|
  |
| Joined: 06 Jan 2012 |
| Total Posts: 1222 |
|
|
| 16 Jan 2012 07:08 PM |
Workspace.sniper6727.Health = 0
game.Workspace.Darkier23.Health = 0 |
|
|
| Report Abuse |
|
|
jode6543
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 5363 |
|
|
| 16 Jan 2012 07:10 PM |
@Dark Wrong. game.Workspace.Darkier23.Humanoid.Health = 0
"Be nice to nerds. Chances are you'll end up working for one. -Bill Gates" |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 07:12 PM |
No D:
Actually, when using Workspace you do not need the "game". Also, it's sniper6727.Humanoid.Health. Then you put "" around the number of health... Good try, but didn't do so well :(
The finished script: Workspace.sniper6727.Humanoid.Health = 0
_______________ ☣-dєαdrícswσrd-☣ _______________ |
|
|
| Report Abuse |
|
|
Darkier23
|
  |
| Joined: 06 Jan 2012 |
| Total Posts: 1222 |
|
| |
|
|
| 16 Jan 2012 07:15 PM |
@Deadric
I suggest you do some studying on scripting. Health is a number, not a string. It doesnt require "" around the 0. |
|
|
| Report Abuse |
|
|