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

How to clone a UI Into playergui with a normal script in serverscriptservice?

Asked by
hokyboy 270 Moderation Voter
4 years ago
local function CloneDialog(plr)
    local NewUI = script.PlayUI:Clone()
    NewUI.Parent = plr.PlayerGui
    NewUI.TextScript.Disabeld = false

end

How to clone a UI Into playergui with a normal script in serverscriptservice

1 answer

Log in to vote
1
Answered by
hokyboy 270 Moderation Voter
4 years ago
while true do wait(1)
for i, players in pairs(game.Players:GetChildren()) do
    warn("Trying To Clone The Player Gui")
    local NewUI = script.PlayUI:Clone()
    NewUI.Parent = players.PlayerGui
    NewUI.TextScript.Disabeld = false
    end
end

0
Fixed it hokyboy 270 — 4y
Ad

Answer this question