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

How do I Update the GUI so when a new player joins he can see what everyone else see's?

Asked by 4 years ago

So What I'm trying to do is: -If a player says "ATS/" then it should clone a Frame to everyones PlayerGUI -However when a new player joins they can't see what the rest who joined before saw.

local Stat = script.Stats
local CF = game.ReplicatedStorage.Stats.SF
local WL = {"dogovpain","Baller_Shard","Player1"}

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        for i = 1,#WL do
            if msg:sub(1,4) == "ATS/" and player.Name == WL[i] then
                local EOF = msg:sub(5,msg:len()) 
                if game.Players:FindFirstChild(EOF) then
                    local CS = Stat:Clone()
                    CS.Parent = game.ReplicatedStorage.Stats
                    CS.Name = EOF
                    for i,v in pairs(game.Players:GetPlayers()) do
                        local CFC = CF:Clone()
                        CFC.Parent = v.PlayerGui.Stats.Main.Scrolling
                    end
                end
            end
        end
    end)
end)
0
I think the thing you're cloning isn't updating. Fate2Seal 5 — 4y
0
and how do i fix that WillBe_Stoped 71 — 4y

Answer this question