Advertisement
el_pepe_meh_pepe_YT

fling things and people script (SUPER STRENGTH

Dec 15th, 2022
12,412
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. --STRENGTH RECCOMENDED TO BE AT 400
  2.  
  3.  
  4. local bodyvel_Name = "FlingVelocity"
  5. local userinputs = game:GetService("UserInputService")
  6. local w = game:GetService("Workspace")
  7. local r = game:GetService("RunService")
  8. local d = game:GetService("Debris")
  9. local strength = 400
  10. w.ChildAdded:Connect(function(model)
  11. if model.Name == "GrabParts" then
  12. local part_to_impulse = model["GrabPart"]["WeldConstraint"].Part1
  13.  
  14. if part_to_impulse then
  15. print("Part found!")
  16.  
  17. local inputObj
  18. local velocityObj = Instance.new("BodyVelocity", part_to_impulse)
  19.  
  20. model:GetPropertyChangedSignal("Parent"):Connect(function()
  21. if not model.Parent then
  22. if userinputs:GetLastInputType() == Enum.UserInputType.MouseButton2 then
  23. print("Launched!")
  24. velocityObj.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  25. velocityObj.Velocity = workspace.CurrentCamera.CFrame.lookVector * strength
  26. d:AddItem(velocityObj, 1)
  27. elseif userinputs:GetLastInputType() == Enum.UserInputType.MouseButton1 then
  28. velocityObj:Destroy()
  29. print("Cancel Launch!")
  30. else
  31. velocityObj:Destroy()
  32. print("No two keys pressed!")
  33. end
  34. end
  35. end)
  36. end
  37. end
  38. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement