Making teams in my game and wanting it to print something if you're on that team but its not working?

So I’m making a game and im adding teams now and i added a print statement to see if it was working or not and its not? and not sure what the issue could be?
I’ve Recorded a video below to help you fix this for me and the code is below the video :+1:

The code used

local Teams = game:GetService("Teams")
game.Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function()
		if p.Team == Teams.Seeker then
			print("Check1")
		end
	end)
end)
1 Like

There are many forums about this with solutions
Try checking one of them

I check both of the fourms and they still dont help me with anything i’ve tried everything and i dont seem to find a solution

local Players = game:GetService("Players")
local Teams = game:GetService("Teams")

game.Players.PlayerAdded:Connect(function(plr)
	if plr.Team == Teams["Seeker"] then
		print("Check 1")
	end
end)

It’s because the for loop doesn’t allow the code to continue. Use task.spawn so that the for loop is in a new thread.

1 Like

never used Task.spawn so where would i be able to place it?

In this case you can place it this way.

task.spawn(function()
	for i = 1, time do
		wait(1)
		time = time -1
		String_Value.Value = time
	end
end)
1 Like

Alright awesome thanks for the help :+1:

1 Like