Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local TeleportService = game:GetService("TeleportService")
- local TweenService = game:GetService("TweenService")
- local loadingGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- local frame = Instance.new("Frame", loadingGui)
- local text = Instance.new("TextLabel", frame)
- frame.Size = UDim2.new(1,0,1,0)
- frame.BackgroundColor3 = Color3.fromRGB(10,10,10)
- text.Size = UDim2.new(1,0,0.2,0)
- text.Position = UDim2.new(0,0,0.4,0)
- text.Text = "NVCat Script"
- text.TextScaled = true
- text.TextColor3 = Color3.new(1,1,1)
- text.BackgroundTransparency = 1
- for i = 1,3 do
- text.Text = "NVCat Script" .. string.rep(".", i)
- task.wait(0.4)
- end
- TweenService:Create(frame, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play()
- task.wait(0.5)
- loadingGui:Destroy()
- local OrionLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/shlexware/Orion/main/source"))()
- OrionLib.Themes.Dark = {
- Main = Color3.fromRGB(15,15,15),
- Second = Color3.fromRGB(25,25,25),
- Stroke = Color3.fromRGB(60,60,60),
- Divider = Color3.fromRGB(40,40,40),
- Text = Color3.fromRGB(255,255,255),
- TextDark = Color3.fromRGB(180,180,180)
- }
- local Window = OrionLib:MakeWindow({
- Name = "NVCat Script",
- HidePremium = false,
- SaveConfig = true,
- ConfigFolder = "NVCat_Script",
- IntroEnabled = true,
- IntroText = "NVCat Script"
- })
- local Tabs = {
- Main = Window:MakeTab({Name = "Main", Icon = "rbxassetid://4483345998"}),
- Misc = Window:MakeTab({Name = "Misc", Icon = "rbxassetid://4483345998"}),
- Settings = Window:MakeTab({Name = "Settings", Icon = "rbxassetid://4483345998"})
- }
- local State = {Stamina = false}
- local Connections = {}
- local function Clean()
- for _,c in pairs(Connections) do
- pcall(function() c:Disconnect() end)
- end
- Connections = {}
- end
- local function Notify(t, c)
- OrionLib:MakeNotification({Name = t, Content = c, Time = 3})
- end
- local function ApplyStamina(character)
- Clean()
- local function getMax()
- local attr = character:GetAttribute("MaxStamina")
- if attr then return attr end
- local val = character:FindFirstChild("MaxStamina") or player:FindFirstChild("MaxStamina")
- if val and (val:IsA("NumberValue") or val:IsA("IntValue")) then
- return val.Value
- end
- return nil
- end
- local function setMax()
- local max = getMax()
- if not max then return end
- if character:GetAttribute("Stamina") ~= nil then
- character:SetAttribute("Stamina", max)
- end
- local stam = character:FindFirstChild("Stamina") or player:FindFirstChild("Stamina")
- if stam and (stam:IsA("NumberValue") or stam:IsA("IntValue")) then
- stam.Value = max
- end
- end
- task.delay(1, setMax)
- table.insert(Connections, character:GetAttributeChangedSignal("MaxStamina"):Connect(setMax))
- local maxVal = character:FindFirstChild("MaxStamina") or player:FindFirstChild("MaxStamina")
- if maxVal then
- table.insert(Connections, maxVal:GetPropertyChangedSignal("Value"):Connect(setMax))
- end
- local stam = character:FindFirstChild("Stamina") or player:FindFirstChild("Stamina")
- if stam then
- table.insert(Connections, stam:GetPropertyChangedSignal("Value"):Connect(setMax))
- end
- end
- Tabs.Main:AddToggle({
- Name = "Infinite Stamina",
- Default = false,
- Save = true,
- Callback = function(v)
- State.Stamina = v
- Notify("Stamina", v and "Enabled" or "Disabled")
- if v then
- local char = player.Character or player.CharacterAdded:Wait()
- ApplyStamina(char)
- else
- Clean()
- end
- end
- })
- Tabs.Misc:AddButton({
- Name = "Rejoin", Callback = function()
- TeleportService:Teleport(game.PlaceId, player)
- end
- })
- Tabs.Settings:AddButton({
- Name = "Destroy GUI",
- Callback = function()
- OrionLib:Destroy()
- end
- })
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- local mainBtn = Instance.new("TextButton", gui)
- mainBtn.Size = UDim2.new(0,60,0,60)
- mainBtn.Position = UDim2.new(0,20,0.5,-30)
- mainBtn.Text = "+"
- mainBtn.BackgroundColor3 = Color3.fromRGB(20,20,20)
- mainBtn.TextColor3 = Color3.new(1,1,1)
- mainBtn.Active = true
- mainBtn.Draggable = true
- local buttons = {}
- local labels = {"UI","Rejoin"}
- for i, name in ipairs(labels) do
- local b = Instance.new("TextButton", gui)
- b.Size = UDim2.new(0,50,0,50)
- b.Position = mainBtn.Position
- b.Text = name
- b.Visible = false
- b.BackgroundColor3 = Color3.fromRGB(30,30,30)
- b.TextColor3 = Color3.new(1,1,1)
- table.insert(buttons, b)
- end
- local open = false
- local function toggleMenu()
- open = not open
- for i, b in ipairs(buttons) do
- b.Visible = true
- local targetPos = open and UDim2.new(0,20,0.5,-30 - (i*60)) or mainBtn.Position
- TweenService:Create(b, TweenInfo.new(0.25), {Position = targetPos}):Play()
- if not open then
- task.delay(0.25, function()
- b.Visible = false
- end)
- end
- end
- end
- mainBtn.MouseButton1Click:Connect(toggleMenu)
- buttons[1].MouseButton1Click:Connect(function()
- OrionLib:Toggle()
- end)
- buttons[2].MouseButton1Click:Connect(function()
- TeleportService:Teleport(game.PlaceId, player)
- end)
- player.CharacterAdded:Connect(function(char)
- if State.Stamina then
- ApplyStamina(char)
- end
- end)
- OrionLib:Init()
- Notify("NVCat Script", "Loaded 🔥")
Advertisement
Add Comment
Please, Sign In to add comment