Roblox Forum banner
1 - 3 of 3 Posts

·
Registered
Joined
·
7 Posts
Discussion Starter · #1 ·
Screenshot Font Software Electronic device Multimedia
Azure Rectangle Font Material property Electric blue
hi everyone, I'm trying to run a script but I'm not sure how to,
so basically this script is meant to see that the amount of parts name (something) and determining if the amount parts there are a script can run, if that doesn't make sense, I'm basically saying that I want to know how to make a part spawn depended on the amount of the same part there is.
It's like a block collecting game and the blocks respawn once there are below the amount of 3 of the same block. I hope you can help me out cause I'm really struggling here and cant find much on the internet
 

·
If you won't let yourself fail, you won't improve
Joined
·
7,405 Posts
Well I at least know the problem, you have the script within the part so it only will detect the one part it's inside. So instead you gonna wanna call all of them like local gainPunch = game.Workspace.GainPunch and that should call all the parts named 'GainPunch'.

I also advise you use the code inserted to make it easier for a person to copy and paste the script whenever they get a chance. ;)
Font Technology Circle Office equipment Symbol
 

·
Registered
Joined
·
7 Posts
Discussion Starter · #3 ·
Well I at least know the problem, you have the script within the part so it only will detect the one part it's inside. So instead you gonna wanna call all of them like local gainPunch = game.Workspace.GainPunch and that should call all the parts named 'GainPunch'.

I also advise you use the code inserted to make it easier for a person to copy and paste the script whenever they get a chance. ;)
View attachment 39533
thank you for your help
 
1 - 3 of 3 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top