Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change the speed of sinking?

So, I have a made a script that makes the player sink. I want to change the speed of the sinking. Please help me add the parts I need! :D

function Sink(hit)
v = Instance.new("BodyVelocity")
v.maxForce = v.maxForce*999999999999999999999999999
v.velocity = Vector3.new(0, -1.5, 0)
v.Parent = hit
end

script.Parent.Touched:connect(Sink)

1 answer

✓ Accepted answer

I'm not sure what you mean by sinking but

function Sink(hit)
v = Instance.new("BodyVelocity")
v.maxForce = v.maxForce*999999999999999999999999999
v.velocity = Vector3.new(0, -1.5, 0)  -- X, Y, Z. Y is vertical so -1.5 means it is going down if you want to make it faster , try Vector3.new(0, -3, 0) for example
v.Parent = hit
end

script.Parent.Touched:connect(Sink)

This discussion is preserved as it was. New answers, comments, and votes are closed.