SetMembershipType (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
You can't set that property
>Nightname
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{locked}}
<onlyinclude>{{Method
<onlyinclude>{{Method
|name = SetMembershipType
|name = SetMembershipType
|arguments = [[MembershipType]] ''membershipType''
|arguments = [[MembershipType]] ''membershipType''
|description = Sets <code>Player.MembershipType = membershipType</code>.
|description = Sets the [[MembershipType (Property)|MembershipType]] to the argument.
|object = Player
|object = Player
|protected = Yes
|protected = Yes
Line 8: 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>

Latest 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 )