So I’m not really great at scripting but I’ve been looking into datastore2 I understand it a little bit but not completely. So I have this problem which i just don’t know how to do it.
So this is my script for the dataStore2:
This is the main script. I want it so when someone wins, the amount of coins will add on to the current value. I have a remoteEvent which I called first but I don’t think I need to make one for each. I should be able to make one and pass on the corresponding value that each place gives. But I can’t get it to work may be an easy fix, but not sure. Any help will be appreciated.
Don’t mind these comments in the script that was my previous script with no datastore.
Correct me If im wrong but 1.I would recommenced doing this all on the Server, and 2.
replicatedStorage.Placements.First.OnServerEvent:Connect(function(coins)
--Coins Would be the player parameter
-- I think I would need to be: OnServerEvent:Connect(function(player,coins)
end)