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

My Text Button Disappeared and I don't know why?

I was writing a script and I tested it and my Text Button was there. Then I tried adding a Reset script to it and I tested it. And the button was gone. Please help me fix this, the script showed no errors. But what did I really not do right?

local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
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 = "Click Me To Reset!"
textButton.MoustButton1Down:connect(function()
Health.Humaniod = 0
textButton.MouseButton1Down:connect(function()
	textButton.Text = "I've been clicked!"
end)

1 answer

✓ Accepted answer

It looks like you need two 'ends'. One for line 9, and one for line 11.

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