Player isnt Spawning in their spawn

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

image

The spawn value

image

Any help would be appreciated :slight_smile:

1 Like

im having the same issue

did you try setting their team into an object like this

plr.Team = game.Teams.Team1

it doesn’t work for me the code above

^ that returns the role of the group so if you were ‘Owner’, that would return ‘Owner’
Replace that with

plr:IsInGroup(5795434) -- returns true
1 Like

Do you have multiple spawn points that are on the netural team?