this keeps happening its so absolutely annoying man
local Container = script.Parent.Parent
local MainSettings = Container.Main.Main.Main.Placeholder
local Module = require(script.Parent.Parent.Parent.Parent:WaitForChild("TeamsModule"))
local Selection = Container.Selection.Dropdown
local Service = game:GetService("TweenService")
local Info = TweenInfo.new(0.3, Enum.EasingStyle.Quint)
local servername = game:GetService("ReplicatedStorage"):WaitForChild("ModifiedEuropeanFootball"):WaitForChild("ServerName")
local function clickedPage(button, frame)
game.Players.LocalPlayer.PlayerGui.Sounds.Enter:Play()
for _,v in pairs(MainSettings:GetDescendants()) do
if v:IsA("ScrollingFrame") then
if v.Name ~= "PinHolder" then
v.Visible = false
end
end
end
for _,v in pairs(Selection:GetChildren()) do
if v:IsA("TextButton") then
for i,e in pairs(Module) do
v.BackgroundColor3 = Color3.fromRGB(39, 39, 39)
v.TextColor3 = Color3.fromRGB(255,255,255)
if servername.Value == e.longname or servername.Value == e.shortname then
v.BackgroundColor3 = e.color
v.TextColor3 = e.text
end
end
end
end
frame.Visible = true
end
Module
local Teams = {
{longname = "liverpool", shortname = "lfc", color = Color3.fromRGB(255, 70, 73), imageid = "13177895312", league = "PL", text = Color3.fromRGB(255,255,255), invertbar = false},
{longname = "bayern", shortname = "bay", color = Color3.fromRGB(255, 70, 73), imageid = "15284254641", league = "BL", text = Color3.fromRGB(255,255,255), invertbar = false},
{longname = "manchester united", shortname = "mun", color = Color3.fromRGB(255, 70, 73), imageid = "14540294821", league = "PL", text = Color3.fromRGB(255,255,255), invertbar = false},
{longname = "barcelona", shortname = "fcb", color = Color3.fromRGB(1, 103, 255), imageid = "12303925910", league = "LL", text = Color3.fromRGB(255,255,255)},
}
function Teams.getImg(imgid)
return "rbxthumb://type=Asset&id="..imgid.."&w=420&h=420"
end
return Teams