Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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. 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!

0
Yes, eight different screens that have to change... Just2Terrify 566 — 4y
0
Offensive item: Using scripts for your game that aren't your scripts. DeceptiveCaster 3761 — 4y
0
I know that, I hate it myself but if it helps... the person made it for me. Just2Terrify 566 — 4y
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? Just2Terrify 566 — 4y
View all comments (2 more)
0
I'd rather use while true do. DeceptiveCaster 3761 — 4y
0
alright Just2Terrify 566 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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

0
try removing the wait(0.1) RobloxGameingStudios 145 — 4y
0
Is there a way to make it so I don't have to use while true do? Just2Terrify 566 — 4y
0
I dont think so RobloxGameingStudios 145 — 4y
Ad

Answer this question