How to make it so adornee shows for everyone

How would I make it so the adornee for a surfacegui shows for everyone in workspace.

I have it so it sets the adornee on the server side but only the person who clicks the button to set the adornee can see it, but everyone else can’t.

Is this a GUI button or a ClickDetector parented to a part?

GUI Button
-- LocalScript referencing the GUI

local button = path/to/gui/button

local RS = game:GetService("ReplicatedStorage")
local event = RS:WaitForChild("RemoteEvent")

local function main()
    event:FireServer()
end

button.Activated:Connect(main)
-- Script referencing SurfaceGui

local gui = path/to/gui

local RS = game:GetService("ReplicatedStorage")
local event = RS:WaitForChild("RemoteEvent")

local function main()
    gui.Adornee = path/to/adornee
end

event.OnServerEvent:Connect(main)
ClickDetector Button
-- Script referencing SurfaceGui

local gui = path/to/gui

local function main()
    gui.Adornee = path/to/adornee
end

click_part.ClickDetector.MouseClick:Connect(main)

Hope this helps.

Hey, thanks for responding. It’s a clickdetector and i’ve already scripted it, the adornee is set to a part but not everyone in the server can see the surface gui, only the person who clicked the clickdetector.

Not a lot of information given here, but if it’s a local script inside of the click detector, you’ll have to use a remote event.

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