generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Need help with a script

Previous Thread :: Next Thread 
ryjohn is not online. 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 is not online. 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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image