I Made a ROBLOX Game With 1 LINE of Code!
Ойындар
Prepare to be amazed as I embark on an extraordinary coding experiment in Roblox Studio! In 'I Made a ROBLOX Game With 1 LINE of Code!', I push the boundaries of Roblox Studio game development to the extreme. Witness the power of concise programming as I create a fully functional and entertaining Roblox game using just one line of code. From concept to execution, this rapid-fire adventure takes you on a journey of creativity and ingenuity. Join me as I demonstrate how a single line can unleash a gaming experience that's bound to leave you in awe. Whether you're a seasoned developer or a curious enthusiast, this mind-blowing feat showcases the magic of simplicity in game creation. Don't miss this unique insight into the world of Roblox game development! (no chatgpt here)
💡 Idea: @ItsZyonic
🔥 Game: www.roblox.com/games/14225721...
📜 Line of Code: while wait(1) do for i,v in workspace.Parts:GetChildren() do v.Touched:Connect(function(hit) if v.BrickColor == BrickColor.Red() and game.Players:FindFirstChild(hit.Parent.Name) then hit.Parent.Humanoid.Health = 0 end end) end for i = 1,100,1 do if math.random(1,5) == 4 then workspace.Parts:GetChildren()[i].BrickColor = BrickColor.Red() else workspace.Parts:GetChildren()[i].Color = Color3.fromRGB(163,162,165) end end end
local Discord = dsc.gg/devcove
local pls_Subscribe = / @rodev
👋 --Comment "Description Gang" if you read this
tagging the tags: roblox,Roblox scripting,Roblox studio,make games on roblox,script on roblox,roblox studio scripting,script on roblox studio,roblox scripting,ChatGPT Roblox,Easy Roblox Development,Roblox Game Development,One Line Of Code,Concise Programming,Game Development Experiment,Roblox Code,Roblox Developers,Game Design,Gaming Ingenuity,Roblox Gameplay,Gaming Experience,Simplified Coding,Game Development Insights,Game Programming,Roblox Challenge,roblox code
Пікірлер: 388
If you want the shadow to go, select the part and make sure cast shadow is off (in properties). But if you want shadows off universally go onto lighting and turn global shadows off. Or if you want them to look better change the shadow softness. - Saturn.
@RoDev
10 ай бұрын
I only realized when I was editing 😭😭
@fresh.99
10 ай бұрын
@@RoDev haha!
@NxtiveMontages
10 ай бұрын
@@RoDev you can also go to lighting and turn off global shadows
@Watermelon_C4t
7 ай бұрын
@@RoDev fr u had me confused i was like just turn shadow off
@RoDev
7 ай бұрын
@@NxtiveMontages why would I disable shadows globally for one part??
To get rid of the shadow on the spawn point click on the part and make sure properties tab is enabled ( view < properties ) and in properties search for Cast shadow and make sure its unchecked
@RoDev
7 ай бұрын
realized when i was editing lmao
@itsrobert0076
7 ай бұрын
how long you been doing this for, you didn't know that??@@RoDev
@davianlawson6281
4 ай бұрын
or you could just disable global shadows in lighting. @@RoDev
@RoDev
4 ай бұрын
why would you disable every shadow for one part lmao
@xczqs
4 ай бұрын
@@RoDev wym i wrote click on the part
bro your such a w I've learned a bit of scripting from you and I want you to keep up with he vids because I watch em everyday and learn even more thank you!
@RoDev
10 ай бұрын
I appreciate that so much, means a lot. If you’ve watched the beginner how to script, the 40 minute one, you should know that I am working on an advanced one!
@-j5v
7 ай бұрын
im surprised people even manage to learn a two or thing from this
@Noob236-pq6kv.
25 күн бұрын
@@RoDev
yo sick video!
@RoDev
10 ай бұрын
Thanks! Congrats on 1K subs!
@CharlieMermelstein
9 ай бұрын
😀tf,um hi@@RoDev 🤏
@sussdood
8 ай бұрын
@@RoDevidea: make a sequel to this in two lines of code!!
@TheSonicRobloxGuy01176
8 ай бұрын
. Yes @@RoDev
You could make an entire game in 2 lines of code, local and server scripts, since lua is not a whitespace based language, unlike Python, which is quite hard to make 1-liners.
thank you man very well!
Most programing languages actually let you simplify thousands of lines of code into one line using a semicolon, although there are exceptions, like python. This also allows you to do a bit of trolling with ascii/unicode character 894.
@RoDev
7 ай бұрын
yea the challenge here was to do it all in one line
@omagalifty
7 ай бұрын
obfuscation in one line
@-j5v
7 ай бұрын
you don't even need semicolons after the end call cause it closes the task associated with it
@maxwell6881
7 ай бұрын
@@-j5v Lmao try telling that to java
@cottoncherry2177
7 ай бұрын
@@RoDev code the game normally in a single script then replace all line breaks with a space
You should make the tile yellow/orange 0.2s before the tile turns red so you can see which turns into a killbrick
I didnt know that was possible! 😂
Ayo, only 30000 subs? Add 3 more zeros and it’s correct. You are very underrated!
You should probably put the loop where you looped over the parts folder's children and connected a function to it's Touched event outside of the while wait(1) loop as you're connecting the function multiple times which may not be what you want.
@RoDev
4 ай бұрын
@xavvvvxd
4 ай бұрын
@@RoDev ?
you can use castshadow property on parts to disable their shadows
@RoDev
7 ай бұрын
ik
I never knew this was possible
Exploitng new lines, you could make a whole game in the command line of roblox studio
1:55 you can just select children of parts and u can see amount of it on the properties tab
May you put the line of code in description? I am working on a minigame game and it looks super cool for a minigame!
@RoDev
10 ай бұрын
Yeah I put it in!
@CraftedChip
10 ай бұрын
@RoDev Alright tysm! Earned a sub
I just played the game and its really fun! but one problem is that if you stand on the platform and not move, the red wont kill you.
@dosantoszy
7 ай бұрын
use a renderstepped to check every frame
@seizing
7 ай бұрын
@@dosantoszyso efficient..!
Description Gang!!
@RoDev
7 ай бұрын
WWwww
@Fanumtax69420
3 ай бұрын
W
1:13 Just set CastShadow to nil/false!
nice avatar how u get the body?
So i played the game and found out that you can survive when not walking thanks if i helped
Hey what is the line of code used in the command bar?
2014 obbys: Waow... that's something!
bug- if you stand still on a red part you dont die
Awesome video!!! I can't do scripting vids sadly since i recordon mobile but script on pc. But great video! Also, music name on 3:50?
@RoDev
10 ай бұрын
That's 'Dizzy'
RoDev: Trying to get rid of shadow. CastShadow property: 😢
its not really “one line” if its just an entire script with all the newlines removed
@RoDev
7 ай бұрын
but it's not an entire script with newlines removed. it's me trying to make that script without new lines at all. that's the challenge, the whole idea of the video.
@2.cute4uo
3 ай бұрын
@@RoDevomg u responded to them
@plck4806
3 ай бұрын
Exactly, one line.
Bro used one code and made a better game then me using thousands of them
underrated youtuber, i thought you had like 1m subs
@RoDev
7 ай бұрын
🙏🙏
Found an error, if the player idols for 4 seconds, the part does not kill you.
Me staying in the spawn point to survive the most
WHAT'S THE SONG AT THE START I LOVE ITTTT its at 0:14 - Description Gang
ThEoReTiCaLlY you can make any game in one line of code
You can make an obby with the code bring the finish
this video is cool
3:53 ... the red parts lol
Bro is so good at scripting he forgot he can disable shadows😂
@RoDev
7 ай бұрын
literally 😭😭
@-j5v
7 ай бұрын
hes good at memory leaks, not scripting
@_North
7 ай бұрын
@@-j5v ok. nice opinion. whats your point
@RoDev
7 ай бұрын
i forgot the part where memory leaks matter in this game
@-j5v
7 ай бұрын
@@RoDev ur essentially giving people code with memory leaks w/o them realizing, cause lets be real anyone whose under your comments praising you does NOT know how 2 lua very well
what's the point of having a loop for something that waits for an event anyways? (talking about the thumbnail lol)
@RoDev
8 ай бұрын
lmao didn’t even notice
nice man
@RoDev
10 ай бұрын
Thanks!
In the game you can just stand still and a red goes on your feet and you survive
@RoDev
7 ай бұрын
yea
Okay so you are creating a connection for each part, every time it changes so if the same part turns red twice, there will be two connection that do the same thing, I know its only one line of code but its UNOPTIMIZED (I think)
@RoDev
7 ай бұрын
lol
@reddeadleisure
7 ай бұрын
Ur right that it's unoptimized he's basically creating hundreds of connections without disconnecting them
@RoDev
7 ай бұрын
yea
you should have 1 mil subs
@RoDev
8 ай бұрын
haha bit much lol
@icey_1010
8 ай бұрын
@@RoDev no like your content is that good some youtubers just put out spam content but you are a inspo to me
@-j5v
7 ай бұрын
he is truly the pinaccle of shit lua-tubers@@icey_1010
i reccomend task.wait instead of wait
@unreal3498
7 ай бұрын
also, .touched is pretty unreliable as a hitbox method, i reccomend using some sort of raycast hitbox, but i understand touched is easier on 1 line of code lol
@RoDev
7 ай бұрын
yea I went with touched and wait as they are shorter, easier to read for this
@unreal3498
7 ай бұрын
@@RoDev very true
THIS WAS LAST YEAR
I want to change some of the scripts so it's much more easier
The code in the thumbnail got me crying for 5 days straight
@RoDev
7 ай бұрын
k
I found a bug. Bug: whenever I stand still on a red part, I don't die. So make it so that whenever you stand still on a red part, you die.
Do you know how to make the other parts that aren't red become a rainbow colour?
@RoDev
7 ай бұрын
Brickcolor.random
@-j5v
7 ай бұрын
i dont think thats what they mean but sure@@RoDev
What’s the game called? I want to play it!
@RoDev
7 ай бұрын
Link in description!!
3:39 song name ?
Do you mind if i copy it but make it better? I can give you credits
@RoDev
8 ай бұрын
k
@-j5v
7 ай бұрын
dapper response@@RoDev
in that one line if code, is it possible to make the spawn turn off collision after 3 seconds of the player standing on the spawn, so the player just doesnt camp there (collision effects happen only to the player that trigger the 3 sec timer) edit: shoot is there a kindergarten argument in the replies
@RoDev
7 ай бұрын
yea I could have done that
@fadingrainbow8882
7 ай бұрын
might have to make it client side somehow to do that🤔
@teddythecat0
7 ай бұрын
task.wait(3); workspace["Your Spawn Location Name"].Anchored = true; workspace["Your Spawn Location Name"].CanCollide = false
@Pgia55
7 ай бұрын
@@teddythecat0 Why did you put anchored tho. lol
@teddythecat0
7 ай бұрын
@@Pgia55 so it does not fall down.
thats impressive for 1 line of code
@socialix_
7 ай бұрын
technically you could make an even better game with a single line of code but the script would be extremely messy and hard to debug
@RoDev
7 ай бұрын
exactly
@RoDev
7 ай бұрын
thanks
Is this color block
❤
What's up RoDev!
@RoDev
7 ай бұрын
what's up gitto
Here you go ;)
@RoDev
7 ай бұрын
appreciate it Gitto
description Gang
i copied this entire game and now i am making real gaming with scripting thx so much
@RoDev
7 ай бұрын
nice
i joined the game to try it out, and it was good until I found a bug, for your coding journey I suggest you read this because when you stand still it doesnt kill you. if i stood still for like 25 seconds and a red brick appeared under me i wouldnt die for some reason, i hope you see this also i love your vids
@RoDev
7 ай бұрын
i realized after lmao, appreciate it 🙏🙏
@babytite18
7 ай бұрын
@@RoDev np
@-j5v
7 ай бұрын
wow what a shocker.. i wonder why .Touched never gets used haha
@alex342gwsturk8
7 ай бұрын
yeah theres a reason touched doesnt get used often
@teddythecat0
7 ай бұрын
@@-j5v.Touched is better than TouchInterests, Reasons: Exploiting) Exploits have a firetouchinterest function that can keep firing it with false to make sure you dont die to the part 2) .Touched is easier to use
Is it ok if I can use this code for my game or Nah
@RoDev
9 ай бұрын
Of course!
Tutorial pls
my floor is collapsing why
adding touch event inside of while loop is fucking insane... you do realize you could of done that before the while true loop correct?
@RoDev
7 ай бұрын
“could of” is insane too💀💀
@Hellscaped
7 ай бұрын
@@RoDev nah its should of because you should of done that
@RoDev
5 ай бұрын
my bad can I see ur video trying this
@Hellscaped
5 ай бұрын
@@RoDev huh
@RoDev
5 ай бұрын
it’s not “should of” either😭😭
W vid keep it up
@RoDev
10 ай бұрын
Appreciate it, will do 🙏
Whenever i use the part grid command it is in a line
@RoDev
7 ай бұрын
damn
Well I don't even use code in my games
0 scripts: obby on the sky.
disable castshadow
Cast shadow left the chat
@RoDev
8 ай бұрын
😭
Any script works with 1 line, but it's harder to read and fix it
@RoDev
7 ай бұрын
mhm
@-j5v
7 ай бұрын
hey you actually can, theres plugins that make it eaiser to read your scripts and actually line them out without you changing anything in the source script at all
@GiulianoBR3
7 ай бұрын
@@-j5v i mean it's harder to read
@-j5v
7 ай бұрын
@@GiulianoBR3 yeah it is hard but plugins can let you get rid of that problem
Can you put the code in comment i trying to make a game like that pls reply to this
@RoDev
8 ай бұрын
already in the description
dude you somehow produced a memory leak in 16 lines of code
@RoDev
7 ай бұрын
wdym somehow it’s pretty obvious lol
@eggnogperson
7 ай бұрын
@@RoDev when you say obvious do you mean the fact that you're unskilled?
@-j5v
7 ай бұрын
^^^^@@eggnogperson
Description Gang
KZreadrs:this script is 1 line of code🎉🎉🎉 Script:
well i made one with no line of code 😎
Description gang❤
@RoDev
Ай бұрын
Ww
I wanna create this game. Can i create it pls
@RoDev
7 ай бұрын
thats why I provided the code
@TheDawsonGuy
7 ай бұрын
ok thank
@YTCBII
7 ай бұрын
What’s the game called?
To turn of the shadow of a part go to properties and unselect "castshadow"
@RoDev
7 ай бұрын
ik
@stoperdos
7 ай бұрын
@@RoDev so many people were concerned here lol
im your 1k like
this was crazy.. lol
@RoDev
10 ай бұрын
yeah haha
@LukeIsntFunnyGaming
10 ай бұрын
@@RoDev yo hi!!
Why don’t you just set the part’s behaviour property “CanTouch” to false?
@RoDev
7 ай бұрын
good idea, i won’t remember for next time because this would be a bad game idea 😭😭
Day 1 of asking rodeo to make a gtag fan game for Ben players
@swzlerscool
8 ай бұрын
I meant vr
epic
pov skybox on toolbox
hey, can i make a simillar game?
@RoDev
8 ай бұрын
ok
@notzwx
8 ай бұрын
ty @@RoDev
bro just put a connection in a while loop
@RoDev
7 ай бұрын
😭 probably looks stupid when formatted
can't you just... ignore making any spaces in scripting? or just make an entire script and then get rid of every space?
@RoDev
7 ай бұрын
thats cheating for this challenge
@rapscalliana
7 ай бұрын
but its technically one line of code@@RoDev
Me who is lazy to learn Lua and doesn't use any code in my games:
@breaddacat7935
8 ай бұрын
wdym
@PGTRobloxArsenalCS2
8 ай бұрын
@@breaddacat7935making a game by only dragging parts
@RoDev
7 ай бұрын
lol what do u do to make ur games work
@-j5v
7 ай бұрын
probably free assets
@-j5v
7 ай бұрын
like you
What being hurt this man...
@RoDev
7 ай бұрын
?
Why not polish game?
@RoDev
7 ай бұрын
never touched it again lmao what’s the point of
@Xion-ennekenetic-Ace2Prime-vC7
7 ай бұрын
@@RoDev it'll look better
@RoDev
7 ай бұрын
np
this is the command he wrote in the command bar ffor i = 1,50,5 do for z = 1,50,5 do local x = Instance.new("Part",workspace) x.Size = Vector3.new(5,1,5) x.Position = Vector3.new(i,1,z) end end
@ntgqwa2708
5 ай бұрын
no its not
@RoDev
5 ай бұрын
try removing the extra f at the start
Actually the Idea Was From A KZreadr Called CodeBro29 but eh we don't taalk about it
@RoDev
10 ай бұрын
Never heard of him
@FiveShineDev
10 ай бұрын
@@RoDev oh k
@RoDev
10 ай бұрын
I looked it up, you’re right, but I contacted Zyontic for this one
@FiveShineDev
10 ай бұрын
@@RoDev k
Can I have the script 🙏
@RoDev
5 ай бұрын
i thought i put it in the description?
and test it in a vid
@RoDev
9 ай бұрын
We tested it in this video.
hello do you remember me?
@RoDev
4 ай бұрын
no
Hot dog water Ice cube
WE KNOW YOU CAN TURN THE SHADOWS OFF IT'S HALF OF THE COMMENTS
@RoDev
7 ай бұрын
maybe that’s why i didn’t use cast shadow 😭😭🙏
Can someone give me the script for the game like the scripts I wanna make the same but with different maps Lol pls find the script
@user-bh6vf7zh9s
8 ай бұрын
while wait(1) do for i,v in workspace.Parts:GetChildren() do v.Touched:Connect(function(hit) if v.BrickColor == BrickColor.Red() and game.Players:FindFirstChild(hit.Parent.Name) then hit.Parent.Humanoid.Health = 0 end end) end for i = 1,100,1 do if math.random(1,5) == 4 then workspace.Parts:GetChildren()[i].BrickColor = BrickColor.Red() else workspace.Parts:GetChildren()[i].Color = Color3.fromRGB(163,162,165) end end end
@Jeff69615
8 ай бұрын
Thank you Bro@@user-bh6vf7zh9s
@RoDev
8 ай бұрын
right in the description lmao
@Jeff69615
8 ай бұрын
oh Lol@@RoDev
@Jeff69615
8 ай бұрын
Idea for next Vid : Can you make a Video about People Working on a Horror game but the Horror game is Actually really bad , and they Can't chat with Each other or Talk to each Other and every Person has 2 Hours@@RoDev?