When I’m making games in studio, this texture named ("BottomStud") and ("TopStud") keeps getting automatically spammed into my game and it starts to lag it horribly.
Here’s some screenshots showing the thousands of random stud textures get automatically spammed into my games.
It’s very annoying and takes up all of my time to remove some of these. I’ve tried everything including using the command bar with a script trying to delete it. Nothing works. I only have a script that works on it when somebody’s playing (You can use this script freely, it is for everybody.)
-- Get the service --
local Players = game:GetService("Players")
-- Function to remove textures --
local function removeTextures(player)
for _, part in ipairs(workspace:GetDescendants()) do
if part:IsA("Texture") and (part.Name == "BottomStud" or part.Name == "TopStud") then
part:Remove()
end
end
end
-- Connect function to player added event --
Players.PlayerAdded:Connect(removeTextures)
You’re actual fault in all honestly, check you’re plugins and such for what’s causing it. It’s really up to you to have installed, or added this to you’re studio.
I’m good, take it however you want. It’s a emotionless statement saying you’re at fault for it, I don’t have to soften it up for you so you can eat you’re mush from a straw. Learn to use Studio before you respond senselessly, have a great night.
This issue most likely (99%) has something to do with your code. Something like this has never ever happened to anyone, and I don’t think roblox has a texture spammer mechanism that duplicates textures when you look down lol.
Got to find a script before any decal deleting will do any good. There could be a decal spammer script hidden in your game - could be from a model or from a plug-in.
Open your game in studio, open the viewport window and press Ctrl-P. A small window will open. In that window at the top right corner click the pull down menu and choose ‘Search Script Content’. In the top search bar of that small window do a search for some or all of these:
spamDecal
Decal
Decals
“Decal”
Decalspam
(Whatever the decal IDs are)
A list of scripts will (hopefully) populate in that little window.
Click on the script(s) you find in that window and it will open the script. Then you can identify where it came from and go from there.