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

what are the diff. types of functions?

Asked by 10 years ago

What are all the functions in scripting? I know Touch and Click... That's all...

3 answers

Log in to vote
0
Answered by
Ekkoh 635 Moderation Voter
10 years ago

By the sounds of it you're talking about events, not functions. Events are specific for each instance, you can refer to the wiki for a full list of events for any given instance.

Example:

local Brick = script.Parent

function omgPart_wuzTouched(part)
    print(part:GetFullName() .. " touched " .. Brick:GetFullName())
end

Brick.Touched:connect(omgPart_wuzTouched)

omgPart_wuzTouched <-- That's a function

print <-- That's a function

Touched <-- That's an event

connect <-- That's a method that connects a function to event so that when the event is fired the function 'omgPart_wuzTouched' is called

Ad
Log in to vote
0
Answered by
Link43758 175
10 years ago

You can find all of the build-in (predefined) functions here: http://wiki.roblox.com/index.php?title=Function_Dump. Hope I've helped! :)

0
Lol? EzraNehemiah_TF2 3552 — 10y
0
What's funny? Link43758 175 — 10y
0
Function Dump EzraNehemiah_TF2 3552 — 10y
Log in to vote
0
Answered by
Bloxks 30
10 years ago

If you're looking for the functions in Lua, you're probably looking for what MidnightDeveloper said: Click here.

Else, you are probably asking what kinds of functions you can make. Functions don't have a type, you may classify a function as this and that, but from Lua's understanding, there is no types of functions.

Answer this question