|
| 26 Mar 2014 03:13 PM |
I make the best title names ever... not :(
Well okay I'm trying to make a place blocks script (Only one time of block needed to be placed for now and I already have that block), I need to make it so people can't place this block more than 3 blocks away(Do I use magnitude for this?) and I don't want people to be able to move,or resize this block once it's been placed I just want people to be able to place blocks, oh and because this is kind of a sandbox and my dimensions are 4,3,4 starting from 0, 0 , 0 I was wondering if it's possible to make it so the blocks are in line with the other blocks. You are all probably looking at me right now saying "What is this guy going on about?" haha, I mean like you know "Minecraft" where they have it so you place a block and it's on top of the other block and not outside with the other blocks? well, like that :)
Okay well. Along with the building, I need to make a shovel (I'll make one tomorrow) that breaks blocks (takes 1.3 seconds to break a block and you have to be holding the mouse down, you can't just click it and it vanishes in 1.3 seconds :P)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 27 Mar 2014 02:20 AM |
Well, It's more of a request and help from it. I just need help making it work, I'm not that very good of a scripter but yes, I will still try to learn it. After I've made the shovel and the placing blocks model (Done the block model) then I need to do this and I kind of need help from it since you can't just learn how to script within 1-2 days it takes months. Well at least it took me around 3-4 months to learn this other programming language ;/
If I can't make a request could I send scripts here and you help me configure it right then? |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2014 02:22 AM |
Is it possible to make it so you can only place blocks where you click and you have to be within 3 blocks away from it (around 12, 9, 12 is 3 blocks) and there's a delay of about 0.3 seconds so people don't spam it? I'm just wondering because I've only seen "move" tools on other games |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2014 02:18 PM |
| Okay, I have done almost all of it but how do I make the blocks like how you clone them, they go on top of the block. |
|
|
| Report Abuse |
|
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 28 Mar 2014 02:21 PM |
| clonedBlock.Position = originalBlock.Position |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2014 06:27 AM |
Here's what I have so far
http://pastebin.com/0yLbSyPD
It has a selection to where you want to place your block but it doesn't have range because I'm not quite sure how you do that, I'm pretty sure you use magnitude to get how far away something is right?
But with that people can place the block anywhere which I don't like I need it to be like cloned.
Edit: Didn't see the reply! clonedBlock.Position = originalBlock.Position Where would I put that in the code? shall I remove most of the code because selection would be pointless to have in there? |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2014 06:43 AM |
| I mean, that's a variable so I'll put it at the top with the rest of the variables but where shall I put the originalBlock.Position |
|
|
| Report Abuse |
|
|
| |
|