Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
Edited 6 years 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 57 — 6y
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 — 6y
0
do you know how to use remote events? hellmatic 1523 — 6y
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 — 6y

1 answer

Log in to vote
-1
Answered by
Ince_FS 13
6 years ago

Use FireAllClients() metod with RemoteEvents

Ad

Answer this question