I just want a function in a module script to run when a block is clicked, simple as that. I have no idea how though.
Current code:
local talkmodule = require(script.Parent.TalkModule)
local npcs = game.Workspace.NPCs
local Dummy = npcs.Dummy
Dummy.Click.ClickDetector.MouseClick:Connect(talkmodule.talkfunction())
Evidently the last line isn’t working, so how would I run the function?