I'm trying to make a dropper block that drops bricks with scripts in them. Could I use something that uses something like this?
p = Instance.new("Part")
p.Anchored = false
p.Position = Vector3.new(math.random(-500,500), 50, math.random(-500,500))
p.Size = Vector3.new(1,0.2,2)
p.Parent = game.workspace
p.BrickColor = BrickColor.new(37)
p.BackSurface = "SmoothNoOutlines"
p.BottomSurface = "SmoothNoOutlines"
p.FrontSurface = "SmoothNoOutlines"
p.LeftSurface = "SmoothNoOutlines"
p.RightSurface = "SmoothNoOutlines"
p.TopSurface = "SmoothNoOutlines"
wait()

1 comment
You can most likely apply the script to the created object in the same script it was created in :) Can you provide the code you wish to put inside the created object?