I think this may just be me being stupid but I tried adding a death counter and messed up my script
01 | local DataStoreService = game:GetService( "DataStoreService" ) |
02 | local myDataStore = DataStoreService:GetDataStore( "myDataStore" ) |
03 |
04 | local player = game.Players.PlayerAdded:Connect( function (player) |
05 |
06 | local leaderstats = Instance.new( "Folder" ) |
07 | leaderstats.Name = "leaderstats" |
08 | leaderstats.Parent = player |
09 |
10 | local collectibles = Instance.new( "IntValue" ) |
11 | collectibles.Name = "Collectibles" |
12 | collectibles.Parent = leaderstats |
13 | collectibles.Value = player.leaderstats.Collectibles.Value |
14 |
15 | local deaths = Instance.new( "IntValue" ) |
I'm kinda new but if I'm not mistaken, if you got the error message "got 'end'", I believe this means that you have an extra end somewhere the doesn't correspond with a beginning