So I was trying to code an intermission script, where if if it says Intermission: in the TextLabel, then it would clear all tanks. But for some reason, the script doesn't do as I thought. Any help Appreciated. Thanks!
while true do
local Text = game.StarterGui.ScreenGui.TextLabel.Text
if Text:find("Intermission:") then
local table = game.Workspace:GetChildren()
for i,v in pairs (table) do
if v.Name == "tank" then
v:Destroy()
end
end
end
end

3 comments
i thought you knew what i meant. what i wanted to do is delete the tanks when the people are in intermission, but in your script it doens't show that if it is intermission, then it happens
??
now im a bit confused lol