This script lets you create interactive prims — each prim acts like a social media button.
When someone clicks one, it automatically opens the correct link in their web browser.
It’s great for:
Business or creator signs
Storefronts with social links
Event or group displays
Personal profiles or gallery builds
⚙️ How It Works (Simple Explanation)
Linked Object Setup:
You make one linked object with multiple prims — for example:
Prim 1 (root): Main sign
Prim 2: “Facebook”
Prim 3: “Instagram”
Prim 4: “YouTube”
Prim 5: “Discord”
Script Placement:
The script goes in the root prim — not in each button.
Prim Names = Links:
The script looks at the name of the prim you clicked and matches it to a web link.
Example:
If the prim name is Facebook, it opens your Facebook page.
If the prim name is YouTube, it opens your channel.
Click Action:
When someone clicks a prim:
The script detects which prim was touched using llDetectedLinkNumber().
It checks the prim’s name with llGetLinkName().
Then it finds the matching URL.
It calls llLoadURL(), which pops up a browser window for the user.
Security:
Only the clicker sees the popup — it doesn’t spam chat or affect anyone else.
Example Build
Let’s say you have a JB Designs social board:
Prim Name Action
Facebook Opens your Facebook page
Flickr Opens your Flickr gallery
Discord Opens your Discord invite
YouTube Opens your channel
TikTok Opens your TikTok page
All of them are linked to one main sign that holds the script.
- Social Media Links
