×
Create a new article
Write your page title here:
We currently have 276 articles on Waste Of Space Wiki. Type your article name above or create one of the articles listed here!



    Waste Of Space Wiki

    LifeSensor: Difference between revisions

    Content added Content deleted
    No edit summary
    mNo edit summary
     
    (3 intermediate revisions by 2 users not shown)
    Line 1: Line 1:
    {{Object
    {{Object
    |title1 = {{PAGENAME}}
    |image1 = LifeSensor.png
    |image1 = [[File:LifeSensor.png|thumb]]
    |type = {{#invoke:GetPartInfo|getField|Type}}
    |type = {{#invoke:GetPartInfo|getField|Type}}
    |uses = Find nearby players
    |recipe = {{#invoke:GetPartInfo|getField|Recipe}}
    |recipe={{#invoke:GetPartInfo|getField|Recipe}}
    |raw_recipe = {{#invoke:GetPartInfo|getField|Raw recipe}}
    |raw_recipe={{#invoke:GetPartInfo|getField|Raw recipe}}
    |malleability = {{#invoke:GetPartInfo|getField|Malleability}}
    |configuration={{#invoke:GetPartInfo|getField|Configuration}}
    |durability = {{#invoke:GetPartInfo|getField|Durability}}
    |malleability={{#invoke:GetPartInfo|getField|Malleability}}
    |configuration = {{#invoke:GetPartInfo|getField|Configuration}}
    |default_size={{#invoke:GetPartInfo|getField|DefaultSize}}
    |durability={{#invoke:GetPartInfo|getField|Durability}}
    |default_colour={{#invoke:GetPartInfo|getField|DefaultColor}}
    |flammable={{#invoke:GetPartInfo|getField|Flammable}}
    }}
    }}
    Line 40: Line 43:
    [[Category:Parts]]
    [[Category:Parts]]
    ==Gallery==
    ==Gallery==
    [[File:RobloxScreenShot20230720 163444335.png|thumb|left|Insert a Stan appearing on a radar]]
    [[File:RobloxScreenShot20230720 163444335.png|thumb|left|Players, including Stan appearing on Player Radar which uses a lifesensor]]

    Latest revision as of 22:54, 22 April 2024


    The LifeSensor is a part used in programming. It detects life within 2000 studs. Lifesensors are found in all aliens as a way to sense players. In order to use, you must use the LifeSensor:GetReading() function. It will return a dictionary of all the nearby players and their locations, given in Vector3. It can also return Stan as a player.

    the script below is an example of a turret that uses a lifesensor.[edit | hide all | hide | edit source]

    local LifeSensor = GetPartFromPort(1, "LifeSensor") --gets the lifesensor instance
    local gyro = GetPartFromPort(2, "Gyro") --gets the gyro instance
    local whitelist = {
    ["YourUsername"] = true; -- Create a whitelist of who it wont target
    ["YourFriend"] = true;
    }
    local reading = LifeSensor:GetReading() -- gets the reading of the lifesensor
    for player, location in pairs(reading) do
    if not whitelist[player] then --checks if player isnt whitelisted
    gyro:PointAt(location) -- points the gyro at the location
    end
    end
    


    In-game Description[edit | hide | edit source]

    "Senses and detects organic life up to a distnace of 2000 studs. Used mainly in programming, as is used in alien technology to hunt down organisms such as players. Has a special programmable event called 'GetReading()' which returns a table of all organisms, with their positions and names. Example: { Player1 = Vector3.new(5, 5, 5); } "

    Configuration[edit | hide | edit source]

    • Cannot be configured.

    Gallery[edit | hide | edit source]

    Players, including Stan appearing on Player Radar which uses a lifesensor
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Axenori • 1 day ago
  • Voivsone • 2 days ago
  • Axenori • 2 days ago
  • Axenori • 3 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.