I've tried looking around the internet a bit but couldn't find something that accurately answers my question. If you can also tell me how to make it give the player money when it hits the end of the conveyor belt as well that would be much appreciated.
This is not a request site, try first before asking.
Though I will be helping you to get Started because I hate seeing people struggle.
First, these dropped blocks are created by the Instance.new()
method.
So first, add a script into the dropper, not a local script but a server script; and we want to do something like this;
local dropper = script.Parent -- the dropper local money = -- you have to put your currency here while wait(5) do -- a loop, change 5 to how long it untill drops again local Blob = Instance.new('Part') --Creates part Part.Size = Vector3.new(2,2,2) -- you can change the size Part.Anchored = false -- so it drops Part.CanCollide = true -- we don't want it going through parts Part.Position = Vector3.new() -- Put where the the dropper is, the mouth Blob.Touched:Connect(function(h) -- when touched if h.Parent.Name == 'MoneyConverter' then -- change this to the end of the conveyer block name money.Value == money.Value + 10 -- change this to money if you have .Value at the end else return end end) end
Now there is a better way of doing this, but this is the model for you to understand what's happening. This is basically how to create blocks, this script create blocks per 5 seconds and drops. Set the position and everything and money and you will be good to go.
NOTE: Remember you can't use 'local plr = game.Players.LocalPlayer` in a server script which is a normal script
if I helped then please accept answer,
Good luck developing!