"singleton Studio already exists" error when using studio service

  1. What do you want to achieve? I’m trying to access “Studio Service” from a plugin

  2. What is the issue? I keep getting an error “singleton Studio already exists”


    image

  3. What solutions have you tried so far? From what i have seen nobody else has this issue after searching on the forums

If anybody could help that would be appreciated.

1 Like

I don’t think that you should be using StudioService like that.

I believe that everything you would want to use Studio Service for should be doable using settings() in one way or another

I’m trying to access the plugin user’s id using a server script is there a way to do that with settings()?

For that case, I found the following bit of code online:

game:GetService("StudioService"):GetUserId()

which should do the trick.

I think you just had gotten Studio and StudioService mixed up.

that’s what I’m using and its causing an error.

No, that’s not what you are doing currently. Read the last line of my previous post.
You are doing :GetService("Studio") when you should do :GetStudio("StudioService")

Oh yeah thanks let me try that

The error is gone now i think its because roblox studio only suggested “Studio” when getting the service and not “StudioService” thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.