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

Clone a GUI to all player?

Asked by 3 years ago

Hi, I'm trying to make a script that will clone a dialogue GUI to all player on that server. But I don't know how. Can somebody help me?

1 answer

Log in to vote
0
Answered by 3 years ago

This is not a request site, but I'll do!

local GUI = --The GUI
local Players = game:GetService("Players")
for i,v in next,Players:players() do
GUI:Clone().Parent = v.PlayerGui
end
0
Thank you, MiAiHsIs1226! :) Mimas18Hun 0 — 3y
0
You're welcome! MiAiHsIs1226 189 — 3y
Ad

Answer this question