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)
COMMUNITY QUESTION
i making a simulator and my script to sell stuff and earn cash wont work?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Is this a server or client script? Are you receiving any errors in the Output window? If so, please post them.
server
and i dont recieve any error