local p=game:GetService("Players").LocalPlayer local u=game:GetService("UserInputService") local g=Instance.new("ScreenGui") g.Parent=game.CoreGui local f=Instance.new("Frame") f.Parent=g f.Size=UDim2.new(0,220,0,120) f.Position=UDim2.new(0.5,-110,0.5,-60) f.BackgroundColor3=Color3.fromRGB(25,25,25) Instance.new("UICorner",f) local t=Instance.new("TextLabel") t.Parent=f t.Size=UDim2.new(1,0,0.1,0) t.BackgroundTransparency=1 t.Text="Inf Stamina PC [INVICTUS REX]" t.TextScaled=true t.TextColor3=Color3.new(1,1,1) local b=Instance.new("TextButton") b.Parent=f b.Size=UDim2.new(0.8,0,0.35,0) b.Position=UDim2.new(0.1,0,0.4,0) b.Text="OFF" b.TextScaled=true b.BackgroundColor3=Color3.fromRGB(170,40,40) b.TextColor3=Color3.new(1,1,1) Instance.new("UICorner",b) local x=Instance.new("TextButton") x.Parent=f x.Size=UDim2.new(0,26,0,26) x.Position=UDim2.new(1,-26,0,0) x.Text="X" x.TextScaled=true x.BackgroundColor3=Color3.fromRGB(60,60,60) x.TextColor3=Color3.new(1,1,1) Instance.new("UICorner",x) local drag=false local mp local fp f.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 then drag=true mp=i.Position fp=f.Position end end) u.InputChanged:Connect(function(i) if drag and i.UserInputType==Enum.UserInputType.MouseMovement then local d=i.Position-mp f.Position=fp+UDim2.new(0,d.X,0,d.Y) end end) u.InputEnded:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 then drag=false end end) local animId= "rbxassetid://116194318450051" local track=nil local on= false b.MouseButton1Click:Connect(function() on=not on if on then b.Text="ON" b.BackgroundColor3=Color3.fromRGB(40,170,40) else b.Text="OFF" b.BackgroundColor3=Color3.fromRGB(170,40,40) if track then track:Stop() end end end) u.InputBegan:Connect(function(i,gp) if gp then return end if i.KeyCode==Enum.KeyCode.LeftShift or i.KeyCode==Enum.KeyCode.RightShift then if on then if track then track:Stop() end local c=p.Character or p.CharacterAdded:Wait() local h=c:WaitForChild("Humanoid") local a=Instance.new("Animation") a.AnimationId=animId track=h:LoadAnimation(a) track.Looped=true track.Priority=Enum.AnimationPriority.Action4 track:Play() end end end) u.InputEnded:Connect(function(i) if i.KeyCode==Enum.KeyCode.LeftShift or i.KeyCode==Enum.KeyCode.RightShift then if track then track:Stop() end end end) x.MouseButton1Click:Connect(function() if track then track:Stop() end g:Destroy() end) p.CharacterAdded:Connect(function() if track then track:Stop() end end)