zeckons

Blox piece

Jun 16th, 2019
4,364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. --https://www.roblox.com/games/2753915549/UPDATE-Blox-Piece#!/about
  2.  
  3. while true do
  4. local chest = workspace:FindFirstChild('Chest3', true)
  5. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest.CFrame
  6. wait (1)
  7. end
  8. ----------------------------------------------
  9.  
  10. while true do
  11. local chest3 = workspace:FindFirstChild('Chest3')
  12. wait()
  13. local chest2 = workspace:FindFirstChild('Chest2')
  14. wait()
  15. local chest1 = workspace:FindFirstChild('Chest1')
  16. wait()
  17.  
  18. if chest3 then
  19. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest3.CFrame
  20. wait(.1)
  21. elseif chest2 then
  22. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest2.CFrame
  23. wait(.1)
  24. elseif chest1 then
  25. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest1.CFrame
  26. wait(.1)
  27. end
  28. end
  29. -------------------------
  30. local myLoc = game.Players.LocalPlayer.Character.HumanoidRootPart
  31.  
  32. tpBack = function()
  33. if workspace:FindFirstChild('TpCheckpoint') then
  34. workspace:FindFirstChild('TpCheckpoint'):Destroy()
  35. end
  36. wait()
  37. local tpBak = Instance.new("Part")
  38. tpBak.Parent = workspace
  39. tpBak.CFrame = myLoc.CFrame
  40. tpBak.Anchored = true
  41. tpBak.Transparency = 1
  42. tpBak.CanCollide = false
  43. tpBak.Name = "TpCheckpoint"
  44. wait()
  45. end
  46.  
  47. tpBack()
  48. while true do
  49. local chest3 = workspace:FindFirstChild('Chest3')
  50. wait()
  51. local chest2 = workspace:FindFirstChild('Chest2')
  52. wait()
  53. local chest1 = workspace:FindFirstChild('Chest1')
  54. wait()
  55.  
  56. if chest3 then
  57. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest3.CFrame
  58. wait(.1)
  59. elseif chest2 then
  60. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest2.CFrame
  61. wait(.1)
  62. elseif chest1 then
  63. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest1.CFrame
  64. wait(.1)
  65. end
  66. local tpCheck = workspace:FindFirstChild("TpCheckpoint")
  67. local PartLoc = tpCheck.CFrame
  68. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = PartLoc + Vector3.new(1,0,0)
  69. end
Advertisement
Add Comment
Please, Sign In to add comment