Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I work with BodyPosition?

I am trying to make a floating orb above a pedestal for my lobby, but when I use this script, it seems to float to the center of the map, 50 units above the center. Am I using the wrong body object, or is my script wrong?

local float = game.Workspace.Thruster
local bodypos = float.BodyPosition
local finish = game.Workspace.Ending

bodypos.position = finish.position

1 answer

✓ Accepted answer

I'm not sure if this is what you were looking for, but this is what I came up with.

wait()
local p				= script.Parent
local start			=p.Position
local endpos		=start+Vector3.new(0,-5,0)


p.BodyPosition.position=endpos

2 comments

0

This works! Thanks for the fix! What did I do wrong?

0

If finish is a part, it's Position, not position. I'm not really sure what the defined varibles are supposed to be.

This discussion is preserved as it was. New answers, comments, and votes are closed.