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

[SOLVED] Why is my GUI glitching when I reset my character?

Asked by 6 years ago
Edited 6 years ago

The textlabel keeps glitching. I unchecked the ResetOnSpawn and ResetPlayerGuiOnSpawn. It's not working! D;

Read this below if you want.

script.Parent.Text = game.Workspace:WaitForChild("Annoucement").Value

game.Workspace.Annoucement.Changed:connect(function()
    script.Parent.Text = game.Workspace:WaitForChild("Annoucement").Value
end)

Read this below if you want.

local playersNeeded = 1

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
    game.Workspace.CurrentPlrs.Value = game.Workspace.CurrentPlrs.Value + 1
    while true do
    if game.Workspace.CurrentPlrs.Value >= playersNeeded then

        plr.IsStanding.Value = false

        local starterGear = plr:WaitForChild("StarterGear")
        local starterGear_GetTools = plr.StarterGear:GetChildren()
        local backpack_GetTools = plr.Backpack:GetChildren()
        local backpack = plr:WaitForChild("Backpack")

        for i,v in pairs(backpack_GetTools) do
            if v:IsA("Tool") then
                v:Clone().Parent = starterGear
                v:Destroy() 
            end
        end



        for i,v in pairs(plr:GetChildren()) do


           for m = 10,0,-1 do
              wait(1)
              game.Workspace.Annoucement.Value = "INTERMISSION: " ..m
           end


           if game.Workspace.Annoucement.Value == "INTERMISSION: 0" then

              wait(1)


              for m = 3,0,-1 do
                 wait(1)
                 game.Workspace.Annoucement.Value = "Starting the round in... " ..m
              end
           end


           if game.Workspace.Annoucement.Value == "Starting the round in... 0" then


                for i,v in pairs(starterGear_GetTools) do
                   if v:IsA("Tool") then
                    v:Clone().Parent = backpack
                    v:Destroy() 
                 end
               end





              local spawns = Vector3.new(game.Workspace.Spawns:GetChildren().Position) 

              for _,v in pairs(game.Players:GetPlayers()) do
                 if v.Character ~= nil then
                    v.Character.HumanoidRootPart.CFrame = CFrame.new(120.635, 19.19, 220.445)
                    v.Character.Humanoid.WalkSpeed = 29
                    v.IsStanding.Value = true
                 end
              end

              game.Workspace.Annoucement.Value = "SHOOT!"
              plr.PlayerGui:WaitForChild("RoundGUI").TextLabel.TextColor3 = Color3.fromRGB(0,155,0)
              wait(1)


              for m = 15,0,-1 do
                wait(1)
                game.Workspace.Annoucement.Value = m
                plr.Character.Died.Disabled = false
                plr.PlayerGui:WaitForChild("RoundGUI").TextLabel.TextColor3 = Color3.fromRGB(255,255,255)
              end
           end

           if game.Workspace.Annoucement.Value == "0" then
             local winners = {}

             for _,v in pairs(game.Players:GetPlayers()) do
                 if v.Character ~= nil then
                    v.Character.HumanoidRootPart.CFrame = CFrame.new(game.Workspace.TPBack.Position)
                    v.Character.Humanoid.WalkSpeed = 16
                 end
              end

            if plr.IsStanding == true then
               for i,v in pairs(game.Players:GetPlayers()) do
                   table.insert(winners, v.Name)
               end
            end

             if #winners > 0 then
               for i,v in pairs(winners) do
                  if v ~= nil then
                       game.Workspace.Annoucement.Value = "The winners are, " ..v
                  end
               end
              elseif #winners == 0 then
                   game.Workspace.Annoucement.Value = "No one survived!"     
             end



           wait(1)
        end
        end
    end
end
  end)
end)

What should I do?

0
in the first script you said .Changed and when the character died something happened :O, try turning off the reset Gui On death setting greatneil80 2647 — 6y
0
What death setting? KetchupRBLX 0 — 6y
0
Can you explain more on how the textlabel glitches? It'd be helpful to know. User#20279 0 — 6y
0
When I reset my character, It keeps switching text's like this "Intermission: 5", "Starting the round in... 3" it keeps doing it over and over again! KetchupRBLX 0 — 6y
0
Never mind I fixed it KetchupRBLX 0 — 6y

Answer this question