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

printing script wont work as i intended help?

Asked by
raid6n 2196 Moderation Voter Community Moderator
4 years ago

First, let me explain what the script is suppose to do.

When you click the button, it will either print "lol" or "kay" I made the script print lol.

Didn't work.

Anyways, Here's the script.

script.Parent.BackGround3.Enter.MouseButton1Click:Connect(function()    
local stuff = {"lol", "kay"}
print(stuff[1])



end)

Help?

1 answer

Log in to vote
1
Answered by
c0nc3rt 61
4 years ago

I'm not sure about the Enter is a button.

But the script still work normally, it still print out lol in the output tab...

SOLUTION: Re-check everything in the explorer, just make sure Enter is a button

Ad

Answer this question