How do I make a text sign work on Xbox console

How can I make this work on Xbox Console, I am new to this, I need help.

Clientside:
–DutchDJ
local player = game:GetService(“Players”).LocalPlayer
local playerGui = player:WaitForChild(“PlayerGui”)
local UserInputService = game:GetService(“UserInputService”)

if UserInputService.GamepadEnabled then
print(“Player has gamepad enabled…”)
end

local folder = script.Parent
local tool = folder.Parent

local sign = tool:WaitForChild(“Sign”)
local handle = tool:WaitForChild(“Handle”)

local remote = folder:WaitForChild(“Remote”)
local gui = folder:WaitForChild(“SignGui”)

local currentGui = nil

tool.Activated:Connect(function()
if currentGui then
currentGui:Destroy()
else
currentGui = gui:Clone()
currentGui.Parent = playerGui

	local main = currentGui:WaitForChild("Main")
	local inputBox = main:WaitForChild("InputBox")
	local submitBtn = main:WaitForChild("SubmitBtn")
	
	local connection = submitBtn.Activated:Connect(function()

		local success = remote:InvokeServer(inputBox.Text)
		currentGui:Destroy()
	end)
	
	currentGui.Destroying:Connect(function()
		connection:Disconnect()
		currentGui = nil
	end)
end

end)
–DutchDJ

Serverside:
–DutchDJ
local folder = script.Parent
local tool = folder.Parent

local sign = tool:WaitForChild(“Sign”)
local handle = tool:WaitForChild(“Handle”)

local remote = folder:WaitForChild(“Remote”)
local gui = tool:WaitForChild(“TextDisplay”)

local chatService = game:GetService(“Chat”)

remote.OnServerInvoke = function(player, text)
local character = player.Character
if character and character == tool.Parent then
gui.TextLbl.Text = chatService:FilterStringForBroadcast(text, player)
end
end
–DutchDJ

Anyone have a solution?

2 Likes