Why wont this work?

Whenever I run this script is comes out as Attempt to compare boolean with number

Heres the script:
player.PlayerGui.ScreenGui.Frame.Amount.Value.Value >= pcall(player.Character:FindFirstChildOfClass(“Tool”):GetAttribute(“Cost”))

A pcall() returns a Boolean to determine if it was Successful for not, so you are basically Attempting compare its Success (boolean), to a number, which you arent able to.

3 Likes

I’m not sur what the problem is, could you elaborate a little more?
Also please format it right
Add ``` at the start and end of the Script

Hmmm. ok gives me a second please

1 Like

Thank you! This really helped.

2 Likes

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