Hello Devforum, about 10 minutes ago, me and my friends were about to play my tycoon and theres a problem where, 1 player makes cash, all of them do, it makes sense on why, but I dont know how to fix it
Script:
local players = game:GetService("Players")
local collecter = script.Parent
local basepart = collecter.BasePart
basepart.Touched:Connect(function(hit)
if hit.Name == "Drop" then
for _, player in ipairs(players:GetPlayers()) do
player.leaderstats.Cash.Value += hit.CashValue.Value
end
hit:Destroy()
end
end)