i am probably being a retard with body position but idk how to use lmao, but i want to make a part hover up and down like its floating so i thought that a bp will work good, and it seems like it does the only issue is that it shifts down instead of going to its default position, i speeded up the delay so i can show you what i mean in the below gyazo


local bp = script.Parent.BodyPosition

while true do
    bp.Position = Vector3.new(script.Parent.Position.X, script.Parent.Position.Y  + 0.400, script.Parent.Position.Z)
    wait(3) 
    bp.Position = Vector3.new(script.Parent.Position.X, script.Parent.Position.Y  - 0.400, script.Parent.Position.Z)
    wait(3)
end

https://gyazo.com/011c018e515146e63b588d562a0818dd

ty if you can help me!

5 comments

0

I don't know why but you can't just use script.Parent.Position.X instead you have to make a variable like local PositionX = script.Parent.Position.X

0

well yes, but i want it to be the updated version every time the while loop runs

0

I'm pretty sure it will update I had this problem yesterday and everything seemed to work fine for me

0

alright ill try, sorry just got back right now

0

@holamii2 same issue