Posted
Is it possible to inject a modulescirpt in to ReplicatedStorage? I have decompiled a modulescript from replicated storage. The script is used for events in the game. I have changed some of the values in the modulescript that would give me an advantage in the game. How do I replace the old modulescript in replicated storage to my new script?
Replied
use require to change values of a module script
Cancel
Post
Hello there
#StayHome
Replied
I am using the require function and this is what i got:
local Gain = require(game:GetService("ReplicatedStorage"):WaitForChild(ClientModuleStorage"):WaitForChild(ClientDataStorage_Module").Income_Item[3].MuscleGain)
Gain = Gain + 10
end)
The modulescript ClientStorage_Module looks like this:
local v1 = {}
local v2 = {}
v2.Stickman = 2124484013
v2.Beast = 2124484014
v1.BadgeId = v2
local v199 = game.PlaceId
local v208 = {}
v208.HP = 100
v208.WalkSpeed = 16
v208.CPP = PhysicalProperties.new(v4, 0.3, 0.5, 1, 1)
v1.CharDefault = v208
v208 = {}
local v212 = {}
v212.Name = "Pencil"
v212.MuscleGain = 1
v212.Price = 0
v212.MuscleBounce = 1
local v216 = {}
v216.Name = "Stick"
v216.MuscleGain = 2
v216.Price = 15
v216.MuscleBounce = 1
local v220 = {}
v220.Name = "Mouse"
v220.MuscleGain = 3
v220.Price = 45
v220.MuscleBounce = 1
v1.Income_Item = v208
obvious more scribt but any help is appreciated.
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post