Im doing a game of wizards ,i was following a tutorial when 2 errors showed up but it doesnt show the line of the error instead it says source not avaliable
here is the main script:
local RemoteEvent = game.ReplicatedStorage.RemoteMudarTeam local MenuButton = local Frame = script.Parent:WaitForChild("Background")
local FireCollor = "Really red" local WaterCollor = "Really Blue" local AirCollor = "Light blue" local EarthCollor = "CGA brown" local NatureCollor = "Forest green" local IceCollor = "Teal" local ThunderCollor = "New Yeller"
Frame.Fogo.MouseButton1Click:Connect(function() RemoteEvent:FireServer(BrickColor.new(FireCollor)) end)
Frame.Agua.MouseButton1Click:Connect(function() RemoteEvent:FireServer(BrickColor.new(WaterCollor)) end)
Frame.Terra.MouseButton1Click:Connect(function() RemoteEvent:FireServer(BrickColor.new(EarthCollor)) end)
Frame.Ar.MouseButton1Click:Connect(function() RemoteEvent:FireServer(BrickColor.new(AirCollor)) end)
Frame.Natureza.MouseButton1Click:Connect(function() RemoteEvent:FireServer(BrickColor.new(NatureCollor)) end)
Frame.Raio.MouseButton1Click:Connect(function() RemoteEvent:FireServer(BrickColor.new(ThunderCollor)) end)
Frame.Gelo.MouseButton1Click:Connect(function() RemoteEvent:FireServer(BrickColor.new(IceCollor)) end)
and here is the script to handle the remote event:
game.ReplicatedStorage.RemoteMudarTeam.OnServerEvent:Connect(function(player,teamCollor) player.TeamCollor = teamCollor player:LoadCharacter() end)
btw im working on teams so some names are in Portuguese because of my friends
Ended Up Fixing It turns out it was because i did not complete writing the variable for the menu button