title says it all, this is a local script in workspace
local guardtext = "B"
local theiftext = "A"
local Infogui = game.StarterGui.InfoGui.Info
local localplayer = game.Players.LocalPlayer
local alreadydisplayed = true
while task.wait(0.1) do
print("Debug Loop")
if alreadydisplayed == true and localplayer.Team == game.Teams.Spectator then
alreadydisplayed = false
end
if alreadydisplayed == false then --Display Team Info
alreadydisplayed = true
if localplayer.Team == game.Teams.Theif then
Infogui.Visible = true
Infogui.Text = theiftext
task.delay(7, function()
Infogui.Visible = false
end)
elseif game.Players.LocalPlayer.Team == game.Teams.Guards then
Infogui.Visible = true
script.Parent.Text = guardtext
task.delay(7, function()
Infogui.Visible = false
end)
end
end
end
i dont think its a code issue, because i put a breakpoint before the main loop and it didnt get triggered
the script is enabled, and its not a location issue