-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] -- مثال LocalScript في StarterPlayerScripts لتحديد/تبديل وضع الجهاز local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local player = Players.LocalPlayer local function detectDevice() if UserInputService.GamepadEnabled and not UserInputService.TouchEnabled then return "Console" -- سوني / يد تحكم elseif UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled then return "Mobile" -- جوال else return "PC" -- كمبيوتر end end local currentDevice = detectDevice() print("الجهاز الحالي:", currentDevice) -- دالة لتبديل وضع الجهاز يدوياً أو برمجياً داخل اللعبة local function switchDeviceMode(newDevice) if newDevice == "Console" or newDevice == "Mobile" or newDevice == "PC" then currentDevice = newDevice player:SetAttribute("SelectedDevice", currentDevice) print("تم التبديل إلى:", currentDevice) end end -- مثال استدعاء: -- switchDeviceMode("Mobile")