I want to make a tycoon that drop bricks with a particle emitter and i d'ont know how to edit the script that i use
wait(2) workspace:WaitForChild("PartStorage")
while true do wait(3) -- How long in between drops local part = Instance.new("Part",workspace.PartStorage) part.BrickColor=script.Parent.Parent.Parent.DropColor.Value part.Material=script.Parent.Parent.Parent.MaterialValue.Value local cash = Instance.new("IntValue",part) cash.Name = "Cash" cash.Value = 25 -- How much the drops are worth part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.75,0) part.FormFactor = "Custom" part.Size=Vector3.new(1.25, 1.7, 1.7) -- Size of the drops part.TopSurface = "Smooth" part.BottomSurface = "Smooth" game.Debris:AddItem(part,20) -- How long until the drops expire end
and i tried that one too
wait(2) workspace:WaitForChild("PartStorage")
meshDrop = false particleDrop = true
--Mesh Settings--
meshID = ""
textureID = ""
--Particle Settings--
particleID = 'rbxassetid://286708119'
--Part Settings--
formFactor = 'Block' dropValue = 5 dropTransparency = 0
while true do wait(1.5) -- How long in between drops local part = Instance.new("Part",workspace.PartStorage) local cash = Instance.new("IntValue",part) cash.Name = "Cash" cash.Value = dropValue part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0) part.BrickColor=script.Parent.Parent.Parent.DropColor.Value part.Material=script.Parent.Parent.Parent.MaterialValue.Value part.FormFactor = ("Custom") part.Size=Vector3.new(2,2,2) -- Size of the drops part.Shape=(formFactor) part.TopSurface = ('Smooth') part.BottomSurface = ('Smooth') part.Transparency = dropTransparency
if meshDrop == true then
local Mesh = Instance.new ("SpecialMesh",part)
Mesh.MeshId = meshID
Mesh.TextureId = textureID
Mesh.Scale =Vector3.new(1,1,1)-- Mesh size
end
if particleDrop == true then
local Particle = Instance.new("ParticleEmitter",part)
Particle.Texture = particleID
Particle.Speed = NumberRange.new(0)
Particle.Lifetime = NumberRange.new(0.1)
Particle.Rate = 1000
Particle.Transparency = NumberSequence.new(0)
end
game.Debris:AddItem(part,5) -- How long until the drops expire
end

1 comment
this is not a request site