GabwalkingYT

AdoptMeOPPETSPAWNER

Jun 13th, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. -- Put this LocalScript under StarterGui
  2.  
  3. local player = game.Players.LocalPlayer
  4. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  5. gui.Name = "PetSpawnerGUI"
  6. gui.ResetOnSpawn = false
  7.  
  8. -- Main Frame
  9. local frame = Instance.new("Frame", gui)
  10. frame.Size = UDim2.new(0, 400, 0, 250)
  11. frame.Position = UDim2.new(0.5, -200, 0.5, -125)
  12. frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  13. frame.BorderSizePixel = 0
  14. frame.Active = true
  15. frame.Draggable = true
  16. Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 10)
  17.  
  18. -- Rainbow Title
  19. local title = Instance.new("TextLabel", frame)
  20. title.Size = UDim2.new(1, 0, 0, 40)
  21. title.Position = UDim2.new(0, 0, 0, 0)
  22. title.BackgroundTransparency = 1
  23. title.TextScaled = true
  24. title.Font = Enum.Font.SourceSansBold
  25. title.Text = "Pet Spawner"
  26. title.TextStrokeTransparency = 0
  27. title.TextColor3 = Color3.fromRGB(255, 0, 0)
  28.  
  29. -- Rainbow animation
  30. task.spawn(function()
  31. while true do
  32. for hue = 0, 1, 0.01 do
  33. title.TextColor3 = Color3.fromHSV(hue, 1, 1)
  34. task.wait(0.03)
  35. end
  36. end
  37. end)
  38.  
  39. -- Editable TextBox for pet name
  40. local petBox = Instance.new("TextBox", frame)
  41. petBox.Text = "Spawn Any Pets"
  42. petBox.Size = UDim2.new(0.8, 0, 0, 40)
  43. petBox.Position = UDim2.new(0.1, 0, 0.2, 0)
  44. petBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  45. petBox.TextColor3 = Color3.new(1, 1, 1)
  46. petBox.Font = Enum.Font.SourceSans
  47. petBox.TextScaled = true
  48. petBox.ClearTextOnFocus = false
  49. petBox.PlaceholderText = "Enter Pet Name"
  50. Instance.new("UICorner", petBox).CornerRadius = UDim.new(0, 8)
  51.  
  52. -- Selected button tracking
  53. local selectedButton = nil
  54.  
  55. local function createPowerButton(text, color, pos)
  56. local button = Instance.new("TextButton", frame)
  57. button.Text = text
  58. button.Size = UDim2.new(0, 90, 0, 40)
  59. button.Position = pos
  60. button.BackgroundColor3 = color
  61. button.TextColor3 = Color3.new(1, 1, 1)
  62. button.Font = Enum.Font.SourceSansBold
  63. button.TextScaled = true
  64. Instance.new("UICorner", button).CornerRadius = UDim.new(0, 8)
  65.  
  66. -- Selection logic
  67. button.MouseButton1Click:Connect(function()
  68. if selectedButton then
  69. selectedButton.Text = selectedButton.Name
  70. end
  71. selectedButton = button
  72. button.Text = text .. " Selected"
  73. end)
  74.  
  75. button.Name = text
  76. return button
  77. end
  78.  
  79. -- MFR, NFR, FR buttons
  80. local mfr = createPowerButton("MFR", Color3.fromRGB(255, 75, 75), UDim2.new(0.1, 0, 0.45, 0))
  81. local nfr = createPowerButton("NFR", Color3.fromRGB(0, 255, 100), UDim2.new(0.4, 0, 0.45, 0))
  82. local fr = createPowerButton("FR", Color3.fromRGB(60, 100, 255), UDim2.new(0.7, 0, 0.45, 0))
  83.  
  84. -- Spawn button
  85. local spawnButton = Instance.new("TextButton", frame)
  86. spawnButton.Text = "Spawn Pet"
  87. spawnButton.Size = UDim2.new(0.8, 0, 0, 50)
  88. spawnButton.Position = UDim2.new(0.1, 0, 0.7, 0)
  89. spawnButton.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
  90. spawnButton.TextColor3 = Color3.new(1, 1, 1)
  91. spawnButton.Font = Enum.Font.SourceSansSemibold
  92. spawnButton.TextScaled = true
  93. Instance.new("UICorner", spawnButton).CornerRadius = UDim.new(0, 8)
  94.  
  95. -- Example pet spawn logic
  96. spawnButton.MouseButton1Click:Connect(function()
  97. local petName = petBox.Text
  98. if petName == "" then
  99. warn("Please type a pet name.")
  100. return
  101. end
  102.  
  103. if selectedButton then
  104. print("Spawning pet:", petName, "| Tag:", selectedButton.Name)
  105. else
  106. print("Spawning pet:", petName)
  107. end
  108. end)
  109.  
Advertisement
Add Comment
Please, Sign In to add comment