Help need(im not good at scripting)

so what I’m doing is trying to make a lag test game for me and my friends, and i don’t know how to make the leaderstats go up by one each time a block is created.

image

robloxapp-20220628-2216344.wmv (1.0 MB)

i also dont know how to make videos play automatically in dev forum:/

add

blocks.Value += 1

after the

blocksdropped.Size = Vector3.new(2,2,2)
1 Like

thanks i will see if the script works

It’s a simple increment, but I notice that the way you set this up is probably not the best way because the amount of blocks that are dropped will get faster the more players there are because each player that joins will make another while loop.

If there’s a max of 1 player per server, then no changes are needed, but if the max is higher, it might be best to change up how you do this code. Because it may be a bad idea to jsut have them join in when a lot of blocks have spawned, you can have something make the blocks spawn for the client only (So they get falling blocks but others don’t unless they trigger the blocks as well)

Also @yareyareuryu, Bloxy did += not =, theirs does incrementation

well thats what the game is about because i was thinking of naming it Lag test but the more players that join = more blocks. Also if i wanted to stop more blocks from spawning when a player joins what do i do?

make it a local script in starter player scripts or make the loop after the Player.Added function

alright thanks for the help bro