Gubby Spawner Script
Key RequiredUniversal

Gubby Spawner Script

Universal ScriptPOOIPOOPPOOIPOOP 36.4K views 959 executesUpdated Jun 14, 2025
5.0/ 5(3 votes)
30100% Positive
Lua Script•161 lines (4385 chars)
local Players = game:GetService("Players")
local PhysicsService = game:GetService("PhysicsService")
local localPlayer = Players.LocalPlayer
local userId = 5194045751 -- New user's UserId

-- Create Gubby bot
local function createGubbyBot()
	local bot = Players:CreateHumanoidModelFromUserId(userId)
	bot.Name = "Gubby"
	bot.Parent = workspace

	local humanoid = bot:WaitForChild("Humanoid")
	local hrp = bot:WaitForChild("HumanoidRootPart")
	humanoid.DisplayName = " "
	humanoid.WalkSpeed = 14

	local soundIds = {
		"rbxassetid://6715870978",
		"rbxassetid://9118862378"
	}

	task.spawn(function()
		while true do
			task.wait(math.random(1, 10))
			local s = Instance.new("Sound", bot)
			s.SoundId = soundIds[math.random(1, #soundIds)]
			s.PlaybackSpeed = ({0.7, 1, 1.5})[math.random(1, 3)]
			s.Volume = 1
			s:Play()
			s.Ended:Connect(function() s:Destroy() end)
		end
	end)

	task.spawn(function()
		while true do
			task.wait(math.random(1, 4))
			humanoid.Jump = true
		end
	end)

	return bot, hrp, humanoid
end

-- Gubby instance
local bot, hrp, humanoid = createGubbyBot()

local followPlayer = true
local randomWalk = false

-- Movement logic
task.spawn(function()
	while true do
		local char = localPlayer.Character or localPlayer.CharacterAdded:Wait()
		local root = char:FindFirstChild("HumanoidRootPart")
		if root and hrp then
			if not char:FindFirstChild("Humanoid") or char:FindFirstChild("Humanoid").Health <= 0 then
				repeat task.wait() until char:FindFirstChild("Humanoid") and char.Humanoid.Health > 0
			end
			local dist = (hrp.Position - root.Position).Magnitude
			if dist > 100 then
				bot:SetPrimaryPartCFrame(root.CFrame * CFrame.new(2, 0, 2))
			elseif followPlayer then
				humanoid:MoveTo(root.Position)
			elseif randomWalk then
				local randomPos = Vector3.new(
					math.random(-50, 50),
					hrp.Position.Y,
					math.random(-50, 50)
				)
				humanoid:MoveTo(randomPos)
				task.wait(5)
			end
		end
		task.wait(0.5)
	end
end)

-- GUI
local gui = Instance.new("ScreenGui", game:GetService("CoreGui"))
gui.Name = "GubbyGui"

local uicorner = function(parent)
	local c = Instance.new("UICorner")
	c.CornerRadius = UDim.new(0, 12)
	c.Parent = parent
end

local stroke = function(parent)
	local s = Instance.new("UIStroke")
	s.Thickness = 2
	s.Color = Color3.fromRGB(0, 255, 255)
	s.Parent = parent
end

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 220, 0, 140)
frame.Position = UDim2.new(0.5, -110, 0.8, -80)
frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
frame.Active = true
frame.Draggable = true
uicorner(frame)
stroke(frame)

local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0, 30)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundTransparency = 1
title.Text = "Gubby Controls"
title.Font = Enum.Font.GothamBold
title.TextSize = 20
title.TextColor3 = Color3.fromRGB(255, 255, 255)

local followButton = Instance.new("TextButton", frame)
followButton.Size = UDim2.new(0.9, 0, 0, 40)
followButton.Position = UDim2.new(0.05, 0, 0, 40)
followButton.Text = "Let Gubby Walk Around :)"
followButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
followButton.TextColor3 = Color3.fromRGB(255, 255, 255)
followButton.Font = Enum.Font.GothamBold
followButton.TextSize = 16
uicorner(followButton)
stroke(followButton)

followButton.MouseButton1Click:Connect(function()
	if followPlayer then
		followPlayer = false
		randomWalk = true
		followButton.Text = "Let Gubby Follow You :)"
	else
		followPlayer = true
		randomWalk = false
		followButton.Text = "Let Gubby Walk Around :)"
	end
end)

local tpButton = Instance.new("TextButton", frame)
tpButton.Size = UDim2.new(0.9, 0, 0, 40)
tpButton.Position = UDim2.new(0.05, 0, 0, 90)
tpButton.Text = "Teleport Gubby"
tpButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
tpButton.TextColor3 = Color3.fromRGB(255, 255, 255)
tpButton.Font = Enum.Font.GothamBold
tpButton.TextSize = 16
uicorner(tpButton)
stroke(tpButton)

tpButton.MouseButton1Click:Connect(function()
	local char = localPlayer.Character
	local root = char and char:FindFirstChild("HumanoidRootPart")
	if root and hrp then
		bot:SetPrimaryPartCFrame(root.CFrame * CFrame.new(2, 0, 2))
	end
end)

-- Notification
game:GetService("StarterGui"):SetCore("SendNotification", {
	Title = "Made by Akram",
	Text = "Gubby is here! Enjoy!",
	Icon = "rbxassetid://6715870978",
	Duration = 5
})

Features & Information

Gubby Spawner Script lol hope you like this

Community Comments (15)

hazbeansidkhazbeansidkJun 14, 2025

peak

BopIsmeBopIsmeJun 15, 2025

Ai and bro make better ui do you want help? I can give you cool ai promt for better gui

xyrevexxyrevexJun 17, 2025

@BopIsMe bro aint no way you complained about it being AI and then said you could make it better with an AI prompt

xyrevexxyrevexJun 17, 2025

stolen

BopIsmeBopIsmeJun 17, 2025

@Astric I wasn't complaining, I just wanted to help a newbie.

xyrevexxyrevexJun 18, 2025

@BopIsMe atp your the newbie aswell cuz u use chatGPT

BopIsmeBopIsmeJun 18, 2025

Okay bro have a nice day @Astric

POOIPOOPPOOIPOOPJul 4, 2025

I got this from a video from the channel mastermz

POOIPOOPPOOIPOOPJul 4, 2025

it looks like ai because of the comments in this script

akramfrlmaoakramfrlmaoJul 8, 2025

Hey dude this isnt yours its mine

akramfrlmaoakramfrlmaoJul 8, 2025

Delete it now

POOIPOOPPOOIPOOPJul 12, 2025

but…

POOIPOOPPOOIPOOPJul 12, 2025

why not?

ScriptbloxTermedMeScriptbloxTermedMeJul 21, 2025

AI

POOIPOOPPOOIPOOPSep 28, 2025

ok LIKE IF IT IS AI STOP SPAMING IN THE CHAT "AI🤓🤓" SHUT THE * UP *S

More Scripts for Universal Scripts