Roblox Pet in Roblox Studio

Опубликовано: 19 Май 2026
на канале: ToritoDev
13,273
284

Roblox Pet in Roblox Studio

Hello Robloxians, in this video I have a Roblox Pet for you!

[SCRIPT CODE]
local pet = script.Parent

function givePet (player)
if player then
local character = player.Character
if character then
local humRootPart = character.HumanoidRootPart
local newPet = pet:Clone ()
newPet.Parent = character

local bodyPos = Instance.new("BodyPosition", newPet)
bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)

local bodyGyro = Instance.new("BodyGyro", newPet)
bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)


newPet.CanCollide = false

while wait() do
bodyPos.Position = humRootPart.Position + Vector3.new(4.5, -0.9, 1.5)
bodyGyro.CFrame = humRootPart.CFrame
end

end
end
end

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
givePet(player)
end)
end)

[MUSIC]
   • Runescape 07 - Sea Shanty 2 (Trap Remix)  

Join My New Discord Server!
  / discord  

TAGS:
#Roblox #RobloxStudio #Tutorial