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

How to change Velocity when player touches a specific brick?

Asked by 6 years ago
Edited 6 years ago

I am trying to increase the velocity of a block when a player touches/sits on it and then set the velocity to 0 when a player isn't touching it. I am trying to make a swing. I am not quite sure what to do but this is what I have so far:

script.Parent.Touched:connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        game.Workspace.SwingSeat1.Velocity = Vector3.new(400,0,0
 )
    end
end)

When I sit on the swing it doesn't move.

0
This link has things a lot more reliable then changing velocity. Especially of players. Do counteract flinging, they tone down the velocity effects on characters unless introduced by a "Body mover" to imply its a wanted force applied and not just a glitched out jump. Bellyrium 310 — 6y
0
Thank you very much Bellyrium! :D Lumelore 0 — 6y
0
But i get this message: BodyForce is not a valid member of Seat Lumelore 0 — 6y

Answer this question