AgentL3r
|
  |
| Joined: 14 Jan 2013 |
| Total Posts: 1671 |
|
|
| 10 Oct 2015 04:36 AM |
I have this script which creates a part, sort of like RayCasting. It says MoveTo is not a valid member of Tool, so is there any thing else I could use?
Script:
local p = Instance.new("Part") p.Size = Vector3.new(1,1,1) p.formFactor = "Symmetric" p.Transparency = 1 p.CanCollide = false p.Name = "CableRemove"
db = false function onTouched(hit) local h = hit.Parent:FindFirstChild("Handle") if h ~= nil and db == false then db = true local P = p:clone() P.Parent = hit.Parent local Weld = Instance.new("Weld") Weld.Part0 = hit.Parent.extend Weld.Part1 = P Weld.C0 = CFrame.new(0, -4, 0) Weld.Parent = hit.Parent.extend h.Parent:MoveTo(script.Parent.Parent.Pos.Position) local cable = script.Parent.Cable:clone() cable.Parent = hit.Parent.extend cable.Handle = h cable.Part = script.Parent.Parent.Cable local bv = script.Parent.BV:clone() bv.Script.Disabled = false bv.Parent = hit.Parent.CableRemove bv.maxForce = Vector3.new(0,50000,0) bv.velocity = Vector3.new(0,-25,0) hit.Parent.CableRemove:Destroy() wait(3) db = false end end connection = script.Parent.Touched:connect(onTouched)
#code for i,v in pairs dont |
|
|
| Report Abuse |
|
AgentL3r
|
  |
| Joined: 14 Jan 2013 |
| Total Posts: 1671 |
|
|
| 10 Oct 2015 04:40 AM |
Oh wait, I need a SelectionPartLasso nvm
#code for i,v in pairs dont |
|
|
| Report Abuse |
|