I’m attempting to get this to show when people purchase the product
When people have bought the product from the donation button it does not show up on the donation board.
Tried coding it into a block had nothing but if someone can let me know or is there something wrong with the script that I need to redo.
Have you tried printing to see if the event itself gets fired? Does displaying items independantly work?
When showing code protip:
Use 3 `
–code here
3 again
Transforms into:
--code here
I have tried to purchase them and they don’t seem to show up on the board.
Add print statements. Is the event itself firing? How far is the code running?
It only lets people purchase from the buttons but doesn’t really go to the board. to show who has donated.
You are not answering my question. In you .Event:connect, add a print statement before the if statement. See if it prints. I do not have access to any of the code that calls the event; I need to know to help
local i,j,minus,int,fraction = string.find(num,"([-]?)(%d+)([.]?%d*)")
int = string.gsub(string.reverse(int),"(%d%d%d)","%1,")
return minus..string.gsub(string.reverse(int),"^,","")..fraction
end
game:GetService("ServerStorage"):WaitForChild("donateEvent").Event:Connect(function(action,currentData)
if action == "Update" and currentData then
table.sort(currentData,function(a,b)
return a[2] > b[2]
end)
for pos,data in pairs(currentData) do
script.Parent.DonationsGUI["Name"..pos].Text = game:GetService("Players"):GetNameFromUserIdAsync(data[1])
script.Parent.DonationsGUI["Value"..pos].Text = formatNumber(data[2])
end
end
end) ```
Sorry, I would of knew what to do years ago but I lost a lot of it when I stopped playing.
But yeah that’s the script above can you note what I need to add so then I can place it in.
I cant access what it’s doing without the code that calls the remote; Please send the placefile if you cant provide it.
delton.rbxl (5.5 MB)
There is the placefile and while you go through it can you help me with one more thing theres a script aswell in serverscriptservice called discord is there anyway I can get that to my channel.?