DarkHorse89

Worms 2048 Roblox Script

Sep 17th, 2023 (edited)
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.82 KB | None | 0 0
  1. getgenv().autoBoxesCollect = false;
  2.  
  3. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Robojini/Tuturial_UI_Library/main/UI_Template_1"))()
  4.  
  5. local window = library.CreateLib("JUICEFW Worms 2048. PlaceID: "..game.PlaceId, "RJTheme3") -- Creates the window
  6.  
  7. local MainTab = window:NewTab("Main Tab")
  8. local main_menu = MainTab:NewSection("Main")
  9. local main_teleport_menu = MainTab:NewSection("Teleport")
  10. local main_scripts = MainTab:NewSection("Scripts")
  11.  
  12. local GameTab = window:NewTab("Game Tab")
  13. local game_menu = GameTab:NewSection("Main")
  14.  
  15. game_menu:NewToggle("Auto Boxes Collect", "Auto Boxes Collect", function(bool)
  16. getgenv().autoBoxesCollect = bool
  17. end)
  18.  
  19. task.spawn(function ()
  20. while true do
  21. wait()
  22. if getgenv().autoBoxesCollect then
  23. for _, item in pairs(game.Workspace.CubeFolder:GetDescendants()) do
  24. wait()
  25. if not getgenv().autoBoxesCollect then
  26. break
  27. end
  28.  
  29. if item:IsA("MeshPart") then
  30. if game.Players.LocalPlayer.Character then
  31. game.Players.LocalPlayer:WaitForChild("Character")
  32. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = item.CFrame
  33. end
  34. end
  35. end
  36. end
  37. end
  38. end)
  39.  
  40. main_menu:NewSlider("Player speed", "Change player`s speed", 500, 0, function (s)
  41. game.Players.LocalPlayer.Humanoid.WalkSpeed = s
  42. end)
  43. main_menu:NewSlider("Player Jump Power", "Change player`s Jump Power", 500, 0, function (s)
  44. game.Players.LocalPlayer.Humanoid.JumpPower = s
  45. end)
  46.  
  47. speeds = 1
  48.  
  49. local speaker = game:GetService("Players").LocalPlayer
  50.  
  51. local chr = game.Players.LocalPlayer.Character
  52. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  53.  
  54. nowe = false
  55.  
  56. main_menu:NewButton("Toggle Fly", "Toggle Flying", function()
  57. if nowe == true then
  58. nowe = false
  59.  
  60. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  61. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  62. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  63. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  64. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  65. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  66. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  67. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  68. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  69. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  70. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  71. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  72. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  73. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  74. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  75. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  76. else
  77. nowe = true
  78.  
  79. for i = 1, speeds do
  80. spawn(function()
  81.  
  82. local hb = game:GetService("RunService").Heartbeat
  83.  
  84.  
  85. tpwalking = true
  86. local chr = game.Players.LocalPlayer.Character
  87. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  88. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  89. if hum.MoveDirection.Magnitude > 0 then
  90. chr:TranslateBy(hum.MoveDirection)
  91. end
  92. end
  93.  
  94. end)
  95. end
  96. game.Players.LocalPlayer.Character.Animate.Disabled = true
  97. local Char = game.Players.LocalPlayer.Character
  98. local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  99.  
  100. for i,v in next, Hum:GetPlayingAnimationTracks() do
  101. v:AdjustSpeed(0)
  102. end
  103. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  104. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  105. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  106. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  107. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  108. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  109. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  110. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  111. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  112. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  113. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  114. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  115. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  116. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  117. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  118. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  119. end
  120.  
  121. if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  122. local plr = game.Players.LocalPlayer
  123. local torso = plr.Character.Torso
  124. local flying = true
  125. local deb = true
  126. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  127. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  128. local maxspeed = 50
  129. local speed = 0
  130. local bg = Instance.new("BodyGyro", torso)
  131. bg.P = 9e4
  132. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  133. bg.cframe = torso.CFrame
  134. local bv = Instance.new("BodyVelocity", torso)
  135. bv.velocity = Vector3.new(0,0.1,0)
  136. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  137. if nowe == true then
  138. plr.Character.Humanoid.PlatformStand = true
  139. end
  140. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  141. game:GetService("RunService").RenderStepped:Wait()
  142.  
  143. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  144. speed = speed+.5+(speed/maxspeed)
  145. if speed > maxspeed then
  146. speed = maxspeed
  147. end
  148. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  149. speed = speed-1
  150. if speed < 0 then
  151. speed = 0
  152. end
  153. end
  154. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  155. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  156. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  157. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  158. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  159. else
  160. bv.velocity = Vector3.new(0,0,0)
  161. end
  162. -- game.Players.LocalPlayer.Character.Animate.Disabled = true
  163. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  164. end
  165. ctrl = {f = 0, b = 0, l = 0, r = 0}
  166. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  167. speed = 0
  168. bg:Destroy()
  169. bv:Destroy()
  170. plr.Character.Humanoid.PlatformStand = false
  171. game.Players.LocalPlayer.Character.Animate.Disabled = false
  172. tpwalking = false
  173. else
  174. local plr = game.Players.LocalPlayer
  175. local UpperTorso = plr.Character.UpperTorso
  176. local flying = true
  177. local deb = true
  178. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  179. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  180. local maxspeed = 50
  181. local speed = 0
  182.  
  183.  
  184. local bg = Instance.new("BodyGyro", UpperTorso)
  185. bg.P = 9e4
  186. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  187. bg.cframe = UpperTorso.CFrame
  188. local bv = Instance.new("BodyVelocity", UpperTorso)
  189. bv.velocity = Vector3.new(0,0.1,0)
  190. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  191. if nowe == true then
  192. plr.Character.Humanoid.PlatformStand = true
  193. end
  194. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  195. wait()
  196.  
  197. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  198. speed = speed+.5+(speed/maxspeed)
  199. if speed > maxspeed then
  200. speed = maxspeed
  201. end
  202. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  203. speed = speed-1
  204. if speed < 0 then
  205. speed = 0
  206. end
  207. end
  208. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  209. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  210. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  211. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  212. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  213. else
  214. bv.velocity = Vector3.new(0,0,0)
  215. end
  216.  
  217. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  218. end
  219. ctrl = {f = 0, b = 0, l = 0, r = 0}
  220. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  221. speed = 0
  222. bg:Destroy()
  223. bv:Destroy()
  224. plr.Character.Humanoid.PlatformStand = false
  225. game.Players.LocalPlayer.Character.Animate.Disabled = false
  226. tpwalking = false
  227. end
  228. end)
  229.  
  230. main_menu:NewSlider("Flying speed", "Change player`s flying speed", 100, 1, function (s)
  231. speeds = s
  232. if nowe == true then
  233. tpwalking = false
  234. for i = 1, speeds do
  235. spawn(function()
  236. local hb = game:GetService("RunService").Heartbeat
  237.  
  238. tpwalking = true
  239. local chr = game.Players.LocalPlayer.Character
  240. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  241. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  242. if hum.MoveDirection.Magnitude > 0 then
  243. chr:TranslateBy(hum.MoveDirection)
  244. end
  245. end
  246. end)
  247. end
  248. end
  249. end)
  250.  
  251. main_teleport_menu:NewButton("Teleport 10 studs forward", "Teleports player 10 studs forward", function()
  252. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 0, -10)
  253. end)
  254.  
  255. main_teleport_menu:NewButton("Teleport 10 studs up", "Teleports player 10 studs up", function()
  256. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 10, 0)
  257. end)
  258.  
  259. main_teleport_menu:NewButton("Teleport 10 studs down", "Teleports player 10 studs down", function()
  260. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, -10, 0)
  261. end)
  262.  
  263. main_teleport_menu:NewButton("Teleport 20 studs forward", "Teleports player 20 studs forward", function()
  264. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 0, -20)
  265. end)
  266.  
  267. main_teleport_menu:NewButton("Teleport 20 studs up", "Teleports player 20 studs up", function()
  268. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 20, 0)
  269. end)
  270.  
  271. main_teleport_menu:NewButton("Teleport 20 studs down", "Teleports player 20 studs down", function()
  272. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, -20, 0)
  273. end)
  274.  
  275. main_teleport_menu:NewButton("Teleport 10 studs up and forward", "Teleports player 10 studs up and forward", function()
  276. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 10, -10)
  277. end)
  278.  
  279. main_teleport_menu:NewButton("Teleport 20 studs up and forward", "Teleports player 20 studs up and forward", function()
  280. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 20, -20)
  281. end)
  282.  
  283. main_scripts:NewButton("Coordinates Grabber", "Execute Coordinates Grabber Gui", function()
  284. spawn(function ()
  285. loadstring(game:HttpGet("https://pastebin.com/raw/M4TtucPi", true))()
  286. end)
  287. end)
  288.  
  289. main_scripts:NewButton("Dark Dex Stable", "Execute Dark Dex Stable", function()
  290. spawn(function ()
  291. loadstring(game:HttpGet("https://raw.githubusercontent.com/loglizzy/dex-custom-icons/main/main.lua"))()
  292. end)
  293. end)
  294.  
  295. main_scripts:NewButton("Simple Spy", "Execute Simply Spy", function()
  296. spawn(function ()
  297. loadstring(game:HttpGet("https://pastebin.com/raw/rqgZVWGw"))()
  298. end)
  299. end)
  300.  
  301. main_scripts:NewButton("BTools", "Execute BTools", function()
  302. spawn(function ()
  303. loadstring(game:HttpGet("https://pastebin.com/raw/JpEmyNa0"))()
  304. end)
  305. end)
  306.  
  307. function createFlex()
  308. players = game:GetService("Players")
  309. faces = {"Front","Back","Bottom","Left","Right","Top"}
  310. currentPlayer = nil
  311. lplayer = players.LocalPlayer
  312.  
  313. players.PlayerAdded:Connect(function(p)
  314. currentPlayer = p
  315. p.CharacterAdded:Connect(function(character)
  316. createESP(character)
  317. end)
  318. end)
  319.  
  320. function checkPart(obj) if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Name~="HumanoidRootPart" then return true end end
  321.  
  322. function actualESP(obj)
  323. for i=0,5 do
  324. surface = Instance.new("SurfaceGui",obj)
  325. surface.Face = Enum.NormalId[faces[i+1]]
  326. surface.AlwaysOnTop = true
  327. frame = Instance.new("Frame",surface)
  328. frame.Size = UDim2.new(1,0,1,0)
  329. frame.BorderSizePixel = 0
  330. frame.BackgroundTransparency = TRANSPARENCY
  331. if currentPlayer.Team == players.LocalPlayer.Team then
  332. frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1],ALLYCOLOR[2],ALLYCOLOR[3])
  333. else
  334. frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3])
  335. end
  336. end
  337. end
  338.  
  339. function createHealthbar(hrp)
  340. board =Instance.new("BillboardGui",hrp)
  341. board.Name = "total"
  342. board.Size = UDim2.new(1,0,1,0)
  343. board.StudsOffset = Vector3.new(3,1,0)
  344. board.AlwaysOnTop = true
  345.  
  346. bar = Instance.new("Frame",board)
  347. bar.BackgroundColor3 = Color3.new(255,0,0)
  348. bar.BorderSizePixel = 0
  349. bar.Size = UDim2.new(0.2,0,4,0)
  350. bar.Name = "total2"
  351.  
  352. health = Instance.new("Frame",bar)
  353. health.BackgroundColor3 = Color3.new(0,255,0)
  354. health.BorderSizePixel = 0
  355. health.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  356. hrp.Parent.Humanoid.Changed:Connect(function(property)
  357. hrp.total.total2.Frame.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  358. end)
  359. end
  360.  
  361. function createESP(c)
  362. bugfix = c:WaitForChild("Head")
  363. for i,v in pairs(c:GetChildren()) do
  364. if checkPart(v) then
  365. actualESP(v)
  366. end
  367. end
  368. if HEALTHBAR_ACTIVATED then
  369. createHealthbar(c:WaitForChild("HumanoidRootPart"))
  370. end
  371. end
  372.  
  373. for i,people in pairs(players:GetChildren()) do
  374. if people ~= players.LocalPlayer then
  375. currentPlayer = people
  376. createESP(people.Character)
  377. people.CharacterAdded:Connect(function(character)
  378. createESP(character)
  379. end)
  380. end
  381. end
  382. end
Advertisement
Add Comment
Please, Sign In to add comment