So, what I am trying to do is, the Player joins the game, if he is in the Group, he is assigned to a team, now that all works. Below is the script
The Script
local Player = game:GetService("Players")
local function onJoined(plr)
if plr:GetRoleInGroup(5795434) then
plr.TeamColor = BrickColor.new("Grime")
end
end
Player.PlayerAdded:Connect(onJoined)
Now all of this works, but now, when I join the game, I dont spawn in the spawn
Team values
The spawn value
Any help would be appreciated