In this video, you will learn how to create a team change button on Roblox Studio. This team select GUI lets players choose between teams in your game such as Pirates & Vikings.
Scripts
- ServerScriptService
game.ReplicatedStorage.ChangeTeam.OnServerEvent:Connect(function(player, teamColor)
player.TeamColor = teamColor
player:LoadCharacter()
end)
-LocalScript (TeamChange)
local RemoteEvent = game.ReplicatedStorage.ChangeTeam
local menuButton = script.Parent:WaitForChild("MenuButton")
local frame = script.Parent:WaitForChild("Frame")
local PirateC = "Really red"
local VikingsC = "Really blue"
frame.Pirate.MouseButton1Click:Connect (function()
RemoteEvent:FireServer(BrickColor.new(PirateC))
end)
frame.Vikings.MouseButton1Click:Connect (function()
RemoteEvent:FireServer(BrickColor.new(VikingsC))
end)
menuButton.MouseButton1Click:Connect(function()
frame.Visible = not frame.Visible
end)
Tags:
how to make a team change gui on roblox,roblox how to make a team change gui,how to make a team change script on roblox,roblox how to make a team changer,roblox how to make a team select gui,roblox how to make a group team change gui,roblox team change gui,roblox team change gui fe,roblox team change gui tutorial,roblox scripting tutorial,roblox studio,roblox studio tutorial,roblox team changer,roblox team script,roblox tutorial,team select gui,alvin blox
Негізгі бет How To Make A Team Change Button on Roblox Studio
Пікірлер: 8