The script is supposed to clone a specific GUI based on the character's team. It is a local script, and located in Replicated First. (ServerStorage is a Folder in Replicated Storage incase anyone was wondering).
local player = game.Players.LocalPlayer
player.CharacterAdded:connect(function(character)
local scripts = character:WaitForChild("Scripts")
for i, localscript in pairs(scripts:GetChildren()) do
if localscript:IsA("LocalScript") then
if not localscript.Disabled then
localscript.Disabled = true
localscript.Disabled = false
end
end
end
for i, gui in pairs(game.ReplicatedStorage.ServerStorage:GetChildren()) do
if player.TeamColor == game.Teams["Axis Forces"].TeamColor then --[[ This is more reliable, change the 'Bright red Team' to your team's name. ]]
if player.PlayerGui then
gui:Clone().Parent = player.PlayerGui
end
end
Output reads: ReplicatedFirst.LocalScript:25: 'end' expected (to close 'for' at line 17) near ''

3 comments
you're missing an end. This one is easy dude.
Just to add '' means end of line
Is he missing two ends? I think so. You need on regular end and another after the first like this end) both at the end of the script.