DataStore Issue. When Adding Money

So, I added money to my account on Roblox, and It says I’m -99999949490038493.

Is there anyway to fix this?.. I’m so confused, heres the picture

Could you give more clarification of what exactly went wrong?
Thanks

(Perhaps you can share the snippet of the code that deals with the datastore, and how you are updating it?)

To Clarify, I own a Trading Game. I was adding cash to a Script, I have on the Bottom Right side I added a Massive amount of Numbers, and it ended up messing up my code. heres the Cash Script:


local ProfileService = require(1936396537)
local Default = 30000
script.Parent.MouseButton1Click:Connect(function()
	if debounce == true then
		debounce = false
		local player = script.Parent.Parent.Parent.Parent.Parent
		local cashstore = ProfileService("Cash",player)
		cashstore:Increment(10,Default) -- I added 1000000000000
		wait(.1)
		debounce = true
	end
end)``

Can someone help me fix ths?

I just looked at documentation, and the function is that you have an ID, and then you have an increment value.
I believe that your number didn’t update at all, and stayed at the same number. I think you have to change 10 to an ID?

Edit:
I am completely wrong, ignore this

Let me guess, you’re using an IntValue for it, right?

1 Like

What do you mean? By that?.. I’m very confused

Yep. thats what i was doing.

30 cccccccccccccccccccc

IntValues have a limit.
Their range is between -2^31 and 2^31 - 1.

A solution would be, either: make a limited reachable amount of value, or use NumberValue.

Yeah, Should of known…
Is there anythin i can do to fix this? situation.

How would I go about making a Reachable Value?

You could try to make it so that when the players’ value change to a certain number, change it back to a limited number, let’s say : 10M. [ use .Changed event on the stats you’re wishing to make that limit on`].

Also, you should use task.wait and not wait.

Is there anyway you can Directly contact me via, Discord? So I can share more of the Code on Screenshare?

so you can see, what I ment i was doing directly that caused the issue.

You could just use the built-in feature the forum has, to format your code here.
You can use the what looks like</> symbol to format your code to look like a script format.

Yes, I’m aware of that. But I’d like to show you what I was doing directly, when the incident happened and How it occurred.

Are not you able to record a video , upload it to gfycat and then share the video here?

No, I’m not. I cannot. for some reason.

It messes up my frames, to record a video. due to my graphics card being absolutly trash at the moment.

Are you able to send a Rbx file of the place? So that I could see and fix it and then send you the fixed file?

Sure, I can do that. I’d be glad to do so. Send me a Request as I’m not sending it here; Barcode#0001