Advertisement
Jake123456781

Fling things and people anti grab and super strength working

Jul 1st, 2023 (edited)
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. -- this script loads when u execute it in to your executer I put nameless admin into this script aswell for fun"
  2. local userinputs = game:GetService("UserInputService")
  3. local action = game:GetService("ContextActionService")
  4. local w = game:GetService("Workspace")
  5. local r = game:GetService("RunService")
  6. local d = game:GetService("Debris")
  7. local strength = 420
  8.  
  9. w.ChildAdded:Connect(function(model)
  10. if model.Name == "GrabParts" then
  11. local part_to_impulse = model["GrabPart"]["WeldConstraint"].Part1
  12.  
  13. if part_to_impulse then
  14. print("Part found!")
  15.  
  16. local inputObj
  17. local velocityObj = Instance.new("BodyVelocity", part_to_impulse)
  18. local c1, c2, c3
  19.  
  20. velocityObj.MaxForce = Vector3.new(0,0,0)
  21.  
  22. while inputObj == nil and model.Parent do
  23. for _, button in pairs(game.Players.LocalPlayer.PlayerGui["ContextActionGui"]:GetDescendants()) do
  24. if button:IsA("ImageLabel") then
  25. if button.Image == "http://www.roblox.com/asset/?id=9603678090" then
  26. inputObj = button.Parent
  27. print(inputObj)
  28. end
  29. end
  30. end
  31.  
  32. r.Heartbeat:Wait()
  33. end
  34.  
  35. if inputObj then
  36. c1 = inputObj.MouseButton1Up:Connect(function()
  37. print("Launched!")
  38. velocityObj.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  39. velocityObj.Velocity = workspace.CurrentCamera.CFrame.lookVector * strength
  40. end)
  41.  
  42. c2 = inputObj.MouseButton1Down:Connect(function()
  43. print("Launched!")
  44. velocityObj.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  45. velocityObj.Velocity = workspace.CurrentCamera.CFrame.lookVector * strength
  46. end)
  47. end
  48.  
  49.  
  50. c3 = model:GetPropertyChangedSignal("Parent"):Connect(function()
  51. if not model.Parent then
  52. c3:Disconnect()
  53. d:AddItem(velocityObj, 1)
  54.  
  55. if c1 then
  56. c1:Disconnect()
  57. if c2 then
  58. c2:Disconnect()
  59. end
  60. end
  61. end
  62. end)
  63. end
  64. end
  65. end)
  66. local PS = game:GetService("Players")
  67. local Player = PS.LocalPlayer
  68. local Character = Player.Character or Player.CharacterAdded:Wait()
  69. local RS = game:GetService("ReplicatedStorage")
  70. local CE = RS:WaitForChild("CharacterEvents")
  71. local R = game:GetService("RunService")
  72. local BeingHeld = Player:WaitForChild("IsHeld")
  73. local PlayerScripts = Player:WaitForChild("PlayerScripts")
  74.  
  75. --[[ Remotes ]]
  76. local StruggleEvent = CE:WaitForChild("Struggle")
  77.  
  78. --[[ Anti-Explosion ]]
  79. workspace.DescendantAdded:Connect(function(v)
  80. if v:IsA("Explosion") then
  81. v.BlastPressure = 0
  82. end
  83. end)
  84.  
  85. --[[ Anti-grab ]]
  86.  
  87. BeingHeld.Changed:Connect(function(C)
  88. if C == true then
  89. local char = Player.Character
  90.  
  91. if BeingHeld.Value == true then
  92. local Event;
  93. Event = R.RenderStepped:Connect(function()
  94. if BeingHeld.Value == true then
  95. char["HumanoidRootPart"].AssemblyLinearVelocity = Vector3.new()
  96. StruggleEvent:FireServer(Player)
  97. elseif BeingHeld.Value == false then
  98. Event:Disconnect()
  99. end
  100. end)
  101. end
  102. end
  103. end)
  104.  
  105. Player.CharacterAdded:Connect(function(char)
  106. char:FindFirstChildOfClass("Humanoid").Changed:Connect(function(C)
  107. if C == "Sit" and Humanoid.Sit == true then
  108. if Humanoid.SeatPart ~= nil and tostring(Humanoid.SeatPart.Parent) == "CreatureBlobman" then
  109. elseif Humanoid.SeatPart == nil then
  110. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
  111. Humanoid.Sit = false
  112. end
  113. end
  114. end)
  115. end)
  116.  
  117. loadstring(game:HttpGet("https://raw.githubusercontent.com/FilteringEnabled/NamelessAdmin/main/Source"))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement