So, the script has to grab the stats and show it up on a gui for some reason the script is not working.
local GUI = script.Welcome
local stats = script.playerstats
join = (function (Player)
local GuiClone = GUI:Clone()
if not Player.Character then
Player.CharacterAdded:wait()
end
local statsClone = stats:Clone()
statsClone.Parent = Player
GuiClone.Frame.Visible = false
GuiClone.Parent = Player:findFirstChild("PlayerGui")
end)
game.Players.PlayerAdded:connect(join)
for _,v in next, game.Players:GetPlayers() do
join(v)
end

3 comments
There is no context to this question. 1) What is this supposed to be doing? 2) What is it actually doing? 3) What is
script.playerstats? Are there any other scripts interacting with this one?Please atleast Put a Better Description
I did