drilinz
(drilinz)
#1
Hey, so I’m making this thing yeah and basically, the VALUE shows the correct amount, but it outputs a different amount for some reason.
Script:
game.ReplicatedStorage.purchasedEvent.OnServerEvent:Connect(function(plr, downloadLink)
local data = {
["content"] = "giveproduct "..plr.discordID.Value.." "..downloadLink
}
local finalData = httpService:JSONEncode(data)
httpService:PostAsync(webhookURL, finalData)
end)
What is outputted, but the value is “967830026030551040”:

Does anyone know why it does this?
1 Like
Ahdlibya
(AHD_exe)
#2
where’s the print call in the script
Make Sure you are not changing the value else where
Kaid3n22
(Kaiden)
#3
Roblox ends up sort of “rounding” big numbers and makes it a different number than what it actually is.
1 Like
drilinz
(drilinz)
#4
Thanks for this, I decided to use the original TextBox text instead of the discordID value.
Kaid3n22
(Kaiden)
#5
Well, instead of using it as a numbervalue, you could use a string value and it would fix the problem. discord id’s are strings anyways