I make a moving part and its not riding me into platform can somebody help me how to make ridable part
Are you using CFrames and TweenService to move player with the platform? You’ll have to move the player manually. An much easier alternative involves BodyMovers, in which case Roblox physics engine takes care of forces by itself.
@DylTheDeveloperX You can either use BodyAngularVelocity (one of body movers) or HingeConstraints.
BodyAngularVelocity
Insert it into your part. MaxTorque should be very high and power P too. Because part has to be unanchored in order to be moved by BodyMovers, you have to also insert BodyPostiion to keep the part on the same location. Works well, and can be easily implemented using the following script, which takes care of everything.--[[
Set SERVER_NET_OWNERSHIP to true if exploiters are
interfering with part's movement. However, it might appear
a little more stuttery when 1) lots of parts are moved;
2) player has weak internet connection.
]]
local ROTATIONAL_SPEED = 2
local SERVER_NET_OWNERSHIP = false
local angularVel = Instance.new("BodyAngularVelocity")
angularVel.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
angularVel.P = 50000
angularVel.AngularVelocity = Vector3.new(0, ROTATIONAL_SPEED, 0)
angularVel.Parent = script.Parent
local bodyPos = Instance.new("BodyPosition")
bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyPos.P = 50000
bodyPos.Position = script.Parent.Position
bodyPos.Parent = script.Parent
if (SERVER_NET_OWNERSHIP) then
script.Parent:SetNetworkOwner(nil)
end
HingeConstraints
This method requires use of attachments, one HingeConstraint that bonds the two, an anchored root part and unanchored platform. Probably the easiest way to see how they work is watching a video about them on You Tube.I am appending a file with spinning platform based on HingeConstraints. Take a look how it’s built, where attachments are, how they are oriented, their other properties, and properties of HingeConstraint (see the pictures below). Root part is anchored as opposed to platform, which has to be unanchored. I also added a small script, using which you can configure rotational speed and set network owner, just like in the above example.
File (.rbxm, drag it in workspace): Spinning_platform_Roblox.rbxm (4.6 KB)
This sentence does not make sense, Could you make it make sense?!?