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

When I input a different text the Surface Gui does not update to it why?

Asked by 5 years ago
Edited 5 years ago
local GuiText = game.Players.LocalPlayer:WaitForChild("PlayerGui").ScreenGui.TextBox
GuiText.Visible = false
game.Workspace.GUIPart.SurfaceGui.TextButton.MouseButton1Click:Connect(function()
    GuiText.Visible = true
game.Workspace.GUIPart.SurfaceGui.TextButton.Text = GuiText.Text
end)

I'm trying to make the surface Gui's text the same as the Screen Gui text. However the Surface Gui is not updating to what the player put into the Screen Gui.

0
btw, i would consider using remote events if you want everyone in a game to see the changes one person made to the surface gui theking48989987 2147 — 5y
0
also, are there any output errors? theking48989987 2147 — 5y
0
Okay. Gameplay28 139 — 5y
0
There are no errors. Gameplay28 139 — 5y

Answer this question