Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Module wont return nothing How do i fix?

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

1 answer

  1. Are you using local ModReturn = require(YourModule)
  2. Are you actually running the function? ModReturn.askr(Arguments)
  3. Are there any errors, or loops preventing your module from ever being executed?
  4. Doing return true in your onclick function will never do anything, as that'd return true to the RobloxScriptSignal, not whatever you attempt to.

This discussion is preserved as it was. New answers, comments, and votes are closed.