Here is the part of the script, that checks for the values, I will make a video soon.
for i, teamsholds in pairs(game:GetService("Teams"):GetTeams()) do
local TheTeamFrame = TeamList.HolderList.TeamHolder:Clone()
TheTeamFrame.Visible = true
TheTeamFrame.Parent = TeamList
TheTeamFrame.Name = teamsholds.Name
TheTeamFrame.textly.Text = teamsholds.Name
TheTeamFrame.TeamObject.Value = teamsholds
TheTeamFrame.UIGradient.Color = teamsholds:GetAttribute("Color")
TheTeamFrame.MouseButton1Click:Connect(function()
SecondaryInterface.Logo.Image = "http://www.roblox.com/asset/?id=6893644029"
if teamsholds:GetAttribute("GroupID") == 0 then
game.ReplicatedStorage.MenuRemotes.TeamRemote:FireServer(teamsholds)
delay(2,function()
game.ReplicatedStorage.MenuRemotes.DeployPosition:FireServer(workspace["Spawn Locations"].DEFAULT.Spawns.Selectings.Selecting)
end)
TeamList:TweenPosition(UDim2.new(-1, 0,0, 330), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, .75, true)
wait(.75)
TeamButton.Visible = true
DeployButton.Visible = true
SpawnLocationButton.Visible = true
elseif Plr:GetRankInGroup(teamsholds:GetAttribute("GroupID")) >= teamsholds:GetAttribute("MinID") then
game.ReplicatedStorage.MenuRemotes.TeamRemote:FireServer(teamsholds)
delay(2,function()
game.ReplicatedStorage.MenuRemotes.DeployPosition:FireServer(workspace["Spawn Locations"].DEFAULT.Spawns.Selectings.Selecting)
end)
TeamList:TweenPosition(UDim2.new(-1, 0,0, 330), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, .75, true)
wait(.75)
TeamButton.Visible = true
DeployButton.Visible = true
SpawnLocationButton.Visible = true
end
end)
TheTeamFrame.MouseEnter:Connect(function()
local Textly = TheTeamFrame:FindFirstChildWhichIsA("TextLabel")
if Textly then
game:GetService("TweenService"):Create(Textly, TweenInfo.new(.07, Enum.EasingStyle.Quad), {TextColor3 = Color3.fromRGB(255, 214, 110)}):Play()
end
end)
TheTeamFrame.MouseLeave:Connect(function()
local Textly = TheTeamFrame:FindFirstChildWhichIsA("TextLabel")
if Textly then
game:GetService("TweenService"):Create(Textly, TweenInfo.new(.02, Enum.EasingStyle.Quad), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
end
end)
end
end
function ListSpawns()
for _,ew in pairs(SpawnLocatList:GetChildren()) do
if ew:IsA("TextButton") then
ew:Destroy()
end
end
for i, spawnholds in pairs(workspace["Spawn Locations"]:GetChildren()) do
-- Verification
local AvailableTeam = spawnholds:FindFirstChild("AvailableTeams")
local ValidTeam = AvailableTeam:FindFirstChild(Plr.Team.Name)
if ValidTeam and ValidTeam:GetAttribute("Available") == true and Plr:GetRankInGroup(ValidTeam:GetAttribute("GroupID")) >= ValidTeam:GetAttribute("MinRank") or spawnholds.Name == "DEFAULT" then
local TheLocationFrame = SpawnLocatList.HolderList.LocationHolder:Clone()
TheLocationFrame.Visible = true
TheLocationFrame.Parent = SpawnLocatList
TheLocationFrame.Name = spawnholds.Name
TheLocationFrame.textly.Text = spawnholds.Name
TheLocationFrame.Folder.Value = spawnholds
TheLocationFrame.MouseButton1Click:Connect(function()
SecondaryInterface.Logo.Image = "http://www.roblox.com/asset/?id=6893644029"
SpawnLocation.Value = TheLocationFrame.Folder.Value
SpawnLocatList:TweenPosition(UDim2.new(-1, 0,0, 330), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, .75, true)
wait(.75)
TeamButton.Visible = true
DeployButton.Visible = true
SpawnLocationButton.Visible = true
end)