ethan3300
|
  |
| Joined: 10 Nov 2009 |
| Total Posts: 5222 |
|
|
| 13 Aug 2011 05:16 PM |
| I just want to know how I can make a plug in the would in sert a spawn where I click. |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2011 05:30 PM |
| I would make one but I don't really want to. |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2011 05:34 PM |
self = PluginManager():CreatePlugin() mouse = self:GetMouse() mouse.Button1Down:connect(function() onClicked(mouse) end) self.Deactivation:connect(function() Off() end) toolbar = self:CreateToolbar("Fun") toolbarbutton = toolbar:CreateButton("", "Spawn Maker", "Spawn.png") toolbarbutton.Click:connect(function() if on then Off() else On() end end)
function On() self:Activate() toolbarbutton:SetActive(true) on = true end
function Off() toolbarbutton:SetActive(false) on = false end
function onClicked(mouse) if on then print(":D") local model = game:GetService("InsertService"):LoadAsset("53326") local npc = model:clone() npc.Parent = game.Workspace npc:MoveTo(mouse.Hit.p) end end
I made one, You just need to learn how to use it. |
|
|
| Report Abuse |
|
|
ethan3300
|
  |
| Joined: 10 Nov 2009 |
| Total Posts: 5222 |
|
|
| 13 Aug 2011 05:43 PM |
| Only other question is how do I get in the little tool bar thing |
|
|
| Report Abuse |
|
|