|
| 22 Mar 2014 10:44 PM |
script.Parent.MouseButton1Down:connect(function() ex = Instance.new("Explosion") ex.Position = game.Workspace.Explode1 ex.Parent = game.Workspace.Explode1 ex.BlastRadius = 5 ex.BlastPressure = 500 end)
Spot the problem if you've got teh brainz |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 10:46 PM |
ex.Position = game.Workspace.Explode1.Position
I won a math debate |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 10:50 PM |
Nope didnt work :(
Anyone else? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
zomg44
|
  |
| Joined: 30 Sep 2008 |
| Total Posts: 5678 |
|
|
| 22 Mar 2014 10:57 PM |
| the function part seems off.From what i know its used as a starting sequence for variables. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 10:57 PM |
ex = Instance.new("Explosion", game.Workspace)
|
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 10:58 PM |
| oopss wth did i just do O,o |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Mar 2014 11:33 PM |
"game.Workspace.Explode1" What is this exactly?
According to this: ex.Position = game.Workspace.Explode1 ex.Parent = game.Workspace.Explode1 It has to be an object and a Vector3 value.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Mar 2014 11:42 PM |
you didn't set the parent of "ex" ex.Parent = Workspace |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Mar 2014 11:49 PM |
script.Parent.MouseButton1Down:connect(function() ex = Instance.new("Explosion",Workspace) ex.Position = game.Workspace.Explode1.Value ex.Parent = game.Workspace.Explode1 ex.BlastRadius = 5 ex.BlastPressure = 500 end) |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 11:57 PM |
| I'll try it tomorrow I have to go to bed ): |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2014 12:30 AM |
function onClicked() ex = Instance.new("Explosion") ex.Position = game.Workspace.Explode1 ex.Parent = game.Workspace.Explode1 ex.BlastRadius = 5 ex.BlastPressure = 500 end) script.Parent.ClickDetector.MouseClick:connect(onClicked)
If this is bricks, that should help, because you need a ClickDetector |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2014 01:46 PM |
| He's working on the guisurface not the clickdetector |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2014 07:08 PM |
| None of those worked... what should I add as a vector? |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 23 Mar 2014 07:15 PM |
ex.Position = game.Workspace.Explode1.Position ex.Parent = game.Workspace.Explode1 |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2014 07:41 PM |
| It was already tried it didnt work |
|
|
| Report Abuse |
|
|
| |
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
| |
|
|
| 23 Mar 2014 09:33 PM |
ok first off, script.Parent.mouseButton1Down:connect(function() end) is for TEXTBUTTONS!
So you have to have a textbutton for it to work.
Second, you have to set the position to a Vector3 value.
ie: ex.Position = Vector3.new(0,0,0)
Third, if you want the position to be at a specific part, then do the following:
ex.Position = game.Workspace.PARTNAME.Position
|
|
|
| Report Abuse |
|
|
|
| 23 Mar 2014 09:36 PM |
What do I put for image buttons xD Ive done this before but its still vague to me |
|
|
| Report Abuse |
|
|