This script is supposed to add player money when that player is driving a car but it is not woking. There are no errors coming up.
local add = 1
script.Parent.Touched:connect(function(hit)
local character = hit.Parent
local player = game.Players.LocalPlayer
if player then
if script.Parent:FindFirstChild("SeatWeld") then
script.Parent.sitting.Value = 1
wait()
if script.Parent.Throttle > 1 then
wait(1)
local money = game.stats:FindFirstChild("money")
money.Value = money.Value + add
end
else
script.Parent.sitting.Value = 0
end
end
end)
****

2 comments
EDITED The site has been a jerk to me. Here's the fixed script https://pastebin.com/VwhU6ZxU
Tried it but still not working