CreeperReaper48

[Lua] Killcam

Jun 9th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. game.Players.PlayerAdded:connect(function(Player)
  2. Player.CharacterAdded:connect(function(Character)
  3. wait()
  4. Character.Humanoid.Died:connect(function()
  5. local Tag = Character.Humanoid:FindFirstChild("creator")
  6. if Tag ~= nil then
  7. if Tag.Value ~= nil then
  8. if Tag.Value.Parent ~= nil then
  9. if Tag.Value.Character ~= nil then
  10. local Gui = script.KillGui:Clone()
  11. Gui.TopFrame.TextLabel.Text = "KILLED BY " .. string.upper(Tag.Value.Name)
  12. Gui.Parent = Player.PlayerGui
  13. workspace.CurrentCamera.CameraSubject = Tag.Value.Character.Humanoid
  14. end
  15. end
  16. end
  17. end
  18. end)
  19. end)
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment