Advertisement
jokianeee

pche

Jul 11th, 2019
736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. pos = Vector3.new(1108.0199, 101.158478, 1297.34399) if game:service'Players'.LocalPlayer:DistanceFromCharacter(pos) < 50 then _G.Teleport(pos) end
  2. lp = game:service'Players'.LocalPlayer
  3. rs = game:service'RunService'.Stepped:Connect(function()
  4. local hrp = lp.Character:FindFirstChild'HumanoidRootPart'
  5. hrp.CFrame = CFrame.new(hrp.Position,pos)
  6. hrp.CFrame = hrp.CFrame + hrp.CFrame.lookVector*1
  7. hrp.Velocity = Vector3.new(hrp.Velocity.X,0,hrp.Velocity.Y)
  8. for i,v in pairs(lp.Character:GetChildren()) do
  9. if v:IsA'BasePart' then
  10. v.CanCollide = false
  11. end
  12. end
  13. if lp:DistanceFromCharacter(pos) < 10 then
  14. rs:Disconnect()
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement