I'm making a coin pusher. Don't judge me.
Anyways, I'm trying to make it so when you click the brick, a coin pops down underneath it. I was going to change the position later but can't even get this beginnings of it to work yet. Here's what I have so far.
Insert = script.Parent function onClicked() Coin = Instance.new("Part") Coin.Shape = ("Cylinder") Coin.Size = Vector3.new(0.2, 2, 2) Coin.Position = Vector3.new(-13, 81, -10.3) Coin.Reflectance = 0.61 Coin.Name = "Working" wait(1) end script.Parent.ClickDetector.MouseClick:connect(onClicked)
No output, nothing happens when clicked.
You made a simple mistake! You never parented it! Add Coin.Parent = Workspace
after line 9!