Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is this going to work?

Asked by 10 years ago

Just checking.

H = game.Workspace.Part

function onTouch(Part)
H.Transparency = 0.5
wait(5)
if 2*2 == 4 then
print ("Game is working!")
end

script.Parent.Touched:connect(onTouch)
  • Newbie in progress...

3 answers

Log in to vote
2
Answered by
Dummiez 360 Moderation Voter
10 years ago

If you want to see it yourself, try running it in ROBLOX Studio.

Also, yes this should work as 2*2 is basically 2 multiplied by 2 as the asterisk means multiply.

if 2*2 == 4 then
    print ("Game is working!")
end

Output:

Game is working!

0
Thank you :D bloonblaster2000 55 — 10y
Ad
Log in to vote
1
Answered by 10 years ago
if 2*2 >= 4 == true then
    print("Game is Working!")
end
Log in to vote
0
Answered by 10 years ago

It'll work fine because 2x2 = 4. You can do this too..

if 2*2 > 4 == true then
    print ("Game is working!")
end

Answer this question