Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I register data when an user clicks a button?

Asked by 6 years ago

Hello,

I'm trying to make a database that gets data of the user when he clicks a button. But I'm lost, and don't know how to do that. Literally everything I have is this:

local datastore = game:GetService("DataStoreService")
local ds1 = datastore:GetDataStore("ReapingData")

game.Players.PlayerAdded:connect(function(plr)

end)

Can anyone help me more?

Thank you.

0
I recommend using a localscript and then firing the server script so you don't have to do all the work arounds. WorkAtChickenPlace 19 — 6y

Answer this question