while script.Parent:IsA("Player") do
	print("lala")
	if game.Workspace.Gamemode then
		if game.Workspace.Gamemode.Value == 0 then
			if script.Parent.GameKills then
				script.Parent.GameKills.Value = 0
			end
		end
	end
	wait(0.1)
end

Game counts Kills which player did in one game bc first to 30 kill wins. I wanna remove when the gamemode(0 intermission, 1 game) 0 gamekill value will reset. Script's parent is a Player Class But it isnt printing "lala".

2 comments

0

Is

0

Try to do this: while true do and then inside the while loop, add an if statement to check like this: `if script.Parent:IsA("Player") then