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

What does the term "Connection" mean?

Asked by
woodengop 1134 Moderation Voter
9 years ago

would Connection Mean Connecting with a script or an Object?

connection=part.Touched:connect(Touched)

Please respect that I am a Beginner

1 answer

Log in to vote
2
Answered by 9 years ago

When you say "Connection with an Object", i'm not completely sure what you mean. I do know what Connect means in a script.

Connections are used only in an event such as Touched, MouseButton1Click, KeyDown, and so on. So, what is Connect ? This is basically having the game "listen" for an event to occur, causing your function to fire, or start. If you were to do script.Parent.Touched:connect(function() then you're listening for something to touch whatever part that is parented to the script so you may start your function.

If you want to check out this page in Roblox Wiki, then here's a link

Hope this helps

0
thanks man! woodengop 1134 — 9y
0
You're literally *connecting* the event to a function. Perci1 4988 — 9y
0
No problem. alphawolvess 1784 — 9y
Ad

Answer this question