Advertisement
BrianBoy_RB

Game Devs

May 24th, 2021 (edited)
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.52 KB | None | 0 0
  1. -Links:
  2. +Neuron network:
  3. "https://digestingduck.blogspot.com/2010/03/simple-stupid-funnel-algorithm.html"
  4.  
  5. -Exploit:
  6. if _G.teleport_disconnect then
  7.   _G.teleport_disconnect()
  8. end
  9. local service = setmetatable({ }, {
  10.   __index = function(self, key)
  11.     return game:GetService(key)
  12.   end
  13. })
  14. local TELEPORT_HOTKEY = 'f'
  15. local SPEED_LIMITER = 16
  16. local WAIT_SPEED = 1 / 30
  17. local user = service.Players.LocalPlayer
  18. local mouse = user:GetMouse()
  19. local _list_0 = workspace:GetDescendants()
  20. for _index_0 = 1, #_list_0 do
  21.   local instance = _list_0[_index_0]
  22.   if instance:IsA('TouchTransmitter') and instance.Parent.Name == 'Kill' then
  23.     instance:Destroy() -- only for that one annoying obby place
  24.   end
  25. end
  26. local teleport
  27. teleport = function()
  28.   local root_part = user.Character.HumanoidRootPart or user.Character:FindFirstChild('Torso')
  29.   root_part.Anchored = true
  30.   local target = mouse.Hit + Vector3.new(0, 4, 0)
  31.   local start = root_part.CFrame
  32.   local distance = (target.p - start.p).magnitude
  33.   for i = 0, 1, (SPEED_LIMITER / distance) * WAIT_SPEED do
  34.     local new_position = start:lerp(target, i)
  35.     root_part.CFrame = new_position
  36.     wait(WAIT_SPEED)
  37.   end
  38.   root_part.Anchored = false
  39. end
  40. local event = service.UserInputService.InputBegan:Connect(function(key, game_processed)
  41.   if game_processed or key.KeyCode ~= Enum.KeyCode[string.upper(TELEPORT_HOTKEY)] then
  42.     return
  43.   end
  44.   return teleport()
  45. end)
  46. _G.teleport_disconnect = function()
  47.   event:Disconnect()
  48.   _G.teleport_disconnect = nil
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement