|
Hello, I currently own a USA and I have a Washington DC so I need to know how to make a group team change GUI with the screen GUI. Like other USA Washington DC's have. Please help me out.
Thanks |
|
|
you need to know how to make it or you want it made for you? |
|
|
Well it would be nice for someone to make it for me. I would also like to learn about it but I would rather it made for me. |
|
|
local player = game.Players.LocalPlayer
button.MouseButton1Down:connect(function()
player.TeamColor = BrickColor.new("Really red")
end)
#Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217") |
|
zaniac10Join Date: 2009-08-18 Post Count: 10000 |
first set up gui buttons how you want it then put these inside of it in a normal script:
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
local char = plr.Character
script.Parent.MouseButton1Click:connect(function()
plr.TeamColor = teams["TeamNameHere"].TeamColor
plr:LoadCharacter()
end)
end) |
|
Hedr0nJoin Date: 2016-01-05 Post Count: 1524 |
Cookie points off that sick tee obj |
|
|
yes I know how to do that stuff but how do I add my group ID to it so the players can change Group Teams. |
|
|
zaniac10Join Date: 2009-08-18 Post Count: 10000 |
id = 1234567 --group id
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
local char = plr.Character
script.Parent.MouseButton1Click:connect(function()
if plr:IsInGroup(id) then
plr.TeamColor = teams["TeamNameHere"].TeamColor
plr:LoadCharacter()
end
end)
end) |
|
|
Does that cover allies too? |
|
zaniac10Join Date: 2009-08-18 Post Count: 10000 |
No. |
|
|
If you don't mind can you make a quick model? This really gets me mixed up. |
|
Hedr0nJoin Date: 2016-01-05 Post Count: 1524 |
Just checking how many post I have. |
|
|
Can anyone make a mode for me for the Group team change GUI? |
|
zaniac10Join Date: 2009-08-18 Post Count: 10000 |
|
|
|
"Hello, I currently own a USA"
Pssh, I own 42 USAs in my USA account. |
|
|
So what do I right in the TeamNameHere part? There are many teams I need to add not only one |
|
zaniac10Join Date: 2009-08-18 Post Count: 10000 |
Put the name of the team there and if you want to do it for a separate team you have to duplicate the button, position it, and alter the script |
|
|
@pinball
Um why do you care about braging that you have 42 USAs? Because no one really cares. I just need scripting help so if you can help me please do. |
|
|
Ok well when I put the script into my buttons it doesn't let me click them. |
|