Hello! I am a beginner scripter so before you try to help me, please dont judge my learnings on Lua and others!
Hi! i was trying to make a script that will show a GUI enabled for 10 Seconds then close after 10 Seconds however there will be different GUIS per team so thats why im trying to do an If statement, the problem is that i had no errors and it didnt work either. INFO: C - ScreenGUI (Was enabled false at default) Cadets - Team
local StarterGUI = game.StarterGui
if game.Players.Parent.Teams.Cadets == true then -- If player is assigned on "Cadets" team
StarterGUI.C.Enabled = true
wait(10)
StarterGUI.C.Enabled = false
end
im not sure how to fix this code i wrote but i can sure use some help! Please reply asap if you know what i have to fix or do! Thanks!

5 comments
FYI; The statement i wrote next to the If statement was NOT part of the command, just some info.
Is this a localscript or a server sided script?
Is this a localscript or a server sided script?
Is this a localscript or a server sided script?
oh god the server broke lol so thats why thers so many comments