Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
iuclds 720 Moderation Voter
3 years ago
Edited 3 years ago

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?

0
why did this website cut out the blank line in the first code example iuclds 720 — 3y

1 answer

Log in to vote
-1
Answered by
xxaxxaz 42
3 years ago

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.

0
you idiot i'm doing this for a reason iuclds 720 — 3y
Ad

Answer this question