|
| 06 Oct 2015 09:05 PM |
Can someone fix this script? Its inside of a tool and when you click using the tool a model is supposed to spawn by you. See who can fix it first! __________________________________________________________
--Info: To Use This Just Inset A Model Inside This Tool And Change The Name Where It Says Below
bin = script.Parent
function onButton1Down(mouse)
local model = bin.Figure:clone() --Change "Plane" to What Ever Model Name You Have
model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.hit.p) bin:ClearAllChildren()
end
function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
bin.Selected:connect(onSelected)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
jmt99
|
  |
| Joined: 27 Jul 2008 |
| Total Posts: 4799 |
|
|
| 06 Oct 2015 09:10 PM |
well first of all, you are using a hopper bin, so there's a problem there lmao
and second, :clone() is deprecated, use :Clone()
#code game["GetService"]("LoginService")["Logout"]() |
|
|
| Report Abuse |
|
|
|
| 06 Oct 2015 09:13 PM |
| Could you help make a working version? I have been playing around with it for a while and can't fix it. |
|
|
| Report Abuse |
|
|
jmt99
|
  |
| Joined: 27 Jul 2008 |
| Total Posts: 4799 |
|
|
| 06 Oct 2015 09:14 PM |
dont use hopperbins
#code game["GetService"]("LoginService")["Logout"]() |
|
|
| Report Abuse |
|
|
|
| 06 Oct 2015 09:17 PM |
| I'm not that familiar with hopperbins, if it isn't too much could post the working version of the script? Really struggling with this. |
|
|
| Report Abuse |
|
|
jmt99
|
  |
| Joined: 27 Jul 2008 |
| Total Posts: 4799 |
|
|
| 06 Oct 2015 09:19 PM |
You need to transfer the scripts to a normal tool, not a hopperbin, and then rework the script a tad bit to make it work with a tool.
#code game["GetService"]("LoginService")["Logout"]() |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Oct 2015 09:27 PM |
| Alright the script is in a hopperbin, but how would I rework the script to work with a regular tool? |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Oct 2015 09:51 PM |
--Put your thing named "Figure" into Server Storage local ss = game:GetService("ServerStorage").Figure
local Cloned = ss:Clone()
local bin = script.Parent
function clone(mouse)
local new = Cloned:Clone() new.Parent = Workspace new:MoveTo(mouse.Hit.p)
end
bin.Selected:connect(function(mouse) mouse.Button1Up:connect(function() clone(mouse) end) end)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Oct 2015 11:36 PM |
Didn't work! :( Are the scripts supposed to be in a HopperBin or regular Too? |
|
|
| Report Abuse |
|
|
jmt99
|
  |
| Joined: 27 Jul 2008 |
| Total Posts: 4799 |
|
|
| 07 Oct 2015 02:35 PM |
A regular tool.
#code game["GetService"]("LoginService")["Logout"]() |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2015 07:03 PM |
| No idea how to get this to work.. |
|
|
| Report Abuse |
|
|
| |
|
nodnarb2
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 764 |
|
|
| 07 Oct 2015 08:27 PM |
gosh dang hopperbins ruining free models 4 all!
http://www.roblox.com/Recycled-Domino-Crown-100-TAKES-item?id=240294006 love me? |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2015 09:05 PM |
tip: don't try to be like, "LETS SEE WHO CAN FIGURE IT OUT FIRST CUZ I NEED QUICK HELP"
but you could ask nicely, we won't bite |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2015 09:07 PM |
| @magic, Of course we will bite! Using free models is bad enough, asking for help with a free model is even worse |
|
|
| Report Abuse |
|
|