ryjohn
|
  |
| Joined: 30 May 2011 |
| Total Posts: 651 |
|
|
| 06 Dec 2011 03:11 PM |
I friend of mine found a model for me, which is like an absiel rope, which should let a player drop slowly down to the floor when they touch it. Instead, for some reason, they fly into the sky before falling slowly down on the rope, which is very annoying. I need somebody to help me fix the script. Message me the fixed one if you do help. You can find the model in my models if you need it. Thanks.
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("Humanoid") 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.Torso Weld.Part1 = P Weld.C0 = CFrame.new(0, -4, 0) Weld.Parent = hit.Parent.Torso h.Parent:MoveTo(script.Parent.Parent.Pos.Position) script.Parent.Snap:play() script.Parent.Snap:clone().Parent = hit.Parent.Torso script.Parent.BV.WS.Value = hit.Parent.Humanoid.WalkSpeed hit.Parent.Humanoid.WalkSpeed = 6 local cable = script.Parent.Cable:clone() cable.Parent = hit.Parent.Torso cable.Humanoid = 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) wait(1) db = false end end connection = script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
ryjohn
|
  |
| Joined: 30 May 2011 |
| Total Posts: 651 |
|
|
| 06 Dec 2011 03:12 PM |
| Note: I don't know a thing about scripting, so you will need to explain it to me in simple terms |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2011 03:15 PM |
Instead of using a script, why don't you just set the Velocity of your rope to something like (0, 5, 0)? This is assuming the rope is one part. If it's more than one part, just set all Velocity properties on all bricks to that, or similar depending how fast you want the player to fall.
Cheers, -- AFF |
|
|
| Report Abuse |
|
|
ryjohn
|
  |
| Joined: 30 May 2011 |
| Total Posts: 651 |
|
|
| 06 Dec 2011 03:18 PM |
| Don't think that would work, I need the rope to spawn when the player touches the model, and vanish when the player touches the floor. |
|
|
| Report Abuse |
|
|