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)
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!