
4.1k Views
8 Executions
Blocky P3ts
Universal Script 📌
skibidimariodisneyPublished 10
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Pet block Simple Lag warning
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local HRP = Character:WaitForChild("HumanoidRootPart")
local MAX_BLOCKS = 100
local DETECT_RADIUS = 30
local WANDER_RADIUS = 50
local INTERACT_DIST = 5
local spawnableParts = {}
for _, obj in ipairs(Workspace:GetDescendants()) do
if obj:IsA("BasePart") and obj.CanCollide and not obj:IsDescendantOf(Character) then
table.insert(spawnableParts, obj)
end
end
local function randomPointOnPart(part)
local s = part.Size * 0.5
local offset = Vector3.new(
math.random(-s.X, s.X),
math.random(-s.Y, s.Y),
math.random(-s.Z, s.Z)
)
return part.Position + offset
end
local wanderers = {}
local function spawnWanderer(atPlayerPosition)
local spawnPos
if atPlayerPosition and math.random() < 0.5 then
spawnPos = HRP.Position + Vector3.new(0,2,0)
else
local part = spawnableParts[math.random(1,#spawnableParts)]
spawnPos = randomPointOnPart(part)
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







