Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

Here is what I have:

function onTouch(hit)
    workspace.Head["READ ME"].Disabled = false -- How do I make this a local function?
end
0
well to make a function local, put the word local before the word function theking48989987 2147 — 5y
0
If you had another definition of "local function", please make your question more descriptive theking48989987 2147 — 5y

1 answer

Log in to vote
0
Answered by
Norbunny 555 Moderation Voter
5 years ago
Edited 5 years ago

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

local function yourFunction()
end
Ad

Answer this question