Advertisement
Guest User

Lumbsmasher Source Code + Whitelist code

a guest
Apr 5th, 2020
1,274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. --[[
  2. Copyright 2019 - 2020, applebee and the LumbSmasher contributors
  3. This source is controlled by the AGPLv3 License.
  4. Permissions of this strongest copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license.
  5. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. When a modified version is used to provide a service over a network, the complete source code of the modified version must be made available.
  6.  
  7. More info here: https://www.gnu.org/licenses/agpl-3.0.en.html
  8.  
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11.  
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  13. OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  17. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  18. DEALINGS IN THE SOFTWARE.
  19. ]]--
  20. function lumbsmasher_teleport(destination_cframe)
  21. local localplayer = game.Players.LocalPlayer
  22. local character=localplayer.Character
  23. local humanoid=character.Humanoid
  24. local can_collide = {}
  25. local connection = character.Torso.Touched:connect(function(t)
  26. if t.CanCollide == true then
  27. t.CanCollide = false
  28. table.insert(can_collide, t)
  29. end
  30. end)
  31. local thrust = Instance.new("BodyPosition", character.Torso)
  32. thrust.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  33. thrust.Position = destination_cframe.p
  34. thrust.P = 100000
  35.  
  36. repeat
  37. wait()
  38. until
  39. (character.Torso.CFrame.p - destination_cframe.p).magnitude <10
  40.  
  41. thrust:Destroy()
  42. connection:Disconnect()
  43.  
  44. for i, v in pairs(can_collide) do
  45. v.CanCollide=true
  46. end
  47.  
  48. local no_movement = Vector3.new(0,0,0)
  49. repeat
  50. wait()
  51. character.HumanoidRootPart.Velocity = no_movement
  52. humanoid:ChangeState(11)
  53. until character.Torso.Velocity == no_movement
  54. for i=0, 10 do
  55. wait()
  56. character.HumanoidRootPart.CFrame = destination_cframe
  57. end
  58. tping = false
  59. end
  60. tping = false
  61. local mouse = game.Players.LocalPlayer:GetMouse()
  62. mouse.KeyDown:Connect(function(key)
  63. if key == "t" and mouse.Target then
  64. if tping == true then return end
  65. tping = true
  66. lumbsmasher_teleport(CFrame.new(mouse.Hit.p) + Vector3.new(0,5,0))
  67. end
  68. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement