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 » Scripters
Home Search
 

Pretty simple script - need help!

Previous Thread :: Next Thread 
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
14 Sep 2015 09:17 PM
I just need a chunk of a script that I really can't figure out

What I need it to do:
When the "ball" hits the arm I want it to explode. Although, I don't want it explode UNLESS it hits that specific arm. I already have the explosion set up and so is the arm, I just need the scripting area.

Pretty simple, but I'm kind of lost for some reason. Thanks for your answers!

Report Abuse
SaveDaTurtlesMan is not online. SaveDaTurtlesMan
Joined: 09 Dec 2013
Total Posts: 260
14 Sep 2015 09:19 PM
arm.Touched:connect(function(hit)
if hit.Name == ball.Name then
local explosion = Instance.new("Explosion",game.Workspace)
explosion.Position = ball.Position
ball:Destroy()
end
end)
Report Abuse
MKofOrbiter is not online. MKofOrbiter
Joined: 28 Aug 2010
Total Posts: 910
14 Sep 2015 09:20 PM
Why do you put a explosion just in the workspace and do nothing else...
Report Abuse
SaveDaTurtlesMan is not online. SaveDaTurtlesMan
Joined: 09 Dec 2013
Total Posts: 260
14 Sep 2015 09:21 PM
Because it explodes automaticly
Report Abuse
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
14 Sep 2015 09:26 PM
It'll just explode for no reason so you have to tell it where it will be and when it is supposed to explode.
Report Abuse
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
14 Sep 2015 09:26 PM
Thanks! It worked.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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