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

how do you detect when a function is called?

function test()
game.StarterGui.ScreenGui.Enabled = true
end

how would I have a script that activates when this function is called

2 answers

You cant signal once a function is called, but you can enable a script inside of the function.

function test()
youScript.Disabled = false
game.StarterGui.ScreenGui.Enabled = true
end

i hope you can understand this!

2 comments

0

i meant to spell "YourScript" woops

0

doesnt work like that dumb

very very very easy!

local script = script.Parent.Parent

local function enableScript()
      if  script.Disabled then
           script.Disabled = false
     end
end

enableScript() -- so that we can calls the function since ummmm function donte run automatically!

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