Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://www.roblox.com/games/2753915549/UPDATE-Blox-Piece#!/about
- while true do
- local chest = workspace:FindFirstChild('Chest3', true)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest.CFrame
- wait (1)
- end
- ----------------------------------------------
- while true do
- local chest3 = workspace:FindFirstChild('Chest3')
- wait()
- local chest2 = workspace:FindFirstChild('Chest2')
- wait()
- local chest1 = workspace:FindFirstChild('Chest1')
- wait()
- if chest3 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest3.CFrame
- wait(.1)
- elseif chest2 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest2.CFrame
- wait(.1)
- elseif chest1 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest1.CFrame
- wait(.1)
- end
- end
- -------------------------
- local myLoc = game.Players.LocalPlayer.Character.HumanoidRootPart
- tpBack = function()
- if workspace:FindFirstChild('TpCheckpoint') then
- workspace:FindFirstChild('TpCheckpoint'):Destroy()
- end
- wait()
- local tpBak = Instance.new("Part")
- tpBak.Parent = workspace
- tpBak.CFrame = myLoc.CFrame
- tpBak.Anchored = true
- tpBak.Transparency = 1
- tpBak.CanCollide = false
- tpBak.Name = "TpCheckpoint"
- wait()
- end
- tpBack()
- while true do
- local chest3 = workspace:FindFirstChild('Chest3')
- wait()
- local chest2 = workspace:FindFirstChild('Chest2')
- wait()
- local chest1 = workspace:FindFirstChild('Chest1')
- wait()
- if chest3 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest3.CFrame
- wait(.1)
- elseif chest2 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest2.CFrame
- wait(.1)
- elseif chest1 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest1.CFrame
- wait(.1)
- end
- local tpCheck = workspace:FindFirstChild("TpCheckpoint")
- local PartLoc = tpCheck.CFrame
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = PartLoc + Vector3.new(1,0,0)
- end
Advertisement
Add Comment
Please, Sign In to add comment