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”))
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.
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
Thank you! This really helped.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.