Advertisement
Paulo87

Untitled

Jun 1st, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. local function getBeast()
  2. local players = game.Players:GetChildren()
  3. for i = 1, #players do
  4. if players[i]:FindFirstChild("TempPlayerStatsModule") and players[i].TempPlayerStatsModule:FindFirstChild("IsBeast") and players[i].TempPlayerStatsModule.IsBeast.Value == true or (players[i].Character ~= nil and players[i].Character:FindFirstChild("BeastPowers")) then
  5. return players[i]
  6. end
  7. end
  8. return nil
  9. end
  10.  
  11. local function resetCharacter(player)
  12. if player.Character and player.Character:FindFirstChild("Humanoid") then
  13. player.Character.Humanoid.Health = 0
  14. end
  15. end
  16.  
  17. while true do
  18. local beast = getBeast()
  19. if beast and beast == game.Players.LocalPlayer then
  20. print("Вы зверь!")
  21. wait(20) -- Tempo ajustado para 20 segundos.
  22. resetCharacter(beast)
  23. break
  24. else
  25. print("Вы не зверь!")
  26. end
  27. wait(1)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement