So I have a Gui that when clicked it should only open for a team called Adult All the Main assets were put in different names, but what I'm saying is that there are 5 errors after each other and I have no idea of what to do or what went wrong nothing is said in the output, or the developer. So I'm really really confused about what went wrong.
---Script---
local frame = script.Parent.Parent.Frame2
local open = false
local others = Teams.Kid
local others = Teams.Teenager
local others = Teams.Pet
local Person = Playes.Player
local Main = Teams.Adult
script.Parent.MouseButton1Click:Connect(function()
if Person.Team == Main then
frame.Visible = true
elseif
Person.Player.Team == others then
frame.Visible = false
end
end)
---Errors---
local frame = script.Parent.Parent.Frame2
local open = false
local others = Teams.Kid ---Error
local others = Teams.Teenager ---Error
local others = Teams.Pet ---Error
local Person = Playes.Player ---Error
local Main = Teams.Adult ---Error
script.Parent.MouseButton1Click:Connect(function()
if Person.Team == Main then
frame.Visible = true
elseif
Person.Player.Team == others then
frame.Visible = false
end
end)
---Proof of Error--- https://gyazo.com/adea1a53ca8b6476826ec67b997fca6e

2 comments
It works, and I did some more reading last night.
glad to hear. the teams table isnt used in your code atm,but tables are REALLY useful