Instructions unclear got fired.
the people who fired you clearly didnāt understand code
This is better:
local v=0
print(v+v)
v=v+1
print(v=v+1 )
v=v+1
print(v=v+1)
v=v+1
print(v=v+1 )
v=v+1
print(v=v+1 )
v=v+1
print(v=v+1 )
v=v+1
print(v=v+1 )
v=v+1
print(v=v+1 )
This post is the greatest thing I have ever read! I know how to script perfectly now LOL!
Cant believe no one is doing this,
local runservice = game:GetService('RunService')
runservice.Heartbeat:Once(function()
print('hi')
end)
runservice.Heartbeat:Once(function()
print('how are you?')
end)
If Iām being paid by the amount of lines of code Iām doing this. Going to be rich!
The second wouldnāt fire, you need to add task.spawn/coroutines
Edit: not true, @Artzified corrected me, and now I stand corrected
They are events and they do not block the main thread of the script, different from loops like while true do
, for i = a, b, c do
ā¦
Oh, sorry, I feel dumb now, youāre right
im going to see what gpt can do using this information
local a = true
b = Instance.new("Part")
b.Name = "Part1"
c = Instance.new("IntValue")
c.Parent = game:GetService("Players").LocalPlayer
function badFunction()
if a==true then b.BrickColor = BrickColor.Random()c.Value=2 end
end
game.Players.LocalPlayer.CharacterAdded:Connect(function()
while c.Value == 2 do badFunction()end
end)
print(0) b.Position = Vector3.new(0, 0, 0)
print(1) b.Position = Vector3.new(1, 0, 0)
print(2) b.Position = Vector3.new(2, 0, 0)
print(3) b.Position = Vector3.new(3, 0, 0)
print(4) b.Position = Vector3.new(4, 0, 0)
print(5) b.Position = Vector3.new(5, 0, 0)
print(6) b.Position = Vector3.new(6, 0, 0)
print(7) b.Position = Vector3.new(7, 0, 0)
game:GetService("Workspace").Parent:FindFirstChildOfClass("UserInputService").Parent:FindFirstChildOfClass("MarketplaceService").Parent:FindFirstChildOfClass("StarterGui").Parent:FindFirstChildOfClass("Players"):GetChildren()[1]:WaitForChild("Backpack")
Is it good that I completely understood every line of code?
This helped me so much! I can now write horrible looking code that still have some decent functionality.
ChatGPT said:
- The code seems to be a mix of functional code and questionable practices. The usage of global variables and the repetitive invocation of
badFunction()
could potentially cause undesired behavior.- The purpose and context of this code are not clear, and it appears to have some unusual patterns and design decisions.
- Additionally, the complex property access chain near the end of the code might be a convoluted way to access the āBackpackā property and should be revised for clarity and maintainability.
Clearly ChatGPT knows nothing about codingā¦
while true do
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Neon"
wait(0.001)
game:GetService("Workspace").Parent.Workspace:WaitForChild("Part").Material = "Plastic"
wait(0.001)
end This code should not lag the server at all
lol was looking at the links in my old post and saw this xD
(Pulls out Standard Galactic Alphabet Cipher)
OMG! I am currently working on learning to script. This post is SO INFORMATIONAL!
I will definitely be using what I learned in this post in everything I do! Itās so well formatted!
Lol
I totally get how you used Reverse Psychology to tell people the right way to make Easy-To-Read scripts!
I just have to do everything you said āNotā to do!
(Lol. I know this was a joke post.)
game:GetService("RunService").RenderStepped:Connect(function()
while task.wait() do
print(tick())
wait()
task.wait()
print(tick(), "funny")
end
end)
Wouldnāt that bug out rendering since you are halting the RenderStepped event by looping in-definetly (unless Roblox automatically spawns any function connected to those built-in events on a seperate thread but i highly doubt it)
Thatās the point lol
at least 15 chars would be better cāmon people