|
| 07 Oct 2014 08:29 PM |
I have a hopperbin that spawns vehicles on mouse click. For some reason it doesn't work when you play the place. But works perfectly fine in Solo Mode. And no errors show up in the output or Script Analysis -_-
bin = script.Parent
function onButton1Down(mouse)
local model = bin.Figure:clone()
model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.hit.p)
end
function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
bin.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|
| |
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
| |
|
|
| 07 Oct 2014 09:06 PM |
| No it is not. Should it be? |
|
|
| Report Abuse |
|
|
Subete
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 917 |
|
| |
|
|
| 07 Oct 2014 09:21 PM |
| Oh wow, that simply. Thanks guys. |
|
|
| Report Abuse |
|
|