I need to have a script to add 100 bucks every time he sits in it so far i have this:
local Player = game.Players.LocalPlayer
local stats = Player:WaitForChild("leaderstats")
local money = stats:WaitForChild("Money")
repeat wait() until Player.Character ~= nil and
workspace:FindFirstChild(Player.Name)
local Character = Player.Character
local Humanoid = Character:Waitforchild("Humanoid")
local Seat = game.Workspace.GasStation.JobSeat.Seat
local debouce = true
Humanoid.Changed:Connect(function()
if Humanoid.sit == true and Humanoid:GetState()== Enum.HumanoidStateType.Seated and debouce == true then
debouce = false
print("It Worked")
money.Value = money.Value + 100
elseif Humanoid.sit == false and Humanoid:GetState() ~= Enum.HumanoidStateType.Seated and debouce == false then
debouce= true
end
end)
