Ad
Log in to vote
0

How to make a Gui appear for all players via gui button?

Asked by 9 days ago
Edited 8 days ago

I would like to create a script that makes a non-interactive gui appear for all players in the server. I've tried to figure it out myself via youtube tutorials and wiki, but I still can't seem to figure it out myself.

Here's what I have, it only makes the gui appear for my client.

script.Parent.MouseButton1Click:connect(function()
    local frame = script.Parent.Parent.Parent.Parent.Message
    frame:TweenPosition(UDim2.new(0.5, -1000,.5, -520))
    wait(5)
    frame:TweenPosition(UDim2.new(0.5, -1000,2, -520))
end)
0
Do you have filtering enabled? Is that script you provided a local script? skate992 21 — 9d
0
Filtering is enabled in studio, and yes it's a local script. I'd like to learn how to make clicking the gui button affect all players in-game. mikster1 -5 — 9d
0
do you know how to use remote events? unsatisfie_d 992 — 9d
0
Somewhat, not really, I can understand/read code and what it means. It's just when it comes to writing my scripts that I run into dead ends. mikster1 -5 — 8d

1 answer

Log in to vote
-1
Answered by 9 days ago

Use FireAllClients() metod with RemoteEvents

Ad

Answer this question