|
| 16 Feb 2012 06:59 PM |
script.Parent.Selected:connect(function(mouse) mouse.Button1Down:connect(function() for i,v in pairs(script.Parent.Parent.Parent.Character:GetChildren()) do if v.Name == "Lasso" then v:remove() if v.Torso:FindFirstChild("BodyPosition") then v.Torso.BodyPosition:remove() end end end target = mouse.Target if target then spl = Instance.new("SelectionPartLasso",script.Parent.Parent.Parent.Character) spl.Name = "Lasso" spl.Part = target spl.Humanoid = script.Parent.Parent.Parent.Character.Humanoid b = Instance.new("BodyPosition",script.Parent.Parent.Parent.Character.Torso) b.maxForce = Vector3.new(50000,50000,50000) b.position = target.Position end end) end)
script.Parent.Deselected:connect(function(mouse) for i,v in pairs(script.Parent.Parent.Parent.Character:GetChildren()) do if v.Name == "Lasso" then v:remove() else print("No") if v.Torso:FindFirstChild("BodyPosition") then v.Torso.BodyPosition:remove() else print("No") end end end end)
It says something like Torso is not a valid member of Part which I'm like, 'Um, are you high, bro?' |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 17 Feb 2012 04:34 PM |
| No, there's a Lasso in the character and the BodyPosition in the Torso, XD. |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Feb 2012 04:56 PM |
| I fixed it, thanks anyway. |
|
|
| Report Abuse |
|
|