Hello! I am trying to make it so when I click a TextButton the text on the TextButton will transfer or show up in the TextBox. But for some reason nothing is working if anyone can help me I’d appreciate it!
What I have tried
local button = script.Parent
local TextBox = script.Parent
button.MouseButton1Click:Connect(function()
button.Text = TextBox.Text
end)
-- local script in button
script.Parent.MouseButton1Click:Connect(function()
script.Parent.RemoteEvent:FireServer(script.Parent.Text)
end)
-- normal script in textbox
script.Parent.Parent.TextButton.RemoteEvent.OnServerEvent:Connect(function(plr,text)
script.Parent.Text = text
end)