Help with Loops(?)

You forget only to see the part name (platform)
because this works for all parts in workspace

i dont recommend putting scripts in every single one of the parts or else if you need to change something you would need to change in other scripts as well which would be ridiculous

1 Like

And how the loop knows what the part if all the part has the same name?

Just because they have the same name, doesn’t mean they are the same. They have a unique identifier. Think of it like their names are display names, but their real identifier isn’t hidden.

No offense but I know more scripting than you.

1 Like

But what I’m saying is that very scripts of that kind don’t make the things more unoptimized, because they not a loop, this scripts is like a script waiting a remote event, only work if the event is fired, so will not unoptimized the game, because they only work when fired.

I’d love to try and clear this up, but I honestly am not sure what you guys are talking about.

1 Like

You’re talking nonsense, no offence. All your points are invalid. That’s all I can say.

Basically, do you understand what are loops in scripting?

Can you tell is the platform a model or a part?

So, how works the remote events? It’s the same than this

This is a function wait the event be fired (touch event)

I’m just going to ignore you since whatever I said wouldn’t convince you. You’ll understand better when you learn more scripting.

lol don’t mind how unorganized it is for now, but this is what it looks like

Sorry, but this is only a function, a function only works when activated

It’s saying here: Functions (roblox.com)

I see, thanks, can I know if you know what loops are in scripting? I can teach you.

Sorry that’s what I was having trouble with. Someone suggested I try using loops and I can’t seem to understand it on my own

Think loops as like refilling water. When you drank finished. You’ll refill again, and again, again. That’s how loops work. Do you understand? If not I can go deeper.

I understand the basic concept of loops, but I don’t understand how it would help me fix my problem in this scenario

So basically, you’re naming all parts the same name and would expect they would work right? No, it wouldn’t work.

Is it not possible to get what I want unless if I change each of the names? It’s not that I’m too lazy to change the names or anything. I just want to learn as much as I can lol :slight_smile: