Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

-plugin- how do I remove a certain line of code?

i'm reading this post though it doesn't remove the line of code entirely.

here's my code in the command bar:

game.StarterPlayer.StarterPlayerScripts.MainClient.Source = game.StarterPlayer.StarterPlayerScripts.MainClient.Source:gsub([[local RunService = game:GetService%("RunService"%)]], '')

original code:

local RunService = game:GetService('RunService')
local UserInputService = game:GetService('UserInputService')

local Modules = game.ReplicatedStorage:WaitForChild("Modules")
local Utility = Modules:WaitForChild('Utility')
local UtilityLoader = require(Utility:WaitForChild('UtilityLoader'))

what the code does:

(insert blank line here)
local UserInputService = game:GetService('UserInputService')

local Modules = game.ReplicatedStorage:WaitForChild("Modules")
local Utility = Modules:WaitForChild('Utility')
local UtilityLoader = require(Utility:WaitForChild('UtilityLoader'))

what I want it to do:

local UserInputService = game:GetService('UserInputService')

local Modules = game.ReplicatedStorage:WaitForChild("Modules")
local Utility = Modules:WaitForChild('Utility')
local UtilityLoader = require(Utility:WaitForChild('UtilityLoader'))

so, how would I remove the entire line instead of removing only the gsub'ed string?

1 comment

0

why did this website cut out the blank line in the first code example

1 answer

why not just click ENTER to make a blank space of line

this is what happens:

--stuff --click enter here

--stuff

see that there is a extra line that is empty

and to remove it, I dont use this plugin, but there is probely a way to delete the blank line.

1 comment

0

you idiot i'm doing this for a reason

This discussion is preserved as it was. New answers, comments, and votes are closed.