Advertisement
MaxproGlitcher

scritp reset by Max

Aug 17th, 2022 (edited)
1,446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. --MaxproGlitcher#6199
  2. game:GetService("StarterGui"):SetCore("SendNotification",{
  3. Title = "Reset personnage",
  4. Text = "Script a ÊtÊ executer",
  5. Icon = "rbxassetid://11823384169",
  6. Duration = 15
  7. })
  8.  
  9. local savedpos = ""
  10.  
  11. local function kill()
  12. game.Players.LocalPlayer.Character:Destroy()
  13. end
  14.  
  15. local function savepos()
  16. savedpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  17. end
  18.  
  19. local function loadpos()
  20. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = savedpos
  21. end
  22.  
  23. savepos()
  24. kill()
  25. wait(game.Players.RespawnTime)
  26. wait(0.5)
  27. loadpos ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement