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

Need help bad, im trying to make it so where if some ones in two groups they can be on 1 team?

Asked by 3 years ago
Edited 3 years ago

I need help i'm making a military game and I need to make it so where if the player is in both of the groups they go on the electric blue team.

function onPlayerEntered(plyr) if plyr:GetRankInGroup(11525529) >= 147 then plyr.TeamColor = BrickColor.new('New Yeller') elseif plyr:GetRankInGroup(11525529) >= 1 then plyr.TeamColor = BrickColor.new("Really red") elseif plyr:GetRankInGroup(11578916) >=1 then plyr.TeamColor = BrickColor.new("Electric blue") if plyr:IsInGroup(11525529) and (11578916) then plyr.TeamColor = BrickColor.new("Electric blue") end end end

game.Players.PlayerAdded:Connect(onPlayerEntered)

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Wait() wait(1) player:LoadCharacter() end)

0
Could you put the code in a code block because this is just unreadeble! johnoscarbhv1 137 — 3y

Answer this question