I am trying to make a moving part in an obby that a player can stand on properly without falling off, so I’ve tried tween but tween doesn’t allow players to stand on the part when it’s moving.
I then researched and found out a bit about BodyPosition and that it can be used as an alternative to tweening that allows players to stand on the moving part. But, I have tried to make a script that loops the BodyPosition but it doesn’t work.
Here is my script:
local pointA = Vector3.new(-160, 160.25, -492)
local pointB = Vector3.new(-160, 160.25, -452.25)
local bp = script.Parent:WaitForChild("BodyPosition")
while true do
bp.Position = Vector3.new(-160, 160.25, -492)
wait(2)
bp.Position = Vector3.new(-160, 160.25, -452.25)
wait(2)
end
He thinks that the reason behind your problem is that the forge applied is not enough to move something as heavy as the object that you are about to move.
Maybe you should check for the “Anchored” property of the object and/or place the script in other places where it can be executed, so it might work
Btw, you can only move something if the bodyposition is parented to a “BasePart” class, for which are “MeshPart”, “Part”, “UnionOperation”
I have another question if you’d be kind enough to answer it for me. How would I make a part stay on top of the moving part? Because I want a killbrick to be on the center of the moving part. I’ve tried using an attachment but it didn’t work.