Hello, does someone know how to check if a player uses the roblox player or the windows app to play my game. i saw a different game doing this but still dont know how.
If someone knows, would be very nice to share with me
Edit
The Soloution i marked worked great. I just changed some stuff
local version = Version()
local isRobloxPlayer
local isWindowsApp
print(version)
if version == "0.652.0.65.20764" then
print("Roblox Player")
elseif version == "2.652.762" then
game.Players.LocalPlayer:Kick("\n\nWE HIT A ROADBLOCK\nYou can only join through Roblox Player \n(Web Version)")
end
Once Roblox Updates, you have to get both new version ids and update/replace them.
The Version() function returns the current Roblox version, they are different in roblox player and the windows app.
Windows App
Roblox Player
local version = Version()
local isRobloxPlayer
local isWindowsApp
if version:sub(1,1) == "0" then
isRobloxPlayer = true
elseif version:sub(1,1) == "2" then
isWindowsApp = true
end
Roblox Player or Windows version … what do you mean by this?
If you’re asking about PC or not, the latter would have a touchscreen.
untested
local player = game:GetService("Players").LocalPlayer
local userInputService = game:GetService("UserInputService")
local isRobloxPlayer = userInputService.TouchEnabled
local isWindowsVersion = not isRobloxPlayer
if player and player.PlayerGui then
if isRobloxPlayer then
-- Roblox Player
elseif isWindowsVersion then
-- Windows Version
end
end
Hey there, thanks for the reply.
I tried using this script but it doesnt work unfortuantly anymore.
It only prints me 64x out everytime on Windows App and Web Version.
There is a Windows App Version that you can get from the Microsoft Store, this version is completly different from the Roblox Player that you install through the website.
I’m looking at two possible strings that are returned, if that is right…
One has a timestamp, so it has a : in it. That one would be the Windows app.
So search for a : … no matter the verson changes it wouldn’t matter to that.