Advertisement
MindOfPlayer

auto respawn

Apr 29th, 2020
7,358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. local blah = (game.Players.LocalPlayer.Name)
  2.  
  3. _G.Looop = true
  4.  
  5. while _G.Looop == true do wait(0.1)
  6.       if game:GetService("Workspace")[blah].Humanoid.Health == 0 then
  7.        saved = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  8.         game:GetService("StarterGui"):SetCore("SendNotification", {
  9.         Title = "Position Saved";
  10.         Text = "Success";
  11.         })
  12.         local A_1 = "LocalPlayer"
  13.  
  14. local Event = game:GetService("Workspace").Remote.loadchar
  15. Event:InvokeServer(A_1)
  16.  
  17.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = saved
  18.         game:GetService("StarterGui"):SetCore("SendNotification", {
  19.         Title = "Position Loaded";
  20.         Text = "Success";
  21.         })
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement