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

Why is this not setting bool value to true, VERY SIMPLE QUESTION!?

Asked by 9 years ago
function player_addition(Plyr)
coroutine.wrap(function()
Plyr.PlayerGui.L_Data:WaitForChild("Loading_01")
Plyr.PlayerGui.L_Data.Loading_01.Value = true 
print("Booly")
Plyr.CharacterAdded:connect(function(Character)
Plyr:WaitForChild("PlayerGui")
Plyr.PlayerGui:WaitForChild("Menu")
repeat wait() until Plyr.Character
if Plyr.PlayerGui.L_Data.Loading_01.Value == true then
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
else
wait(.1)
end
if Plyr.PlayerGui.Loading_Gui then
print("Found Loading_Gui.")
elseif Plyr.PlayerGui.L_Data.Loading_01.Value == true and Plyr.PlayerGui.Loading_Gui == nil then
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
end
Character.Humanoid.Died:connect(function()
print("I have performed this check")
if Plyr.PlayerGui.L_Data.Loading_01.Value == false then
wait(1)
elseif Plyr.PlayerGui.L_Data.Loading_01.Value == true then
repeat wait() until Plyr.Character and Plyr.Character.Humanoid.Health >= 5
Plyr:WaitForChild("PlayerGui")
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
end
print("I have performed this check")
if Plyr.PlayerGui.Loading_Gui and Plyr.PlayerGui.L_Data.Loading_01.Value == false then
print("I have found Loading_Gui.")
elseif Plyr.PlayerGui.Loading_Gui and Plyr.PlayerGui.L_Data.Loading_01.Value == true then
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
end
end)
end)
end)()
end

game.Players.PlayerAdded:connect(player_addition)

There is no ERROR on the script, NOTHING. But it does not set the Bool Value to be true, why is that? Hm?

0
Is it printing anything? Do you know how to indent properly? GoldenPhysics 474 — 9y
0
It is not printing anything. I do know how to indent, but it does not make a difference in the script at all! Overpride 0 — 9y

Answer this question