I don't know what I'm doing wrong but I can't figure out how to kick someone out during a time limit. (like waiting 10 minutes or something)
if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
wait(20)
workspace.HOw:Play()
--badge code
wait(18.99099999999999)
me = game.Players:FindFirstChild(hit.Parent.Name)
me:Kick("Congrats, now leave!")
script.Parent.Parent.Parent.Enabled = false
end
Also please answer if you want: Does this work with rewarding players badges too?

3 comments
yeah the question is stupid. I'm just kicking players out when they wait for like 10 hours. (for a badge)
what is the error?
Line 1, that's my error