Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Titulo = Instance.new("TextLabel")
- local Fly = Instance.new("TextButton")
- local WalkSpeed = Instance.new("TextButton")
- local CTRLclickbutton = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(111, 111, 111)
- Frame.BackgroundTransparency = 0.100
- Frame.BorderColor3 = Color3.fromRGB(255, 0, 0)
- Frame.Position = UDim2.new(0, 0, 0.51313132, 0)
- Frame.Size = UDim2.new(0, 177, 0, 251)
- Titulo.Name = "Titulo"
- Titulo.Parent = Frame
- Titulo.BackgroundColor3 = Color3.fromRGB(255, 0, 46)
- Titulo.BorderColor3 = Color3.fromRGB(255, 0, 0)
- Titulo.Size = UDim2.new(0, 177, 0, 50)
- Titulo.Font = Enum.Font.SciFi
- Titulo.Text = "Gui Jailbreack"
- Titulo.TextColor3 = Color3.fromRGB(0, 0, 0)
- Titulo.TextSize = 30.000
- Fly.Name = "Fly"
- Fly.Parent = Frame
- Fly.BackgroundColor3 = Color3.fromRGB(0, 255, 226)
- Fly.Position = UDim2.new(0, 0, 0.24701196, 0)
- Fly.Size = UDim2.new(0, 177, 0, 48)
- Fly.Font = Enum.Font.SciFi
- Fly.Text = "Fly [E]"
- Fly.TextColor3 = Color3.fromRGB(4, 98, 0)
- Fly.TextSize = 39.000
- Fly.TextStrokeColor3 = Color3.fromRGB(255, 0, 0)
- Fly.MouseButton1Down:connect(function()
- repeat wait()
- until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") 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.Head
- local flying = false
- 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)
- WalkSpeed.Name = "WalkSpeed"
- WalkSpeed.Parent = Frame
- WalkSpeed.BackgroundColor3 = Color3.fromRGB(222, 255, 7)
- WalkSpeed.Position = UDim2.new(-0.0677966103, 0, 0.462151408, 0)
- WalkSpeed.Size = UDim2.new(0, 189, 0, 50)
- WalkSpeed.Font = Enum.Font.SciFi
- WalkSpeed.Text = "WalkSpeed"
- WalkSpeed.TextColor3 = Color3.fromRGB(255, 0, 4)
- WalkSpeed.TextSize = 36.000
- WalkSpeed.MouseButton1Down:connect(function()
- getgenv().WalkSpeedValue = 100; -- Cambia el 100 por el valor que quieras
- local Player = game:service'Players'.LocalPlayer;
- Player.Character.Humanoid:GetPropertyChangedSignal'WalkSpeed':Connect(function()
- Player.Character.Humanoid.WalkSpeed = getgenv().WalkSpeedValue;
- end)
- Player.Character.Humanoid.WalkSpeed = getgenv().WalkSpeedValue;
- end)
- CTRLclickbutton.Name = "[CTRL]clickbutton"
- CTRLclickbutton.Parent = Frame
- CTRLclickbutton.BackgroundColor3 = Color3.fromRGB(85, 85, 85)
- CTRLclickbutton.Position = UDim2.new(0, 0, 0.689243019, 0)
- CTRLclickbutton.Size = UDim2.new(0, 177, 0, 50)
- CTRLclickbutton.Font = Enum.Font.SciFi
- CTRLclickbutton.Text = "[CTRL]click tp"
- CTRLclickbutton.TextColor3 = Color3.fromRGB(0, 0, 0)
- CTRLclickbutton.TextSize = 30.000
- CTRLclickbutton.MouseButton1Down:connect(function()
- --click to tp
- local Imput = game:GetService("UserInputService")
- local Plr = game:service'Players'.LocalPlayer
- local Mouse = Plr:GetMouse()
- function To(position)
- local Chr = Plr.Character
- if Chr ~= nil then
- Chr:MoveTo(position)
- end
- end
- Imput.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 and Imput:IsKeyDown(Enum.KeyCode.LeftControl) then
- To(Mouse.Hit.p)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement