Hi, ive made a script that is used for a tycoon, its a manual dropper script wich is used with a click detector, so when the player click the button a "drop" goes out of the dropper
Everythings work fine, the only things is that when the part drop, there is another click detector inside that part idk if you guys understand what im saying.
Here is the script
function OnClicked()
wait()
local value = Instance.new("Part")
value.Position = script.Parent.Parent.fake.Position
value.Anchored = false
value.BrickColor = BrickColor.Random()
value.Parent = script.Parent
value.Size = Vector3.new(1, 1, 1)
value.Name = "Cube"
value.Material = Enum.Material.Neon
value.Shape = "Ball"
end
script.Parent.ClickDetector.MouseClick:Connect(OnClicked)

1 comment
Yep it work! thank you!