I need help with data resetting

Hello, I have been trying to make a reset data script and I just can’t seem to get it working and I need someone’s help.

	-- ChatCmds
	Player.CharacterAdded:Connect(function(Character)
		Player.Chatted:Connect(function(Message)
			if string.lower(Message) == "/ResetData_".. Player.UserId then
				print("yes")
				Storage:SetAsync(Player.UserId.."-Debug", false)
				Storage:SetAsync(Player.UserId.."-Bank", 10000)
				Storage:SetAsync(Player.UserId.."-Cash", 5000)
				Storage:SetAsync(Player.UserId.."-Bounty", 0)
				Player:LoadCharacter()
			end
		end)
	end)
	print("/ResetData_".. Player.UserId)
end)
----

You could try using :RemoveAsync?

(also, that screenshot provides absolutely nothing of relevance to the question. You need to include the actual loading section of it, not just the creation of the variables)

Change this: if string.lower(Message) == “/ResetData_”… Player.UserId then

To this: if string.lower(Message) == “/resetdata_”… Player.UserId then

You cannot use capitals for string.lower() :+1: