hi i am new to creating roblox games and i wanted to do a tycoon, but droppers will spawn custom models so i found this script to spawn bricks but i want to change it to models that i have in my map
function fire()
local p = Instance.new("Part")
p.Position = script.Parent.Position
p.Size = Vector3.new(1,1,1)
p.BrickColor = BrickColor.new(26)
p.BottomSurface = 0
p.TopSurface = 0
p.Name = "Part"
p.Parent = script.Parent
end
while true do
wait(2)
fire()
end
can someone edit the script and give me one that works plz ?

3 comments
yeah but where do i put the model's name ?
@Abdelmoulak It's not about putting the models name somewhere, it's about writing to the location of the model. I do not know where you have stored the model.
it's in tthe explorer what am i sopposed to do to know the paht