DEV Community

Your Average Roblox Game Dev
Your Average Roblox Game Dev

Posted on • Originally published at discord.com

1

How to make a basic Roblox Studio GUI Play Button.

Step 1 - Insert a ScreenGui inside of StarterGui.

Step 2 - Insert a Frame inside of the ScreenGui.

Step 3 - Insert a TextButton inside of the frame.

Step 4 - Insert a script inside of the TextButton

Step 5 - Put this code in the script -

local btn = script. Parent --The TextButton
local frame = btn.Parent

btn.MouseButton1Click:Connect(function()
  frame.Visible = false -- sets Frame and TextButton invisible
end)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs