Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

There is a giant ten second pause for all clients and it freezes the server, what do I do?

Alright, I get a massive delay, exactly ten seconds before it actually plays. I have all images pre-loaded in the game but it still does this. I've tested it, its anyone in that server as well. I did not make this script so no I do not understand it. These are suppose to be moving images that project onto a brick.
This was origianlly a while true do script but due to how much lag it can cause, I asked for some help with this and well the delay started. What could I do to fix this? Here is what it should do. [While True Do]: https://youtu.be/F9FK_n4xfGg [The Script Below]: https://youtu.be/0dm3jTwLXv8 When the music isn't playing and i'm messing with the GUI, that's when the pause happens. All scripts are in a model thats inside a model. It goes like this... [Name of Model]>Intro & Main Models Main is where all of these are located. There are eight of these scripts in total.

Screen1 = game.Workspace.Screen1
--------------------------------------------------------------------
script.Parent.Power.Changed:Connect(function(NV)
    if NV then
        repeat
            Screen1.Decal.Texture = "http://www.roblox.com/asset/?id=0"
            wait(0.1)
            Screen1.Decal.Texture = "http://www.roblox.com/asset/?id=0"
            wait(0.1)
            Screen1.Decal.Texture = "http://www.roblox.com/asset/?id=0"
            wait(0.1) -- WaitTime, I'd recommend Changing this to like 10 seconds if it's not a moving tron.
        until not script.Parent.Power.Value
    end
end)

Attempting to not use While True Do

Thank you in advance for any comments or help given!

6 comments

0

Yes, eight different screens that have to change...

0

Offensive item: Using scripts for your game that aren't your scripts.

0

I know that, I hate it myself but if it helps... the person made it for me.

0

I was able to do it with the while true do script though, so wouldn't it technically be able to still do it without needing while true do?

0

I'd rather use while true do.

0

alright

1 answer

✓ Accepted answer

uhhh maybe the wait(0.1) also use 'while true do' instead of 'repeat' Sorry, i rushed this

3 comments

0

try removing the wait(0.1)

0

Is there a way to make it so I don't have to use while true do?

0

I dont think so

This discussion is preserved as it was. New answers, comments, and votes are closed.