dapfallen
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 201 |
|
|
| 10 Sep 2011 08:01 AM |
function onClick() local gui = script.Parent a=game:GetService("InsertService"):LoadAsset(24680699) a.Parent=workspace.dapfallen end
gui.MouseButton1Down:connect(onClick)
No error on output, But won't work. |
|
|
| Report Abuse |
|
|
ItRPieMan
|
  |
| Joined: 08 Sep 2011 |
| Total Posts: 115 |
|
|
| 10 Sep 2011 08:05 AM |
script.Parent.MouseButton1Down:connect(function() a=game:GetService("InsertService"):LoadAsset(24680699) a.Parent=workspace.dapfallen end) |
|
|
| Report Abuse |
|
|
dapfallen
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 201 |
|
|
| 10 Sep 2011 08:09 AM |
;/, Didn't work. I think the asset is not public.
~~ Kill the boss, like a boss. ~~ |
|
|
| Report Abuse |
|
|
dapfallen
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 201 |
|
|
| 10 Sep 2011 08:10 AM |
It just won't work. Even with public domain.
~~ Kill the boss, like a boss. ~~ |
|
|
| Report Abuse |
|
|
ItRPieMan
|
  |
| Joined: 08 Sep 2011 |
| Total Posts: 115 |
|
|
| 10 Sep 2011 08:11 AM |
| well the thing wrong with your script is that you did not set "gui" but referenced it at the connection line. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 08:11 AM |
| The asset has to be public in order for it to insert. |
|
|
| Report Abuse |
|
|
ItRPieMan
|
  |
| Joined: 08 Sep 2011 |
| Total Posts: 115 |
|
|
| 10 Sep 2011 08:11 AM |
| what's the output now though? |
|
|
| Report Abuse |
|
|
dapfallen
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 201 |
|
|
| 10 Sep 2011 08:13 AM |
Found out
~~ Kill the boss, like a boss. ~~ |
|
|
| Report Abuse |
|
|
dapfallen
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 201 |
|
|
| 10 Sep 2011 08:16 AM |
Unable to cast Instance to Vector3
function onButtonClicked() local player = script.Parent.Parent.Parent.Parent.Character a=game:GetService("InsertService"):LoadAsset(24680699) a.Parent=player a:MoveTo(player) end
script.Parent.MouseButton1Click:connect(onButtonClicked)
|
|
|
| Report Abuse |
|
|
ItRPieMan
|
  |
| Joined: 08 Sep 2011 |
| Total Posts: 115 |
|
|
| 10 Sep 2011 08:18 AM |
function onButtonClicked() local player = script.Parent.Parent.Parent.Parent.Character a=game:GetService("InsertService"):LoadAsset(24680699) a.Parent=player a:MoveTo(player.Head.Position) end
script.Parent.MouseButton1Click:connect(onButtonClicked) |
|
|
| Report Abuse |
|
|
dapfallen
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 201 |
|
|
| 10 Sep 2011 08:21 AM |
Works now :D
~~ Kill the boss, like a boss. ~~ |
|
|
| Report Abuse |
|
|
dapfallen
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 201 |
|
|
| 10 Sep 2011 08:22 AM |
Now i can make my insert tool only work to certain non abusable models.
~~ Kill the boss, like a boss. ~~ |
|
|
| Report Abuse |
|
|