script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player.leaderstats.InJob.Value == 1 then
print("work")
player.leaderstats.Cash.Value = player.leaderstats.Cash.Value + 25
wait()
player.leaderstats.InJob.Value = 0
end
end
end)
it's a server script.

1 comment
is there an error, whats the problem exactly