Hey y'all. Im bad at scripting and im trying to do so when you say something in the TextBox and click on a button. It shows it on a TextLabel. But this script doesnt work. Helping could be nice. Thanks!
local text = game.StarterGui.ScreenGui.Frame.TextBox
local button = script.Parent
local label = game.StarterGui.ScreenGui.Frame.TextLabel
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.MouseButton1Click then
label.Text = text.Text
end
end)
(Also for questions this is a localscript in the textbutton)

1 comment
remove line 6 and 8 and change game.StarterGui to game.Players.LocalPlayer.PlayerGui