Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

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

Log in to vote
0
Answered by
RedCombee 585 Moderation Voter
9 years ago

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

Ad

Answer this question