Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Gui to Lua Converter
- -- Revamped by:HoIyScript
- --]]
- -- Instances:
- local HoopsGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local MadeBy = Instance.new("TextLabel")
- local Aimbot = Instance.new("TextButton")
- local Fly = Instance.new("TextButton")
- local InfiniteStamina = Instance.new("TextButton")
- local Notice = Instance.new("TextLabel")
- --[[
- Properties:
- --]]
- HoopsGui.Name = "HoopsGui"
- HoopsGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = HoopsGui
- MainFrame.BackgroundColor3 = Color3.new(1, 1, 0.498039)
- MainFrame.BackgroundTransparency = 0.059999998658895
- MainFrame.BorderColor3 = Color3.new(0, 0, 0)
- MainFrame.BorderSizePixel = 3
- MainFrame.Position = UDim2.new(0.560475111, 0, 0.299212605, 0)
- MainFrame.Size = UDim2.new(0, 319, 0, 149)
- MadeBy.Name = "MadeBy"
- MadeBy.Parent = MainFrame
- MadeBy.BackgroundColor3 = Color3.new(1, 0.980392, 0.352941)
- MadeBy.BorderSizePixel = 0
- MadeBy.Position = UDim2.new(0.0282131657, 0, 0.0395480208, 0)
- MadeBy.Size = UDim2.new(0, 301, 0, 23)
- MadeBy.Font = Enum.Font.SourceSans
- MadeBy.Text = "Hoops Gui Made By LukeToon | Scripts Not Made By Luketoon "
- MadeBy.TextColor3 = Color3.new(0, 0, 0)
- MadeBy.TextScaled = true
- MadeBy.TextSize = 13
- MadeBy.TextWrapped = true
- Aimbot.Name = "Aimbot"
- Aimbot.Parent = MainFrame
- Aimbot.BackgroundColor3 = Color3.new(0.968628, 1, 0.313726)
- Aimbot.BorderSizePixel = 0
- Aimbot.Position = UDim2.new(0.332288414, 0, 0.214689255, 0)
- Aimbot.Size = UDim2.new(0, 106, 0, 23)
- Aimbot.Font = Enum.Font.Arial
- Aimbot.Text = "Aimbot"
- Aimbot.TextColor3 = Color3.new(0, 0, 0)
- Aimbot.TextSize = 14
- Aimbot.MouseButton1Click:Connect(function()
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.R then
- game.ReplicatedStorage.Ball.StartShooting:FireServer()
- wait(0.5)
- game.ReplicatedStorage.Ball.EndShooting:InvokeServer(true,"Perfect")
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- end)
- Fly.Name = "Fly"
- Fly.Parent = MainFrame
- Fly.BackgroundColor3 = Color3.new(0.968628, 1, 0.313726)
- Fly.BorderSizePixel = 0
- Fly.Position = UDim2.new(0.332288414, 0, 0.416676134, 0)
- Fly.Size = UDim2.new(0, 106, 0, 23)
- Fly.Font = Enum.Font.Arial
- Fly.Text = "Fly"
- Fly.TextColor3 = Color3.new(0, 0, 0)
- Fly.TextSize = 14
- Fly.MouseButton1Click:Connect(function()
- repeat wait()
- until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
- local mouse = game.Players.LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game.Players.LocalPlayer
- local torso = plr.Character.Torso
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 50
- local speed = 0
- function Fly()
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat wait()
- plr.Character.Humanoid.PlatformStand = true
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- 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
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- 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
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- until not flying
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" then
- if flying then flying = false
- else
- flying = true
- Fly()
- end
- elseif key:lower() == "w" then
- ctrl.f = 1
- elseif key:lower() == "s" then
- ctrl.b = -1
- elseif key:lower() == "a" then
- ctrl.l = -1
- elseif key:lower() == "d" then
- ctrl.r = 1
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "w" then
- ctrl.f = 0
- elseif key:lower() == "s" then
- ctrl.b = 0
- elseif key:lower() == "a" then
- ctrl.l = 0
- elseif key:lower() == "d" then
- ctrl.r = 0
- end
- end)
- Fly()
- end)
- InfiniteStamina.Name = "InfiniteStamina"
- InfiniteStamina.Parent = MainFrame
- InfiniteStamina.BackgroundColor3 = Color3.new(0.968628, 1, 0.313726)
- InfiniteStamina.BorderSizePixel = 0
- InfiniteStamina.Position = UDim2.new(0.332288414, 0, 0.603951037, 0)
- InfiniteStamina.Size = UDim2.new(0, 106, 0, 23)
- InfiniteStamina.Font = Enum.Font.Arial
- InfiniteStamina.Text = "Infinite Stamina"
- InfiniteStamina.TextColor3 = Color3.new(0, 0, 0)
- InfiniteStamina.TextSize = 14
- InfiniteStamina.MouseButton1Click:Connect(function()
- while true do
- game.Players.LocalPlayer.PlayerScripts.Events.Player.Stamina.Stamina.Value = 9001
- wait()
- end
- end)
- Notice.Name = "Notice"
- Notice.Parent = MainFrame
- Notice.BackgroundColor3 = Color3.new(1, 0.980392, 0.352941)
- Notice.BorderSizePixel = 0
- Notice.Position = UDim2.new(0.0703297183, 0, 0.810019672, 0)
- Notice.Size = UDim2.new(0, 272, 0, 18)
- Notice.Font = Enum.Font.SourceSans
- Notice.Text = "Aimbot Doesn't work all the time"
- Notice.TextColor3 = Color3.new(0, 0, 0)
- Notice.TextSize = 14
- -- (to make the gui draggable)
- MainFrame.Active = true
- MainFrame.Draggable = true
- -- aimbot doesnt work all the time
- -- you cant disable fly
- --if you reset during fly it wont disable it
- -- just go in and out of afk and it fixes fly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement