local P,pl,cam,gO=game:GetService("Players"),game.Players.LocalPlayer,workspace.CurrentCamera,false local K="davi12ser" local function C(c,p,t)local o=Instance.new(c)o.Parent=p if t then for k,v in pairs(t)do o[k]=v end end return o end local function G() local gui=C("ScreenGui",pl.PlayerGui,{Name="HUB",ResetOnSpawn=false}) local FOV=120 cam.FieldOfView=FOV local f=C("Frame",gui,{Size=UDim2.fromScale(0.25,0.15),Position=UDim2.fromScale(0.375,0.4),BackgroundColor3=Color3.fromRGB(30,30,30),Active=true}) C("UICorner",f,{CornerRadius=UDim.new(0,16)}) C("TextLabel",f,{Size=UDim2.fromScale(1,0.3),Position=UDim2.fromScale(0,0),BackgroundTransparency=1,Text="Controle de FOV",TextColor3=Color3.new(1,1,1),TextScaled=true,Font=Enum.Font.GothamBold}) local lbl=C("TextLabel",f,{Size=UDim2.fromScale(1,0.25),Position=UDim2.fromScale(0,0.3),BackgroundTransparency=1,Text="FOV: "..FOV,TextColor3=Color3.fromRGB(200,200,200),TextScaled=true,Font=Enum.Font.Gotham}) local sB=C("Frame",f,{Size=UDim2.fromScale(0.9,0.15),Position=UDim2.fromScale(0.05,0.55),BackgroundColor3=Color3.fromRGB(60,60,60)}) C("UICorner",sB,{CornerRadius=UDim.new(1,0)}) local sF=C("Frame",sB,{Size=UDim2.fromScale((FOV-60)/120,1),Position=UDim2.fromScale(0,0),BackgroundColor3=Color3.fromRGB(0,170,255)}) C("UICorner",sF,{CornerRadius=UDim.new(1,0)}) local UIS=game:GetService("UserInputService") local dS,dF=false,false local dO=Vector2.new() local function u(f)f=math.clamp(f,60,180)cam.FieldOfView=f lbl.Text="FOV: "..f sF.Size=UDim2.fromScale((f-60)/120,1)end f.InputBegan:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then dF=true dO=i.Position-f.AbsolutePosition end end) f.InputEnded:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then dF=false end end) UIS.InputChanged:Connect(function(i)if dF and i.UserInputType==Enum.UserInputType.MouseMovement then f.Position=UDim2.new(0,i.Position.X-dO.X,0,i.Position.Y-dO.Y) end end) sB.InputBegan:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then dS=true end end) UIS.InputEnded:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then dS=false end end) UIS.InputChanged:Connect(function(i)if dS and i.UserInputType==Enum.UserInputType.MouseMovement then local mx=i.Position.X local pos=sB.AbsolutePosition.X local size=sB.AbsoluteSize.X u(math.floor(60+math.clamp((mx-pos)/size,0,1)*120)) end end) local function b(t,p,c) local btn=C("TextButton",f,{Size=UDim2.fromScale(0.2,0.2),Position=p,Text=t,TextScaled=true,Font=Enum.Font.GothamBold,BackgroundColor3=c,TextColor3=Color3.new(1,1,1)}) btn.MouseButton1Click:Connect(function() if t=="+" then u(cam.FieldOfView+5) else u(cam.FieldOfView-5) end end) end b("+",UDim2.fromScale(0.75,0.8),Color3.fromRGB(0,170,255)) b("-",UDim2.fromScale(0.05,0.8),Color3.fromRGB(255,85,85)) end local function KMenu() local gui=C("ScreenGui",pl.PlayerGui,{Name="KEY",ResetOnSpawn=false}) local f=C("Frame",gui,{Size=UDim2.fromScale(0.3,0.2),Position=UDim2.fromScale(0.35,0.4),BackgroundColor3=Color3.fromRGB(40,40,40)}) C("UICorner",f,{CornerRadius=UDim.new(0,12)}) C("TextLabel",f,{Size=UDim2.fromScale(1,0.3),Position=UDim2.fromScale(0,0),BackgroundTransparency=1,Text="Digite a chave",TextColor3=Color3.new(1,1,1),TextScaled=true,Font=Enum.Font.GothamBold}) local t=C("TextBox",f,{Size=UDim2.fromScale(0.8,0.25),Position=UDim2.fromScale(0.1,0.5),PlaceholderText="Chave aqui...",Text="",TextColor3=Color3.new(1,1,1),BackgroundColor3=Color3.fromRGB(60,60,60),Font=Enum.Font.Gotham,TextScaled=true}) t.FocusLost:Connect(function(e)if e then if t.Text==K and not gO then gui:Destroy() gO=true G() else t.Text="" t.PlaceholderText="Chave incorreta!" end end end) end if not gO then KMenu() end