Posted
i know how to code but the type of script is local script. you can know this by typing
print(script.ClassName)
and it prints "Local Script"
is there a way to change this to a normal script? because there is a lot of wasted potential if you cant
Replied
You can't simply change the class, lol. Btw, the scripts you execute in your exploit, are not actual instances.
To emulate that:
[code]
function setproxymetatable(proxy, newmeta)
local m = getmetatable(proxy)
for method,func in next, newmeta do m[method]=func;end
return proxy
end
script = setproxymetatable(newproxy(true), {
__index = function(t,k)
if k:lower():match("class") then return "Script"
elseif k=="Name" then return "GlobalScript"
elseif k=="Parent" then return game
end
end,
__newindex = function()
return error("Fake instance doesn't support this.", 2)
end
})
print(script.Name, script.ClassName, script.Parent) -- (GlobalScript, Script, DataModel)
[/code]
Cancel
Post
Proud creator of: WRD+
Replied
oh, im stupid, thank you
is there a shorter version of that script that i can put? thank you
EDIT: also, how do i run commands in this like i would a script?
Cancel
Post
Replied
Note that these snippets of code don't change anything, besides adding fake script properties.
Shorter:
[code]
script = { Name="FakeScript", ClassName="Script", Parent="Game" }
[/code]
Cancel
Post
Proud creator of: WRD+
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post