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

how would i be able to make a change team gui on roblox?

Asked by 3 years ago
Edited 3 years ago

I am trying to make a team change GUI but is not working. Whenever I try to change my team it does not work it does not even output anything. could anyone help?

Local Script:

script.Parent.MouseButton1Click:Connect(function()
    game.ReplicatedStorage.ChangeTeamEvent:FireServer(script.Parent.Name)
end)

Server Script:

local Teams = game:GetService("Teams")

game.ReplicatedStorage.ChangeTeamEvent.OnServerEvent:Connect(function(Player, Team)
    local PhysicalTeam = game.Teams:FindFirstChild(Team).TeamColor
    Player.TeamColor = PhysicalTeam
end)
0
local p = script.Parent.Parent.Parent.Parent.Parent.Name script.Parent.MouseButton1Click:Connect(function() game.Players[p].TeamColor = BrickColor.new("Really blue") game.Workspace[p].Humanoid.Health = 0 script.Parent.Parent.Parent.Enabled = false end) script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Parent.Background.Visible = true wait(5) script.Parent.Parent.Paren Mantery123 9 — 3y
0
how do i make the script appear like you did Mantery123 9 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

insert screen gui in starterGui and call it TeamGUI then add a frame and two text or image buttons in that frame then put a script in both of those buttons script: ``local p = script.Parent.Parent.Parent.Parent.Parent.Name

script.Parent.MouseButton1Click:Connect(function() game.Players[p].TeamColor = BrickColor.new("Really blue") game.Workspace[p].Humanoid.Health = 0 script.Parent.Parent.Parent.Enabled = false end)

script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Parent.Background.Visible = true wait(5) script.Parent.Parent.Parent.Background.Visible = false end)`~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~ `

Ad

Answer this question