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

Do any of you know how to make a local function on roblox? Im making a horror game

Here is what I have:

function onTouch(hit)
	workspace.Head["READ ME"].Disabled = false -- How do I make this a local function?
end

2 comments

0

well to make a function local, put the word local before the word function

0

If you had another definition of "local function", please make your question more descriptive

1 answer

To create a local function you just add the "local" indentifier before the function's name, this way:

local function yourFunction()
end

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