I have a script that uses the PlayerAdded
event to work but it doesn't work and i have seen some other people say that it doesn't work for them either. Any fixes? It was working before But it just stopped working a couple hours ago...
game.Players.PlayerAdded:connect(function(plr) local PlayerValues = Instance.new("Folder", plr) PlayerValues.Name = "PlayerValues" local PlayerPlaying = Instance.new("BoolValue", PlayerValues) PlayerPlaying.Name = "Playing" local AFK = Instance.new("BoolValue", PlayerValues) AFK.Name = "AFK" local Money = Instance.new("IntValue", PlayerValues) Money.Name = "Money" Money.Value = ds1:GetAsync(plr.UserId) or 0 ds1:SetAsync(plr.UserId, Money.Value) Money.Changed:connect(function() print("Saving Data") ds1:SetAsync(plr.UserId, Money.Value) print(plr.Name.."'s Data of "..Money.Value..""..Money.Name.." has been saved!") end) end)
Actually there are rumors that ROBLOX actually broke the PlayerAdded event.
game.Players.PlayerAdded:connect(function(player) print(player.UserId) end)
I have an event that seems to semi work when a player is added, let me test to ensure.
This seems to work fine.