I tried making a module which put up a gui that asked the player if they wanted to confirm a gui button click heres the script
local module = {} function module.askr(gui)
local ask = gui:Clone()
ask.Parent = gui.Parent
ask.Enabled = true ask.Frame.yes.MouseButton1Click:connect(function() return true; end) end return module
local ModReturn = require(YourModule)
ModReturn.askr(Arguments)
return true
in your onclick function will never do anything, as that'd return true
to the RobloxScriptSignal, not whatever you attempt to.