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

Placement System Improvement or Reconstruction?

Asked by 5 years ago
Edited 5 years ago

I have a script, that I would not recommend looking at. (it is a large jumble of crap that barely works)

My question is, how can I improve this placement system/do you have one that works well.

The goal: to make a placement system not based on a grid with no height limitation (ideal for terrain maps) that moves the item effectively.

Thanks for any and all help!

LocalScript: https://pastebin.com/EemmvaWZ

I also have a server script that listens for a remote, and when fired, takes a position and name value, it does an inventory check, then it places. I will not need help with this part

0
Showing the script wpuld help me than i could help you xb8y -11 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

You could consider this wonderful placement module that briefs you through inside the script, made by the one and only Tunicus:

Placement Handler (V2)

0
Only works with a plot , based on a grid, and doesn’t have height, thanks though KamikazeJAM108867 38 — 5y
0
oh right my bad UnRandomizing 22 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

•You used mouse.KeyDown in multiple places, KeyDown is deprecated, use UserInputService/ContextActionService.

•In addition, in my personal opinion, if you are just trying to make a function trigger when someone clicks use MouseButton1Click instead of MouseButton1Down.

•Aswell as some of the :connect 's used in the functions should be :Connect as :connect is deprecated as well.

•Use HumanoidRootPart instead of Torso unless you specifically are targeting it.

0
Torso should only be useful in R6. R15 and R30(R-Thro) both use the HumanoidRootPart. DeceptiveCaster 3761 — 5y
0
Thanks for the advice but I still have no idea how to improve the actually placement... KamikazeJAM108867 38 — 5y

Answer this question