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: whats wrong with this script?

Previous Thread :: Next Thread 
adventurebroemil2 is not online. adventurebroemil2
Joined: 27 Dec 2012
Total Posts: 16124
28 Nov 2013 08:23 PM
Game.Workspace.easy:OnClick().Game.Workspace.adventurebroemil2.Humanoid:Destroy()




i dont get it.
Report Abuse
Excellus is not online. Excellus
Joined: 17 Jun 2013
Total Posts: 3939
28 Nov 2013 08:29 PM
a lot
Report Abuse
adventurebroemil2 is not online. adventurebroemil2
Joined: 27 Dec 2012
Total Posts: 16124
28 Nov 2013 08:30 PM
well can you correct it for me?




Report Abuse
Excellus is not online. Excellus
Joined: 17 Jun 2013
Total Posts: 3939
28 Nov 2013 08:31 PM
i suggest you learn the basics before doing this stuff
Report Abuse
adventurebroemil2 is not online. adventurebroemil2
Joined: 27 Dec 2012
Total Posts: 16124
28 Nov 2013 08:33 PM
your just a troll.
Report Abuse
Perungus is not online. Perungus
Joined: 23 May 2013
Total Posts: 144
28 Nov 2013 08:39 PM
No, he's pretty much dead serious.
Report Abuse
Mapyo10 is not online. Mapyo10
Joined: 01 Mar 2009
Total Posts: 170
28 Nov 2013 08:50 PM
Do you have a detector?
Report Abuse
bounty88 is not online. bounty88
Joined: 23 Sep 2008
Total Posts: 454
28 Nov 2013 09:13 PM
Wtf are you even attempting to accomplish here? It's almost like you combined the connect line with whatever you were trying to script.
Report Abuse
CyberViper is not online. CyberViper
Joined: 14 Feb 2010
Total Posts: 239
28 Nov 2013 09:28 PM
I think the only troll here is you. This script is really messed up.
Report Abuse
yoshiwars is not online. yoshiwars
Joined: 27 Jul 2009
Total Posts: 216
28 Nov 2013 09:35 PM
Hes starting, let him learn by his mistakes guys..

Okay so what you are trying here is a function but OnClick() is probably not what you are looking for, since I assume you are new to this I would recommend you to try with the Touched event first. it would look like this:

note:
-- THIS ARE MY COMMENTS



function onTouched(part) -- onTouched is any name, part is the object that touched
if part.Parent.Name == "adventurebroemil2" then -- checks if its you
part.Parent.Humanoid:Destroy() -- find your humanoid and destroy it
end -- function end
end -- condition end

script.Parent.Touched:connect(onTouched) -- I assume the parent is killing object



Hope I helped!
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