Bodyposition wont move player's character

I’m trying to make a moving part that carries the player along with it, and I heard bodyposition would do that, but it doesn’t seem to be working.

pos.Parent = script.Parent
pos.P = 10000
pos.D = 600
local gyro = Instance.new("BodyGyro")
gyro.Parent = script.Parent
gyro.MaxTorque = Vector3.new(40000,40000,40000)
local y = 650

while true do
	pos.Position = Vector3.new(script.Parent.Position.X,y,script.Parent.Position.Z) + script.Parent.CFrame.LookVector * 3
	wait()
end

Try increasing the P until something happens and if that does nothing try setting the player’s humanoid.PlatformStand = true.