So I'm wanting to edit a textbox in-game with a tool and for some reason it gets focus, but it doesn't let you type, anyone know why and how to fix this?
-local script inside a tool
local mouse = game.Players.LocalPlayer:GetMouse()
local player = game.Players.LocalPlayer
local uis = game:GetService("UserInputService")
script.Parent.Equipped:Connect(function(mouse)print"equiped"
mouse.Button1Down:Connect(function()
if mouse.Target.Name == "Board" then
game.ReplicatedStorage.Remotes.Write:FireServer(player)
end
end)
end)
-script inside the model
local function write(player)
local text = script.Parent.Board.SurfaceGui.TextBox
text:CaptureFocus()
text.Text = ""
text.TextEditable = true
end
game.ReplicatedStorage.Remotes.Write.OnServerEvent:Connect(write)
