0% found this document useful (0 votes)
2K views9 pages

Fly Script

The document contains code for creating a Roblox GUI that allows players to fly in the game. It defines instances like frames, buttons, and labels. It then sets properties like colors, positions and sizes. Scripts are included to handle button clicks and control flying movement using WASD keys by manipulating body velocity and gyro.

Uploaded by

dosh osu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views9 pages

Fly Script

The document contains code for creating a Roblox GUI that allows players to fly in the game. It defines instances like frames, buttons, and labels. It then sets properties like colors, positions and sizes. Scripts are included to handle button clicks and control flying movement using WASD keys by manipulating body velocity and gyro.

Uploaded by

dosh osu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

-- Bring to you by 7alexv7

-- Enjoy the script!

-- Instances:

local FlyGui = [Link]("ScreenGui")


local Frame = [Link]("Frame")
local TextButton = [Link]("TextButton")
local TextLabel = [Link]("TextLabel")

--Properties:

[Link] = "FlyGui"
[Link] = [Link]:WaitForChild("PlayerGui")

[Link] = FlyGui
Frame.BackgroundColor3 = [Link](80, 80, 80)
[Link] = 0
[Link] = [Link](0.0685602352, 0, 0.168769717, 0)
[Link] = [Link](0.264544547, 0, 0.100000024, 0)

[Link] = Frame
TextButton.BackgroundColor3 = [Link](66, 66, 66)
[Link] = 0
[Link] = [Link](0.06324628, 0, 0.400667697, 0)
[Link] = [Link](0.871157169, 0, 0.495614201, 0)
[Link] = [Link]
[Link] = "Fly"
TextButton.TextColor3 = [Link](255, 255, 255)
[Link] = true
[Link] = 14.000
[Link] = 0.000
[Link] = true

[Link] = Frame
TextLabel.BackgroundColor3 = [Link](255, 255, 255)
[Link] = [Link](0, 86, 0, 24)
[Link] = [Link]
[Link] = "Made by GcoSad_X"
TextLabel.TextColor3 = [Link](0, 0, 0)
[Link] = true
[Link] = 14.000
[Link] = true

-- Scripts:

local function NQWSTGE_fake_script() -- [Link]


local script = [Link]('LocalScript', Frame)

local plr = [Link]


repeat wait() until plr and [Link] and
[Link]:findFirstChild("HumanoidRootPart") and
[Link]:findFirstChild("Humanoid")
local mouse = [Link]:GetMouse()
repeat wait() until mouse

local torso = [Link]


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 = 1000
local speed = 50
function Fly()
local bg = [Link]("BodyGyro", torso)
bg.P = 9e4
[Link] = [Link](9e9, 9e9, 9e9)
[Link] = [Link]
local bv = [Link]("BodyVelocity", torso)
[Link] = [Link](0,0.1,0)
[Link] = [Link](9e9, 9e9, 9e9)
repeat wait()
[Link] = 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
else
speed = 50
end
end
if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
[Link] = (([Link] *
(ctrl.f+ctrl.b)) + (([Link] *
[Link](ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) -
[Link].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
[Link] = (([Link] *
(lastctrl.f+lastctrl.b)) + (([Link] *
[Link](lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) -
[Link].p))*speed
else
[Link] = [Link](0,0.1,0)
end
[Link] = [Link] * [Link](-
[Link]((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}

bg:Destroy()
bv:Destroy()
[Link] = false
speed = 50
end

[Link]:connect(function(key)
if key:lower() == "e" then
if flying then flying = false
speed = 50
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)
[Link]: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)

local main = [Link]("ScreenGui")


local epic = [Link]("Frame")
local backgroundtitle = [Link]("TextLabel")
local creator = [Link]("TextLabel")
local title = [Link]("TextLabel")
local close = [Link]("TextButton")
local fbutton = [Link]("TextButton")
local ebutton = [Link]("TextButton")
local qbutton = [Link]("TextButton")
local tbutton = [Link]("TextButton")
local main2 = [Link]("ScreenGui")
local epic2 = [Link]("Frame")
local backgroundtitle2 = [Link]("TextLabel")
local creator2 = [Link]("TextLabel")
local title2 = [Link]("TextLabel")
local close2 = [Link]("TextButton")
local fbutton2 = [Link]("TextButton")
local ebutton2 = [Link]("TextButton")
local qbutton2 = [Link]("TextButton")
local tbutton2 = [Link]("TextButton")

[Link] = "main"
[Link] = [Link]
[Link] = [Link]

[Link] = "epic"
[Link] = main
epic.BackgroundColor3 = [Link](0, 0, 0)
[Link] = [Link](0.0911376476, 0, 0.466830462, 0)
[Link] = [Link](0, 150, 0, 150)
[Link] = true
[Link] = true
[Link] = "creator"
[Link] = epic
creator.BackgroundColor3 = [Link](1, 1, 1)
[Link] = [Link](0.00442049652, 0, 0.762519121, 0)
[Link] = [Link](0, 80, 0, 10)
[Link] = [Link]
[Link] = ""
creator.TextColor3 = [Link](0, 0, 0)
[Link] = true
[Link] = 14.000
[Link] = false

[Link] = "title"
[Link] = epic
title.BackgroundColor3 = [Link](255, 255, 255)
[Link] = 1.000
[Link] = [Link](0.0497237556, 0, 0, 0)
[Link] = [Link](0, 80, 0, 10)
[Link] = [Link]
[Link] = ""
title.TextColor3 = [Link](0, 0, 0)
[Link] = true
[Link] = 14.000
[Link] = true

[Link] = "close"
[Link] = epic
close.BackgroundColor3 = [Link](255, 0, 0)
[Link] = [Link](0.76795578, 0, 0, 0)
[Link] = [Link](0, 35, 0, 35)
[Link] = [Link]
[Link] = "X"
close.TextColor3 = [Link](0, 0, 0)
[Link] = true
[Link] = 14.000
[Link] = true
close.MouseButton1Down:connect(function()
[Link] = false
end)

[Link] = "tbutton"
[Link] = epic
fbutton.BackgroundColor3 = [Link](255, 255, 255)
[Link] = [Link](0.3, 0, 0.4, 0)
[Link] = [Link](0, 38, 0, 38)
[Link] = [Link]
[Link] = "S"
fbutton.TextColor3 = [Link](0, 0, 0)
[Link] = 14.000
fbutton.MouseButton1Down:connect(function()
ctrl.b = -1
wait(0.1)
ctrl.b = 0
ctrl.r = 0
ctrl.l = 0
ctrl.f = 0
end)

[Link] = "fbutton"
[Link] = epic
ebutton.BackgroundColor3 = [Link](255, 255, 255)
[Link] = [Link](0.6, 0, 0.4, 0)
[Link] = [Link](0, 38, 0, 38)
[Link] = [Link]
[Link] = "D"
ebutton.TextColor3 = [Link](0, 0, 0)
[Link] = 14.000
ebutton.MouseButton1Down:connect(function()
ctrl.r = 1
wait(0.1)
ctrl.b = 0
ctrl.r = 0
ctrl.l = 0
ctrl.f = 0
end)

[Link] = "rbutton"
[Link] = epic
qbutton.BackgroundColor3 = [Link](255, 255, 255)
[Link] = [Link](0.3, 0, 0.1, 0)
[Link] = [Link](0, 38, 0, 38)
[Link] = [Link]
[Link] = "W"
qbutton.TextColor3 = [Link](0, 0, 0)
[Link] = 14.000
qbutton.MouseButton1Down:connect(function()
ctrl.f = 1
wait(0.1)
ctrl.b = 0
ctrl.r = 0
ctrl.l = 0
ctrl.f = 0
end)

[Link] = "ebutton"

[Link] = epic

tbutton.BackgroundColor3 = [Link](255, 255, 255)


[Link] = [Link](0, 0, 0.4, 0)
[Link] = [Link](0, 38, 0, 38)
[Link] = [Link]
[Link] = "A"
tbutton.TextColor3 = [Link](0, 0, 0)
[Link] = 14.000
tbutton.MouseButton1Down:connect(function()
ctrl.l = -1
wait(0.1)
ctrl.b = 0
ctrl.r = 0
ctrl.l = 0
ctrl.f = 0
end)

local main = [Link]("ScreenGui")


local epic = [Link]("Frame")
local backgroundtitle = [Link]("TextLabel")
local creator = [Link]("TextLabel")
local title = [Link]("TextLabel")
local close = [Link]("TextButton")
local fbutton = [Link]("TextButton")
local main2 = [Link]("ScreenGui")
local epic2 = [Link]("Frame")
local backgroundtitle2 = [Link]("TextLabel")
local creator2 = [Link]("TextLabel")
local title2 = [Link]("TextLabel")
local close2 = [Link]("TextButton")
local fbutton2 = [Link]("TextButton")

[Link] = "main"
[Link] = [Link]
[Link] = [Link]

[Link] = "epic"
[Link] = main
epic.BackgroundColor3 = [Link](0, 0, 0)
[Link] = [Link](0.0911376476, 0, 0.466830462, 0)
[Link] = [Link](0, 80, 0, 120)
[Link] = true
[Link] = true

[Link] = "creator"
[Link] = epic
creator.BackgroundColor3 = [Link](1, 1, 1)
[Link] = [Link](0.00442049652, 0, 0.762519121, 0)
[Link] = [Link](0, 80, 0, 10)
[Link] = [Link]
[Link] = ""
creator.TextColor3 = [Link](0, 0, 0)
[Link] = true
[Link] = 14.000
[Link] = false

[Link] = "title"
[Link] = epic
title.BackgroundColor3 = [Link](255, 255, 255)
[Link] = 1.000
[Link] = [Link](0.0497237556, 0, 0, 0)
[Link] = [Link](0, 80, 0, 10)
[Link] = [Link]
[Link] = ""
title.TextColor3 = [Link](0, 0, 0)
[Link] = true
[Link] = 14.000
[Link] = true

[Link] = "close"
[Link] = epic
close.BackgroundColor3 = [Link](255, 0, 0)
[Link] = [Link](0.76795578, 0, 0, 0)
[Link] = [Link](0, 20, 0, 20)
[Link] = [Link]
[Link] = "X"
close.TextColor3 = [Link](0, 0, 0)
[Link] = true
[Link] = 14.000
[Link] = true
close.MouseButton1Down:connect(function()
[Link] = false
end)

[Link] = "tbutton"
[Link] = epic
fbutton.BackgroundColor3 = [Link](255, 255, 255)
[Link] = [Link](0.243093923, 0, 0.344781578, 0)
[Link] = [Link](0, 38, 0, 38)
[Link] = [Link]
[Link] = "Stop"
fbutton.TextColor3 = [Link](0, 0, 0)
[Link] = 14.000
fbutton.MouseButton1Down:connect(function()
flying = false
wait(0.1)
flying = true
Fly()
end)

[Link]:Connect(function(o,n)
if n == [Link] then
ctrl.f = 1
else
ctrl.f = 0
end

end)
[Link].MouseButton1Click:Connect(function()
if flying then
flying = false
speed = 50
else
flying = true
Fly()
end
end)

end
[Link](NQWSTGE_fake_script)()
local function RAQA_fake_script() -- [Link]
local script = [Link]('LocalScript', Frame)

local Trigger = [Link]


local IsMini = false
function
CreateTween(Instance,Style,Direction,Time,table,RepeatCount,CanRepeat,Delay)
local ts = game:GetService("TweenService")
local TweenInfo =
[Link](Time,Style,Direction,RepeatCount,CanRepeat,Delay)
local Tween = ts:Create(Instance,TweenInfo,table)
repeat wait() until Tween ~= nil
return Tween

end
Trigger.MouseButton1Click:Connect(function()
if IsMini then
CreateTween([Link],[Link],[Link],0.5,
{Size = [Link](0.265, 0,0.1, 0)},0,false,0.1):Play()
IsMini = false
[Link] = "-"
else

CreateTween([Link],[Link],[Link],0.5,
{Size = [Link](0.265, 0,0.042, 0)},0,false,0.1):Play()
IsMini = true
[Link] = "+"
end
end)
[Link].MouseButton1Click:Connect(function()
[Link]:Destroy()
end)
end
[Link](RAQA_fake_script)()
local function TKVUMP_fake_script() -- [Link] Gui
local script = [Link]('LocalScript', Frame)

local UserInputService = game:GetService("UserInputService")

local gui = [Link]

local dragging
local dragInput
local dragStart
local startPos

local function update(input)


local delta = [Link] - dragStart
[Link] = [Link]([Link], [Link] + delta.X,
[Link], [Link] + delta.Y)
end

[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 or
[Link] == [Link] then
dragging = true
dragStart = [Link]
startPos = [Link]

[Link]:Connect(function()
if [Link] == [Link] then
dragging = false
end
end)
end
end)

[Link]:Connect(function(input)
if [Link] == [Link] or
[Link] == [Link] then
dragInput = input
end
end)

[Link]:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)
end
[Link](TKVUMP_fake_script)()

You might also like