Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Random Decals?

Asked by 10 years ago

How could i make it change the texture (using a table?) instead of going in the ServerStorage?

local Debounce = false

script.Parent.MouseButton1Click:connect(function()
for i = 1,10 do
wait(1)
if Debounce then return end
Debounce = true
Decals = Game.ServerStorage:FindFirstChild("Decals"):GetChildren()
Decals[math.random(1,#Decals - 1)]:Clone().Parent = script.Parent
end
end)

Answer this question