-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetgc&require usage.lua
More file actions
17 lines (15 loc) · 902 Bytes
/
getgc&require usage.lua
File metadata and controls
17 lines (15 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--examples that teach you how to use require / getgc function(not that goodly described, but you can use other stuff to learn it).
for i, v in pairs(getgc(true)) do
if type(v) == 'table' then
if rawget(v, 'FireRate') then -- you can find the whatever strings, you want to modify by decompiling the modulescript that has gunstats.
rawset(v,"FireRate",0.09)
end
end
end
-- require example, not made by me, credits to some youtube video I found:
-- get what the modulescript contains
local modulescript = require(modulescriptpath) -- or you could also use this to get strings, if you want to do it, without a decompiler, also the path is usually different in different games, this is just an example
for i,v in pairs(modulescript) do print(i,v) end
-- change it
local modulescript = require(modulescriptpath)
mod.(put the string name you want to change here) = value