|
| 28 Sep 2013 08:56 PM |
function onSelected(mouse) mouse.Button1Down:connect(onButton1Down) -- What are you trying to do here pl0X? game.Workspace.NUKE:clone() game.Workspace.NUKE.Parent = Workspace game.Workspace.NUKE.Cframe.new = mouse.X, mouse.Y end
script.Parent.Selected:connect(onSelected)
I know something is wrong it doesnt work!
But i cant figure out how to fix it
Please will
(This is a script that spawns a "miniature nuke" at the location of your mouse) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Xtreme101
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
|
| 29 Sep 2013 09:17 AM |
So many things...
I think you should fresh your understanding of Lua |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 09:22 AM |
try this
function onSelected(mouse) mouse.Button1Down:connect(onButton1Down) -- What are you trying to do here pl0X? NUUKE = game.Workspace.NUKE:clone() NUUKE.Parent = Workspace NUUKE.Cframe.new = mouse.X, mouse.Y end
script.Parent.Selected:connect(onSelected)
--crazycamkalani |
|
|
| Report Abuse |
|
|
Xtreme101
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
| |
|
| |
|
| |
|
|
| 29 Sep 2013 01:51 PM |
please help!
Any expert scripters?
anyone at all?
hello?
im feeling empty so please help |
|
|
| Report Abuse |
|
|
| |
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 29 Sep 2013 03:09 PM |
| Models use Moveto() method, not CFrame. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 03:18 PM |
Hmmm im getting there.
Does the position have to rely on the mouse or does a different method need to be used? |
|
|
| Report Abuse |
|
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 29 Sep 2013 03:21 PM |
| You can use the TargetPoint property of Humanoid to get where the mouse is pointing. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 03:38 PM |
You sir, answered the question i asked.
Coming back with a script |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 04:26 PM |
I know this script won't work so don't flame as this is the best i can do!
VVV = game.Lighting.NUKE
function onButton1Down(mouse) -- What are you trying to do here pl0X? VVV:clone() VVV.Parent = Workspace VVV:moveto(Vector3.new (TargetPoint)) end
script.Parent.Selected:connect(onSelected)
What do! |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Sep 2013 06:28 PM |
Please. help me
What do i have to do!? |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 07:01 PM |
http://www.roblox.com/Tiny-Miniature-Nuke-spawner-item?id=131227520
The non-working tool plus nuke included inside
Please try to fix the tool, thank you |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Sep 2013 07:31 PM |
| Why isn't anyone helping me? |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2013 07:35 PM |
workspace:FindFirstChild("NUKE").Parent = game.Lighting function onSelected(mouse) mouse.Button1Down:connect(onButton1Down) cl = game.Lighting:clone() cl.Parent = workspace cl:MoveTo(mouse.Hit.p) end script.Parent.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2013 08:02 PM |
Doesn't work, throws me these errors.
21:02:15.004 - Players.Player1.Backpack.Mini 2 MT nuke adder.LocalScript:5: attempt to index global 'cl' (a nil value) 21:02:15.007 - Script 'Players.Player1.Backpack.Mini 2 MT nuke adder.LocalScript', Line 5 21:02:15.010 - stack end 21:02:15.012 - Disconnected event because of exception 21:02:16.112 - attempt to call a nil value 21:02:16.114 - Disconnected event because of exception
Any other ideas?
And please help out
-thank you |
|
|
| Report Abuse |
|
|
knexboy1
|
  |
| Joined: 08 Apr 2009 |
| Total Posts: 74 |
|
|
| 30 Sep 2013 08:34 PM |
script.Parent.Selected:connect(function(mouse) mouse.Button1Down:connect(function() copy=game.Workspace.NUKE:Clone() copy.Parent = Workspace copy:MoveTo(mouse.Hit.p) end) end) |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 01:51 PM |
game:FindFirstChild("NUKE", true).Parent = game.Lighting function onSelected(mouse) mouse.Button1Down:connect(onButton1Down) cl = game.Lighting.NUKE:clone() cl.Parent = workspace cl:MoveTo(mouse.Hit.p) end |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 03:18 PM |
Kay so it didnt throw errors at me.
But it doesn't really work. When i click nothing happens.
To clear up stuff, The NUKE is first in the Lighting waiting to be used then when i click somewhere on the ground the NUKE gets cloned and the NUKE shows itself in workspace.
Sorry if u got stuff wrong
|
|
|
| Report Abuse |
|
|