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

Explanation of :GetMouse and :AddItem please?

Asked by 10 years ago

What does :GetMouse and :AddItem mean?

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

First of all, the colon tells you that this is a method call of some kind.

GetMouse is used in a LocalScript to get a PlayerMouse object, which is similar to the Mouse object used in Tools and HopperBins, but requires neither.

AddItem is used to, well, add an item to Debris, where it will be removed from memory after some kind of delay. (This is useful for things that may or may not exist when you want to Destroy them, such as particle effects.)

Ad

Answer this question