I am trying to make a fart simulator for a fun challenge. I created a value where the farts will be held but it keeps returning this error: attempt to perform arithmetic on local 'farts' (a userdata value)
The player will equip a tool called fart and click to fart basically
local fart = script.Parent
local ready2Fart = true
local function onClick()
local farts = Instance.new("NumberValue")
farts.Name = "farts"
farts.Parent = script.Parent
if ready2Fart == true then
ready2Fart = false
print("FAAARRRT")
farts = farts + 1
wait(0.7)
ready2Fart = true
end
end
fart.Activated:connect(onClick)
any help will be appreciated.
Thanks!

1 comment
wow, what a game, lol