I am using GeneralGory's Team Change GUI. It works in studio, but not ingame. Here's the script, and my game is FE.
Thanks!
--[[
/ | | |
| | __ ___ _ __ ___ _ __ __ | |
| | | |/ _ \ ' \ / _ \ '/ ` | |
| |__| | _/ | | | / | | (_| | |
_|_|| ||_|| _,||
/ |
| | __ ___ _ __ _ _ ________
| | | |/ _ | '| | | | |PLEASE |
| || | () | | | || | |REFRAIN |
_|__/|| _, | |FROM |
/ | |EDITING!|
|/ --------
--]]
wait(0.69)
local gui=script.Parent
repeat wait() until not gui.Parent.Parent:IsA("Workspace")
local plr=gui.Parent.Parent
local setup=workspace:findFirstChild("GeneralGorys Menu")
if setup then
if setup.Settings.ButtonSound.Value=="1" then gui.s.SoundId="rbxasset://sounds/unsheath.wav" else
gui.s.SoundId="rbxassetid://"..setup.Settings.ButtonSound.Value end
if setup.Settings.ColorScheme.Value then
gui.f.BackgroundColor3=Color3.new(1,1,1)
gui.f.f.BackgroundColor3=Color3.new(1,1,1)
gui.Button.BackgroundColor3=Color3.new(1,1,1)
gui.Template.BackgroundColor3=Color3.new(1,1,1)
gui.HideName.BackgroundColor3=Color3.new(1,1,1)
gui.Template.b.BackgroundColor3=Color3.new(1,1,1)
else
gui.f.BackgroundColor3=Color3.new(50/255,50/255,50/255)
gui.f.f.BackgroundColor3=Color3.new(50/255,50/255,50/255)
gui.Button.BackgroundColor3=Color3.new(50/255,50/255,50/255)
gui.Template.BackgroundColor3=Color3.new(50/255,50/255,50/255)
gui.HideName.BackgroundColor3=Color3.new(50/255,50/255,50/255)
gui.Template.b.BackgroundColor3=Color3.new(50/255,50/255,50/255)
end
end
function isIn(g) local ye=false for i,v in pairs(g:children()) do if plr:IsInGroup(tonumber(v.Name)) then ye=true return true end end if ye==false then return false end end l=-1 for i,v in pairs(game.Teams:children()) do if v:IsA("Team") then l=l+1 local but=gui.Template:clone() but.Parent=gui.f.f but.BackgroundColor=v.TeamColor but.t.Text=v.Name but.Position=UDim2.new(0,10,0,10+l60) local go=v:findFirstChild("GroupOnly") if go then if isIn(go)==true then but.b.Visible=false but.AutoButtonColor=true but.MouseButton1Down:connect(function() gui.s:play() plr.Character.Humanoid.Health=0 plr.TeamColor=v.TeamColor plr:LoadCharacter() end) else but.b.Visible=true but.AutoButtonColor=false end else but.b.Visible=false but.AutoButtonColor=true but.MouseButton1Down:connect(function() gui.s:play() plr.Character.Humanoid.Health=0 plr.TeamColor=v.TeamColor plr:LoadCharacter() end) end but.Visible=true end end if setup then if setup.Settings.HideNameButton.Value then l=l+1 hn=gui.HideName hn.Parent=gui.f.f hn.Position=UDim2.new(0,10,0,10+l60) hn.Script.Disabled=false hn.Visible=true end end gui.f.Size=UDim2.new(0,200,0,10+l80) gui.f.Visible=false gui.f.Position=UDim2.new(0.5,-100,0.5,-(10+l80)/2) gui.Button.MouseButton1Down:connect(function() gui.s:play() gui.f.Visible=not gui.f.Visible end)
