Hello, I am making a tycoon, when the parts of the conveyer reach the collector pad, I want the dialog in the collector pad to say the value of each block.
for i,v in pairs(script.Parent.Essentials:GetChildren()) do if v.Name == "PartCollector" then v.Touched:connect(function(Part) if Part:FindFirstChild('Cash') then script.Parent.Essentials.PartCollector.Dialog.InitialPrompt = Part.Cash.Value script.Parent.Essentials.PartCollector.Dialog.Changed:connect(function (property) print("hi", property) end) Money.Value = Money.Value + Part.Cash.Value Debris:AddItem(Part,0.1) end end) end end
I searched around and couldn't find a way to fire the dialog without the player's action. I tried the "Changed Command" to only realize it just told me the state of dialog, ex: Inuse or what not.
So how can I get a dialog box to display the value of each part that touches the collector pad, without the need for the play to manual start the conversation?
Thank you.