#what are these errors and how to fix them
32 messages · Page 1 of 1 (latest)
** You are now Level 7! **
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)
this is not working
?
api services???
yes its on
no work
it did not work
ofc yeah i do
** You are now Level 5! **
yeah nah i tried everything nothing is working
That error isn't coming from your script; it's coming from the AutoScale plug-in
Your script is failing for another reason
do it in game not in studio
ah, thats a malicious plugin, auto scale plugins dont need to use HTTP, remove ur plugin
ill send u genuine
Roblox is a global platform that brings people together through play.
i think thats the original
or atleast it doesnt try to use http
U have bruh
Look left corner
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