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

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

Asked by 9 years ago

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.

0
also, I was wondering if there is a connect function for a world server. scottmike0 40 — 9y
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 M39a9am3R 3210 — 9y
0
that does not show on enter feature of connect, and strangely it says that keydown is depreciated, but then shows it twice. scottmike0 40 — 9y

2 answers

Log in to vote
0
Answered by
ausmel105 140
9 years ago

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!

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. scottmike0 40 — 9y
Ad
Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
9 years ago

http://wiki.roblox.com/index.php?title=Category:Class_events

Player enters server is game.Players.PlayerAdded

IntValue.Changed fires when a property is changed

Humanoid.Died fires when the humanoid dies

Answer this question