Basically I have seen many plugins that have text appear on the screen without an actual widget, Such as this one animation plugin
How does one do this? Cause I must know
Basically I have seen many plugins that have text appear on the screen without an actual widget, Such as this one animation plugin
Plugins in roblox studio use the same GUI elements as you are referring to, they are just not visible in the workspace.
One way for a plugin to put text on the screen is to create a ScreenGui within game.CoreGui
I see. Is there a doc for this? I know nothing about core gui ngl
Here is coreguiâs documentation: CoreGui | Documentation - Roblox Creator Hub
However, for your use case you can treat it same as StarterGui.
So like I just parent the gui to coregui? Simple enough
Yup, thatâs all there is to it. Keep in mind that only plugin scripts may access coregui or anything inside of it.
Wait how do I access coregui? I looked at the doc but couldnt figure it out
You can access CoreGui via game.CoreGui or game:GetService(âCoreGuiâ)
Plugins have the same permissions regular scripts to, in fact: their permissions are elevated.
Usually, this would be stored in CoreGui: which you can access by going to file > studio settings > scroll down to the âExplorerâ section and find âShow Hidden Objects in Explorerâ, âShow Core GUI in Explorer while Playingâ, and âShow pluginGUI service in Explorerâ. Check these 3 boxes and hit close, not the x. Now, restart studio and it should show.
I am PRETTY sure CoreGui is locked to Studio scripts
That is what I said. By âonly plugin scripts may access coreguiâ I meant that only plugin scripts, not studio scripts, can access coregui. If you try to access coregui with a studio script you will get the error âThe current thread cannot access âCoreGuiâ (lacking capability Plugin).â
I was just clarifying for him, as you said it after which made it sound like you can still access it with that.
Place it in a ScreenGui in CoreGui upon plugin initialization.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.