Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DECALID = "244905905" -- Insert decal ID here
- local function GetClasses(Object, Class)
- local Objects = {}
- for _, Child in pairs(Object:GetChildren()) do
- pcall(function()
- if Child:IsA(Class) then
- table.insert(Objects, Child)
- end
- end)
- pcall(function()
- for _, Obj in pairs(GetClasses(Child, Class)) do
- table.insert(Objects, Obj)
- end
- end)
- end
- return Objects
- end
- local function Spam(ID)
- local Surfaces = {"Front", "Back", "Left", "Right", "Top", "Bottom"}
- for _, Part in pairs(GetClasses(game, "BasePart")) do
- for _, Surface in pairs(Surfaces) do
- local Decal = Instance.new("Decal", Part)
- Decal.Face = Surface
- Decal.Texture = "rbxassetid://" .. (ID-1)
- end
- end
- end
- Spam(DECALID)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement