Team changing help and checkpoints

Hi there! I am trying to make a player’s team change when they get to a new checkpoint. However, when i try to set the starting team, it doesn’t work and does not work when i touch a new checkpoint. Neutral is disabled for the spawnpoints btw. lmk if u want the module script for this. cred to @bv_hl for the checkpoint system script too. Thank you!!

(Server Script)
local CheckpointSystem = require(script.CheckpointSystem)
game.Players.PlayerAdded:Connect(function(p)
	local leaderstats = CheckpointSystem:initializeLeaderstats(p)
	local character = workspace:WaitForChild(p.Name)
	p.Team = game.Teams.Level0
	CheckpointSystem:setup()
	CheckpointSystem:goToStage(character)
	
	p.CharacterAdded:Connect(function(character)

		CheckpointSystem:goToStage(character)
	end)
	
end)

(It just changed the value)
image
image

1 Like

Any errors? Is player.Neutral true? Could you try setting player.TeamColor to the team’s colour instead of setting it to the team object?

1 Like

Actually, i found the problem. It needed to be parts instead of spawnlocations. But now i cant delete it now because you responded.

4 Likes

Thank you for using my system! I really appreciate it, and yes, I plan on remaking the whole system to make it easier to use and understand, at the moment it’s a bit choppy!

1 Like

Awesome system. I would recommend to add like customizable features like brick color change when they step on a checkpoint. Keep working on it!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.