explore
key systems
new
docs
discord
search scripts
⌘K
explore
key systems
new
docs
discord
sign in
⌘↵
--
publishes from anywhere on this page
new paste
untitled.luau
empty
/ 512kb
open file
⌘O
explore
key systems
new
docs
sign in
fly-gui-copy.lua
1 lines · 8kb
/ 512kb
open file
⌘O
local _a=50 local _b=10 local _c=1000 local _d=game:GetService(string.char(80,108,97,121,101,114,115))local _e=game:GetService(string.char(82,117,110,83,101,114,118,105,99,101))local _f=game:GetService(string.char(85,115,101,114,73,110,112,117,116,83,101,114,118,105,99,101))local _g=_d.LocalPlayer local _h=(gethui and gethui())or game:GetService(string.char(67,111,114,101,71,117,105))if not pcall(function()return _h.Name end)then _h=_g:WaitForChild(string.char(80,108,97,121,101,114,71,117,105))end local _i=string.char(70,79,82,75,84,72,85,66,88)for _j,_k in ipairs({_i,string.char(83,65,82,70,108,121,71,117,105,86,49),string.char(70,108,121,71,117,105)})do if _h:FindFirstChild(_k)then _h[_k]:Destroy()end end local function _l(_m,_n,_o)local _p=Instance.new(_m)if _n then for _q,_r in pairs(_n)do _p[_q]=_r end end if _o then _p.Parent=_o end return _p end local function _s(_t,_u)return _l(string.char(85,73,67,111,114,110,101,114),{CornerRadius=UDim.new(0,_u or 8)},_t)end local function _v(_w,_x,_y)return _l(string.char(85,73,83,116,114,111,107,101),{Color=_x or Color3.fromRGB(58,64,84),Thickness=_y or 1},_w)end local _z=UDim2.new(0,40,0.4,0)if _f.TouchEnabled then _z=UDim2.new(0.5,-100,0.4,0)end local _A=_l(string.char(83,99,114,101,101,110,71,117,105),{Name=_i,ResetOnSpawn=false,DisplayOrder=999999,IgnoreGuiInset=true},_h)local _B=_l(string.char(70,114,97,109,101),{Name=string.char(77,97,105,110),Size=UDim2.fromOffset(200,160),Position=_z,BackgroundColor3=Color3.fromRGB(17,19,26),BorderSizePixel=0,Active=true},_A)_s(_B,12)_v(_B,Color3.fromRGB(47,52,70),1)local _C=_l(string.char(70,114,97,109,101),{Size=UDim2.new(1,0,0,26),BackgroundTransparency=1},_B)local _D=_l(string.char(84,101,120,116,66,117,116,116,111,110),{Size=UDim2.new(1,-60,1,0),Position=UDim2.new(0,0,0,0),BackgroundTransparency=1,Text="",AutoButtonColor=false},_C)local _E=_l(string.char(84,101,120,116,76,97,98,101,108),{Size=UDim2.new(1,-10,1,0),Position=UDim2.new(0,10,0,0),BackgroundTransparency=1,Text=string.char(70,79,82,75,84,72,85,66,88),TextXAlignment=Enum.TextXAlignment.Left,TextColor3=Color3.fromRGB(240,242,250),Font=Enum.Font.GothamBlack,TextSize=13},_D)local function _F(_G,_H,_I,_J,_K,_L)local _M=_l(string.char(84,101,120,116,66,117,116,116,111,110),{Text=_G,Size=_H,Position=_I,BackgroundColor3=_J or Color3.fromRGB(37,41,54),TextColor3=Color3.fromRGB(230,234,245),Font=Enum.Font.GothamBold,TextSize=_L or 12,BorderSizePixel=0,AutoButtonColor=false,ZIndex=5},_K)_s(_M,7)_v(_M,Color3.fromRGB(62,68,88),1)return _M end local _N=_F(string.char(45),UDim2.fromOffset(22,20),UDim2.new(1,-54,0,3),Color3.fromRGB(45,49,64),_C,12)local _O=_F(string.char(88),UDim2.fromOffset(22,20),UDim2.new(1,-28,0,3),Color3.fromRGB(170,55,60),_C,12)local _P=_l(string.char(70,114,97,109,101),{Position=UDim2.new(0,10,0,32),Size=UDim2.new(1,-20,1,-42),BackgroundTransparency=1},_B)_l(string.char(85,73,76,105,115,116,76,97,121,111,117,116),{FillDirection=Enum.FillDirection.Vertical,SortOrder=Enum.SortOrder.LayoutOrder,HorizontalAlignment=Enum.HorizontalAlignment.Center,Padding=UDim.new(0,6)},_P)local _Q=_l(string.char(84,101,120,116,66,117,116,116,111,110),{LayoutOrder=1,Size=UDim2.new(1,0,0,34),BackgroundColor3=Color3.fromRGB(168,58,64),Text=string.char(70,76,89,58,32,79,70,70),TextColor3=Color3.fromRGB(250,250,250),Font=Enum.Font.GothamBold,TextSize=13,BorderSizePixel=0,AutoButtonColor=false},_P)_s(_Q,9)local _R=_v(_Q,Color3.fromRGB(86,43,50),1)local _S=_l(string.char(70,114,97,109,101),{LayoutOrder=2,Size=UDim2.new(1,0,0,30),BackgroundTransparency=1},_P)local _T=_F(string.char(45),UDim2.fromOffset(34,30),UDim2.new(0,0,0,0),nil,_S,15)local _U=_l(string.char(84,101,120,116,66,111,120),{Position=UDim2.new(0,40,0,0),Size=UDim2.new(1,-80,1,0),BackgroundColor3=Color3.fromRGB(24,26,34),Text=tostring(_a),PlaceholderText=string.char(83,112,101,101,100),TextColor3=Color3.fromRGB(230,234,245),Font=Enum.Font.GothamBold,TextSize=13,ClearTextOnFocus=false,BorderSizePixel=0},_S)_s(_U,8)_v(_U,Color3.fromRGB(52,58,78),1)local _V=_F(string.char(43),UDim2.fromOffset(34,30),UDim2.new(1,-34,0,0),nil,_S,15)local _W=_l(string.char(70,114,97,109,101),{LayoutOrder=3,Size=UDim2.new(1,0,0,42),BackgroundTransparency=1},_P)local _X=_F(string.char(85,80),UDim2.new(0.5,-3,1,0),UDim2.new(0,0,0,0),nil,_W,13)local _Y=_F(string.char(68,79,87,78),UDim2.new(0.5,-3,1,0),UDim2.new(0.5,3,0,0),nil,_W,13)local function _Z(_ba)_ba=tonumber(_ba)if _ba then _a=math.clamp(math.floor(_ba),1,_c)end _U.Text=tostring(_a)end _U.FocusLost:Connect(function()_Z(_U.Text)end)_V.MouseButton1Click:Connect(function()_Z(_a+_b)end)_T.MouseButton1Click:Connect(function()_Z(_a-_b)end)local _bb,_bc=false,false local function _bd(_be,_bf)_be.InputBegan:Connect(function(_bg)if _bg.UserInputType==Enum.UserInputType.MouseButton1 or _bg.UserInputType==Enum.UserInputType.Touch then _bf(true)end end)_be.InputEnded:Connect(function(_bh)if _bh.UserInputType==Enum.UserInputType.MouseButton1 or _bh.UserInputType==Enum.UserInputType.Touch then _bf(false)end end)_be.MouseLeave:Connect(function()_bf(false)end)end _bd(_X,function(_bi)_bb=_bi end)_bd(_Y,function(_bj)_bc=_bj end)local _bk,_bl,_bm _D.InputBegan:Connect(function(_bn)if _bn.UserInputType==Enum.UserInputType.MouseButton1 or _bn.UserInputType==Enum.UserInputType.Touch then _bk=true _bl=_bn.Position _bm=_B.Position _bn.Changed:Connect(function()if _bn.UserInputState==Enum.UserInputState.End then _bk=false end end)end end)_f.InputChanged:Connect(function(_bo)if _bk and(_bo.UserInputType==Enum.UserInputType.MouseMovement or _bo.UserInputType==Enum.UserInputType.Touch)then local _bp=_bo.Position-_bl _B.Position=UDim2.new(_bm.X.Scale,_bm.X.Offset+_bp.X,_bm.Y.Scale,_bm.Y.Offset+_bp.Y)end end)local _bq=false local _br,_bs,_bt local function _bu(_bv)if _bv then _Q.Text=string.char(70,76,89,58,32,79,78)_Q.BackgroundColor3=Color3.fromRGB(55,160,88)_R.Color=Color3.fromRGB(39,87,56)else _Q.Text=string.char(70,76,89,58,32,79,70,70)_Q.BackgroundColor3=Color3.fromRGB(168,58,64)_R.Color=Color3.fromRGB(86,43,50)end end local function _bw()_bq=false if _bt then _bt:Disconnect()_bt=nil end if _br then _br:Destroy()_br=nil end if _bs then _bs:Destroy()_bs=nil end local _bx=_g.Character local _by=_bx and _bx:FindFirstChildOfClass(string.char(72,117,109,97,110,111,105,100))if _by then _by.PlatformStand=false end _bu(false)end local function _bz()local _bA=_g.Character local _bB=_bA and _bA:FindFirstChildOfClass(string.char(72,117,109,97,110,111,105,100))local _bC=_bA and _bA:FindFirstChild(string.char(72,117,109,97,110,111,105,100,82,111,111,116,80,97,114,116))if not _bB or not _bC then return end _bq=true _br=_l(string.char(66,111,100,121,86,101,108,111,99,105,116,121),{MaxForce=Vector3.new(1e9,1e9,1e9),Velocity=Vector3.zero},_bC)_bs=_l(string.char(66,111,100,121,71,121,114,111),{MaxTorque=Vector3.new(1e9,1e9,1e9),P=9e4,CFrame=_bC.CFrame},_bC)_bB.PlatformStand=true _bu(true)_bt=_e.RenderStepped:Connect(function()local _bD=_g.Character local _bE=_bD and _bD:FindFirstChildOfClass(string.char(72,117,109,97,110,111,105,100))local _bF=_bD and _bD:FindFirstChild(string.char(72,117,109,97,110,111,105,100,82,111,111,116,80,97,114,116))local _bG=workspace.CurrentCamera if not _bE or not _bF or not _br or not _bs or not _bG then _bw()return end local _bH=_bG.CFrame local _bI=_bH:VectorToObjectSpace(_bE.MoveDirection)local _bJ=_bH.LookVector*-_bI.Z+_bH.RightVector*_bI.X local _bK=0 if _bb or _f:IsKeyDown(Enum.KeyCode.Space)then _bK=_bK+1 end if _bc or _f:IsKeyDown(Enum.KeyCode.LeftShift)or _f:IsKeyDown(Enum.KeyCode.Q)then _bK=_bK-1 end _bJ=_bJ+Vector3.new(0,_bK,0)_br.Velocity=_bJ.Magnitude>0.01 and _bJ.Unit*_a or Vector3.zero _bs.CFrame=CFrame.new(_bF.Position,_bF.Position+_bH.LookVector)end)end local function _bL()if _bq then _bw()else _bz()end end _Q.MouseButton1Click:Connect(_bL)local _bM=false _N.MouseButton1Click:Connect(function()_bM=not _bM _P.Visible=not _bM _B.Size=_bM and UDim2.fromOffset(200,26)or UDim2.fromOffset(200,160)_N.Text=_bM and string.char(43)or string.char(45)end)_O.MouseButton1Click:Connect(function()_bw()_A:Destroy()end)_f.InputBegan:Connect(function(_bN,_bO)if _bO or not _A.Parent then return end if _bN.KeyCode==Enum.KeyCode.F then _bL()end end)_g.CharacterAdded:Connect(function()if _A.Parent then _bw()end end)