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

[SOLVED] Part with BodyVelocity rotating?

Asked by 5 years ago
Edited 5 years ago

Today i was testing some BodyVelocity scripts. So i build a platform that goes forward, but, the only problem is that when someone get on that platform it rotates like crazy. Other things such as the force, altitude and weight wasn't affected.

Here's the script

local Detector = script.Parent.Parent:WaitForChild("ClickDetector)
Detector.MouseClick:Connect(function(player)
local HLSpeed = 10
script.Parent.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
script.Parent.Velocity = Vector3.new(0,0,2)
script.Parent.Velocity = script.Parent.Parent.CFrame.LookVector *HLSpeed
end)

Is there a way i can make a block that can be moved but not rotated?

1 answer

Log in to vote
0
Answered by 5 years ago

Nvm found out myself, i just have to put a body gyro, set max torque to 400000, 400000, 400000 and i'm done :/

Ad

Answer this question