Advertisement
scripter_taken

Untitled

Mar 7th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. local Brick = Instance.new("Part",game.Workspace)
  2. local lp = game:GetService("Players").LocalPlayer
  3. local p = game:GetService("Players")
  4. Brick.Name = "SpawnPoint"
  5. local m = lp:GetMouse()
  6. local spawnP = true or false
  7. Brick.CanCollide = false
  8. Brick.Anchored = true
  9. Brick.Color = Color3.new(0, 255, 0)
  10. m.KeyDown:connect(function(k)
  11. if k == "k" then
  12. game:GetService("StarterGui"):SetCore("SendNotification", {
  13. Title = "[Set!]";
  14. Text = "Spawn Point set to this location";
  15. })
  16. Brick.CFrame = lp.Character.HumanoidRootPart.CFrame
  17. spawnP = true
  18. if spawnP == true then
  19. repeat
  20. wait()
  21. if lp.Character.Humanoid.Health == 0 then
  22. wait(5.5)
  23. lp.Character.HumanoidRootPart.CFrame = Brick.CFrame
  24. elseif lp.Character.Humanoid.Health > 0 then
  25. print("Waiting on Char")
  26. end
  27. until spawnP == false
  28. end
  29. end
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement