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

How can I improve my placement system?

Asked by 5 years ago
Edited 5 years ago

Essentially I am trying to create a free-range placement system for my game. Players should be able to place things wherever they want, at whatever height.

I created this script that functions but also is quite flawed. While placing it does not account for orientation and the object rolls and tumbles around as you try to place it. Also, I have to use moveto() with a height of 11 because if I don't the object just climbed closer and closer to the player, not staying on the ground.

Note: If I were you I would not spend too long trying to decipher the script and instead help me to create a new one...

The Script (client side):

Warning its quite long:

pastebin.com/UgC0gJzm

Any help either fixing this script or starting me on track to create a new script is appreciated.

Answer this question