Basically, I’m making a smoke particle but its blocky and 3D.
I want the smoke part to appear randomly within the smoke emitter
I am not using a particle emitter.
Code:
while true do
local smoke = Instance.new("Part")
smoke.Size = Vector3.new(0.4,0.4,0.4)
smoke.Position=--im stumped here
smoke.Parent=script.Parent
smoke.Transparency=0.5
smoke.BrickColor=BrickColor.new("Lily white")
smoke.Anchored=true
local smokeup = script.script:Clone()
smokeup.Parent = smoke
smokeup.Disabled=false
wait(3)
end
I would save them separately and math.random it all together in a vector3
local min = pos-size/2
local max = pos+size/2
smoke.Position = Vector3.new(
math.random(min.X,max.X),
math.random(min.Y,max.Y),
math.random(min.Z,max.Z)
)