Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/learn/studio-api/classes/Scene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ code_samples: |
function self:Start()
print("Scene: " .. scene.name)
print("Players in scene: " .. scene.playerCount)

-- Iterate through scene players
for i, player in ipairs(scene.players) do
print(" - " .. player.name)
Expand All @@ -33,7 +33,7 @@ code_samples: |
scene.PlayerJoined:Connect(function(scene, player)
print(player.name .. " joined the scene!")
end)

-- Listen for players leaving this scene
scene.PlayerLeft:Connect(function(scene, player)
print(player.name .. " left the scene!")
Expand Down
18 changes: 18 additions & 0 deletions pages/learn/studio-api/services/UI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,24 @@ methods:
returns:
- type: void
summary:
- name: OpenPetModal
summary: |
Open a pet modal for the given player if their current outfit has a pet.
description:
is_static: false
code_samples:
tags:
- ClientOnly
parameters:
- name: owner
type: Class.Player
tags:
default:
summary: |
Pet owner
returns:
- type: void
summary:
- name: OpenPopup
summary:
description:
Expand Down