LocalScript no StarterPlayerScripts (StarterPlayer)

DanielSiqueira Jan 24th, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.LocalPlayer
  2. local leaderstats = player:WaitForChild('leaderstats')
  4. leaderstats:WaitForChild('Mortes').Changed:Connect(function(novoValor)
  5.     if novoValor == 5 then
  6.         player:Kick('VocĂȘ foi kickado por ter morrido 5 vezes')
  7.     end
  8. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand