So, i'm trying to make Joint:Ball script and so far i have joint script:
Script.parent = nil --entity
Script.child = nil --entity
Script.position = self.model:GetPosition --Vec3
function Script:Start()
App:Joint(self.position, self.child, self.parent)
end
And app function for creating joints:
function App:Joint(parent_position, child, parent)
joint = Joint:Ball(self.parent_position, self.child, self.parent)
end
All it does now - just crashes the game.
What i did wrong?