this is my scripts so far..
.~~~~~~~~~~~~~~~~~ local Cash = game.Players. --what goes here again? local CashPart = script.Parent local count = game.Workspace.Counter local function onPartTouch (otherPart) if (count)then Cash = Cash + 10 end
end
and then there is this script...
local currencyName = "Cash"
local DataStore = game:GetService("DataStoreService"):GetDataStore("TestDataStore")
game.Players.PlayerAdded:Connect(function(player) local folder = Instance.new("Folder") folder.Name= "leaderstats" folder.Parent = player
local currency = Instance.new("IntValue")
currency.Name = currencyName
currency.Parent = folder
local ID = currencyName.."-".. player.UserId
local savedData = nil
pcall (function()
savedData = DataStore: GetAsysc(ID)
end)
end)
i'm trying to make the Currency go up by 10 when the Clone Part touches the Counter. Please Help Me!

2 comments
Oops the scripts are messed up. I hope you can still read it
This won't work, fix your script or remove the post. This is unreadable