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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay