So I was watching AlvinBlox and did the checkpoint script the Same Way! what is wrong!
AlvinBloxs video link - https://www.youtube.com/watch?v=Aa83VYif6VA time stamp 7:06
1 | local checkpoints = game.Workspace:WaitForChild( "Checkpoints" ):GetChildren() |
2 |
3 | for i, checkpoints in pairs (checkpoints) do |
4 |
5 | checkpoint.TeamColor = game.Teams:FindFirstChild(checkpoint.Name).Teamcolor |
6 |
7 | end |
You didn't specify what to check in, what I'm assuming is a folder called checkpoints. You would need to do: for i, checkpoints in pairs(checkpoints:GetChildren()) or :GetDescendents() depending on what you want.