Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a body position not shift the part down each time?

Asked by 4 years ago

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!

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 holamii2 45 — 4y
0
well yes, but i want it to be the updated version every time the while loop runs ImUID3558 20 — 4y
0
I'm pretty sure it will update I had this problem yesterday and everything seemed to work fine for me holamii2 45 — 4y
0
alright ill try, sorry just got back right now ImUID3558 20 — 4y
0
@holamii2 same issue ImUID3558 20 — 4y

Answer this question