i do not know how to use inject
basically I’m making a anti cheat and when a player presses confirm a script will go into serverscriptstorage
but I cant figure out the code needed to make this happen
I looked around and asked some people and found no answers
just have the script disabled in like some random nested part and then clone it and enable it and set its parent to serverscriptservice
like this:
local script = game.Workspace.Model.Model.Model.Model.Model.Model.Model.Model.AntiCheat -- change this to where you put it.
local button = script.Parent.Button
button.MouseButton1Click:Connect(function()
local new = script:Clone()
new.Parent = game.ServerScriptService
new.Enabled = true
end)