generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: i need good scripters... :(

Previous Thread :: Next Thread 
jeroentje153 is not online. jeroentje153
Joined: 05 Sep 2008
Total Posts: 3203
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
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 is not online. 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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
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 is not online. 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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
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 is not online. 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 is not online. 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
jeroentje153 is not online. jeroentje153
Joined: 05 Sep 2008
Total Posts: 3203
15 Jul 2012 12:00 AM
k ty all
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image