Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I change the speed of sinking? [closed]

Asked by 4 years ago

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)

Closed as Not Constructive by Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 4 years ago

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)
Ad