#Parameter of PlayerAdded and Touch Events

1 messages · Page 1 of 1 (latest)

analog egret
#

Can someone please explain to me the significance of addting parameters inside these events. Thank you.

cerulean flame
#

When these events fire they send specific arguments relating to the event.
You can find these arguments on roblox reference & documentation.

The parameters are the variables for the connected function which are assigned the value of the arguments passed by the event triggering this function.

#

For example .PlayerAdded sends the argument Player, which is equal to the player instance which triggered this event to fire.

#

The .Touched event sends the argument otherPart, which is equal to the other part which was touched, triggering the event.

#

Basically parameters are variables which can be assigned within a function each time a function is called

#

And in roblox events, these are usually relating to the details surrounding the event

blazing thicketBOT
#

studio** You are now Level 1! **studio

analog egret
cerulean flame
#

Yes

#

They are used to give us as developers more context around what occurred when the event fired