Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Put this LocalScript under StarterGui
- local player = game.Players.LocalPlayer
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- gui.Name = "PetSpawnerGUI"
- gui.ResetOnSpawn = false
- -- Main Frame
- local frame = Instance.new("Frame", gui)
- frame.Size = UDim2.new(0, 400, 0, 250)
- frame.Position = UDim2.new(0.5, -200, 0.5, -125)
- frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- frame.BorderSizePixel = 0
- frame.Active = true
- frame.Draggable = true
- Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 10)
- -- Rainbow Title
- local title = Instance.new("TextLabel", frame)
- title.Size = UDim2.new(1, 0, 0, 40)
- title.Position = UDim2.new(0, 0, 0, 0)
- title.BackgroundTransparency = 1
- title.TextScaled = true
- title.Font = Enum.Font.SourceSansBold
- title.Text = "Pet Spawner"
- title.TextStrokeTransparency = 0
- title.TextColor3 = Color3.fromRGB(255, 0, 0)
- -- Rainbow animation
- task.spawn(function()
- while true do
- for hue = 0, 1, 0.01 do
- title.TextColor3 = Color3.fromHSV(hue, 1, 1)
- task.wait(0.03)
- end
- end
- end)
- -- Editable TextBox for pet name
- local petBox = Instance.new("TextBox", frame)
- petBox.Text = "Spawn Any Pets"
- petBox.Size = UDim2.new(0.8, 0, 0, 40)
- petBox.Position = UDim2.new(0.1, 0, 0.2, 0)
- petBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- petBox.TextColor3 = Color3.new(1, 1, 1)
- petBox.Font = Enum.Font.SourceSans
- petBox.TextScaled = true
- petBox.ClearTextOnFocus = false
- petBox.PlaceholderText = "Enter Pet Name"
- Instance.new("UICorner", petBox).CornerRadius = UDim.new(0, 8)
- -- Selected button tracking
- local selectedButton = nil
- local function createPowerButton(text, color, pos)
- local button = Instance.new("TextButton", frame)
- button.Text = text
- button.Size = UDim2.new(0, 90, 0, 40)
- button.Position = pos
- button.BackgroundColor3 = color
- button.TextColor3 = Color3.new(1, 1, 1)
- button.Font = Enum.Font.SourceSansBold
- button.TextScaled = true
- Instance.new("UICorner", button).CornerRadius = UDim.new(0, 8)
- -- Selection logic
- button.MouseButton1Click:Connect(function()
- if selectedButton then
- selectedButton.Text = selectedButton.Name
- end
- selectedButton = button
- button.Text = text .. " Selected"
- end)
- button.Name = text
- return button
- end
- -- MFR, NFR, FR buttons
- local mfr = createPowerButton("MFR", Color3.fromRGB(255, 75, 75), UDim2.new(0.1, 0, 0.45, 0))
- local nfr = createPowerButton("NFR", Color3.fromRGB(0, 255, 100), UDim2.new(0.4, 0, 0.45, 0))
- local fr = createPowerButton("FR", Color3.fromRGB(60, 100, 255), UDim2.new(0.7, 0, 0.45, 0))
- -- Spawn button
- local spawnButton = Instance.new("TextButton", frame)
- spawnButton.Text = "Spawn Pet"
- spawnButton.Size = UDim2.new(0.8, 0, 0, 50)
- spawnButton.Position = UDim2.new(0.1, 0, 0.7, 0)
- spawnButton.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
- spawnButton.TextColor3 = Color3.new(1, 1, 1)
- spawnButton.Font = Enum.Font.SourceSansSemibold
- spawnButton.TextScaled = true
- Instance.new("UICorner", spawnButton).CornerRadius = UDim.new(0, 8)
- -- Example pet spawn logic
- spawnButton.MouseButton1Click:Connect(function()
- local petName = petBox.Text
- if petName == "" then
- warn("Please type a pet name.")
- return
- end
- if selectedButton then
- print("Spawning pet:", petName, "| Tag:", selectedButton.Name)
- else
- print("Spawning pet:", petName)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment