I am using Data Stores and this is my first time using it. does anyone know what is happening? this is my script

	local success, errorMesage = pcall(function()
		GravelColor:SetAsync(player.UserId.."-color", ColorOfG.Value)
	end)
	
	if success then
		print("Player Data Succesfully Saved")
	else
		print("There was an error when saving Data")
		warn(errorMesage)
	end

5 comments

1

show the FULL code

0

player.UserId is probably a bindable/remote function/event signal, so it returns the error

0

how do i show the full script on this same post? sorry i'm new

0

what does it print, if you cant see the output / debug then you arent fit to get to datastore yet.

0

it prints there was an error when saving data