Getting values from tables?

I have a mesh in the game, and i want to get it’s orientation. However, CFrame method didn’t work. It says CFrame is not a valid member of MeshPart so i tried to get the orientation of the mesh by this script

local tool = script.Parent`
local Guard = tool.Guard
local Or = Vector3(Guard.Orientation.Z, Guard.Orientation.Y, Guard.Orientation.X) 

But it says “Workspace.other.KatanaBackup.Script:3: attempt to call a table value”
also tried
local tool = script.Parent
local Guard = tool.Guard
local Or = Vector3(Guard.Orientation)

and same message occured
please help me because i want to know how can i get the orientation of a mesh.

Vector3(...) isn’t a constructor, you need to use Vector3.new(...)

1 Like

Use Vector3.new() as said in the above post, your code should look like this: local tool = script.Parent local Guard = tool.Guard local Or = Vector3.new(Guard.Orientation.Z, Guard.Orientation.Y, Guard.Orientation.X)

tried that and the message is still there

nevermind it worked, some stupid mistakes were made, thanks