Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Text Button won't work?

Different problem, it doesn't show up on my screen when I join the game -- The Text Button doesn't show?

-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.parent

-- Create text button
local textButton = Instance.new("TextButton")
textButton.Parent = screenGui
textButton.Position = UDim2.new(0, 25, 0, 50)
textButton.Size = UDim2.new(0, 150, 0, 50)
textButton.BackgroundColor3 = BrickColor.White().Color
textButton.Text = "Shop"

-- Bind function to button click
textButton.MouseButton1Down:connect(function()
	textButton.Text = "This shop is still being made, check back later!"
end)

-- Script made by Zexisk [ Beginner Scripter ]

1 answer

✓ Accepted answer

You almost had it. Change script.parent to script.Parent on line 3

1 comment

0

I accidently inserted a Text Box instead, but thanks for answering +1 for you!

This discussion is preserved as it was. New answers, comments, and votes are closed.