Datastore2 Adding Coins help!

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:

image

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.

image

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)

Yeah, all of this is being handled on the server.

Also there’s a error now saying “Unable to cast value to Object”

ReplicatedStorage.Placements.First:FireAllClient(250)

--If its all Server Side Shouldn't it be then
ReplicatedStorage.Placements.First:Fire(250)

BindableEvent | Documentation - Roblox Creator Hub Wiki Link

Additionally if its all server make sure its a bindable event and not a remote event

Thanks, I will look into BindableEvents.