SetMembershipType (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Legend26
No edit summary
>Nightname
No edit summary
Line 9: Line 9:


{{clear floats}}
{{clear floats}}
The SetMemberShipType method is a locked method, but allows you to set the [[MembershipType (Property)|MembershipType]] of an inputted user.


{{Example|If not locked, this would set the membership to OutrageousBuildersClub: <pre>
{{Example|If not locked, this would set the membership to OutrageousBuildersClub: <pre>

Revision as of 17:36, 28 March 2012

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
SetMembershipType( MembershipType membershipType )
Returns nil
Description: Sets the MembershipType to the argument.
Member of: Player


The SetMemberShipType method is a locked method, but allows you to set the MembershipType of an inputted user.

Example
If not locked, this would set the membership to OutrageousBuildersClub:
game.Players.LocalPlayer:SetMembershipType( Enum.MembershipType.OutrageousBuildersClub )