#Anyone willing to help make a calculator? I have it but idk its like broken in a way
1 messages · Page 1 of 1 (latest)
if u want help you should provide the script first
Yeah bro, sure I can help you
addition
print(1+1)
output = 2
.
multiplication
print(5*5)
output = 25
division
print(20/5)
output = 4
Can I just add to the studio
^^
Alright first you can add a moduleScript in the replicatedstorage
Then you make a normal script the grey one in the ServerScripStorage
In the moduleScript add this
local calculator = {}
calculator.Addition = function(num1 , num2)
return(num1 + num2
end
--[[
Repeat the same for each function and change the operationn (*, -, / )
]]
return calculator
** You are now Level 2! **
Then in the Script:
local calculator= require(game.ReplocatedStorage.ModuleScript)
local result = calculator.Addition(10,20)
print(result)
Im having trouble with calculating %
Like I can display 45% x 10 but when I click = it says error which means it couldn’t calculate
Oooh ok can you show the code?
Yes will send when I get home
@brob