print("[AnalogIndex] Iniciando...") local P=game:GetService("Players") local R=game:GetService("RunService") local T=game:GetService("TweenService") local UIS=game:GetService("UserInputService") local p=P.LocalPlayer local pg=p:WaitForChild("PlayerGui") -- 1. LOADING local lg=Instance.new("ScreenGui") lg.Name="AILoad" lg.ResetOnSpawn=false lg.IgnoreGuiInset=true lg.DisplayOrder=20 lg.Parent=pg local lf=Instance.new("Frame") lf.Size=UDim2.new(0,320,0,200) lf.Position=UDim2.new(0.5,-160,0.5,-100) lf.BackgroundColor3=Color3.fromRGB(20,20,28) lf.BorderSizePixel=0 lf.Parent=lg Instance.new("UICorner",lf).CornerRadius=UDim.new(0,12) local stroke=Instance.new("UIStroke",lf) stroke.Color=Color3.fromRGB(60,130,220) stroke.Thickness=2 local lt=Instance.new("TextLabel",lf) lt.Size=UDim2.new(1,0,0,40) lt.Position=UDim2.new(0,0,0,15) lt.BackgroundTransparency=1 lt.Text="AnalogIndex" lt.TextColor3=Color3.fromRGB(255,255,255) lt.Font=Enum.Font.GothamBold lt.TextSize=22 local ls=Instance.new("TextLabel",lf) ls.Size=UDim2.new(1,-40,0,30) ls.Position=UDim2.new(0,20,0,60) ls.BackgroundTransparency=1 ls.Text="Starting... / Iniciando..." ls.TextColor3=Color3.fromRGB(200,200,210) ls.Font=Enum.Font.Gotham ls.TextSize=13 ls.TextXAlignment=Enum.TextXAlignment.Left local bb=Instance.new("Frame",lf) bb.Size=UDim2.new(1,-40,0,16) bb.Position=UDim2.new(0,20,0,100) bb.BackgroundColor3=Color3.fromRGB(35,35,45) bb.BorderSizePixel=0 bb.Parent=lf Instance.new("UICorner",bb).CornerRadius=UDim.new(0,8) local bf=Instance.new("Frame",bb) bf.Size=UDim2.new(0,0,1,0) bf.BackgroundColor3=Color3.fromRGB(60,130,220) bf.BorderSizePixel=0 bf.Parent=bb Instance.new("UICorner",bf).CornerRadius=UDim.new(0,8) local lp=Instance.new("TextLabel",lf) lp.Size=UDim2.new(1,0,0,20) lp.Position=UDim2.new(0,0,0,125) lp.BackgroundTransparency=1 lp.Text="0%" lp.TextColor3=Color3.fromRGB(255,255,255) lp.Font=Enum.Font.GothamBold lp.TextSize=14 local cargas={ {p=10,t="Checking files / Verificando arquivos"}, {p=25,t="Loading modules / Carregando modulos"}, {p=45,t="Hiding native UI / Escondendo UI nativa"}, {p=69,t="Building joystick / Construindo joystick"}, {p=85,t="Setup speed UI / Configurando velocidade"}, {p=100,t="Ready! / Pronto!"} } for _,v in ipairs(cargas) do ls.Text=v.t lp.Text=tostring(v.p).."%" T:Create(bf,TweenInfo.new(0.6,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{Size=UDim2.new(v.p/100,0,1,0)}):Play() task.wait(0.6) end task.wait(0.4) lg:Destroy() -- 2. ESCONDE O NATIVO task.spawn(function() local tg=pg:WaitForChild("TouchGui",5) if tg and tg:FindFirstChild("TouchControlFrame") then for _,v in pairs(tg.TouchControlFrame:GetChildren()) do if string.find(v.Name,"Thumbstick") then v.Visible=false end end end end) -- 3. CRIA A UI BASE local sg=Instance.new("ScreenGui") sg.Name="AnalogIndexGui" sg.ResetOnSpawn=false sg.IgnoreGuiInset=true sg.DisplayOrder=10 sg.Parent=pg -- O SEGREDO: TextButton para absorver o toque e não deixar a câmera girar local touchArea = Instance.new("TextButton", sg) touchArea.Size = UDim2.new(0.45, 0, 0.35, 0) touchArea.Position = UDim2.new(0, 0, 0.65, 0) touchArea.BackgroundTransparency = 1 touchArea.Text = "" touchArea.Active = true touchArea.ZIndex = 10 local bs=130 local ks=60 local base=Instance.new("Frame",sg) base.Size=UDim2.new(0,bs,0,bs) base.BackgroundColor3=Color3.fromRGB(40,40,50) base.BackgroundTransparency=0.4 base.ZIndex=11 base.Visible=false Instance.new("UICorner",base).CornerRadius=UDim.new(1,0) local kn=Instance.new("Frame",base) kn.Size=UDim2.new(0,ks,0,ks) kn.Position=UDim2.new(0.5,-ks/2,0.5,-ks/2) kn.BackgroundColor3=Color3.fromRGB(80,140,220) kn.ZIndex=12 Instance.new("UICorner",kn).CornerRadius=UDim.new(1,0) -- 4. BOTAO INICIALIZAR local btn=Instance.new("TextButton",sg) btn.Size=UDim2.new(0,110,0,40) btn.Position=UDim2.new(0.5,-55,1,-80) btn.BackgroundColor3=Color3.fromRGB(60,130,220) btn.Text="Inicializar" btn.TextColor3=Color3.fromRGB(255,255,255) btn.Font=Enum.Font.GothamBold btn.TextSize=14 btn.ZIndex=10 Instance.new("UICorner",btn).CornerRadius=UDim.new(0,8) local velocidadeAtiva = false local vel = 16 local dir = Vector3.new(0,0,0) local ativo = false local drag = false local startPos = nil local touchAtual = nil -- 5. KEY SYSTEM btn.MouseButton1Click:Connect(function() if velocidadeAtiva then return end btn.Visible=false local kg=Instance.new("ScreenGui",pg) kg.Name="KeyGui" kg.ResetOnSpawn=false kg.DisplayOrder=15 local kf=Instance.new("Frame",kg) kf.Size=UDim2.new(0,280,0,190) kf.Position=UDim2.new(0.5,-140,0.5,-95) kf.BackgroundColor3=Color3.fromRGB(25,25,35) Instance.new("UICorner",kf).CornerRadius=UDim.new(0,10) local kt=Instance.new("TextLabel",kf) kt.Size=UDim2.new(1,0,0,30) kt.Position=UDim2.new(0,0,0,10) kt.BackgroundTransparency=1 kt.Text="AnalogIndex Key (Speed)" kt.TextColor3=Color3.fromRGB(255,255,255) kt.Font=Enum.Font.GothamBold local kInfo=Instance.new("TextLabel",kf) kInfo.Size=UDim2.new(1,0,0,20) kInfo.Position=UDim2.new(0,0,0,32) kInfo.BackgroundTransparency=1 kInfo.Text="Keys: analogindex / analog index" kInfo.TextColor3=Color3.fromRGB(150,150,150) kInfo.Font=Enum.Font.Gotham kInfo.TextSize=11 local kb=Instance.new("TextBox",kf) kb.Size=UDim2.new(0.8,0,0,35) kb.Position=UDim2.new(0.1,0,0,60) kb.BackgroundColor3=Color3.fromRGB(45,45,60) kb.PlaceholderText="Digite a key..." kb.Text="" kb.TextColor3=Color3.fromRGB(255,255,255) Instance.new("UICorner",kb).CornerRadius=UDim.new(0,6) local kv=Instance.new("TextButton",kf) kv.Size=UDim2.new(0.35,0,0,35) kv.Position=UDim2.new(0.1,0,0,110) kv.BackgroundColor3=Color3.fromRGB(60,130,220) kv.Text="Entrar" kv.TextColor3=Color3.fromRGB(255,255,255) kv.Font=Enum.Font.GothamBold Instance.new("UICorner",kv).CornerRadius=UDim.new(0,6) local kc=Instance.new("TextButton",kf) kc.Size=UDim2.new(0.35,0,0,35) kc.Position=UDim2.new(0.55,0,0,110) kc.BackgroundColor3=Color3.fromRGB(80,50,50) kc.Text="Cancelar" kc.TextColor3=Color3.fromRGB(255,255,255) kc.Font=Enum.Font.GothamBold Instance.new("UICorner",kc).CornerRadius=UDim.new(0,6) local ke=Instance.new("TextLabel",kf) ke.Size=UDim2.new(1,0,0,20) ke.Position=UDim2.new(0,0,1,-25) ke.BackgroundTransparency=1 ke.Text="" ke.TextColor3=Color3.fromRGB(255,100,100) ke.Font=Enum.Font.Gotham ke.TextSize=12 kc.MouseButton1Click:Connect(function() kg:Destroy() btn.Visible=true end) kv.MouseButton1Click:Connect(function() local k=string.lower(kb.Text) if k=="analogindex" or k=="analog index" then ke.TextColor3=Color3.fromRGB(100,220,100) ke.Text="Valido!" task.wait(0.5) kg:Destroy() velocidadeAtiva = true local toggleBtn=Instance.new("TextButton",sg) toggleBtn.Size=UDim2.new(0,180,0,35) toggleBtn.Position=UDim2.new(1,-200,0,20) toggleBtn.BackgroundColor3=Color3.fromRGB(60,130,220) toggleBtn.Text="Velocidade Interface" toggleBtn.TextColor3=Color3.fromRGB(255,255,255) toggleBtn.Font=Enum.Font.GothamBold toggleBtn.TextSize=14 toggleBtn.TextScaled=true toggleBtn.ZIndex=12 Instance.new("UICorner",toggleBtn).CornerRadius=UDim.new(0,8) local resetBtn=Instance.new("TextButton",sg) resetBtn.Size=UDim2.new(0,90,0,35) resetBtn.Position=UDim2.new(1,-300,0,20) resetBtn.BackgroundColor3=Color3.fromRGB(200,60,60) resetBtn.Text="Resetar" resetBtn.TextColor3=Color3.fromRGB(255,255,255) resetBtn.Font=Enum.Font.GothamBold resetBtn.TextSize=14 resetBtn.TextScaled=true resetBtn.ZIndex=12 resetBtn.Visible=false Instance.new("UICorner",resetBtn).CornerRadius=UDim.new(0,8) local sf=Instance.new("Frame",sg) sf.Size=UDim2.new(0,180,0,110) sf.Position=UDim2.new(0.5,-90,0.5,-55) sf.BackgroundColor3=Color3.fromRGB(25,25,35) sf.ZIndex=10 sf.Visible = false Instance.new("UICorner",sf).CornerRadius=UDim.new(0,10) local st=Instance.new("TextLabel",sf) st.Size=UDim2.new(1,0,0,25) st.BackgroundTransparency=1 st.Text="Velocidade: 16" st.TextColor3=Color3.fromRGB(255,255,255) st.Font=Enum.Font.GothamBold st.TextSize=14 st.ZIndex=11 local sb=Instance.new("TextBox",sf) sb.Size=UDim2.new(0.8,0,0,30) sb.Position=UDim2.new(0.1,0,0,30) sb.BackgroundColor3=Color3.fromRGB(45,45,60) sb.Text="16" sb.TextColor3=Color3.fromRGB(255,255,255) sb.ZIndex=11 Instance.new("UICorner",sb).CornerRadius=UDim.new(0,6) local ab=Instance.new("TextButton",sf) ab.Size=UDim2.new(0.8,0,0,30) ab.Position=UDim2.new(0.1,0,0,70) ab.BackgroundColor3=Color3.fromRGB(60,130,220) ab.Text="Aplicar" ab.TextColor3=Color3.fromRGB(255,255,255) ab.Font=Enum.Font.GothamBold ab.ZIndex=11 Instance.new("UICorner",ab).CornerRadius=UDim.new(0,6) toggleBtn.MouseButton1Click:Connect(function() sf.Visible = not sf.Visible end) ab.MouseButton1Click:Connect(function() local n=tonumber(sb.Text) if n and n>0 and n<=100000 then vel=n st.Text="Velocidade: "..n sf.Visible = false resetBtn.Visible = true else sb.Text="16" end end) resetBtn.MouseButton1Click:Connect(function() vel = 16 st.Text = "Velocidade: 16" sb.Text = "16" resetBtn.Visible = false end) else ke.Text="Key Invalida" end end) end) -- 6. LOGICA DO ANALÓGICO DINÂMICO touchArea.InputBegan:Connect(function(i) if drag then return end if i.UserInputType==Enum.UserInputType.Touch or i.UserInputType==Enum.UserInputType.MouseButton1 then drag=true touchAtual = i startPos=i.Position base.Visible=true base.Position=UDim2.new(0, startPos.X - (bs/2), 0, startPos.Y - (bs/2)) kn.Position=UDim2.new(0.5,-ks/2,0.5,-ks/2) end end) UIS.InputChanged:Connect(function(i) if not drag or i ~= touchAtual then return end if i.UserInputType==Enum.UserInputType.Touch or i.UserInputType==Enum.UserInputType.MouseMovement then local d=i.Position-startPos local m=math.min(d.Magnitude,bs/2-ks/2) local u=Vector2.new(0,0) if d.Magnitude>0 then u=d.Unit end local o=u*m kn.Position=UDim2.new(0.5,o.X-ks/2,0.5,o.Y-ks/2) if m>8 then dir=Vector3.new(u.X,0,u.Y) ativo=true else dir=Vector3.new(0,0,0) ativo=false end end end) UIS.InputEnded:Connect(function(i) if not drag or i ~= touchAtual then return end if i.UserInputType==Enum.UserInputType.Touch or i.UserInputType==Enum.UserInputType.MouseButton1 then drag=false touchAtual = nil base.Visible=false dir=Vector3.new(0,0,0) ativo=false end end) -- 7. MOVIMENTO E FISICA (ULTRA PRECISO) R.RenderStepped:Connect(function() local c = p.Character if not c then return end local hu = c:FindFirstChildOfClass("Humanoid") if not hu then return end if velocidadeAtiva then hu.WalkSpeed = vel end if ativo and dir.Magnitude > 0.1 then local cam = workspace.CurrentCamera local cf = cam.CFrame -- Pega os vetores da câmera, achatados no chão (Y=0) local f = Vector3.new(cf.LookVector.X, 0, cf.LookVector.Z).Unit local r = Vector3.new(cf.RightVector.X, 0, cf.RightVector.Z).Unit -- Calcula o vetor final de movimento (direção que o dedo puxa) -- -dir.Z é usado porque no UI, subir é negativo. local wd = (f * -dir.Z) + (r * dir.X) if wd.Magnitude > 0 then wd = wd.Unit -- Força o Roblox a girar o boneco para a direção do movimento hu.AutoRotate = true -- Aplica o movimento nativo (faz a animação funcionar e respeita as paredes) hu:Move(wd, false) end else -- Se soltar o dedo, manda parar hu:Move(Vector3.new(0, 0, 0), false) end end) print("[AnalogIndex] Pronto e Rodando 100%!")