"attempt to concatenate nil with string"

So when I try to run my script, the error “attempt to concatenate nil with string” appears and I tried fixing it but i don’t get how i can fix it.

that’s the part where the error accures:

...
v:WaitForChild("SurfaceGui").Frame.Price.Cash.Amount.Text = v:GetAttribute("Cash").." Cash!"
...

If anybody can explain how to fix it, do so please!

I found why it wasn’t working. I called the Attribute Coins instead of Cash!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.