Textbox Troubles

i have an issue with checkboxes, the “Text” String under the Textbook in the code doesn’t change when i change the text on the actual textbook gui in the game.

2 Likes

Could you show us the script where you attempt this?

1 Like

Make sure youre checking the text property of the textbox inside the players PlayerGui and not StarterGui

2 Likes

the player keeps coming back as nil
code:

script.Parent.MouseButton1Click:Connect(function(plr)
	wait()
	print(plr)
	local MessageText = script.Parent.Parent.Message.Text
	local Hint = Instance.new("Hint")
	local PlayerGui = plr:WaitForChild("PlayerGui")
	print(plr:WaitForChild("PlayerGui"))
	print(PlayerGui.DevPanel.Message.Text)
end)
1 Like

MouseButton1Click only returns at what position the button was clicked, not the player that clicked it

script.Parent.MouseButton1Click:Connect(function()
	local plr = game:GetService("Players").LocalPlayer
	wait()
	print(plr)
	local MessageText = script.Parent.Parent.Message.Text
	local Hint = Instance.new("Hint")
	local PlayerGui = plr:WaitForChild("PlayerGui")
	print(plr:WaitForChild("PlayerGui"))
	print(PlayerGui.DevPanel.Message.Text)
end)

1 Like

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