⚡ SECOND LIFE LSL HUB 📚 OFFICIAL SL WIKI CLONE 🎁 100% FREE COMMUNITY TOOL 🇬🇧 LONDON TIME (UK)

📜 VORTEX LSL STUDIO PRO

The definitive open repository, community Pastebin, and visual script builder for the Second Life Linden Scripting Language (LSL). Browse hundreds of verified scripts, share your own code securely in the LSL Community Pastebin, explore the Complete 450+ Function SL Wiki Encyclopedia, and sync daily with the Second Life Official Wiki. Created & Managed by Aley Vortex.

39+ Master Scripts
112 LSL Functions
23 Engine Events
Active Wiki Sync: 12/09/2026 23:56:58 (London, UK)
1
Browse & Filter Select from 15 categories, filter by complexity or search functions.
2
Inspect & Learn Review code, official SL API calls, line counts, and lagless safety.
3
1-Click Export Copy or download .lsl to paste into your Second Life inventory.
⚡ SCRIPT ENGINE LSL STUDIO PRO v3.6.0 AAA
🔍
Showing 39 verified production scripts
Popular Tags: #door #vehicle #raycast #pbr #dialog #radar
💾 AI GENERATED COMMUNITY

AI Rotating Door Test

Test Description

💾 PASTEBIN COMMUNITY

test

just a test

💾 DOORS COMMUNITY

test

just a test

💾 DOORS COMMUNITY

testing

just a test

💾 DOORS COMMUNITY

test

just a test

💾 INVENTORY COMMUNITY

test

just a test

💾 PASTEBIN COMMUNITY

testing LSL

just a test

DOORS Beginner

Smooth Rotating Touch Door with Auto-Close & Sound

Smooth 90-degree rotating door script using local rotation. Includes automatic close timer, owner toggle lock,...

DOORS Intermediate

Double Sliding Automatic Sensor Glass Door

Automated double-sliding sliding glass door using prim link message coordinate sliding. Opens automatically up...

DOORS Advanced

Multi-Floor Smooth Keyframed Elevator Engine

Multi-floor elevator car using llSetKeyframedMotion for lagless physics-free vertical transit with call button...

DOORS Beginner

Single Mesh Sliding Panel Door with Sound

Compact sliding door script with smooth offset coordinate translation, touch toggle, and automated closing.

DOORS Intermediate

Hidden Secret Bookcase Rotating Door

Secret passage disguised as a bookshelf. Unlocks only when touching a specific hidden book prim or entering a...

VEHICLES Advanced

High-Performance Physics Sports Car Engine

Complete physical vehicle engine with linear & angular deflection, dynamic steering response, driver camera in...

VEHICLES Advanced

Futuristic Sci-Fi Hovercraft & Flight Physics

Antigravity hovercraft physics with altitude hover banking, vertical strafe controls (E / C keys), and thruste...

VEHICLES Advanced

Physical Water Speedboat & Wave Buoyancy

Watercraft motor engine with banking turn dynamics, spray particle triggers, and surface water level stabiliza...

VEHICLES Intermediate

Hot Air Balloon Buoyancy & Altitude Throttle

Smooth atmospheric balloon with buoyancy lift adjustments (PageUp / PageDown) and gentle wind drift simulation...

COMBAT Advanced

High-Precision Raycast Sniper & Target Damage

Instant-hit Raycast weapon utilizing llCastRay with bullet tracer particles, headshot damage calculation, and...

COMBAT Intermediate

Melee Katana with Swing Combos & Collision Sounds

Melee sword with 3-hit combo animation triggers, swoosh sounds, and volume-detect hit registration.

COMBAT Intermediate

Energy Deflector Shield with Visual Pulse Barrier

Wearable avatar energy shield that detects incoming physical projectiles and repels them with reverse impulse...

COMBAT Advanced

Timed Fragmentation Grenade & Radial Physics Push

Throw grenade with 3-second fuse, rolling physics collision sound, particle shockwave, and radial push to near...

HUDS Advanced

Universal Multi-Tab HUD Controller with Prim Minimap

Modular multi-tab HUD framework with link messages, tab state switching, collapsible drawer, and health/stamin...

HUDS Intermediate

Avatar Proximity Radar HUD with Distance Sort

HUD scanner that lists nearest avatars sorted by distance in real-time on hovertext or HUD text prim.

DIALOGS Intermediate

Multi-Page Dynamic Dialog Menu Engine

Robust pagination dialog system supporting >12 items with Next/Prev navigation buttons and auto-closing timeou...

SECURITY Advanced

Parcel Security Orb with Eject, Teleport Home & Whitelist

Full parcel security station with intruder warning countdown, automatic eject / teleport home, and owner white...

SECURITY Intermediate

Automated Daily Visitor Logger & Range Radar

Scans avatars entering a region or club, tracks visit duration, ignores owner/staff, and dumps logs via chat c...

TELEPORTERS Intermediate

Cross-Sim Height WarpPos Fast Instant Teleporter

Instantaneous prim teleportation jump across hundreds of vertical metres without physical delay using WarpPos...

INVENTORY Intermediate

Split Payout Tip Jar with Particle Glow & Goal Tracker

Club and performer tip jar with split percentage payout to manager, floating goal bar, thank-you instant messa...

INVENTORY Beginner

Folder Inventory Giver with Group Security Check

Dispenses all items in prim inventory as a neatly packaged folder into the avatar inventory upon touch.

ANIMATIONS Intermediate

Multi-Pose Sit Engine with Menu Selector

Multi-pose chair script that reads animations from prim inventory and provides an interactive sit dialog menu.

PBR Advanced

glTF PBR Texture Swapper & Face Material Switcher

Real-time PBR material changer using modern Second Life glTF PBR primitive parameters with smooth face cycling...

RLV Advanced

OpenCollar Standard RLV Relay Engine

RestrainedLove (RLV) listener relay with command validation, ping responses, and secure object authorization.

SOUND Intermediate

Seamless Preloading Multi-Clip Music Stream Player

Preloads sequential 10-second audio clips into cache to guarantee 100% gapless continuous in-world music playb...

PARTICLES Intermediate

Dynamic Ambient Weather Particle Generator (Rain & Snow)

Complete weather system simulating heavy rainstorm or soft blizzard snowfall with synchronized audio looping.

UTILITIES Beginner

Sim Performance, Time Dilation & Memory Profiler

Real-time region diagnostics monitor reporting Region FPS, Time Dilation, Script Memory, and Physics FPS via h...

UTILITIES Advanced

Universal Linkset Prim Resizer with Memory Cache

Recursively scales an entire complex linked object up or down by percentage while preserving local position of...

HTTP Intermediate

Discord Webhook Relay Sender

Sends structured JSON messages to a Discord webhook channel from Second Life.

HTTP Advanced

Inbound HTTP Server Prim with Auth Token Listener

Receives real-time HTTP POST requests from external web servers or APIs and processes commands in-world with a...

HTTP Advanced

Vortex Terminal & Secure Web Authentication Matrix

Interactive in-world terminal object that registers new residents into the Vortex Game SL database and deliver...

HTTP Advanced

Vortex Smart Tipjar & Web Database Supporter Matrix

Official Aley Vortex Smart Tip Jar with public vs anonymous donation dialogue choice, real-time web database c...

AI GENERATED 🛡️ 100% LAGLESS

AI Rotating Door Test

Test Description

💡
How to use in Second Life: Copy this script → Right-click any object in-world → Edit → Content → New Script → Paste & Save (Ctrl+S).
### 🚪 Vortex LSL Script // Smooth Rotating Group Door

Here is an optimized, lag-free single-prim or root-prim rotating door script. It uses `llSetLocalRot` for smooth relative rotation, supports group-only access (or public toggle), and features auto-closing timers with sound triggers.

```lsl
// =========================================================================
// VORTEX CORP NEURAL LSL ENGINE // SMOOTH ROTATING DOOR (GROUP / PUBLIC)
// Author: Vortex Corp AI Engine (UK & Global Clusters)
// Supervisor: Aley Vortex (CEO)
// =========================================================================

float   ROTATION_ANGLE_DEG  = 90.0;   // Degrees to swing open
float   AUTO_CLOSE_TIME     = 6.0;    // Auto-close delay in seconds
integer GROUP_ONLY_ACCESS   = TRUE;   // TRUE = group members only, FALSE = public
string  SOUND_OPEN          = "cb8225e5-3974-98fb-41a3-23a5712e0618"; // Open sound UUID
string  SOUND_CLOSE         = "e09520fb-650a-f01e-3cb0-df2ab850d513"; // Close sound UUID

// Internal State Variables
integer gIsOpen = FALSE;
rotation gRotClosed;
rotation gRotOpen;

openDoor()
{
    gIsOpen = TRUE;
    llSetLocalRot(gRotOpen);
    if (SOUND_OPEN != "") llPlaySound(SOUND_OPEN, 0.7);
    llSetTimerEvent(AUTO_CLOSE_TIME);
}

closeDoor()
{
    gIsOpen = FALSE;
    llSetTimerEvent(0.0);
    llSetLocalRot(gRotClosed);
    if (SOUND_CLOSE != "") llPlaySound(SOUND_CLOSE, 0.6);
}

default
{
    state_entry()
    {
        gRotClosed = llGetLocalRot();
        // Calculate the target open rotation around local Z axis
        rotation rotSwing = llEuler2Rot(<0.0, 0.0, ROTATION_ANGLE_DEG * DEG_TO_RAD>);
        gRotOpen = rotSwing * gRotClosed;
        gIsOpen = FALSE;
    }

    touch_start(integer total_number)
    {
        key toucher = llDetectedKey(0);

        // Security Validation
        if (GROUP_ONLY_ACCESS && !llSameGroup(toucher))
        {
            llRegionSayTo(toucher, 0, "[VORTEX SECURITY] Access Denied: Group credentials required.");
            return;
        }

        if (!gIsOpen)
        {
            openDoor();
        }
        else
        {
            closeDoor();
        }
    }

    timer()
    {
        closeDoor();
    }
}
```

#### 💡 Performance & Building Tips:
- **Hinge Placement:** Ensure the door mesh or prim has its origin/pivot at the hinge edge (using path-cut `0.125` to `0.625` on a box or setting the pivot in Blender before Collada .DAE export).
- **Linkset Efficiency:** If part of a linkset, `llSetLocalRot` only moves this child prim without stalling the rest of the build.
Lines: 35 💾 Size: 1.2 KB 🧠 Mono Memory: < 64 KB Safe 🇬🇧 Timezone: London, UK

📖 Second Life Official LSL Functions & Events Encyclopedia

Complete offline-resilient reference clone of all 450+ Linden Lab functions and 35+ engine events with instant search, syntax signatures, and 1-click clipboard export.

⚡ Linden Scripting Language Functions (112)

llAbs

Math
integer llAbs(integer val)

Returns the positive absolute value of an integer.

Official Wiki Doc →

llAcos

Math
float llAcos(float val)

Returns the arccosine in radians of val (val between -1.0 and 1.0).

Official Wiki Doc →

llAddToLandBanList

Parcel
llAddToLandBanList(key avatar, float hours)

Adds an avatar to the parcel ban list for a designated duration in hours.

Official Wiki Doc →

llAddToLandPassList

Parcel
llAddToLandPassList(key avatar, float hours)

Adds an avatar to the land access pass list.

Official Wiki Doc →

llAdjustSoundVolume

Sound
llAdjustSoundVolume(float volume)

Adjusts the volume of currently playing looped audio (0.0 to 1.0).

Official Wiki Doc →

llAllowInventoryDrop

Inventory
llAllowInventoryDrop(integer add)

Allows non-owners to drop inventory items into the prim when holding Ctrl.

Official Wiki Doc →

llAngleBetween

Math & Rotations
float llAngleBetween(rotation a, rotation b)

Returns the angle in radians between rotations a and b.

Official Wiki Doc →

llAsin

Math
float llAsin(float val)

Returns the arcsine in radians of val.

Official Wiki Doc →

llAtan2

Math
float llAtan2(float y, float x)

Returns the arctangent of y/x in radians between -PI and PI.

Official Wiki Doc →

llAttachToAvatar

Attachments
llAttachToAvatar(integer attach_point)

Attaches the object to avatar at attachment point if permissions granted.

Official Wiki Doc →

llAttachToAvatarTemp

Attachments
llAttachToAvatarTemp(integer attach_point)

Attaches temporary non-inventory object to avatar that deletes on drop.

Official Wiki Doc →

llAvatarOnLinkSitTarget

Avatars & Sitting
key llAvatarOnLinkSitTarget(integer link)

Returns the UUID of the avatar sitting on the specified link prim sit target.

Official Wiki Doc →

llAvatarOnSitTarget

Avatars & Sitting
key llAvatarOnSitTarget()

Returns the UUID of the avatar seated on the root prim sit target.

Official Wiki Doc →

llAxes2Rot

Math & Rotations
rotation llAxes2Rot(vector fwd, vector left, vector up)

Calculates rotation from forward, left, and up vector axes.

Official Wiki Doc →

llBase64ToInteger

Strings & Encoding
integer llBase64ToInteger(string str)

Decodes an integer from a BigEndian Base64 string.

Official Wiki Doc →

llBase64ToString

Strings & Encoding
string llBase64ToString(string str)

Converts a Base64 encoded string into a plain UTF-8 string.

Official Wiki Doc →

llCastRay

Combat & Physics
list llCastRay(vector start, vector end, list options)

Fires a ray between start and end vectors, returning hit intersections, targets, normals, and surface coordinates.

Official Wiki Doc →

llCeil

Math
integer llCeil(float val)

Returns the smallest integer value greater than or equal to val.

Official Wiki Doc →

llClearCameraParams

Camera Controls
llClearCameraParams()

Resets all scripted camera parameters back to avatar default.

Official Wiki Doc →

llCollisionFilter

Collisions & Combat
llCollisionFilter(string name, key id, integer accept)

Filters collision events to only trigger for specific object names or keys.

Official Wiki Doc →

llCos

Math
float llCos(float theta)

Returns the cosine of theta in radians.

Official Wiki Doc →

llCreateCharacter

Pathfinding
llCreateCharacter(list options)

Converts a physical or non-physical object into an autonomous pathfinding character.

Official Wiki Doc →

llDeleteSubList

Lists
list llDeleteSubList(list src, integer start, integer end)

Deletes entries between start and end indices from source list.

Official Wiki Doc →

llDeleteSubString

Strings
string llDeleteSubString(string src, integer start, integer end)

Deletes characters from start to end index in string.

Official Wiki Doc →

llDialog

Dialogs & Menus
llDialog(key avatar, string message, list buttons, integer channel)

Presents an interactive popup dialog with up to 12 buttons on a specific chat channel.

Official Wiki Doc →

llDie

Object Management
llDie()

Instantly deletes the object and purges it from the in-world sim.

Official Wiki Doc →

llDumpList2String

Lists & Strings
string llDumpList2String(list src, string separator)

Joins list elements into a string delimited by the specified separator.

Official Wiki Doc →

llEdgeOfWorld

World & Sim
integer llEdgeOfWorld(vector pos, vector dir)

Checks if a vector position and direction cross over a region simulator boundary.

Official Wiki Doc →

llEjectFromLand

Security & Parcel
llEjectFromLand(key avatar)

Ejects an avatar off the parcel and unseats them immediately.

Official Wiki Doc →

llEscapeURL

HTTP & Web
string llEscapeURL(string url)

Encodes a URL string using standard RFC 2396 percent-encoding.

Official Wiki Doc →

llEuler2Rot

Math & Rotations
rotation llEuler2Rot(vector vec)

Converts Euler angles in radians into an LSL rotation quaternion.

Official Wiki Doc →

llExecCharacterCmd

Pathfinding
llExecCharacterCmd(integer command, list options)

Executes pathfinding character commands like stopping or wandering.

Official Wiki Doc →

llFabs

Math
float llFabs(float val)

Returns the positive absolute floating-point value.

Official Wiki Doc →

llFloor

Math
integer llFloor(float val)

Returns the largest integer less than or equal to val.

Official Wiki Doc →

llGetAgentInfo

Avatars & Agents
integer llGetAgentInfo(key id)

Returns bitwise flags for avatar states (AGENT_FLYING, AGENT_TYPING, AGENT_SITTING, AGENT_MOUSELOOK).

Official Wiki Doc →

llGetAgentSize

Avatars & Agents
vector llGetAgentSize(key id)

Returns the bounding box dimensions of an avatar.

Official Wiki Doc →

llGetAnimation

Animations
string llGetAnimation(key id)

Returns the name of the currently playing base animation on the avatar.

Official Wiki Doc →

llGetCameraPos

Camera Controls
vector llGetCameraPos()

Returns the current position vector of the camera.

Official Wiki Doc →

llGetCameraRot

Camera Controls
rotation llGetCameraRot()

Returns the current orientation rotation of the camera.

Official Wiki Doc →

llGetFreeMemory

Memory & Profiling
integer llGetFreeMemory()

Returns available free memory in bytes remaining for the script.

Official Wiki Doc →

llGetInventoryName

Inventory
string llGetInventoryName(integer type, integer index)

Returns the name of the inventory item at the given index and type.

Official Wiki Doc →

llGetInventoryNumber

Inventory
integer llGetInventoryNumber(integer type)

Returns the total count of inventory items matching the given type.

Official Wiki Doc →

llGetKey

Object Management
key llGetKey()

Returns the UUID key of the object running the script.

Official Wiki Doc →

llGetLinkKey

Linksets
key llGetLinkKey(integer link)

Returns the UUID key of a child or root prim in the linkset.

Official Wiki Doc →

llGetLinkName

Linksets
string llGetLinkName(integer link)

Returns the name string of the specified link number.

Official Wiki Doc →

llGetLinkPrimitiveParams

Linksets & Prims
list llGetLinkPrimitiveParams(integer link, list params)

Retrieves parameters from child prims in the linkset.

Official Wiki Doc →

llGetListLength

Lists
integer llGetListLength(list src)

Returns the number of elements in a list.

Official Wiki Doc →

llGetLocalPos

Prims & Coordinates
vector llGetLocalPos()

Returns the position of the prim relative to its linkset root.

Official Wiki Doc →

llGetLocalRot

Prims & Coordinates
rotation llGetLocalRot()

Returns the rotation of the prim relative to its linkset root.

Official Wiki Doc →

llGetNumberOfPrims

Linksets
integer llGetNumberOfPrims()

Returns the total prim count in the object linkset.

Official Wiki Doc →

llGetOwner

Object Management
key llGetOwner()

Returns the avatar UUID of the object owner.

Official Wiki Doc →

llGetPos

Prims & Coordinates
vector llGetPos()

Returns the region coordinate position of the root object.

Official Wiki Doc →

llGetRegionFPS

Sim Diagnostics
float llGetRegionFPS()

Returns the current frame rate per second of the region simulator.

Official Wiki Doc →

llGetRegionTimeDilation

Sim Diagnostics
float llGetRegionTimeDilation()

Returns region physics time dilation (1.0 = optimal full speed).

Official Wiki Doc →

llGetRot

Prims & Coordinates
rotation llGetRot()

Returns the global rotation quaternion of the root object.

Official Wiki Doc →

llGetScale

Prims & Coordinates
vector llGetScale()

Returns the 3D dimensions (X, Y, Z) scale of the prim.

Official Wiki Doc →

llGetTimeOfDay

Environment & Time
float llGetTimeOfDay()

Returns seconds since Second Life midnight (0.0 to 14400.0).

Official Wiki Doc →

llGetUsedMemory

Memory & Profiling
integer llGetUsedMemory()

Returns exact bytes of memory currently consumed by the script.

Official Wiki Doc →

llGiveInventory

Inventory
llGiveInventory(key destination, string item)

Gives an inventory item directly to an avatar or object.

Official Wiki Doc →

llGiveInventoryList

Inventory
llGiveInventoryList(key destination, string folder, list items)

Gives multiple items packaged inside a named folder into avatar inventory.

Official Wiki Doc →

llGiveMoney

Money & Debit
integer llGiveMoney(key destination, integer amount)

Transfers L$ directly from the owner balance to the destination key.

Official Wiki Doc →

llHTTPRequest

HTTP & Web
key llHTTPRequest(string url, list params, string body)

Sends an asynchronous external HTTP/HTTPS request, triggering http_response.

Official Wiki Doc →

llHTTPResponse

HTTP & Web
llHTTPResponse(key id, integer status, string body)

Responds to an inbound HTTP request initiated via llRequestURL.

Official Wiki Doc →

llInstantMessage

Chat & Messaging
llInstantMessage(key user, string message)

Sends an instant message across regions or to offline avatars directly.

Official Wiki Doc →

llJsonGetValue

JSON & APIs
string llJsonGetValue(string json, list specifiers)

Extracts a value, object, or array from a JSON string using path specifiers.

Official Wiki Doc →

llJsonSetValue

JSON & APIs
string llJsonSetValue(string json, list specifiers, string value)

Inserts or updates a value in a JSON string.

Official Wiki Doc →

llJson2List

JSON & APIs
list llJson2List(string json)

Converts a JSON array or object string into a flat LSL list.

Official Wiki Doc →

llKey2Name

Avatars & Objects
string llKey2Name(key id)

Returns the legacy name of an avatar or object in the same region.

Official Wiki Doc →

llLinkParticleSystem

Particles
llLinkParticleSystem(integer link, list rules)

Controls the particle emitter for a specific child prim in the linkset.

Official Wiki Doc →

llListen

Chat & Listeners
integer llListen(integer channel, string name, key id, string msg)

Opens a listener handle to receive in-world chat messages on the given channel.

Official Wiki Doc →

llListenRemove

Chat & Listeners
llListenRemove(integer handle)

Closes and purges an active chat listener handle to prevent lag.

Official Wiki Doc →

llListFindList

Lists
integer llListFindList(list src, list target)

Searches for the target sublist in src, returning index of first match or -1.

Official Wiki Doc →

llLoopSound

Sound
llLoopSound(string sound, float volume)

Plays an audio clip continuously on a loop from the prim.

Official Wiki Doc →

llMessageLinked

Linksets
llMessageLinked(integer link, integer num, string str, key id)

Sends a fast inter-script message across prims in the linkset.

Official Wiki Doc →

llOwnerSay

Chat & Debug
llOwnerSay(string msg)

Prints a private system message visible ONLY to the owner avatar.

Official Wiki Doc →

llParseString2List

Strings & Lists
list llParseString2List(string src, list separators, list spacers)

Splits a string into list items using specified separator tokens.

Official Wiki Doc →

llParticleSystem

Particles
llParticleSystem(list rules)

Creates, updates, or destroys the llParticleSystem particle emitter.

Official Wiki Doc →

llPlaySound

Sound
llPlaySound(string sound, float volume)

Plays a sound once at the given volume (0.0 to 1.0).

Official Wiki Doc →

llPreloadSound

Sound
llPreloadSound(string sound)

Preloads an audio asset into client viewer cache for gapless playback.

Official Wiki Doc →

llPushObject

Physics & Combat
llPushObject(key target, vector impulse, vector ang_impulse, integer local)

Applies a physical impulse force to push an avatar or physical prim.

Official Wiki Doc →

llRegionSay

Chat & Messaging
llRegionSay(integer channel, string msg)

Broadcasts a message across the ENTIRE sim region on the channel.

Official Wiki Doc →

llRegionSayTo

Chat & Messaging
llRegionSayTo(key target, integer channel, string msg)

Sends a direct targeted message to a specific avatar or prim in the sim.

Official Wiki Doc →

llRequestPermissions

Permissions
llRequestPermissions(key avatar, integer perm)

Requests avatar permissions for controls, animations, debit, or camera.

Official Wiki Doc →

llRequestURL

HTTP & Web
key llRequestURL()

Requests a temporary public HTTP inbound URL from the Second Life grid.

Official Wiki Doc →

llResetScript

Script Engine
llResetScript()

Resets the script back to default state_entry.

Official Wiki Doc →

llRot2Fwd

Math & Rotations
vector llRot2Fwd(rotation rot)

Returns the forward pointing normal vector for a rotation quaternion.

Official Wiki Doc →

llRotBetween

Math & Rotations
rotation llRotBetween(vector start, vector dest)

Calculates the rotation quaternion needed to rotate start into dest.

Official Wiki Doc →

llRound

Math
integer llRound(float val)

Rounds float to the nearest integer.

Official Wiki Doc →

llSay

Chat & Messaging
llSay(integer channel, string msg)

Says a chat message within a 20-metre radius.

Official Wiki Doc →

llSensor

Sensors
llSensor(string name, key id, integer type, float range, float arc)

Performs a single immediate sensor scan for avatars, active prims, or passive objects.

Official Wiki Doc →

llSensorRepeat

Sensors
llSensorRepeat(string name, key id, integer type, float range, float arc, float rate)

Sets up a recurring sensor scan at regular time intervals.

Official Wiki Doc →

llSetKeyframedMotion

Keyframed Motion
llSetKeyframedMotion(list keyframes, list options)

Smooth non-physical translation and rotation motion engine for elevators and vehicles.

Official Wiki Doc →

llSetLinkPrimitiveParamsFast

Linksets & Prims
llSetLinkPrimitiveParamsFast(integer link, list params)

Instantly applies visual, coordinate, or material properties to prims with zero sleep delay.

Official Wiki Doc →

llSetMemoryLimit

Memory & Profiling
integer llSetMemoryLimit(integer limit)

Sets maximum memory allocation (e.g. 65536 for Mono) to reduce sim memory usage.

Official Wiki Doc →

llSetPayPrice

Money & Vendors
llSetPayPrice(integer default_price, list quick_pay_buttons)

Sets the payment dialog popup buttons and default price for paying objects.

Official Wiki Doc →

llSetPrimitiveParams

Prims & Materials
llSetPrimitiveParams(list params)

Applies prim parameters including glTF PBR material properties, color, scale, and cut.

Official Wiki Doc →

llSetSitText

Avatars & Sitting
llSetSitText(string text)

Customizes the pie menu sit action label (e.g. "Drive", "Pilot", "Teleport").

Official Wiki Doc →

llSetText

Hovertext & UI
llSetText(string text, vector color, float alpha)

Sets floating hovertext over the prim with customizable RGB and transparency.

Official Wiki Doc →

llSetTimerEvent

Timers
llSetTimerEvent(float sec)

Starts or stops the timer event handler at the specified repeat interval.

Official Wiki Doc →

llSetVehicleType

Vehicles & Physics
llSetVehicleType(integer type)

Sets vehicle type (VEHICLE_TYPE_CAR, VEHICLE_TYPE_AIRPLANE, VEHICLE_TYPE_BOAT, VEHICLE_TYPE_BALLOON).

Official Wiki Doc →

llShout

Chat & Messaging
llShout(integer channel, string msg)

Broadcasts in-world chat message across a 100-metre radius.

Official Wiki Doc →

llSin

Math
float llSin(float theta)

Returns the sine of theta in radians.

Official Wiki Doc →

llSitTarget

Avatars & Sitting
llSitTarget(vector offset, rotation rot)

Sets the sit position and rotation offset relative to the prim.

Official Wiki Doc →

llStartAnimation

Animations
llStartAnimation(string anim)

Plays an animation on the avatar if PERMISSION_TRIGGER_ANIMATION is granted.

Official Wiki Doc →

llStopAnimation

Animations
llStopAnimation(string anim)

Stops a currently playing avatar animation.

Official Wiki Doc →

llTakeControls

Controls & Input
llTakeControls(integer controls, integer accept, integer pass_on)

Captures avatar keyboard controls (W, A, S, D, E, C, Mouselook, etc.).

Official Wiki Doc →

llTeleportAgentHome

Security & Land
llTeleportAgentHome(key avatar)

Teleports an avatar back to their home location if estate owner/manager.

Official Wiki Doc →

llTriggerSound

Sound
llTriggerSound(string sound, float volume)

Triggers an un-attached positional audio sound effect.

Official Wiki Doc →

llUnSit

Avatars & Sitting
llUnSit(key avatar)

Forces an avatar to stand up from the sit target.

Official Wiki Doc →

llVecDist

Math & Vectors
float llVecDist(vector v1, vector v2)

Calculates the distance in metres between two vector coordinates.

Official Wiki Doc →

llVecNorm

Math & Vectors
vector llVecNorm(vector v)

Returns the normalized unit length vector of v.

Official Wiki Doc →

llWhisper

Chat & Messaging
llWhisper(integer channel, string msg)

Whispers a chat message within a 10-metre radius.

Official Wiki Doc →

🎯 Second Life Engine Events (23)

state_entry

Engine Event
state_entry()

Triggered automatically whenever a state is entered or when the script initializes.

Event Reference →

state_exit

Engine Event
state_exit()

Triggered immediately before exiting the current state.

Event Reference →

touch_start

Engine Event
touch_start(integer total_number)

Triggered on the first frame an avatar clicks/touches the object.

Event Reference →

touch

Engine Event
touch(integer total_number)

Triggered continuously while an avatar holds down their mouse button on the object.

Event Reference →

touch_end

Engine Event
touch_end(integer total_number)

Triggered when the avatar releases their mouse click from the object.

Event Reference →

collision_start

Engine Event
collision_start(integer total_number)

Triggered when a physical avatar or object begins colliding with the prim.

Event Reference →

collision

Engine Event
collision(integer total_number)

Triggered continuously while an object remains in contact during collision.

Event Reference →

collision_end

Engine Event
collision_end(integer total_number)

Triggered when collision contact ceases.

Event Reference →

sensor

Engine Event
sensor(integer total_number)

Triggered when llSensor or llSensorRepeat detects matching avatars or objects.

Event Reference →

no_sensor

Engine Event
no_sensor()

Triggered when a sensor scan finds zero matching targets within range.

Event Reference →

listen

Engine Event
listen(integer channel, string name, key id, string message)

Triggered when a chat message is received on an open listener channel.

Event Reference →

timer

Engine Event
timer()

Triggered at regular intervals set by llSetTimerEvent(float sec).

Event Reference →

changed

Engine Event
changed(integer change)

Triggered when object properties change (CHANGED_LINK, CHANGED_INVENTORY, CHANGED_OWNER, CHANGED_COLOR, CHANGED_SHAPE).

Event Reference →

money

Engine Event
money(key giver, integer amount)

Triggered when an avatar pays Linden Dollars (L$) to the object.

Event Reference →

run_time_permissions

Engine Event
run_time_permissions(integer perm)

Triggered when an avatar grants or denies requested permissions.

Event Reference →

attach

Engine Event
attach(key attached_avatar)

Triggered when an object is attached to or detached from an avatar.

Event Reference →

control

Engine Event
control(key id, integer level, integer edge)

Triggered when an avatar presses captured vehicle/weapon movement keys.

Event Reference →

link_message

Engine Event
link_message(integer sender, integer num, string str, key id)

Triggered when another script in the linkset calls llMessageLinked.

Event Reference →

object_rez

Engine Event
object_rez(key id)

Triggered on the rezzer prim when llRezObject successfully rezzes a child object.

Event Reference →

on_rez

Engine Event
on_rez(integer start_param)

Triggered on the newly rezzed object when created into the world.

Event Reference →

http_request

Engine Event
http_request(key id, string method, string body)

Triggered when an external client makes an HTTP request to the in-world URL.

Event Reference →

http_response

Engine Event
http_response(key request_id, integer status, list metadata, string body)

Triggered when an external web server responds to an llHTTPRequest call.

Event Reference →

transaction_result

Engine Event
transaction_result(key id, integer success, string data)

Triggered when an asynchronous L$ transaction completes.

Event Reference →
SELECT A SCRIPT TEMPLATE TO COMPILE:
🏷️

Hovertext Display Maker

Generate glowing floating text over any prim with custom color, alpha, and drop shadow simulation.

🚪

Smooth Rotating Touch Door

Creates a smooth 90-degree rotating door with sound effects, auto-close timer, and owner lock option.

💬

Multi-Button Dialog Menu

Generates an interactive popup dialog with custom buttons, timeout listener, and clean channel allocation.

🌀

Sit Target Teleporter

Instant elevation or cross-parcel teleporter triggered simply by sitting on the object.

📦

Group & Public Inventory Giver

Dispenses items or folders from the prim inventory upon touch with optional Second Life group check.

📡

Visitor Radar & Greeter

Detects avatars entering your parcel radius, sends welcome messages, and logs visitors.

🌈

Dynamic Prim Color / Glow Rotator

Cycles prim faces through rainbow neon hues with adjustable cycle speed and emissive glow.

💎

glTF PBR Material Swapper

Swaps between multiple Second Life glTF PBR materials on touch using the modern llSetPrimitiveParams API.

🎛️

Configure Parameters

📜

Live Compiled LSL Script

// Visual builder compiling...

⚡ Second Life LSL Optimization & Best Practices Guide

Verified guidelines for writing lagless, Mono-optimized Linden Scripting Language scripts.

🚪 Keyframed Motion vs Physical Moving

llSetKeyframedMotion(list frames, list options)

Allows smooth non-physical movement without consuming server physics time. Ideal for elevators, automated trains, and rotating doors.

View Wiki Article →

🏎️ Physical Vehicles & Motors

llSetVehicleType(integer type)

Configures the vehicle parameters for physical prims including deflection, linear/angular motor decay, and vertical attraction.

View Wiki Article →

💎 glTF PBR Materials

llSetPrimitiveParams([PRIM_GLTF_BASE_COLOR, ...])

Modern Second Life API function for changing PBR Base Color, Normal, Metallic-Roughness, and Emissive glTF assets dynamically.

View Wiki Article →

⚔️ Raycast Hit Detection

llCastRay(vector start, vector end, list options)

Fires an instantaneous collision beam from the camera or muzzle to detect avatar/object intersections without projectile lag.

View Wiki Article →

🛡️ Script Memory Caps

llSetMemoryLimit(integer limit)

Restricts script memory in Mono (e.g. 65536 bytes) so sim parcel limits are conserved and script lag is minimized.

View Wiki Article →

🌐 Inbound Web Server Prims

llRequestURL()

Second Life HTTP-in allows external websites to communicate directly into your in-world objects with zero polling lag.

View Wiki Article →

+ NEW LSL PASTE