Chubs1995Join Date: 2007-09-02 Post Count: 339 |
Can someone please help me with making it so that only a certain amount of water bricks can be placed in a game? And if this number is exceeded, the existing water bricks will be removed.
PLEASE AND THANK YOU! |
|
Chubs1995Join Date: 2007-09-02 Post Count: 339 |
Bump |
|
trogyssyJoin Date: 2010-10-29 Post Count: 2322 |
|
|
Chubs1995Join Date: 2007-09-02 Post Count: 339 |
Bump |
|
GoldamassJoin Date: 2009-05-15 Post Count: 17450 |
are you like paying or what |
|
VurtaxJoin Date: 2011-12-24 Post Count: 1284 |
Easiest way is to make it when bricks spawn they are given a number and if lets say more than 350 water blocks in game (e.g. water brick 351 enters game) it deletes it |
|
Chubs1995Join Date: 2007-09-02 Post Count: 339 |
Okay, but how do I do that? xD |
|
noahJoin Date: 2006-09-11 Post Count: 18977 |
do u evn lua |
|
GoldamassJoin Date: 2009-05-15 Post Count: 17450 |
@noah
I don't see an event for TerrainAdded so how would you do it |
|
noahJoin Date: 2006-09-11 Post Count: 18977 |
use parts and nawt da terrain ok gg no re |
|
|
Something like..
.ChildRemoved function
Because when your placing terrain,it creates a semi transparent brick that IS in workspace
And then check if the things name is "Water" or whatever the brick would be called?
Then add 1 to a variable
How id do it anyways |
|
wubby301Join Date: 2010-05-15 Post Count: 1907 |
nu = 0
db = true
while true do
wait()
nu = 0
a = waters:GetChildren()
for i=1,#a do
if db == true then
nu = nu + 1
if nu >= 250 then
db = false
end
end
end
db = true
end |
|
noahJoin Date: 2006-09-11 Post Count: 18977 |
@island
it doesnt rlly do dat n yes i just chekd |
|
|
@noah
Yes it does......
Steps:
1.open up roblox studio
2.create new place/open existing
3.in the plugins,click the stampertool
4.click any terrain block
5.look at explorer,there will be a block there..
6.if that's not right,then ill..EAT A PIZZA |
|
noahJoin Date: 2006-09-11 Post Count: 18977 |
no cuz i placed liek 50x50 water blocks and nothing showed up
workspace
-terrain
-baseplate
-camera
dats it |
|
|
No offence,but wow your dumb...
When u select the terrain,BEFORE U CLICK TO PLACE IT
Its semi transparent,notice that?that's CUZ ITS A PART
CHECK EXPLORER WITH STAMPER OUT AND TERRAIN SELECTED,NOT ALREADY DOWN
Take out the stamper
Click on whatever terrain block
DO NOT PLACE YET,IT'LL BE TRANSPARENT
Check explorer
Blamo |
|
noahJoin Date: 2006-09-11 Post Count: 18977 |
wow n0 need 2 hate, im only 9 |
|
|
9?
...
And your at the scripting helpers forum because..? |
|
noahJoin Date: 2006-09-11 Post Count: 18977 |
lok i cn skript
if {2+2==4}}) then END END or print{'TRUE"())}
ur just jealous u n0b |
|
|
Er..either your a troll,or you have no idea how scripting works.....
if 2+2 == 4 then
print "true"
else
print "false
end
Or:
print (2+2==4 and "true" or "false") |
|
noahJoin Date: 2006-09-11 Post Count: 18977 |
noooo u ronggggggg cuz ends r suposd 2 b END END ha uuuuuuuuUUUUUu
ok i go nite nite by |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
noah is trolling idiot |
|
goomba83Join Date: 2013-12-06 Post Count: 177 |
@island
the 'and "true" or "false"' isn't even needed |
|
trogyssyJoin Date: 2010-10-29 Post Count: 2322 |
he's not nine. No nine-year-old has a sparkle time fedora.
~~trogyssy, Scripting Helper and S&I Activist~~ |
|
|