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

Is there any list for the type of connect functions there is in roblox?

I was just wondering what types of connect functions are there/ is there a list on roblox wiki. I was mainly leaning towards when player entered the server. Also- side note are you able to create a int variable to health, in the sense of having IntValue object affect health and max health. an example of what i mean is

mouse = Player:GetMouse();
mouse.KeyDown:connect()-- name of function//example

I was also looking for an on death connect function as well. Anyways, what are the types of connect functions or where would the list be located.

3 comments

0

also, I was wondering if there is a connect function for a world server.

0

You can find a list of events at the bottom of every service and instance wiki page. http://wiki.roblox.com/index.php?title=Mouse

0

that does not show on enter feature of connect, and strangely it says that keydown is depreciated, but then shows it twice.

2 answers

✓ Accepted answer

On the wiki, you'll be able to find all the events that could fire related to that instance.

For example you mentioned quite a few attributes/events to do with a Humanoid. (death/max health) So if you were to head over to the wiki and find the page related to the Humanoid, you'd find all the relevant documentation.

http://wiki.roblox.com/index.php?title=API:Class/Humanoid

Now you asked about detecting a death, if you scroll down you'll see the list of all the possible events that could be triggered through that instance.

There is an event which will fire when the Humanoids health reaches 0, here is the link, but try and find it yourself on the Humanoid wiki page.

http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Died

For the most frequently used events, there is usually an example included here, so if you get stuck use that to help you.

Hope I helped!

1 comment

0

so I noticed, the main feature of the middle part before typing :connect() is that they are event features of specific parts, that I did not really know, until now. Thanks for the help.

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