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)

2 comments
I think the thing you're cloning isn't updating.
and how do i fix that