SebTDZ

God Script

Apr 13th, 2019
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. ioc = true
  2. if game.Workspace:FindFirstChild(owner.Name) then
  3. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Died:Connect(function()
  4.     local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
  5.     ioc = false
  6.     owner:LoadCharacter()
  7.     ioc = true
  8.     owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
  9. end)
  10. end
  11. owner.CharacterRemoving:Connect(function()
  12.     wait(0.1)
  13.     if ioc == true then
  14.     ioc = false
  15.     local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
  16.     owner:LoadCharacter()
  17.     owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
  18.     wait(0.1)
  19.     ioc = true
  20.     end
  21. end)
  22. owner.CharacterAdded:connect(function(char)
  23. wait(0.1)
  24. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Died:Connect(function()
  25.     local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
  26.     owner:LoadCharacter()
  27.     owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
  28. end)
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment