so what i'm trying to do is when the admin uses "cmds" or "Cmds" or "commands" or "Commands" but when they use it, and they close out the commands, then they can't use it again, if they try to, nothing happens.
if cmd == "Test" then
print("Test successful")
else if cmd == "cmds" then
plr:WaitForChild("PlayerGui"):WaitForChild("CmdsGui").Enabled = true
else if cmd == "Cmds" then
plr:WaitForChild("PlayerGui"):WaitForChild("CmdsGui").Enabled = true
else if cmd == "Commands" then
plr:WaitForChild("PlayerGui"):WaitForChild("CmdsGui").Enabled = true
else if cmd == "commands" then
plr:WaitForChild("PlayerGui"):WaitForChild("CmdsGui").Enabled = true
end
end
end
end
end
end --I used a remote function for this

1 comment
Can you shot the full code as there is no problem in your code above. Also you can merge those 4 elseif(s) into 1 by doing elseif cmd:lower() == "cmds" or "commands" then