Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 6/1/2020 no pain, no gain --
- -- looks like getting the humanoid is instable because sometimes it cannot find it at all --
- local all = {}
- local plr = game:GetService("Players").LocalPlayer
- local mouse = plr:GetMouse()
- local i = 0
- local telespeed = 1.05
- mouse.KeyDown:Connect(function(key)
- if key == "z" then
- i = i + 1
- local cp = Instance.new("Part")
- cp.Name = "checkpoint" .. tostring(i)
- cp.CanCollide = false
- cp.Anchored = true
- cp.Size = Vector3.new(6,1,6)
- cp.BrickColor = BrickColor.Random()
- cp.Material = "Neon"
- cp.CFrame = CFrame.new(plr.Character.HumanoidRootPart.Position)
- cp.Parent = workspace
- all[i] = cp
- elseif key == "x" then
- if i > 0 then
- plr.Character.HumanoidRootPart.CFrame = all[i].CFrame
- end
- elseif key == "c" then
- if i > 0 then
- all[i]:Destroy()
- i = i - 1
- end
- elseif key == "v" then
- for j = 1,i do
- plr.Character.HumanoidRootPart.CFrame = all[j].CFrame
- wait(telespeed)
- end
- end
- end)
- --[[while true do
- wait(.5)
- local oldchar = plr.Character
- local hum = oldchar:FindFirstChild("Humanoid")
- if hum then -- hum can sometimes not be found at all
- end
- end]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement