Well, what I’m trying to do is a team spawn, I mean, I put myself in a team and automatically appear in the spawn where I put it, but it doesn’t work.
I thought it was like that
but I was wrong. Well that is what I try to do to put myself in a team but not in a selector team that is not if not that I put myself in a team and automatically with a reset or refresh it appears there
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
-- :GetPropertyChangedSignal will fire an event when the property in it's parameters is changed
-- Team is a property of the player that tells us what team the player is on
player:GetPropertyChangedSignal("Team"):Connect(function()
if player.Character then
-- Player's character exists so we can teleport them
local hrp = player.Character.HumanoidRootPart
hrp.CFrame = player.Team.SpawnLocation.Position
end
end)
end)