what does "attempt to perform arithmetic on field 'SellingValue' (a userdata value)" mean? I have it so that the value of something is the value NumberValue - SellingValue
here is my script
money = script.Parent.Parent.Money
function onTouched(hit)
if hit.Name == "TycoonBrick" then
hit:remove()
money.Value = money.Value + 25
elseif hit.Name == "UpgradedTycoonBrick" then
hit:remove()
money.Value = money.Value + script.Parent.Parent.Parent.SellingValue
end
end
script.Parent.Touched:connect(onTouched)
Thanks

1 comment
yogipanda, ehm the thing because it is happening due to a error in scripting if the 'SellingValue' is a specific value then add mostly value or SellingValue.Value and it may work.