Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- speed=75
- _G.toggle = true
- _G.noclip = false
- local virtualUser = game:GetService('VirtualUser')
- virtualUser:CaptureController()
- local player = game.Players.LocalPlayer
- local function NoclipLoop()
- if player.Character ~= nil and _G.noclip then
- for _, child in pairs(player.Character:GetDescendants()) do
- if child:IsA("BasePart") and child.CanCollide == true and child.Name ~= floatName then
- child.CanCollide = false
- end
- end
- end
- end
- Noclipping = game:GetService('RunService').Stepped:Connect(NoclipLoop)
- function tele(part)
- game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
- _G.noclip=true
- dist = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - part.Position).Magnitude
- Time = math.round(dist / speed)
- tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(Time, Enum.EasingStyle.Linear)
- tween = tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(part.Position)})
- tween:Play()
- repeat wait() until (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - part.Position).Magnitude < 5
- _G.noclip=false
- game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
- end
- function findclosepart()
- closepart=100000
- finalpart=nil
- for i,v in pairs(game:GetService("Workspace").Chests:GetChildren()) do
- part=v:FindFirstChild("Hitbox")
- distance = math.floor((game.Players.LocalPlayer.Character.HumanoidRootPart.Position - part.Position).Magnitude)
- v.Name=tostring(distance)
- if distance < closepart then
- closepart = distance
- finalpart = part
- end
- end
- return(finalpart)
- end
- function e()
- keypress(0x45)
- wait(0.1)
- keyrelease(0x45)
- end
- while _G.toggle and wait() do
- tele(findclosepart())
- wait(1)
- e()
- e()
- e()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement