I am building an obby for a tycoon and I want the obby to give the player $1000 when the player completes it. I am using berezza games tycoon kit and I cannot get the money pad to fund me. Here's my code

local ting = 0

function onTouched(hit)

	if ting == 0 then 
	ting = 1 
	check = hit.Parent:FindFirstChild("Humanoid") 

	if check ~= nil then 

		local user = game.Players:GetPlayerFromCharacter(hit.Parent) 
		local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(player.Name)
		if cashmoney ~= nil then 
			if cashmoney then
				cashmoney.Value = cashmoney.Value + 1000
			end

	end

	ting = 0 
	end

end

script.Parent.Touched:connect(onTouched)