Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Fat's Simple Fly Gui
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("ImageLabel")
- local Frame_2 = Instance.new("ImageLabel")
- local TextLabel_Roundify_12px = Instance.new("ImageLabel")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- local TextButton_Roundify_12px = Instance.new("ImageLabel")
- local TextButton = Instance.new("TextButton")
- local TextLabel_3 = Instance.new("TextLabel")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Frame.Name = "Frame"
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BackgroundTransparency = 1.000
- Frame.LayoutOrder = 1
- Frame.Position = UDim2.new(0.373277903, 0, 0.223860547, 0)
- Frame.Size = UDim2.new(0, 374, 0, 217)
- Frame.Image = "rbxassetid://3570695787"
- Frame.ImageColor3 = Color3.fromRGB(92, 91, 93)
- Frame.ScaleType = Enum.ScaleType.Slice
- Frame.SliceCenter = Rect.new(100, 100, 100, 100)
- Frame.SliceScale = 0.120
- Frame_2.Name = "Frame"
- Frame_2.Parent = Frame
- Frame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame_2.BackgroundTransparency = 1.000
- Frame_2.Position = UDim2.new(-0.00323713943, 0, -0.00194585323, 0)
- Frame_2.Size = UDim2.new(0, 25, 0, 217)
- Frame_2.Image = "rbxassetid://3570695787"
- Frame_2.ImageColor3 = Color3.fromRGB(0, 0, 0)
- Frame_2.ScaleType = Enum.ScaleType.Slice
- Frame_2.SliceCenter = Rect.new(100, 100, 100, 100)
- Frame_2.SliceScale = 0.120
- TextLabel_Roundify_12px.Name = "TextLabel_Roundify_12px"
- TextLabel_Roundify_12px.Parent = Frame_2
- TextLabel_Roundify_12px.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel_Roundify_12px.BackgroundColor3 = Color3.fromRGB(254, 252, 255)
- TextLabel_Roundify_12px.BackgroundTransparency = 1.000
- TextLabel_Roundify_12px.Position = UDim2.new(7.49943352, 0, 0.125559643, 0)
- TextLabel_Roundify_12px.Size = UDim2.new(9.76669598, 0, 0.189940825, 0)
- TextLabel_Roundify_12px.Image = "rbxassetid://3570695787"
- TextLabel_Roundify_12px.ImageColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_Roundify_12px.ScaleType = Enum.ScaleType.Slice
- TextLabel_Roundify_12px.SliceCenter = Rect.new(100, 100, 100, 100)
- TextLabel_Roundify_12px.SliceScale = 0.120
- TextLabel.Parent = TextLabel_Roundify_12px
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.119872868, 0, 0.094785884, 0)
- TextLabel.Size = UDim2.new(0, 185, 0, 32)
- TextLabel.Font = Enum.Font.SourceSansBold
- TextLabel.Text = "Fly Gui"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextStrokeColor3 = Color3.fromRGB(254, 252, 255)
- TextLabel.TextWrapped = true
- TextLabel_2.Parent = TextLabel
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.Position = UDim2.new(-0.104133546, 0, 2.86736774, 0)
- TextLabel_2.Size = UDim2.new(0, 224, 0, 21)
- TextLabel_2.Font = Enum.Font.SourceSansBold
- TextLabel_2.Text = "Press E to Toggle"
- TextLabel_2.TextColor3 = Color3.fromRGB(254, 252, 255)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 56.000
- TextLabel_2.TextWrapped = true
- TextButton_Roundify_12px.Name = "TextButton_Roundify_12px"
- TextButton_Roundify_12px.Parent = Frame
- TextButton_Roundify_12px.Active = true
- TextButton_Roundify_12px.AnchorPoint = Vector2.new(0.5, 0.5)
- TextButton_Roundify_12px.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton_Roundify_12px.BackgroundTransparency = 1.000
- TextButton_Roundify_12px.Position = UDim2.new(0.497326195, 0, 0.698156655, 0)
- TextButton_Roundify_12px.Selectable = true
- TextButton_Roundify_12px.Size = UDim2.new(0.647058845, 0, 0.262672812, 0)
- TextButton_Roundify_12px.Image = "rbxassetid://3570695787"
- TextButton_Roundify_12px.ImageColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_Roundify_12px.ScaleType = Enum.ScaleType.Slice
- TextButton_Roundify_12px.SliceCenter = Rect.new(100, 100, 100, 100)
- TextButton_Roundify_12px.SliceScale = 0.120
- TextButton.Parent = TextButton_Roundify_12px
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BackgroundTransparency = 1.000
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0, 0, 0.0589374751, 0)
- TextButton.Size = UDim2.new(0, 241, 0, 50)
- TextButton.Font = Enum.Font.SourceSansBold
- TextButton.Text = "Fly"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextScaled = true
- TextButton.TextSize = 14.000
- TextButton.TextWrapped = true
- TextButton.MouseButton1Down: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)
- TextLabel_3.Parent = Frame
- TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_3.BackgroundTransparency = 1.000
- TextLabel_3.Position = UDim2.new(0.382352948, 0, 0.898617625, 0)
- TextLabel_3.Size = UDim2.new(0, 224, 0, 21)
- TextLabel_3.Font = Enum.Font.SourceSansBold
- TextLabel_3.Text = "Made By Fat#3323"
- TextLabel_3.TextColor3 = Color3.fromRGB(254, 252, 255)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 56.000
- TextLabel_3.TextWrapped = true
- -- Scripts:
- local function PUJAVZT_fake_script() -- Frame.Dragify
- local script = Instance.new('LocalScript', Frame)
- local UIS = game:GetService("UserInputService")
- function dragify(Frame)
- dragToggle = nil
- local dragSpeed = 0
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(script.Parent)
- end
- coroutine.wrap(PUJAVZT_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement