Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make this script give player money when they drive a vehicle?

Asked by
Ifigil 4
5 years ago

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)
****
0
EDITED The site has been a jerk to me. Here's the fixed script https://pastebin.com/VwhU6ZxU Lakodex 711 — 5y
0
Tried it but still not working Ifigil 4 — 5y

Answer this question