Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Error While Working Whith The Teams Service "Source Not Avaliable"?

Asked by 3 years ago
Edited 3 years ago

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

0
Source not available is because Studio cannot detect where the error came from, but can you send the line of error pls Xapelize 2658 — 3y
0
11:19:07.522 initiateshop is not a valid member of ScreenGui "Players.Megabomba_2019.PlayerGui.Shop" - Client - LocalScript:43   11:19:07.524 Players.Megabomba_2019.PlayerGui.EscolherTribo.MudarTeam:5: Expected identifier when parsing expression, got 'local' Megabomba_2019 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Ended Up Fixing It turns out it was because i did not complete writing the variable for the menu button

Ad

Answer this question