Roblox Forum banner

I need help with a GUI button.

157 Views 1 Reply 2 Participants Last post by  _ryen5642
Hello. I have been creating a game ( and I am very new to scripting. I have been trying to make a "Deploy" button that changes the team to a random one between two variables, gets rid of the GUI, and kills the player. I have tried almost everything I could think of and this is what it amounted to:

local player = game.StarterPlayer

local menu = game.StarterGui.Menu

local button = game.StarterGui.Menu.Frame.PlayButton

local axisteam = game.Teams.Axis

local alliedteam = game.Teams.Allies

local notingame = game.Teams.NotGame

until menu.Enabled = false

button.MouseButton1Click:Connect:function() = 0



Please help.
See less See more
1 - 2 of 2 Posts
I'm going to help you out with this code, please give me an hour I will return back.
1 - 2 of 2 Posts