local part = script.Parent
part.Touched:Connect(function(hit)
	local h = hit.Parent:FindFirstChild("Humanoid")
	if h then
		local player = game.Players:GetPlayerFromCharacter(hit.Parent)
	if player then
		local leaderstats = player:WaitForChild("leaderstats")
		local money = leaderstats.Gold
		local selling = leaderstats.Sips
			if selling.Value >= 0  then
				money.Value = money.Value + selling.Value*1
				selling.Value = 0
			end
	end
	end
end)

3 comments

0

Is this a server or client script? Are you receiving any errors in the Output window? If so, please post them.

0

server

0

and i dont recieve any error