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")
ive just looked at the dev wiki and by the looks of it you cant use it. it is only used by "core scripts" (core scripts are scripts that roblox made and run on startup) so yeah: https://wiki.roblox.com/index.php?title=API:Class/UserInputService/GetPlatform