Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is this the right use of GetPlatform() function?

I've been trying to use GetPlatform to know what is the operating device people are using.

Please, I need examples.

local UIS = game:GetService("UserInputService")
for i, v in pairs(game.Players:GetPlayers()) do
UIS.GetPlatform:Connect(function(platform)
if platform.UserInputType == Enum.Platform.Windows then
game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(game.Players[v].Name .. " is using: Windows", "All")
else
print("not windows")

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.