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()
Parent the clone script to your script that you typed above, and disable it.
After, just put:
local scriptclone = script:WaitForChild("ScriptNameHere"):Clone() -- change "ScriptNameHere" to name of script you want to clone inside the part. scriptclone.Parent = p scriptclone.Disabled = false