menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Attempt to Compare String w/ Number?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Attempt to Compare String w/ Number?
RoyalBobby202
Join Date: 2011-04-16
Post Count: 458
#215598127
Sunday, April 30, 2017 12:06 AM GMT
When I try to compare the text of a TextBox (keep in mind, a number is entered in the box) to a NumberValue's value, it returns this error. Help? example code: script.Parent.Price.Value == script.Parent.PriceBox.Text
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
LaeMVP
Join Date: 2013-06-24
Post Count: 4416
#215598340
Sunday, April 30, 2017 12:08 AM GMT
if "a" == 3 doesn't sound right. You could to if tonumber(script.Parent.Price.Value) == script.Parent.PriceBox.Text then
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right