i am trying to make a script which gives the player money when they deliver the lumber. It worked when i had it set to FireAllClients, but it would add money to everyone.
heres the code:
local pad = script.Parent
local debounce = false
local player = game.Players.LocalPlayer
pad.Touched:Connect(function(part, arg)
if not debounce then
debounce = true
if part.Name == "WheeLumber" then
elseif part.Parent.VehicleSeat.load.Value == "lumber" then
local car = part.Parent
print"bruh"
car.logs:Destroy()
game.ReplicatedStorage.RemovePlayerMoneyEvent:FireClient(player,arg)
debounce=false
wait(6)
end
end
end)
