Why cant I stay on moving part?

I have practically tryied every thing. I looked it up, I tried other solutions and nothing seems to be working. I want the to be able to stand on a moving part, but for some reason they just fall off. https://youtu.be/OG6UyNm0nzA


script.Parent.connection.OnServerEvent:Connect(function(plr, pos)
local rocket = Instance.new(“Part”)
rocket.Name = “Rocket”
rocket.Parent = workspace
rocket.CFrame = CFrame.new(script.Parent.Handle.Position, pos)
rocket.Size = Vector3.new(1,1,2)

local velocity = Instance.new("BodyVelocity")
velocity.Parent = rocket
velocity.Velocity = Vector3.new(0,0,1)--(pos - script.Parent.Handle.Position).Unit * 25
velocity.MaxForce = Vector3.new("inf", "inf", "inf")

local body = Instance.new("BodyGyro")
body.Parent = rocket


This is because you are just updating the part(s) CFrame meaning theres no movement for your character to connect to.

Instead, try using things like Cylindrical Constraints and Legacy Body Movers.