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
In line 04 you have Join = (function (player)
replace that with game.Players.PlayerAdded:connect(function(Player)
Please Correct me if I am Wrong, but I think You can't make Functions/Events a Variable.