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

How do i make a build tool?

Asked by
funzrey 58
10 years ago

Yes, i'm trying to make a building game, it gives you 1 place, on a baseplate, BUT, i need help on how to stop players from greifing other plots AND making your own build tool that you can switch between Colors, and materials, and shapes, can you help?

i cant even figure out one thing of code, help please

1 answer

Log in to vote
0
Answered by 10 years ago

Here is a briefing. This might clear up some confusion and give you a place to start:

--[[

1)  Make the gui
2)  Connect buttons to functions
3)  Disconnect events when necessary
4)  When a build button is clicked, use game.InsertService:LoadAsset(########) to insert a model
5)  Connect mouse events
6)  Use :MoveTo() to move the model to the cursor position, not allowing it to move to areas outside the base
7)  Add a integer value called "OwnedBy" to the model, and set it to the userid
8)  Disconnect mouse events on click/exit
9)  Edit tools must make sure the OwnedBy value == the current user's id
10)  Clean up the code a bit for efficiency

]]
0
I cant understand what your talking about, can you give me more of a way how it would look please. Note:im a new scripter funzrey 58 — 10y
0
Even an advanced scripter could find this task overwhelming; build tools typically have between 1k and 5k lines. DiamondBladee 135 — 10y
0
Start simple OniiCh_n 410 — 10y
Ad

Answer this question