|
| 14 Jul 2012 12:20 PM |
i made a build place with 9 mini baseplates, but everyone can build on all plates and i wanted that every person has 1 baseplate
how can i make that ? |
|
|
| Report Abuse |
|
|
NB3
|
  |
| Joined: 27 Dec 2009 |
| Total Posts: 537 |
|
|
| 14 Jul 2012 12:48 PM |
I don't understand what your trying to tell me.
- Two letters, one number. Yus, i'm in Roblox Archiects and Legendary Archiects of Robloxia |
|
|
| Report Abuse |
|
|
IWin2
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 79 |
|
|
| 14 Jul 2012 12:50 PM |
| I believe he wants it so that when a player join's they are assigned to a baseplate, and cannot build on any baseplate except their own. |
|
|
| Report Abuse |
|
|
NB3
|
  |
| Joined: 27 Dec 2009 |
| Total Posts: 537 |
|
|
| 14 Jul 2012 12:55 PM |
Oh, that's simple.
You just need to make sure if the player enters the game, it connects to a random open location of a baseplate, then tell if the player builds on other baseplate, it removes the part instantly. ------------------------------------ p = script.Parent
game.Players:GetChild(game.Workspace) if p true then print("Works?!?!?!") else print("Nah, just joking.")
------------------------------------ I'm not a advance programmer, but it goes something like that.
- Two letters, one number. Yus, i'm in Roblox Archiects and Legendary Archiects of Robloxia |
|
|
| Report Abuse |
|
|
aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 14 Jul 2012 01:02 PM |
| I think the best way to do this, is making a wall between each baseplate. When they walk through the wall, they lose their building tools. When they come back, they get their building tools. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 01:05 PM |
*Sigh*
Your trying to do what ROBLOX did in ROBLOX Building, correct? Well, use Region3. Why Region3? Well, what we can do, is inside the tool, we can look to see if our player is inside a certain region, and if he is, then he can place blocks, by using a BoolValue to set the true/false. Then, if our Player is not, within a certain area, we can just go ahead, and set the BoolValue to false, that way the player cannot place blocks. ROBLOX uses, a different technique, but this works too.
--TehChikenHater ლ(ಠ_ಠლ) |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 01:08 PM |
You need to check if the part is being positioned on the assigned baseplate. That's a bit complicated because you will need a range of coordinates instead of only the position.
So, take this fake baseplate for example:
---------------- | | | | | | | | | | ----------------
You will need the farthest X coordinate:
---------------- | | | | | | <-- This | | | | ----------------
And the least X coordinate:
---------------- | | | | X-------------- --> This | | | | ----------------
As with that you'll also need the least and most Z coordinates:
-------X------- --> Least | | | | | | | | | | ----------------
---------------- | | | | | | | | | | -------X-------- --> Most
Say the X coordinates were (15, 21) and the Z coordinates were (30,36) You would make this kind of script:
function PlaceBlockFunction(block,position):
If (position.X > 15 and position.X 21) and (position.Z > 30 and position.Z < 36) then print("Place block") else print("Not in baseplate location") end
Something like that. |
|
|
| Report Abuse |
|
|
IWin2
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 79 |
|
|
| 14 Jul 2012 01:09 PM |
| If you used this method.. couldn't you stand on your own baseplate then build from far away on others baseplates? |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 01:10 PM |
Argh, my drawings got messed up. But you get the point.
Also, did I just reimplement Region3? :o |
|
|
| Report Abuse |
|
|
aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 14 Jul 2012 01:10 PM |
| Region3 must be new. I haven't played Roblox in many months <.< |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 01:10 PM |
@IWin
I'm assuming position will be where the player wants the block to be placed and not the player's position. |
|
|
| Report Abuse |
|
|
aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 14 Jul 2012 01:11 PM |
http://wiki.roblox.com/index.php/Region3 Read this. PERFECT <3 |
|
|
| Report Abuse |
|
|
IWin2
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 79 |
|
|
| 14 Jul 2012 01:48 PM |
| Ah okay, I just skimmed over the script, didn't pay much attention to the details of it.. (Bad habit.. I know.) |
|
|
| Report Abuse |
|
|
| |
|