#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)

toxic cloak
#

Pls help

lapis mirage
#

if u want help you should provide the script first

opal eagle
#

Yeah bro, sure I can help you

grim oar
#

addition
print(1+1)
output = 2
.

#

multiplication
print(5*5)
output = 25

division
print(20/5)
output = 4

toxic cloak
#

Can I just add to the studio

opal eagle
# toxic cloak 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

solid acornBOT
#

studio** You are now Level 2! **studio

opal eagle
#

Then in the Script:
local calculator= require(game.ReplocatedStorage.ModuleScript)

local result = calculator.Addition(10,20)
print(result)

toxic cloak
#

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

opal eagle
#

Oooh ok can you show the code?

toxic cloak
toxic cloak
#

@brob