Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Team create script inside of gui does not work. any mistakes i need to fix?

Asked by 5 years ago
Edited 4 years ago
local text = game.Players.LocalPlayer.PlayerGui.Gma.Frame.TextBox.Text

function accept()
    if game.Teams.Value == 2 then
        text = "Too Much Teams"
    end
end



script.Parent.Parent.TextButton1.MouseButton1Click:connect(function()
    local teamq = game.Teams
    local gameteam = Instance.new("Team",teamq)
    game.Players.LocalPlayer.TeamColor = ("Really red")
    gameteam.TeamColor = ("Really red")
    gameteam.Name = game.Players.LocalPlayer.PlayerGui.Gma.Frame.TextBox.Text
    game.Teams.Value.Value = 1
end)

this is my script it makes a team but not the name and dosent move the players team

0
can you please put your code in a code block to make it readable? Zafirua 1348 — 5y
0
ok User#22145 0 — 5y
0
cant User#22145 0 — 5y

Answer this question