local severStorage = game:GetService("ServerStorage") local DataStore = game:GetService("DataStoreService"):GetDataStore("PlayerSave3")
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local strength = Instance.new("NumberValue") strength.Name = "ChillStrength" strength.Parent = leaderstats local rebirths = Instance.new("IntValue") rebirths.Name = "Rebirths" rebirths.Parent = leaderstats local dataFolder = Instance.new("Folder") dataFolder.Name = player.Name dataFolder.Parent = severStorage.RemoteData
end <eof>
Error: ServerScriptService.Stats:22: Expected identifier when parsing expression, got <eof> Sorry i'm new to coding.
Uptate: Code:
local severStorage = game:GetService("ServerStorage") local DataStore = game:GetService("DataStoreService"):GetDataStore("PlayerSave3")
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local strength = Instance.new("NumberValue") checkpoint.Name = "Level" checkpoint.Parent = leaderstats local dataFolder = Instance.new("Folder") dataFolder.Name = player.Name dataFolder.Parent = severStorage.RemoteData
end)
Error: ServerScriptService.Stats:11: attempt to index global 'checkpoint' (a nil value)
After i used end) and deleted <eof> i managed to fix it with. Thank you too Azarth.