ok so i have a script for blox fruits which is meant to join teams automatically i was wondering if you could help me figure out why it's not working i would really appreciate it if you could take a look and edit it as needed and respond the end goal is to be able to change settings within the script via a global variable being _G.Team = heres the code lemme know if you figure anything out
_G.Team == "Marine"
repeat wait(0) until game:IsLoaded()
if game:GetService("Players").LocalPlayer.PlayerGui.Main:FindFirstChild("ChooseTeam") then
repeat wait()
if game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("Main").ChooseTeam.Visible == true then
if _G.Team == "Pirate" then
for i, v in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Pirates.Frame.ViewportFrame.TextButton.Activated)) do
v.Function()
end
elseif _G.Team == "Marine" then
for i, v in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Marines.Frame.ViewportFrame.TextButton.Activated)) do
v.Function()
end
else
for i, v in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Pirates.Frame.ViewportFrame.TextButton.Activated)) do
v.Function()
end
end
end
until game.Players.LocalPlayer.Team ~= nil and game:IsLoaded()
end
ok so i have a script for blox fruits which is meant to join teams automatically i was wondering if you could help me figure out why it's not working i would really appreciate it if you could take a look and edit it as needed and respond the end goal is to be able to change settings within the script via a global variable being _G.Team = heres the code lemme know if you figure anything out
_G.Team == "Marine"
repeat wait(0) until game:IsLoaded()
if game:GetService("Players").LocalPlayer.PlayerGui.Main:FindFirstChild("ChooseTeam") then repeat wait() if game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("Main").ChooseTeam.Visible == true then if _G.Team == "Pirate" then for i, v in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Pirates.Frame.ViewportFrame.TextButton.Activated)) do
v.Function() end elseif _G.Team == "Marine" then for i, v in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Marines.Frame.ViewportFrame.TextButton.Activated)) do
v.Function() end else for i, v in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Pirates.Frame.ViewportFrame.TextButton.Activated)) do
v.Function() end end end until game.Players.LocalPlayer.Team ~= nil and game:IsLoaded() end