Advertisement
ExecutorForALLdomain

Spawn where you died [dont work good]

Oct 19th, 2024
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. local lp = game:GetService'Players'.LocalPlayer
  2. local char = lp.Character or lp.Character:Wait()
  3.  
  4. _G.HUM = char:WaitForChild("Humanoid")
  5. _G.root = char:WaitForChild("HumanoidRootPart")
  6.  
  7. local cframe
  8.  
  9. local function GetCFrame()
  10. if _G.HUM and _G.root then
  11. cframe = _G.root.CFrame
  12. end
  13. end
  14.  
  15. local function GotoCFrame()
  16. if char and _G.root and cframe then
  17. wait(0.5)
  18. _G.root.CFrame = cframe
  19. end
  20. end
  21.  
  22. _G.HUM.Died:Connect(function()
  23. GetCFrame()
  24. end)
  25.  
  26. lp.CharacterAdded:Connect(function(character)
  27. char = character
  28. root = char:WaitForChild("HumanoidRootPart")
  29. humanoid = char:WaitForChild("Humanoid")
  30.  
  31. _G.HUM = humanoid
  32. _G.root = root
  33.  
  34. wait(0.5)
  35. GotoCFrame()
  36. end)
  37.  
  38. warn("loaded")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement