|
| 15 May 2015 09:16 PM |
local Part = workspace.Part script.Parent.Selected:connect(function(mouse) local PartClone = Part:Clone() PartClone.Parent = workspace repeat PartClone.Position = mouse.Hit.p until mouse.Button1Down end)
|
|
|
| Report Abuse |
|
|
|
| 15 May 2015 09:16 PM |
Sorry its not good, but i just sperated this as it came out in one line, so i coudnt indent.
Also because this is just a little template for what im gonna be making. |
|
|
| Report Abuse |
|
|
|
| 15 May 2015 09:19 PM |
i made this but it doesnt work
local Part = workspace.Part
local on = false
script.Parent.Selected:connect(function(mouse) local PartClone = Part:Clone()
mouse.Button2Down:connect(function() on = false end) PartClone.Parent = workspace spawn(function() while wait() do if on == true then PartClone.CFrame = mouse.Hit.p*CFrame.new(0,Part.Size.Y/2,0) end end end) end) |
|
|
| Report Abuse |
|
|
|
| 15 May 2015 09:27 PM |
local Part = workspace.Part
local on = false
script.Parent.Selected:connect(function(mouse) local PartClone = Part:Clone()
mouse.Button2Down:connect(function() on = false
PartClone.Parent = workspace spawn(function() while wait() do if on == true then PartClone.CFrame = mouse.Hit.p*CFrame.new(0,Part.Size.Y/2,0) end end end) end) end) |
|
|
| Report Abuse |
|
|