How do i remove this bug when copy and pasting code?

Alright, so basically i write a lot of topics about a problem with my code,

however, theres this annoying bug:

local Random_ScriptStuff = true

if Random_ScriptStuff == true then – basically me writing random code that does stuff
print(“apple”)
local something = math.random(1, 1002019)
if something == 1 then
script.Parent.Parent = workspace
for i = 1, 4 do
print(i)
if 1 == 3 then
print(1 + 4 + 1)
print(“idk”)
end
end
end
end

this.
all of the code just instantly goes on one single line, and the first code is the only indented one

can i fix this?

1 Like

Surround it all with ``` - 3 of them at the start and 3 of them at the end. For example:

```
Code
```