Hello I need it so that when this script makes a block it puts a decal on a certain side of it.
--Just put this script in your game, save it, and watch the magic happen!
--Function:
--makeCloud(spawn distance, spawn height, spawn width, distance to be traveled, minimum size, maximum size)
frequency = script.Frequency
--[[Frequency of clouds:
0 = No clouds
1 = Overcast
2 = Normal
3 = Thickening clouds
4 = Lots of clouds
5 = Storm/Hurricane
]]
colors = {"Institutional white","White","Light stone grey"}
----------------------------------------
--make model to store the clouds in-----
clouds = Instance.new("Model",workspace)
clouds.Name = "Clouds"
cloudmove = script.MoveClouds:clone()
cloudmove.Parent = clouds
cloudmove.Disabled = false
----------------------------------------
function makeCloud(spawndist,spawnheight,spawnwidth,distance,minsize,maxsize)
cloudmodel = Instance.new("Model",clouds)
cloudmodel.Name = "Cloud"
xh = -spawndist
yh = math.random(spawnheight,spawnheight+100)
zh = math.random(-spawnwidth,spawnwidth)
xs = math.random(minsize,maxsize)
ys = math.floor(math.random(minsize,maxsize)/8)
zs = math.random(minsize,maxsize)
increase = 30
cloud = Instance.new("Part",cloudmodel)
cloud.TopSurface = 0
cloud.BottomSurface = 0
cloud.Size = Vector3.new(xs+i*increase,math.floor(ys+i*increase/2),zs+i*increase)
cloud.Transparency = 0
cloud.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
cloud.Anchored = true
cloud.CanCollide = false
cloud.CFrame = CFrame.new(xh,yh,zh)
end
v1 = Instance.new("NumberValue",cloudmodel)
v1.Name = "Distance"
v1.Value = distance
v2 = Instance.new("NumberValue",cloudmodel)
v2.Name = "DistanceTraveled"
end
while true do
wait(math.random(10,20))
raincloud = math.random(1,10)
if (raincloud == 1) then
makeCloud(3000,350,1000,6000,200,600)
else
makeCloud(3000,350,1000,6000,200,600)
end
end
