Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. --WaitForChild() isminden anlaşılabileceği gibi Child objeleri bekler, Character bir child obje değil Player Objesinin bir Propertysidir.
  2. ---------------------------------------------
  3. local player = game.Players.LocalPlayer
  4. local character = player.Character or player.CharacterAdded:wait()
  5. repeat wait() until character.Humanoid
  6. local human = character.Humanoid
  7. human.Health = 0
  8.  
  9. ----------------------------------------------
  10.  
  11. local rep = game:GetService("ReplicatedStorage")
  12. local player = game:GetService("Players").LocalPlayer
  13. local char = player.Character or player.CharacterAdded:wait()
  14. repeat wait() until char:FindFirstChild("Humanoid")
  15. local human = char.Humanoid
  16.  
  17. -------------------------------------
  18. local player = game.Players.LocalPlayer
  19. local character = player.Character or player.CharacterAdded:wait()
  20. local human = character:WaitForChild("Humanoid",5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement