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

Is this a function?

Is there a function that can get the position of a part?

1 answer

✓ Accepted answer

There is not a function to get the list of a part but you can write on like :

Part = {}

--new scope
do
 function Part:GetPosition(p) --New method
  return p.CFrame --Return the CFrame
 end
end

print(Part:GetPosition(game.Workspace.Part)) --test it

But if you don't want to do that:

print(game.Workspace.Part.Position)

2 comments

0

THANKS!!!

0

Since it helped you, I would love it if you accepted my question as the answer.

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