Does This Script Work For Driving To Earn Money? Im Not Sure.
local add = 110
script.Parent.Touched:connect(function(hit) local character = hit.Parent local player = game.Player:GetPlayerFromCharacter(character) 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 = stats:FindFirstChild("money") money.Value = money.Value + add end else script.Parent.sitting.Value = 0 end end end)
I don't know much but I think you need to reference the stats.
local add = 110 script.Parent.Touched:connect(function(hit) local character = hit.Parent local player = game.Player:GetPlayerFromCharacter(character) local stats = player.Stats 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 = stats:FindFirstChild("money") money.Value = money.Value + add end else script.Parent.sitting.Value = 0 end end end)