Only goes off once this whole script is under a while true do, everything else works… on every loop, except this one line, and it’s not throwing errors should I re write this to make it stop skipping or what should I do?
By this do you mean the game.ReplicatedStorage.Winner.Entity.Value is only set to true once? Or do you mean that the entire if statement that its in (if RT.Value == 0) only runs once.
For the first, did you make sure to set it back to false when resetting the loop? Because once you set it to true once, it will stay true unless you destroy & recreate it or set it back to false.
For the second, RT.Value would have to be set back to 0 somewhere else in the script.
So could you explain what exactly the issue here is then, is the entity win script not setting the value back to false? Is it not being set to true after the first loop that does so? Sorry for dragging this out so much, I’m just going off of the code snippet you sent.
So basically the whole loop plays once and fires the event once playing the entity win screen, then the loop plays again and when it plays again it skips the Entity win value and fires the “end” event but won’t play the entity win screen because the value isn’t changing.
I think I know the problem, your setting it back to false on the client side. Which wont replicate to the server (I’m assuming that the first picture you sent was of a ServerScript). Meaning that, to the original script, the value stayed true. But on the second (client) script you sent, it’s now false.
Assuming my guess is right, that would mean you’d need to move most of the ReplicatedStorage value changes to a separate ServerScript.
Sorry for the late response, I would keep it as a localscript, since it interacts heavily with the UI too.
all of the resetting code (the game.ReplicatedStorage.X.X.Value = thing) could be put into your original (serverside) script, and be delayed with a wait to run a bit after you fire the End RemoteEvent.
Also the StarterGui isn’t the actual Gui that’s on their screen, its just the template that roblox copies onto their screen when they load in. You’re probably looking for Player.PlayerGui.