Skip to content

Commit

Permalink
Console support removal. TOS Abiding
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmental committed Oct 10, 2023
1 parent e8da039 commit 426436b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/MainModule/SocialChat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@

--// Services
local CollectionService = game:GetService("CollectionService");
local ContentProvider = game:GetService("ContentProvider")

local IsServer = game:GetService("RunService"):IsServer();

--// Imports
local VERSION = require(script:WaitForChild("VERSION"));
local Trace = require(script:WaitForChild("Trace"));

--// Constants
local Player = game.Players.LocalPlayer

--// States
local ChatServer : table?
local ChatClient : table?
Expand All @@ -32,8 +29,15 @@ local wasInitialized : boolean

--// Initializer
function GetSocialChat()
if (not wasInitialized) then
if (not IsServer) then
local UserInputService = game:GetService("UserInputService");
local GuiService = game:GetService("GuiService");

local IsConsole = (GuiService:IsTenFootInterface() and UserInputService.GamepadEnabled);
if (IsConsole) then return false; end -- Console users can not use SocialChat
end

if (not wasInitialized) then
--// Sub-Imports
local Environments = script.Environments
local Resources = script.Resources
Expand Down

0 comments on commit 426436b

Please sign in to comment.