Hi, so I found a script on the Roblox Developer Forum to help me with my dropper in a tycoon game. I am not a scripter so this is already quite complicated to me lol… My question is, how would I go about editing this script to drop a mesh I have named “Item”. Here is the script:
local Dropper = game.Workspace.Building.Droppers.Dropper1.Dropper
local function MakeBlock()
local Block = Instance.new(“Part”)
Block.Parent = workspace
Block.CFrame = Dropper.CFrame
Block.Size = Vector3.new(2, 1, 2)
Block.Material = Enum.Material.Concrete
Block.BrickColor = BrickColor.new(“White”)
game.Debris:AddItem(Block, 5)
end
while true do
if script.Parent.Parent.M1.Transparency == 0 then
task.wait(1)
MakeBlock()
end
Hey I know I’m asking even more lol, but could you tell me what I am doing wrong with this script? Whenever I run the script the item just falls through the floor and the main item I have doesn’t clone itself anymore. Here is the script:
local Dropper = game.Workspace.Building.Droppers.Dropper1.Dropper
local Item = script.Parent.Item
while true do
if script.Parent.Parent.M1.Transparency == 0 then
Item:Clone()
Item.Anchored = false
Item.Transparency = 0
Item.Parent = game.Workspace
wait(1)
end