The script is supposed to detect items in Workspace and change accordingly to them. However, the script does not work at all, and I have no idea why, as output didn't give me anything.
Can someone please help me? Here's the script:
local GameOn = game.ServerScriptService.MainGame:WaitForChild("Playing")
while wait(0.1) do
if GameOn.Value == true then
if game.Workspace:WaitForChild("Bomb") then
if game.Workspace.Bomb:WaitForChild("Armed Bomb") then
if game.Workspace.Bomb["Armed Bomb"].Armed.Value == true then
script.Parent.Visible = true
script.Parent.Start.Value = true
script.Parent.Timer.Value = 60
end
elseif game.Workspace.Bomb:WaitForChild("Defused Bomb") then
script.Parent.Visible = false
script.Parent.Start.Value = false
script.Parent.Timer.Value = 0
end
end
end
end

2 comments
Inside the while loop, use FindFirstChild instead of WaitForChild
Thanks! That fixed it!