#what are these errors and how to fix them

32 messages · Page 1 of 1 (latest)

heady ember
#

the circled with red is the errors

#

and i think it is the reason my data store is not working

#

someone help

deft vergeBOT
#

studio** You are now Level 7! **studio

heady ember
#

pls

#

local playerData = DataStoreService:GetDataStore("PlayerData")





local function onPlayerJoin(player)  -- Runs when players join

    local leaderstats = Instance.new("Folder")  --Sets up leaderstats folder

    leaderstats.Name = "leaderstats"

    leaderstats.Parent = player



    local gold = Instance.new("IntValue") --Sets up value for leaderstats

    gold.Name = "Gold"

    gold.Parent = leaderstats



    local playerUserId = "Player_" .. player.UserId  --Gets player ID

    local data = playerData:GetAsync(playerUserId)  --Checks if player has stored data

    if data then

        -- Data exists for this player

        gold.Value = data

    else

        -- Data store is working, but no current data for this player

        gold.Value = 0

    end

end



local function onPlayerExit(player)  --Runs when players exit



    local success, err = pcall(function()

        local playerUserId = "Player_" .. player.UserId

        playerData:SetAsync(playerUserId, player.leaderstats.Gold.Value) --Saves player data

    end)



    if not success then

        warn('Could not save data!')

    end

end



game.Players.PlayerAdded:Connect(onPlayerJoin)

game.Players.PlayerRemoving:Connect(onPlayerExit)
heady ember
#

?

#

api services???

#

yes its on

#

no work

#

it did not work

heady ember
#

ofc yeah i do

deft vergeBOT
#

studio** You are now Level 5! **studio

heady ember
#

yeah nah i tried everything nothing is working

agile inlet
#

Your script is failing for another reason

hallow obsidian
steep moon
#

ill send u genuine

#

i think thats the original

#

or atleast it doesnt try to use http

heady ember
#

i dont have auto scale plugin?

steep moon
#

U have bruh

steep moon
#

Add constraint

#

Unit conversion

#

That’s auto scale lite, a fake version of auto scale lite, probably, maybe not, but I’m just saying it’s sus