Advertisement
SUUKIDIS_69

Script Orthoxia Chest Farm

Mar 20th, 2022
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. speed=75
  2. _G.toggle = true
  3.  
  4.  
  5. _G.noclip = false
  6. local virtualUser = game:GetService('VirtualUser')
  7. virtualUser:CaptureController()
  8.  
  9. local player = game.Players.LocalPlayer
  10. local function NoclipLoop()
  11. if player.Character ~= nil and _G.noclip then
  12. for _, child in pairs(player.Character:GetDescendants()) do
  13. if child:IsA("BasePart") and child.CanCollide == true and child.Name ~= floatName then
  14. child.CanCollide = false
  15. end
  16. end
  17. end
  18. end
  19. Noclipping = game:GetService('RunService').Stepped:Connect(NoclipLoop)
  20.  
  21. function tele(part)
  22. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  23. _G.noclip=true
  24. dist = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - part.Position).Magnitude
  25. Time = math.round(dist / speed)
  26. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(Time, Enum.EasingStyle.Linear)
  27. tween = tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(part.Position)})
  28. tween:Play()
  29. repeat wait() until (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - part.Position).Magnitude < 5
  30. _G.noclip=false
  31. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  32. end
  33.  
  34. function findclosepart()
  35. closepart=100000
  36. finalpart=nil
  37. for i,v in pairs(game:GetService("Workspace").Chests:GetChildren()) do
  38. part=v:FindFirstChild("Hitbox")
  39. distance = math.floor((game.Players.LocalPlayer.Character.HumanoidRootPart.Position - part.Position).Magnitude)
  40. v.Name=tostring(distance)
  41. if distance < closepart then
  42. closepart = distance
  43. finalpart = part
  44. end
  45. end
  46. return(finalpart)
  47. end
  48.  
  49. function e()
  50. keypress(0x45)
  51. wait(0.1)
  52. keyrelease(0x45)
  53. end
  54.  
  55. while _G.toggle and wait() do
  56. tele(findclosepart())
  57. wait(1)
  58. e()
  59. e()
  60. e()
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement