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: Post Broken Begginer Scripts!

Previous Thread :: Next Thread 
Darkier23 is not online. 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 is not online. 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
DeadricSword is not online. DeadricSword
Joined: 15 Jan 2012
Total Posts: 121
16 Jan 2012 07:04 PM
Workspace.sniper6727.Health = 0

Just made it especially for you :D

_______________
☣-dєαdrícswσrd-☣
_______________
Report Abuse
Darkier23 is not online. 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 is not online. 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 is not online. 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
DeadricSword is not online. DeadricSword
Joined: 15 Jan 2012
Total Posts: 121
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 is not online. Darkier23
Joined: 06 Jan 2012
Total Posts: 1222
16 Jan 2012 07:13 PM
Alright, thanks guys! :)
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
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
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