Advertisement
Guest User

Fling Things and People [SUPER STRENGTH] (Mobile)

a guest
Aug 9th, 2022
8,763
3
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.27 KB | None | 3 0
  1. local bodyvel_Name = "FlingVelocity"
  2. local userinputs = game:GetService("UserInputService")
  3. local w = game:GetService("Workspace")
  4. local r = game:GetService("RunService")
  5. local d = game:GetService("Debris")
  6. local strength = 850
  7. local fling = true
  8.  
  9. local ScreenGui = Instance.new("ScreenGui")
  10. local SuperFling = Instance.new("TextButton")
  11.  
  12.  
  13. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. SuperFling.Name = "SuperFling"
  17. SuperFling.Parent = ScreenGui
  18. SuperFling.BackgroundColor3 = Color3.fromRGB(18, 255, 6)
  19. SuperFling.BorderColor3 = Color3.fromRGB(0, 0, 0)
  20. SuperFling.BorderSizePixel = 2
  21. SuperFling.Position = UDim2.new(0.918388188, 0, 0.529877484, 0)
  22. SuperFling.Size = UDim2.new(0.0603257343, 0, 0.085752748, 0)
  23. SuperFling.Font = Enum.Font.SciFi
  24. SuperFling.Text = "Super Fling: ON!"
  25. SuperFling.TextColor3 = Color3.fromRGB(0, 0, 0)
  26. SuperFling.TextSize = 7
  27. SuperFling.TextStrokeColor3 = Color3.fromRGB(18, 255, 6)
  28. SuperFling.TextStrokeTransparency = 0.000
  29. SuperFling.TextWrapped = true
  30.  
  31. SuperFling.MouseButton1Up:Connect(function()
  32.     if fling then
  33.         fling = false
  34.         SuperFling.Text = "Super Fling: OFF!"
  35.         SuperFling.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  36.         SuperFling.TextStrokeColor3 = Color3.fromRGB(255, 0, 0)
  37.     else
  38.         fling = true
  39.         SuperFling.Text = "Super Fling: ON!"
  40.         SuperFling.BackgroundColor3 = Color3.fromRGB(18, 255, 6)
  41.         SuperFling.TextStrokeColor3 = Color3.fromRGB(18, 255, 6)
  42.     end
  43. end)
  44.  
  45. w.ChildAdded:Connect(function(model)
  46.     if model.Name == "GrabParts" then
  47.         local part_to_impulse = model["GrabPart"]["WeldConstraint"].Part1
  48.  
  49.         if part_to_impulse then
  50.             print("Part found!")
  51.  
  52.             local inputObj
  53.             local velocityObj = Instance.new("BodyVelocity", part_to_impulse)
  54.            
  55.             model:GetPropertyChangedSignal("Parent"):Connect(function()
  56.                 if not model.Parent then
  57.                     if fling then
  58.                         print("Launched!")
  59.                         velocityObj.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  60.                         velocityObj.Velocity = workspace.CurrentCamera.CFrame.lookVector * strength
  61.                         d:AddItem(velocityObj, 1)
  62.                     else
  63.                         velocityObj.MaxForce = Vector3.new(0,0,0)
  64.                         d:AddItem(velocityObj, 1)
  65.                         print("Cancel Launch!")
  66.                     end
  67.                 end
  68.             end)
  69.         end
  70.     end
  71. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement