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: Script Problem please help

Previous Thread :: Next Thread 
YOamp is not online. YOamp
Joined: 25 Nov 2009
Total Posts: 358
18 Dec 2011 07:49 PM
if Humaniod.touch parent
then Humaniod health = 0
end


Whats wrong with this script?
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
18 Dec 2011 07:51 PM
Everything.
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
18 Dec 2011 07:51 PM
Everything (not even joking). Seriously, try learning how to script before you try to make scripts.
Report Abuse
YOamp is not online. YOamp
Joined: 25 Nov 2009
Total Posts: 358
18 Dec 2011 07:53 PM
Comon guys please help me...Can you give me a script?
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
18 Dec 2011 07:54 PM
First of all, is that your whole script?
Report Abuse
YOamp is not online. YOamp
Joined: 25 Nov 2009
Total Posts: 358
18 Dec 2011 07:55 PM
Lol for now....
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
18 Dec 2011 07:56 PM
It's all wrong. It fails. Learn scripting first.
Report Abuse
YOamp is not online. YOamp
Joined: 25 Nov 2009
Total Posts: 358
18 Dec 2011 07:56 PM
Can you make the correct script?
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
18 Dec 2011 07:57 PM
We don't just *give* out scripts. Here's how it works around here:

1) You learn how to script enough to do a desired task
2) You make an honest attempt to do the desired task
3) In the event that it doesn't work, you bring it here in its entirety and we tell you what's wrong so you can fix it yourself
Report Abuse
soccaboy17 is not online. soccaboy17
Joined: 22 Sep 2009
Total Posts: 3161
18 Dec 2011 07:59 PM
function onTouched(hit)
h.Parent = hit:findFirstChild("Humanoid")
if h then
-- put whatever you want to happen
else
print("Not human")
end
end

part.Touched:connect(onTouched)
Report Abuse
soccaboy17 is not online. soccaboy17
Joined: 22 Sep 2009
Total Posts: 3161
18 Dec 2011 08:00 PM
Oops wtf D:

function onTouched(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h then
-- put whatever you want to happen
else
print("Not human")
end
end

part.Touched:connect(onTouched)
Report Abuse
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
18 Dec 2011 08:01 PM
@soccaboy
Y U NO...
!!!!!!!!!!!!!!!!!!!!
Report Abuse
jdm281 is not online. jdm281
Joined: 15 Jan 2010
Total Posts: 177
18 Dec 2011 08:38 PM
like my script?:

giveplayer:unlimited():Robux()

LOLOL
Report Abuse
jdm281 is not online. jdm281
Joined: 15 Jan 2010
Total Posts: 177
18 Dec 2011 08:40 PM
well I've seen worse fails check this out:

"boynedmaster's Ro-Pictionary Script"
Players_Needed = 2
Instance.New("Message")
wait(1)
m.Text = mathrandom()playername "is the drawer!"
if "playername" then
"Playername"Position.SpawnLocation."Really Black"--Change the "really black"to the color of the drawer spawn.Don't forget to capatilize it and spell it right,or it won't work!
Players_in_"Really Black"_SpawnLocation = 1
InTeam = true
local tools
Instance.New("Tool")
ToolName = "Draw"
Instance.New("Tool")
ToolName = "Erase"
local message
wait(1)
function squaretemplate message
m.Text = "Draw This:"mathrandom()Words
--Words
"boat"
"United States" or "usa"
"Mario"
"Builder's Club" or "BC"
"Japan"
"Alien"
"Monster"
"pie"
"pi"
"Spongebob Squarepants" or "Spongebob"
"ROBLOX"
"noob"
"Grandma"
"Gramdfather"
"car"
"Truck"
"cab"
"Train"
"Limozine" or "Limo"
"Money"
"Battleship"
"Ship"
"Pirate"
"Robloxia"
"Wood"
"David Baszucki" or "David" or "builderman"
"Titanic"
"Dictionary"
"Batman"
"Robin"
"The Joker"
"Jason" or "Friday the 13th"
"Lady GaGa"
if said the chosen word then
Instance.New("Message")
wait(1)
m.Text = playername that said chosen word "chose the correct word!(The word was"chosenword")"
--Don't Delete anything but words you don't want!
end
Report Abuse
YOamp is not online. YOamp
Joined: 25 Nov 2009
Total Posts: 358
19 Dec 2011 02:25 PM
function onTouched(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h
then ("Humanoid").Health=0
end

Works thanks guy that ACTUALLY helped
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
19 Dec 2011 02:56 PM
You mean the guy that was foolish enough to just hand out the 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