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

MouseButton1Down| Script Not Working?

Asked by 8 years ago

Idea The idea is simple, Click a button, this script's parent. Then make another frame Visible.
Problem When I click the Text Button, Nothing Happens.
Code

script.Parent.MouseButton1Click:connect(function()
    script.Parent.Parent.Parent.Frame2.Visible = true
end)

Thanks!

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

Hm, well it seems 1 of 2 things are occurring.

1: The hierarchy is incorrect. Make sure the path is correct! 2: The MouseButton1Click event isn't firing. Try making it MouseButton1Down. The click event is not my favorite, as I think you need to keep the mouse in the same position.

Hope I helped! Comment your results!

Ad

Answer this question