I know theres a bug with player added and it is buggy in play solo but even when i play the published version it doesn't even print 'Player Added'. I know theres no problems with the variables but can somebody please help?
-- Scripted by ThePhantomDeveloper
local dataStoreService = game:GetService('DataStoreService')
local characterCustimisationDataStore = dataStoreService:GetDataStore('CharacterCustimisationDataStore')
local characterCheck = game.ReplicatedStorage:WaitForChild('CharacterCheck')
game.Players.PlayerAdded:connect(function(player)
print('Player Added')
player.CharacterAdded:connect(function(character)
print('Character Added')
local hasFinishedCustimisation = characterCustimisationDataStore:GetAsync(tostring(player.UserId) .. 'HasFinishedCustimisation') or false
if not hasFinishedCustimisation then
print('Firing')
characterCheck:FireClient(player)
end
end)
end)

1 comment
It does get past the :WaitForChild() if your wondering.