Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- local FunctionTable = {
- ["Pos"] = function(self)
- return self.transform:GetPosition()
- end,
- ["Localpos"] = function(self)
- return self.transform:GetLocalPosition()
- end,
- ["Scale"] = function(self)
- return self.transform:GetLocalScale()
- end,
- ["Orientation"] = function(self)
- return self.transform:GetOrientation()
- end,
- ["Localorientation"] = function(self)
- return self.transform:GetLocalOrientation()
- end,
- ["Angles"] = function(self)
- return self.transform:GetEulerAngles()
- end,
- ["Localangles"] = function(self)
- return self.transform:GetLocalEulerAngles()
- end,
- ["Parent"] = function(self)
- return self.GetParent()
- end,
- ["Name"] = function(self)
- return self:GetName()
- end,
- ["Children"] = function(self)
- return self:GetChildren()
- end
- }
- function GameObject.__index(self,key)
- return FunctionTable[key] and FunctionTable[key](self) or GameObject[key]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement