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

Is this a function?

Asked by 8 years ago

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

1 answer

Log in to vote
1
Answered by
drahsid5 250 Moderation Voter
8 years ago

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)
0
THANKS!!! pizzasmike1234 0 — 8y
0
Since it helped you, I would love it if you accepted my question as the answer. drahsid5 250 — 8y
Ad

Answer this question