Flag

사용되지 않는 항목 표시
더 이상 사용되지 않음

The Flag is a unit spawned with a FlagStand object, and will respawn when captured. When a player touches this object's Handle, which must be a child of the Flag object, which is a Part named "Handle", the flag will be added to the player's backpack and will appear in their hand. A player cannot select other weapons while carrying a flag, and can drop the flag at anytime by pressing "Backspace" on the keyboard. If the player carrying a flag steps onto another FlagStand of a different team color, the flag will be removed from the player's backpack and a point will be added to the user's leaderstats, if provided. The flag will then regenerate at the originating flag stand. This allows for 'Capture the Flag' to be made games very easily, which was the reason for its creation.

요약

속성

  • 병렬 읽기
    더 이상 사용되지 않음

    The Team this flag is for. Corresponds with the TeamColors in the Teams service.

속성Tool에서 상속되었습니다
  • 병렬 읽기

    Controls whether the player can drop the tool.

  • 병렬 읽기

    Relates to whether or not the tool can be used.

  • 병렬 읽기

    Stores the tool's "grip" properties as one CFrame.

  • 숨김
    복제되지 않음
    병렬 읽기

    Represents the R02, R12, and R22 values of the grip CFrame rotation matrix.

  • 숨김
    복제되지 않음
    병렬 읽기

    The positional offset of the tool's weld matrix.

  • 숨김
    복제되지 않음
    병렬 읽기

    Represents the R00, R10, and R20 values of the grip CFrame rotation matrix.

  • 숨김
    복제되지 않음
    병렬 읽기

    Represents the R01, R11, and R21 values of the grip CFrame rotation matrix.

  • The ManualActivationOnly property controls whether the Tool can be activated without executing Tool:Activate().

  • 병렬 읽기

    Determines whether a Tool functions without a handle.

  • 병렬 읽기

    Controls the message displayed when the player's mouse hovers over the tool in their backpack.

속성BackpackItem에서 상속되었습니다
  • 병렬 읽기

    The texture icon that is displayed for a tool in the player's backpack.

속성Model에서 상속되었습니다속성PVInstance에서 상속되었습니다

메서드

메서드Tool에서 상속되었습니다메서드Model에서 상속되었습니다
  • AddPersistentPlayer(playerInstance : Player):void

    Sets this model to be persistent for the specified player. Model.ModelStreamingMode must be set to PersistentPerPlayer for behavior to be changed as a result of addition.

  • Returns a description of a volume that contains all parts of a Model.

  • Returns the size of the smallest bounding box that contains all of the BaseParts in the Model, aligned with the Model.PrimaryPart if it is set.

  • Returns all the Player objects that this model object is persistent for. Behavior varies based on whether this method is called from a Script or a LocalScript.

  • Returns the canonical scale of the model, which defaults to 1 for newly created models and will change as it is scaled via Model/ScaleTo.

  • MoveTo(position : Vector3):void

    Moves the PrimaryPart to the given position. If a primary part has not been specified, the root part of the model will be used.

  • RemovePersistentPlayer(playerInstance : Player):void

    Makes this model no longer persistent for specified player. Model.ModelStreamingMode must be set to PersistentPerPlayer for behavior to be changed as a result of removal.

  • ScaleTo(newScaleFactor : number):void

    Sets the scale factor of the model, adjusting the sizing and location of all descendant Instances such that they have that scale factor relative to their initial sizes and locations when scale factor was 1.

  • TranslateBy(delta : Vector3):void

    Shifts a Model by the given Vector3 offset, preserving the model's orientation. If another BasePart or Terrain already exists at the new position then the Model will overlap said object.

메서드PVInstance에서 상속되었습니다

이벤트

이벤트Tool에서 상속되었습니다

속성

TeamColor

병렬 읽기

The Team this flag is for. Corresponds with the TeamColors in the Teams service.

The Flag and FlagStand objects were created to allow developers to make 'Capture the Flag' style games quickly. However they have been deprecated and developers are advised to design their own systems which will be more flexible and reliable.

메서드

이벤트