-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeviceSpoofer.lua
More file actions
35 lines (30 loc) · 971 Bytes
/
Copy pathDeviceSpoofer.lua
File metadata and controls
35 lines (30 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local mt = getrawmetatable(game)
make_writeable(mt)
local namecall = mt.__namecall
local index = mt.__index
mt.__namecall = newcclosure(function(self, ...)
local method = getnamecallmethod()
local args = {...}
if self == UserInputService or self == GuiService then
if method == "GetPlatform" then
return Enum.Platform.Computer
elseif method == "IsTenFootInterface" then
return false
end
end
return namecall(self, ...)
end)
mt.__index = newcclosure(function(tbl, idx)
if tbl == UserInputService then
if idx == "TouchEnabled" then
return false
elseif idx == "MouseEnabled" then
return true
elseif idx == "KeyboardEnabled" then
return true
end
end
return index(tbl, idx)
end)