How do i make this camera show when i select the camera object?

Hello im wondering how to make this little camera show when i click the camera object in the workspace.
I dont know if this is a plugin or what it is.
this is the video i found it from showing this.


As you can see there is a camera showing and when he doesnt have the object selected it dissapears! Heres the full video im also not sure if this is the right topic i just wanna know this for a ViewPortFrame thing since im new to them heres the video:

Also again tell me if this is the wrong topic

1 Like

I’m pretty sure you would use Selection:Get()

Selection.SelectionChanged:Connect(function()
  if table.find(Selection:Get(), workspace.RenderingTest) then
    -- make camera object visible
  else
    -- make camera object invisible
  end
end)

and yes, you would have to do this in a plugin if you want it to appear whilst developing.

2 Likes

Are there any Plugins i can use to do this? Because i dont know how to make a plugin and i wanna use it while developing.

1 Like

Just create a script put that code in it, right click and select save as local plugin

2 Likes

Local OR Regluar script? (30a)

1 Like

Regular script yes

image

1 Like

Its giving me blue underlines saying “Unknown global” Do i replace selection with the object im selecting?

1 Like

I’m pretty sure that’s the camera object you get from TestService, not sure how you get it, but I’ve seen this camera being used by Roblox.

2 Likes

So how do i get “TestService” Exactly?

Oh you just have to define Selection

local Selection = game:GetService('Selection')

Selection.SelectionChanged:Connect(function()
  if table.find(Selection:Get(), workspace.RenderingTest) then
    -- make camera object visible
  end
end)
2 Likes

Theres no errors but i dont see the camera anywhere.