Why wont my script change the text in-game?

The title says it all, I don’t need suggestions for different scripts just a solution to the following one:

local HelpButton = script.Parent.Button1

local function changeText()
	if HelpButton.Text == "Easy Island Teleporter" then
		HelpButton.Text = "Disabled"
	end
end

HelpButton:GetPropertyChangedSignal("Text"):Connect(changeText)

Do you ever call your function?

On the last line try changeText()

Otherwise make sure your text is matching your if statement perfectly.

  1. I don’t know how to call a function, I suck at scripting.
  2. No I didn’t, and that actually just fixed my entire issue I feel so stupid.
    How come the :Connect(changeText) didnt do that?
1 Like

Changedsignal triggers when the text is changed.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.