Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created By Dutch
- -- Published by Vindict
- local easyfly = Instance.new("ScreenGui")
- local main = Instance.new("Frame")
- local fly = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local x = Instance.new("TextButton")
- local opengui = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- --Properties:
- easyfly.Name = "easyfly"
- easyfly.Parent = game.CoreGui
- main.Active = true
- main.Draggable = true
- main.Name = "main"
- main.Parent = easyfly
- main.BackgroundColor3 = Color3.new(0.705882, 1, 0.0627451)
- main.BackgroundTransparency = 0.40000000596046
- main.BorderColor3 = Color3.new(0, 0, 0)
- main.BorderSizePixel = 4
- main.Position = UDim2.new(0.63161993, 0, 0.585995078, 0)
- main.Size = UDim2.new(0, 455, 0, 323)
- main.Visible = false
- fly.Name = "fly"
- fly.Parent = main
- fly.BackgroundColor3 = Color3.new(1, 1, 1)
- fly.Position = UDim2.new(0.331868142, 0, 0.421052635, 0)
- fly.Size = UDim2.new(0, 152, 0, 50)
- fly.Font = Enum.Font.SciFi
- fly.Text = "Easy Fly"
- fly.TextColor3 = Color3.new(0, 0, 0)
- fly.TextScaled = true
- fly.TextSize = 14
- fly.TextWrapped = true
- fly.MouseButton1Click:connect(function()
- local humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid
- if humanoid.RigType == Enum.HumanoidRigType.R15 then
- game:GetService('Players').LocalPlayer.Character.Humanoid.Name = "Humanoida"
- repeat wait()
- until game:GetService"Players".LocalPlayer and game:GetService"Players".LocalPlayer.Character and game:GetService"Players".LocalPlayer.Character:findFirstChild("UpperTorso") and game:GetService"Players".LocalPlayer.Character:findFirstChild("Humanoida")
- local mouse = game:GetService"Players".LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game:GetService"Players".LocalPlayer
- local torso = plr.Character.UpperTorso
- 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 = 100
- 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.Humanoida.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:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game:GetService("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:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game:GetService("Workspace").CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game:GetService("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.Humanoida.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()
- else
- 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
- end)
- TextLabel.Parent = main
- TextLabel.BackgroundColor3 = Color3.new(0, 1, 0.164706)
- TextLabel.BackgroundTransparency = 0.40000000596046
- TextLabel.BorderColor3 = Color3.new(0.705882, 1, 0.0627451)
- TextLabel.Position = UDim2.new(-0.0021978023, 0, 0, 0)
- TextLabel.Size = UDim2.new(0, 455, 0, 50)
- TextLabel.Text = "Easy Fly by Robloxmiem"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- x.Name = "x"
- x.Parent = main
- x.BackgroundColor3 = Color3.new(0.705882, 1, 0.0627451)
- x.BackgroundTransparency = 0.40000000596046
- x.BorderColor3 = Color3.new(0.705882, 1, 0.0627451)
- x.Position = UDim2.new(-0.0021978023, 0, 0.154798761, 0)
- x.Size = UDim2.new(0, 54, 0, 48)
- x.Font = Enum.Font.SciFi
- x.Text = "x"
- x.TextColor3 = Color3.new(0.666667, 0, 0)
- x.TextScaled = true
- x.TextSize = 14
- x.TextWrapped = true
- x.MouseButton1Click:connect(function()
- main.visible = false
- opengui.Visible = true
- end)
- opengui.Name = "opengui"
- opengui.Parent = easyfly
- opengui.BackgroundColor3 = Color3.new(1, 1, 1)
- opengui.Position = UDim2.new(0.434579432, 0, 0, 0)
- opengui.Size = UDim2.new(0, 202, 0, 49)
- TextButton.Parent = opengui
- TextButton.BackgroundColor3 = Color3.new(0.705882, 1, 0.0627451)
- TextButton.BorderColor3 = Color3.new(0, 0, 0)
- TextButton.Size = UDim2.new(0, 202, 0, 50)
- TextButton.Font = Enum.Font.SciFi
- TextButton.Text = "Open Gui"
- TextButton.TextColor3 = Color3.new(0, 0, 0)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- TextButton.MouseButton1Click:connect(function()
- main.Visible = true
- opengui.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement