local sp = script.Parent
local RemoteEvent = game.ReplicatedStorage.MudarTime
local PrimeiraVez = true
local EscolhaTimesGUI = sp.EscolhaTimes
local EscolhaTimesFrame = sp.EscolhaTimes:WaitForChild("Frame")
local MudarDeTimeGUI = sp.MudarDeTimeGUI
local MORADOR = "White"
local POLICIA = "Dark blue"
local ROTA = "Black"
local CV = "Really red"
local PCC = "Crimson"
RemoteEvent:FireServer(BrickColor.new(MORADOR))
MudarDeTimeGUI.Enabled = false
EscolhaTimesFrame.BotaoPM.MouseButton1Click:connect(function()
if PrimeiraVez then
RemoteEvent:FireServer(BrickColor.new(POLICIA))
EscolhaTimesGUI.Enabled = false
MudarDeTimeGUI.Enabled = true
PrimeiraVez = false
end
end)
EscolhaTimesFrame.BotaoROTA.MouseButton1Click:connect(function()
if PrimeiraVez then
RemoteEvent:FireServer(BrickColor.new(ROTA))
EscolhaTimesGUI.Enabled = false
MudarDeTimeGUI.Enabled = true
PrimeiraVez = false
end
end)
EscolhaTimesFrame.BotaoCV.MouseButton1Click:connect(function()
if PrimeiraVez then
RemoteEvent:FireServer(BrickColor.new(CV))
EscolhaTimesGUI.Enabled = false
MudarDeTimeGUI.Enabled = true
PrimeiraVez = false
end
end)
EscolhaTimesFrame.BotaoPCC.MouseButton1Click:connect(function()
if PrimeiraVez then
RemoteEvent:FireServer(BrickColor.new(PCC))
EscolhaTimesGUI.Enabled = false
MudarDeTimeGUI.Enabled = true
PrimeiraVez = false
end
end)
sp.MudarDeTimeGUI.Frame.TextButton.MouseButton1Click:connect(function()
RemoteEvent:FireServer(BrickColor.new(MORADOR))
EscolhaTimesGUI.Enabled = true
MudarDeTimeGUI.Enabled = false
PrimeiraVez = true
end)
my script of the error, being that before it did not give.

2 comments
applause
@TTChaos is this wrong?