New smart math NPC

I make a npc that solves math problems


sqrt +,-,x,/ he is pro with anything

12 Likes

Do you like this smart math npc?

1 Like

Yes, but will it get to a point where it can solve advanced math problems?

cool for first graders to solve huge numbers multiplied by a huge number : )

2 Likes

did you just do player.chatted and check the message and make the robot chat? Or does it actually do the math problem without having set answers?

1 Like

yes! he can solve every number in the world

No ! he havent I will send you the script pls wait

So if I say, square root 4, will it squareroot 4?

2 Likes

no but I will try to make this

ty for the idea I will make him

It would require some effort but it’s fairly easy as the ‘math’ library exists, for example he says this:

squareroot 2

So,

math.sqrt(2)

It would also be cool if he can use squareroot at the same time while adding the number

Squareroot 6 + 2
math.sqrt(6) + 2

Would be 8.

2 Likes

yes I know math functions like math.huge() = infinity and math.floor()

1 Like

this is the scripts

his make him says hi and other things

And this make him solve

I didnt know about string.split this time but its working

really nice! One tip I have is that instead of doing doing player.chatted do it using the roblox chat system

1 Like

what do you mean? please tell me

Nice code! Is there ^?

1 Like

I will make him solve squares √

1 Like

oh yeah this will be a bit difficult but pi is also cool
ik it will be as easy as just typing in “math.pi” but he maybe wants to say what’s it’s approximated to, so good luck on making that

Nvm, it’s actually easy to round the number

function round(num)
return math.floor(num+0.5)
end

now the bot is real smort

2 Likes

This isn’t an AI. AI means you don’t have any hardcoded responses and the model learns on training input.

2 Likes

ok ! Thank you for telling me that