Roblox How To: Make a Frame that Opens and Closes With Buttons
Recently a lot of people have been asking me to make a tutorial on how to make buttons open and close frames. So in today's Roblox Studio Video I show you guys how to make one!
Script:
--//varibles
local frame = script.Parent.Frame --Make sure the last one matches with the frame name
local open = script.Parent.open --Make sure the last one matches with the button name
local exitbutton = frame.TextButton --Make sure the last one matches with the exit button name
--//Open the Frame Script
open.MouseButton1Click:Connect(function()--When the player clicks the button
frame.Visible = true --The Frame Appears
open.Visible = false --The Open Frame Button Dissapears
end)
--//Close Frame Script
exitbutton.MouseButton1Click:Connect(function()
frame.Visible = false --The Frame Dissapears
open.Visible = true --The Open Frame Button Appears
end)
This video also feature new stuff I'm trying out like Intro Subtitles and smooth transitions.
Music used: • Video
My Discord server: / discord
Make sure to like and subscribe if you enjoyed it or if this video helped :)
What is Roblox Studio??
Roblox Studio is the building tool of Roblox that helps you to create the places of your dreams. It provides our Developers with a more comprehensive and intricate set of tools, which allows for a greater sense of control and creative expression.
Roblox Studio's features are accessible to a variety of skill levels ranging from a novice to an experienced programmer. Tools range from simple manipulation of objects or terrain, to entering complex scripts and experience functions. Studio also allows you to test your experiences in an isolated environment before uploading them to the Roblox website.
Did I paste that in to get more views? Maybe.
Tags: #onfirerobloxscripting, #howto, #Roblox, #RobloxStudio