#Need help with code

1 messages · Page 1 of 1 (latest)

lethal locust
#

I need help with making a script that closes the first frame when the next button is clicked then open the second frame after

This is the script I made:
Local NextButton = script.Parent
Local File1Frame = NextButton.Parent
Local File2Frame = File1Frame.Parent:WaitForChilr("File2Frame")

NextButton.MouseButton1Click:Connect(function()
NextButton.Parent.Visible = false
File1Frame.Parent:WaitForChilr("File2Frame").Visible = true
End

broken tangle
#

You have to make two frames, the first frame visible = true and the second frame visible = false. Then it's very easy, just make sure that when the button is pressed, the first frame is visible = false and the second frame is visible = true, all together in the same function.

#

@lethal locust

#

But does it works?

#

I think your script is well