2AreYouMental110

otherscript1

Aug 5th, 2022
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.03 KB | None | 0 0
  1. -- https://pastebin.com/raw/KKVPEXBN
  2.  
  3.  
  4.  
  5. -- Gui to Lua
  6. -- Version: 3.2
  7.  
  8. -- Instances:
  9.  
  10. local CC = Instance.new("ScreenGui")
  11. local Main = Instance.new("Frame")
  12. local TextLabel = Instance.new("TextLabel")
  13. local Warhammer = Instance.new("TextButton")
  14. local InfJump = Instance.new("TextButton")
  15. local Noclip = Instance.new("TextButton")
  16. local ObsidianArmor = Instance.new("TextButton")
  17. local Fly = Instance.new("TextButton")
  18. local Speed = Instance.new("TextButton")
  19.  
  20. --Properties:
  21.  
  22. CC.Name = "CC"
  23. CC.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  24. CC.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  25.  
  26. Main.Name = "Main"
  27. Main.Parent = CC
  28. Main.BackgroundColor3 = Color3.fromRGB(0, 63, 14)
  29. Main.Position = UDim2.new(0.589302778, 0, 0.560675859, 0)
  30. Main.Size = UDim2.new(0, 430, 0, 304)
  31. Main.Draggable = true
  32. Main.Active = true
  33.  
  34. TextLabel.Parent = Main
  35. TextLabel.BackgroundColor3 = Color3.fromRGB(89, 255, 0)
  36. TextLabel.BorderColor3 = Color3.fromRGB(130, 203, 255)
  37. TextLabel.Size = UDim2.new(0, 429, 0, 50)
  38. TextLabel.Font = Enum.Font.SciFi
  39. TextLabel.Text = "Crapper Chaos"
  40. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  41. TextLabel.TextSize = 14.000
  42.  
  43. Warhammer.Name = "Warhammer"
  44. Warhammer.Parent = Main
  45. Warhammer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  46. Warhammer.Position = UDim2.new(0, 0, 0.453947365, 0)
  47. Warhammer.Size = UDim2.new(0, 188, 0, 50)
  48. Warhammer.Font = Enum.Font.SciFi
  49. Warhammer.Text = "Buy Warhammer (750 GP)"
  50. Warhammer.TextColor3 = Color3.fromRGB(0, 0, 0)
  51. Warhammer.TextSize = 14.000
  52. Warhammer.MouseButton1Down:Connect(function()
  53.     local args = {
  54.         [1] = "Warhammer",
  55.         [2] = true,
  56.     }
  57.  
  58.     game:GetService("ReplicatedStorage").Remotes.EquipWeapon:InvokeServer(unpack(args))
  59. end)
  60.  
  61. InfJump.Name = "InfJump"
  62. InfJump.Parent = Main
  63. InfJump.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64. InfJump.Position = UDim2.new(-0.000874506019, 0, 0.230263159, 0)
  65. InfJump.Size = UDim2.new(0, 188, 0, 50)
  66. InfJump.Font = Enum.Font.SciFi
  67. InfJump.Text = "Infinite Jump"
  68. InfJump.TextColor3 = Color3.fromRGB(0, 0, 0)
  69. InfJump.TextSize = 14.000
  70. InfJump.MouseButton1Down:Connect(function()
  71.  
  72.     local Player = game:GetService'Players'.LocalPlayer;
  73.     local UIS = game:GetService'UserInputService';
  74.  
  75.     _G.JumpHeight = 50;
  76.  
  77.     function Action(Object, Function) if Object ~= nil then Function(Object); end end
  78.     UIS.InputBegan:connect(function(UserInput)
  79.         if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
  80.             Action(Player.Character.Humanoid, function(self)
  81.                 if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
  82.                     Action(self.Parent.HumanoidRootPart, function(self)
  83.                         self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
  84.                     end)
  85.                 end
  86.             end)
  87.         end
  88.     end)
  89. end)
  90.  
  91. Noclip.Name = "Noclip"
  92. Noclip.Parent = Main
  93. Noclip.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. Noclip.Position = UDim2.new(-0.000874506019, 0, 0.703947365, 0)
  95. Noclip.Size = UDim2.new(0, 188, 0, 50)
  96. Noclip.Font = Enum.Font.SciFi
  97. Noclip.Text = "Noclip OP"
  98. Noclip.TextColor3 = Color3.fromRGB(0, 0, 0)
  99. Noclip.TextSize = 14.000
  100. Noclip.MouseButton1Down:Connect(function()
  101.     wait()
  102.     ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  103.     -- @CloneTrooper1019, 2015
  104.     ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  105.  
  106.     local Tool = Instance.new("HopperBin")
  107.     Tool.Parent = game.Players.LocalPlayer.Backpack
  108.     Tool.Name = "NoClip"
  109.  
  110.     wait(1)
  111.     local c = workspace.CurrentCamera
  112.     local player = game.Players.LocalPlayer
  113.     local userInput = game:GetService("UserInputService")
  114.     local rs = game:GetService("RunService")
  115.     local starterPlayer = game:GetService("StarterPlayer")
  116.  
  117.     local selected = false
  118.     local speed = 60
  119.     local lastUpdate = 0
  120.  
  121.     function getNextMovement(deltaTime)
  122.         local nextMove = Vector3.new()
  123.         -- Left/Right
  124.         if userInput:IsKeyDown("A") or userInput:IsKeyDown("Left") then
  125.             nextMove = Vector3.new(-1,0,0)
  126.         elseif userInput:IsKeyDown("D") or userInput:IsKeyDown("Right") then
  127.             nextMove = Vector3.new(1,0,0)
  128.         end
  129.         -- Forward/Back
  130.         if userInput:IsKeyDown("W") or userInput:IsKeyDown("Up") then
  131.             nextMove = nextMove + Vector3.new(0,0,-1)
  132.         elseif userInput:IsKeyDown("S") or userInput:IsKeyDown("Down") then
  133.             nextMove = nextMove + Vector3.new(0,0,1)
  134.         end
  135.         -- Up/Down
  136.         if userInput:IsKeyDown("Space") then
  137.             nextMove = nextMove + Vector3.new(0,1,0)
  138.         elseif userInput:IsKeyDown("LeftControl") then
  139.             nextMove = nextMove + Vector3.new(0,-1,0)
  140.         end
  141.         return CFrame.new( nextMove * (speed * deltaTime) )
  142.     end
  143.  
  144.     game.Players.LocalPlayer.Backpack.NoClip.Selected:connect()
  145.     local char = player.Character
  146.     if char then
  147.         local humanoid = char:WaitForChild("Humanoid")
  148.         local root = char:WaitForChild("HumanoidRootPart")
  149.         currentPos = root.Position
  150.         selected = true
  151.         root.Anchored = true
  152.         lastUpdate = tick()
  153.         humanoid.PlatformStand = true
  154.         while selected do
  155.             wait()
  156.             local delta = tick()-lastUpdate
  157.             local look = (c.Focus.p-c.CoordinateFrame.p).unit
  158.             local move = getNextMovement(delta)
  159.             local pos = root.Position
  160.             root.CFrame = CFrame.new(pos,pos+look) * move
  161.             lastUpdate = tick()
  162.         end
  163.         root.Anchored = false
  164.         root.Velocity = Vector3.new()
  165.         humanoid.PlatformStand = false
  166.     end
  167.  
  168.     game.Players.LocalPlayer.Backpack.NoClip.Deselected:connect()
  169.     selected = false
  170. end)
  171.  
  172. ObsidianArmor.Name = "ObsidianArmor"
  173. ObsidianArmor.Parent = Main
  174. ObsidianArmor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  175. ObsidianArmor.Position = UDim2.new(0.579069793, 0, 0.453947365, 0)
  176. ObsidianArmor.Size = UDim2.new(0, 179, 0, 50)
  177. ObsidianArmor.Font = Enum.Font.SciFi
  178. ObsidianArmor.Text = "Buy Obsidian Armor (650 GP)"
  179. ObsidianArmor.TextColor3 = Color3.fromRGB(0, 0, 0)
  180. ObsidianArmor.TextSize = 14.000
  181. ObsidianArmor.MouseButton1Down:Connect(function()
  182.     local args = {
  183.         [1] = "Leather Armor",
  184.         [2] = true,
  185.     }
  186.  
  187.     game:GetService("ReplicatedStorage").Remotes.BuyArmor:InvokeServer(unpack(args))
  188. end)
  189.  
  190. Fly.Name = "Fly"
  191. Fly.Parent = Main
  192. Fly.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  193. Fly.Position = UDim2.new(0.579069793, 0, 0.230263159, 0)
  194. Fly.Size = UDim2.new(0, 181, 0, 50)
  195. Fly.Font = Enum.Font.SciFi
  196. Fly.Text = "Fly"
  197. Fly.TextColor3 = Color3.fromRGB(0, 0, 0)
  198. Fly.TextSize = 14.000
  199. Fly.MouseButton1Down:Connect(function()
  200.     repeat wait()
  201.     until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  202.     local mouse = game.Players.LocalPlayer:GetMouse()
  203.     repeat wait() until mouse
  204.     local plr = game.Players.LocalPlayer
  205.     local torso = plr.Character.Torso
  206.     local flying = true
  207.     local deb = true
  208.     local ctrl = {f = 0, b = 0, l = 0, r = 0}
  209.     local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  210.     local maxspeed = 50
  211.     local speed = 0
  212.  
  213.     function Fly()
  214.         local bg = Instance.new("BodyGyro", torso)
  215.         bg.P = 9e4
  216.         bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  217.         bg.cframe = torso.CFrame
  218.         local bv = Instance.new("BodyVelocity", torso)
  219.         bv.velocity = Vector3.new(0,0.1,0)
  220.         bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  221.         repeat wait()
  222.             plr.Character.Humanoid.PlatformStand = true
  223.             if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  224.                 speed = speed+.5+(speed/maxspeed)
  225.                 if speed > maxspeed then
  226.                     speed = maxspeed
  227.                 end
  228.             elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  229.                 speed = speed-1
  230.                 if speed < 0 then
  231.                     speed = 0
  232.                 end
  233.             end
  234.             if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  235.                 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
  236.                 lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  237.             elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  238.                 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
  239.             else
  240.                 bv.velocity = Vector3.new(0,0.1,0)
  241.             end
  242.             bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  243.         until not flying
  244.         ctrl = {f = 0, b = 0, l = 0, r = 0}
  245.         lastctrl = {f = 0, b = 0, l = 0, r = 0}
  246.         speed = 0
  247.         bg:Destroy()
  248.         bv:Destroy()
  249.         plr.Character.Humanoid.PlatformStand = false
  250.     end
  251.     mouse.KeyDown:connect(function(key)
  252.         if key:lower() == "e" then
  253.             if flying then flying = false
  254.             else
  255.                 flying = true
  256.                 Fly()
  257.             end
  258.         elseif key:lower() == "w" then
  259.             ctrl.f = 1
  260.         elseif key:lower() == "s" then
  261.             ctrl.b = -1
  262.         elseif key:lower() == "a" then
  263.             ctrl.l = -1
  264.         elseif key:lower() == "d" then
  265.             ctrl.r = 1
  266.         end
  267.     end)
  268.     mouse.KeyUp:connect(function(key)
  269.         if key:lower() == "w" then
  270.             ctrl.f = 0
  271.         elseif key:lower() == "s" then
  272.             ctrl.b = 0
  273.         elseif key:lower() == "a" then
  274.             ctrl.l = 0
  275.         elseif key:lower() == "d" then
  276.             ctrl.r = 0
  277.         end
  278.     end)
  279.     Fly()
  280. end)
  281.  
  282. Speed.Name = "Speed"
  283. Speed.Parent = Main
  284. Speed.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  285. Speed.Position = UDim2.new(0.579069793, 0, 0.703947365, 0)
  286. Speed.Size = UDim2.new(0, 179, 0, 50)
  287. Speed.Font = Enum.Font.SciFi
  288. Speed.Text = "Flash Speed"
  289. Speed.TextColor3 = Color3.fromRGB(0, 0, 0)
  290. Speed.TextSize = 14.000
  291. Speed.MouseButton1Down:Connect(function()
  292.     while true do wait(1)
  293.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 75
  294.     end
  295. end)
Add Comment
Please, Sign In to add comment