-- Script Name: prince_ajoffical095 gui -- Version: Prince AJ Gui V2.300 (Previous state restored) local CoreGui = game:GetService("CoreGui") local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local TeleportService = game:GetService("TeleportService") local StarterGui = game:GetService("StarterGui") local VirtualUser = game:GetService("VirtualUser") local Player = Players.LocalPlayer local ScreenGui = Instance.new("ScreenGui", CoreGui) ScreenGui.Name = "prince_ajoffical095" local MainFrame = Instance.new("Frame", ScreenGui) MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 228, 0, 280) MainFrame.Position = UDim2.new(0.5, -114, 0.5, -140) MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) MainFrame.Active = true MainFrame.Draggable = true Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 15) -- State Logic local isClosed = false local InfJump = false local HidePlayers = false local AntiFling = false local AntiAFK = false local Invisible = false local tweenInfo = TweenInfo.new(0.6, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out) -- Cleanup Function local function ResetAllFeatures() StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true) for _, p in pairs(Players:GetPlayers()) do if p ~= Player and p.Character then for _, part in pairs(p.Character:GetDescendants()) do if part:IsA("BasePart") or part:IsA("Decal") then part.Transparency = 0 end end end end if Player.Character and Player.Character:FindFirstChild("Humanoid") then Player.Character.Humanoid.WalkSpeed = 16 end end -- UI Setup MainFrame.Size = UDim2.new(0, 0, 0, 0) TweenService:Create(MainFrame, TweenInfo.new(0.8, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {Size = UDim2.new(0, 228, 0, 280)}):Play() local UIStroke = Instance.new("UIStroke", MainFrame) UIStroke.Thickness = 3 RunService.RenderStepped:Connect(function() UIStroke.Color = Color3.fromHSV(tick() % 5 / 5, 1, 1) end) local Header = Instance.new("Frame", MainFrame) Header.Size = UDim2.new(1, 0, 0, 30) Header.BackgroundTransparency = 1 local CloseBtn = Instance.new("TextButton", Header) CloseBtn.Size = UDim2.new(0, 30, 1, 0) CloseBtn.Position = UDim2.new(0, 0, 0, 0) CloseBtn.Text = "X" CloseBtn.TextColor3 = Color3.fromRGB(255, 0, 0) CloseBtn.BackgroundTransparency = 1 CloseBtn.MouseButton1Click:Connect(function() ResetAllFeatures() ScreenGui:Destroy() end) local ToggleBtn = Instance.new("TextButton", Header) ToggleBtn.Size = UDim2.new(0, 30, 1, 0) ToggleBtn.Position = UDim2.new(0, 30, 0, 0) ToggleBtn.Text = "-" ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleBtn.BackgroundTransparency = 1 local TitleLabel = Instance.new("TextLabel", Header) TitleLabel.Size = UDim2.new(1, -60, 1, 0) TitleLabel.Position = UDim2.new(0, 60, 0, 0) TitleLabel.Text = "Prince AJ Gui V2.300" TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TitleLabel.BackgroundTransparency = 1 local ScrollFrame = Instance.new("ScrollingFrame", MainFrame) ScrollFrame.Size = UDim2.new(0.9, 0, 0.8, 0) ScrollFrame.Position = UDim2.new(0.05, 0, 0.15, 0) ScrollFrame.BackgroundTransparency = 1 ScrollFrame.ScrollBarThickness = 5 ScrollFrame.CanvasSize = UDim2.new(0, 0, 5.5, 0) ToggleBtn.MouseButton1Click:Connect(function() isClosed = not isClosed ScrollFrame.Visible = not isClosed ToggleBtn.Text = isClosed and "+" or "-" TweenService:Create(MainFrame, tweenInfo, {Size = isClosed and UDim2.new(0, 228, 0, 30) or UDim2.new(0, 228, 0, 280)}):Play() end) -- Main Loops RunService.Stepped:Connect(function() if AntiFling and Player.Character then for _, part in pairs(Player.Character:GetDescendants()) do if part:IsA("BasePart") then part.Velocity = Vector3.new(0,0,0) part.RotVelocity = Vector3.new(0,0,0) end end end end) Player.Idled:Connect(function() if AntiAFK then VirtualUser:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame) wait(1) VirtualUser:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame) end end) UserInputService.JumpRequest:Connect(function() if InfJump then local Humanoid = Player.Character and Player.Character:FindFirstChild("Humanoid") if Humanoid then Humanoid:ChangeState("Jumping") end end end) -- Buttons local btnNames = {"Inf Jump", "Speed", "YARHM V3", "Load Yield", "Ring V4", "God Mode", "Rejoin", "Anti Swear", "Hide Players: OFF", "Reset", "Anti Fling: OFF", "Leave", "Anti AFK: OFF", "Invisible: OFF"} for i, name in pairs(btnNames) do local btn if name == "Speed" then btn = Instance.new("TextBox", ScrollFrame) btn.PlaceholderText = "Enter Speed" btn.FocusLost:Connect(function(enter) local Humanoid = Player.Character and Player.Character:FindFirstChild("Humanoid") if enter and Humanoid then Humanoid.WalkSpeed = tonumber(btn.Text) or 16 end end) else btn = Instance.new("TextButton", ScrollFrame) btn.MouseButton1Click:Connect(function() if name == "Inf Jump" then InfJump = not InfJump btn.Text = InfJump and "Inf Jump: ON" or "Inf Jump" elseif name == "Anti Fling: OFF" or name == "Anti Fling: ON" then AntiFling = not AntiFling btn.Text = AntiFling and "Anti Fling: ON" or "Anti Fling: OFF" elseif name == "Anti AFK: OFF" or name == "Anti AFK: ON" then AntiAFK = not AntiAFK btn.Text = AntiAFK and "Anti AFK: ON" or "Anti AFK: OFF" elseif name == "Invisible: OFF" or name == "Invisible: ON" then Invisible = not Invisible btn.Text = Invisible and "Invisible: ON" or "Invisible: OFF" if Player.Character then for _, v in pairs(Player.Character:GetDescendants()) do if v:IsA("BasePart") or v:IsA("Decal") then v.Transparency = Invisible and 0.5 or 0 end end end elseif name == "Hide Players: OFF" or name == "Hide Players: ON" then HidePlayers = not HidePlayers StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, not HidePlayers) for _, p in pairs(Players:GetPlayers()) do if p ~= Player and p.Character then for _, part in pairs(p.Character:GetDescendants()) do if part:IsA("BasePart") or part:IsA("Decal") then part.Transparency = HidePlayers and 1 or 0 end end end end btn.Text = HidePlayers and "Hide Players: ON" or "Hide Players: OFF" elseif name == "YARHM V3" then loadstring(game:HttpGet("https://raw.githubusercontent.com/CRYPTo0w/YARHM-V3/refs/heads/main/V3"))() elseif name == "Load Yield" then loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))() elseif name == "Ring V4" then loadstring(game:HttpGet("https://rawscripts.net/raw/Natural-Disaster-Survival-Super-ring-V4-24296"))() elseif name == "God Mode" then loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-God-Mode-Script-Universal-36631"))() elseif name == "Rejoin" then TeleportService:Teleport(game.PlaceId, Player) elseif name == "Leave" then game:Shutdown() elseif name == "Reset" then if Player.Character then Player.Character:BreakJoints() end end end) end btn.Text = name btn.Size = UDim2.new(0.9, 0, 0, 25) btn.Position = UDim2.new(0.05, 0, 0, (i-1) * 30) btn.BackgroundColor3 = Color3.fromRGB(30, 30, 30) btn.TextColor3 = Color3.fromRGB(255, 255, 255) Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6) end