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

loading gui is replaying on death, any way to fix?

Asked by 7 years ago
Load = 0

while wait() do
    Load = Load + 0.5
    script.Parent.Size = UDim2.new(Load/100, 0, 0.1, 0)
    script.Parent.Parent.LoadingLabel.Text = ("Loading...   " ..math.floor(Load*2).. "%")
    if Load == 50 then  
        script.Parent.Parent:remove()
    end
end

i thought if i removed it that it wouldnt replay if theres another way to get around this then please tell me

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

GUIs that are inside StarterGui always "replay". Try placing the GUI inside player's PlayerGui

To do this you would need PlayerAdded event. Then clone the GUI and place it inside player's PlayerGui :)

Ad

Answer this question