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 UICorner = Instance.new("UICorner")
- local TextButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local close = Instance.new("TextButton")
- local UICorner_3 = Instance.new("UICorner")
- local speed = Instance.new("TextButton")
- local UICorner_4 = Instance.new("UICorner")
- local TextLabel = Instance.new("TextLabel")
- local UICorner_5 = Instance.new("UICorner")
- local TextButton_2 = Instance.new("TextButton")
- local UICorner_6 = Instance.new("UICorner")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
- Frame.Position = UDim2.new(0.116680361, 0, 0.374800622, 0)
- Frame.Size = UDim2.new(0, 241, 0, 356)
- Frame.Visible = false
- UICorner.CornerRadius = UDim.new(0.300000012, 0)
- UICorner.Parent = Frame
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(85, 85, 85)
- TextButton.Position = UDim2.new(0.0829875544, 0, 0.205056176, 0)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Fly - E to fly"
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextSize = 41.000
- TextButton.TextWrapped = true
- UICorner_2.CornerRadius = UDim.new(0.300000012, 0)
- UICorner_2.Parent = TextButton
- close.Name = "close"
- close.Parent = Frame
- close.BackgroundColor3 = Color3.fromRGB(85, 85, 85)
- close.Position = UDim2.new(0.0829875544, 0, 0.67696631, 0)
- close.Size = UDim2.new(0, 200, 0, 50)
- close.Font = Enum.Font.SourceSans
- close.Text = "Close"
- close.TextColor3 = Color3.fromRGB(0, 0, 0)
- close.TextSize = 41.000
- close.TextWrapped = true
- UICorner_3.CornerRadius = UDim.new(0.300000012, 0)
- UICorner_3.Parent = close
- speed.Name = "speed"
- speed.Parent = Frame
- speed.BackgroundColor3 = Color3.fromRGB(85, 85, 85)
- speed.Position = UDim2.new(0.0829875544, 0, 0.429775238, 0)
- speed.Size = UDim2.new(0, 200, 0, 50)
- speed.Font = Enum.Font.SourceSans
- speed.Text = "Speed"
- speed.TextColor3 = Color3.fromRGB(0, 0, 0)
- speed.TextSize = 41.000
- speed.TextWrapped = true
- UICorner_4.CornerRadius = UDim.new(0.300000012, 0)
- UICorner_4.Parent = speed
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.0829875544, 0, 0.0477528088, 0)
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Fly script V3: By MrDinosaurLives"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextSize = 14.000
- UICorner_5.CornerRadius = UDim.new(0.300000012, 0)
- UICorner_5.Parent = TextLabel
- TextButton_2.Parent = ScreenGui
- TextButton_2.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- TextButton_2.Position = UDim2.new(0, 0, 0.47208932, 0)
- TextButton_2.Size = UDim2.new(0, 200, 0, 50)
- TextButton_2.Font = Enum.Font.SourceSans
- TextButton_2.Text = "Open"
- TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_2.TextSize = 41.000
- UICorner_6.CornerRadius = UDim.new(0.300000012, 0)
- UICorner_6.Parent = TextButton_2
- -- Scripts:
- local function XJHXT_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- 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 = 400
- local speed = 5000
- 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
- coroutine.wrap(XJHXT_fake_script)()
- local function NXSWYG_fake_script() -- close.LocalScript
- local script = Instance.new('LocalScript', close)
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Parent.Parent.Frame.Visible = false
- wait(0.1)
- script.Parent.Parent.Parent.TextButton.Visible = true
- end)
- end
- coroutine.wrap(NXSWYG_fake_script)()
- local function WTCBKC_fake_script() -- speed.LocalScript
- local script = Instance.new('LocalScript', speed)
- script.Parent.MouseButton1Click:Connect(function()
- local player = game.Players.LocalPlayer
- local setspeed = script.Parent.Parent.speed.Text
- local hum = game.Workspace:WaitForChild(player.Name).Humanoid
- if hum then
- hum.WalkSpeed = 50
- end
- end)
- end
- coroutine.wrap(WTCBKC_fake_script)()
- local function BOEPNP_fake_script() -- TextButton_2.LocalScript
- local script = Instance.new('LocalScript', TextButton_2)
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Parent.Frame.Visible = true
- wait(0.1)
- script.Parent.Visible = false
- end)
- end
- coroutine.wrap(BOEPNP_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement