Jenky

roblox fling things and people super strength

Sep 1st, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. --[[ Settings ]]
  2. local DefaultReachLimit = 33
  3. local IncreasedReachDistance = 100
  4. local PowerTable = {
  5. ["BombMissile"] = 1200,
  6. ["Others"] = 600,
  7. ["Players"] = 1600,
  8. }
  9.  
  10. --[[ Variables ]]
  11. local PS = game:GetService("Players")
  12. local Player = PS.LocalPlayer
  13. local Character = Player.Character or Player.CharacterAdded:Wait()
  14. local RS = game:GetService("ReplicatedStorage")
  15. local CE = RS:WaitForChild("CharacterEvents")
  16. local BeingHeld = Player:WaitForChild("IsHeld")
  17. local PlayerScripts = Player:WaitForChild("PlayerScripts")
  18.  
  19. --[[ Remotes ]]
  20. local StruggleEvent = CE:WaitForChild("Struggle")
  21.  
  22. --[[ Anti-Explosion ]]
  23. workspace.DescendantAdded:Connect(function(v)
  24. if v:IsA("Explosion") then
  25. v.BlastPressure = 0
  26. end
  27. end)
  28.  
  29. --[[ Anti-grab ]]
  30. local RS = game:GetService("RunService")
  31. BeingHeld.Changed:Connect(function(C)
  32. if C == true then
  33. if BeingHeld.Value == true then
  34. local Event;
  35. Event = RS.RenderStepped:Connect(function()
  36. if BeingHeld.Value == true then
  37. StruggleEvent:FireServer(Player)
  38. elseif BeingHeld.Value == false then
  39. Event:Disconnect()
  40. end
  41. end)
  42. end
  43. end
  44. end)
  45.  
  46. local Counter = 0
  47. function DoubleCounter(Passed)
  48. if Passed == "Add" then
  49. Counter = Counter + 1
  50. elseif Passed == "Check" then
  51. return Counter
  52. elseif Passed == "Reset" then
  53. Counter = 0
  54. end
  55. end
  56.  
  57. function Reconnect()
  58. --[[ Local variables ]]
  59. local Character = Player.Character or Player.CharacterAdded:Wait()
  60. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid") or Character:WaitForChild("Humanoid")
  61. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  62. local GS = Character:WaitForChild("GrabbingScript")
  63.  
  64. HumanoidRootPart:WaitForChild("FirePlayerPart"):Remove()
  65.  
  66. local Held = Player:WaitForChild("IsHeld")
  67. local Connections = getconnections(Held.Changed)
  68. for i,v in pairs (Connections) do
  69. if v.Function then
  70. local Script = getfenv(v.Function).script
  71. if Script == Character:WaitForChild("HumanoidStateTypeByGettingFlung") then
  72. v:Disable()
  73. end
  74. end
  75. end
  76.  
  77. Humanoid.Changed:Connect(function(C)
  78. if C == "Sit" and Humanoid.Sit == true then
  79. if Humanoid.SeatPart ~= nil and tostring(Humanoid.SeatPart.Parent) == "CreatureBlobman" then
  80. elseif Humanoid.SeatPart == nil then
  81. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
  82. Humanoid.Sit = false
  83. end
  84. end
  85. end)
  86.  
  87. repeat wait()
  88. for Num,Func in pairs(debug.getregistry()) do
  89. if type(Func) == "function" and not is_synapse_function(Func) and islclosure(Func) then
  90. local Values = debug.getupvalues(Func)
  91. local Constants = getconstants(Func)
  92.  
  93. for a,b in pairs(Values) do
  94. --[[ Reach ]]
  95. if type(b) == "number" and b == 20 then
  96. debug.setupvalue(Func, a, DefaultReachLimit)
  97. DoubleCounter("Add")
  98. end
  99. end
  100.  
  101. if table.find(Constants, "make") and debug.getinfo(Func).name == "grab" then
  102. for a,b in pairs (Constants) do
  103. --[[ Makes it so even when you die you can still fling others ]]
  104. if b == "Health" then
  105. setconstant(Func, a, "JumpPower")
  106. DoubleCounter("Add")
  107. end
  108. end
  109. end
  110.  
  111. end
  112. end
  113. until DoubleCounter("Check") == 2
  114. DoubleCounter("Reset")
  115.  
  116. end
  117.  
  118. Player.CharacterAdded:Connect(function()
  119. Reconnect()
  120. end)
  121. Reconnect()
  122.  
  123. function ChangeThrow(Number)
  124. --[[ Variables ]]
  125. Character = Player.Character or Player.CharacterAdded:Wait()
  126. local GS = Character:WaitForChild("GrabbingScript")
  127.  
  128. for i,v in pairs(getreg()) do
  129. if type(v) == "function" then
  130. local Script = getfenv(v).script
  131. if Script == GS and tostring(debug.getinfo(v).name) == "throw" then
  132. local Debug = debug.getconstants(v)
  133. for cn,cv in pairs (Debug) do
  134. if cn == 22 then
  135. debug.setconstant(v, cn, Number)
  136. end
  137. if cn == 24 then
  138. debug.setconstant(v, cn, Number)
  139. end
  140. end
  141. end
  142. end
  143. end
  144. end
  145.  
  146. function InstanceCheck(Instance)
  147. local NotInPlayer = false
  148. for _,v in pairs (PS:GetPlayers()) do
  149. if v.Character then
  150. if v.Character:FindFirstChild(Instance.Name) then
  151. NotInPlayer = true
  152. break
  153. end
  154. end
  155. end
  156. return NotInPlayer
  157. end
  158.  
  159. function Reach(Number)
  160. for Num,Func in pairs(getreg()) do
  161. if type(Func) == "function" and islclosure(Func) and not is_synapse_function(Func) then
  162. local Constants = getconstants(Func)
  163. local Values = getupvalues(Func)
  164. if table.find(Constants, "make") and debug.getinfo(Func).name == "grab" then
  165. for c,d in pairs (Values) do
  166. if c == 17 then
  167. setupvalue(Func,c, Number)
  168. end
  169. end
  170. break
  171. end
  172. end
  173. end
  174. end
  175.  
  176. local OldNameCall;
  177. OldNameCall = hookmetamethod(game, "__namecall", function(...)
  178. local NameCallMethod = getnamecallmethod()
  179. local Args = {...}
  180. local Self = Args[1]
  181.  
  182. if not checkcaller() and NameCallMethod == "FireServer" and tostring(Self.Name) == "Beam" then
  183. if tostring(Args[2]) == "make" then
  184. Reach(IncreasedReachDistance)
  185. local Instance = Args[3]
  186.  
  187. if InstanceCheck(Instance) == false then
  188. if PowerTable[Instance.Parent.Name] then
  189. local Power = PowerTable[Instance.Parent.Name]
  190. ChangeThrow(Power)
  191. elseif PowerTable[Instance.Parent.Name] == nil then
  192. local OtherPower = PowerTable["Others"]
  193. ChangeThrow(OtherPower)
  194. end
  195. end
  196.  
  197. if InstanceCheck(Instance) == true then
  198. local PlayerPower = PowerTable["Players"]
  199. ChangeThrow(PlayerPower)
  200. end
  201.  
  202. return;
  203. elseif tostring(Args[2]) == "destroy" then
  204. Reach(DefaultReachLimit)
  205. end
  206. return OldNameCall(...)
  207. end
  208.  
  209. return OldNameCall(...)
  210. end)
Add Comment
Please, Sign In to add comment