local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.KeypadDivide then
game:GetService("StarterGui").ChatGui.Enabled = true
game:GetService("StarterGui").ChatGui.Message:CaptureFocus()
end
end)
You are asking for the service “StarterGui”, however if you want to make changes to a UI which is on a player you must make those changes to Player.PlayerGui.<your gui>. StarterGui is what the player copies upon spawning/joining if I’m not mistaken.