How to Use AI Generative Scripting on Roblox!
Vložit
- čas přidán 27. 08. 2024
- Check out my asset store! (Free Stuff to!): shoprobuilder....
RoBuilder Games (second Channel): / @robuildergames8563
For weekly Asset Packs check out our Patreon!: www.patreon.co...
RoBuilder Discord
- / discord
RoBuilder Fan Shirt
- www.roblox.com...
- Thanks for watching! Discord -- / discord
Tips: When using AI of any kind you should be more detailed in what your saying and say what you want all in one command so it can mix all of the code together and wont make mistakes
yeahagreed
thanks😁
@@tricsiogaming gg
have a good day
yea say it like you were talking to chatgpt lol
if you're gonna spend that much effort, might as well code it yourself
the reason the color didn't change, is because the color was never set to those colors, and you would want a cool down, you also had an 'end' missing at the end of the function.
I gave it a try just to see and my feedback on it is this new feature is: It's cool for basics stuff but I would't use this to make an entire game or even a short game. You have to be very specific with the info you give the AI. I told it to make a part float using tweenservice. The result ended up in the part not floating at all and it was missing a bunch of important tweenconfig arguments. Yet, it is a beta feature so maybe in the future its gonna get better and more accurate but as for now. I prefer having it off since I can already script my own games. I would rate it 4/10 for now
I managed to get tweenservice working with it for a test frame and gui which was great, just don't forget to specify TweenService in the script before telling the bot what to do
@@mccheeze775 i mean like I said I did precise to use tween plus the start to end position but it started wirithing a bucnh of stuff that had some very simple yet stupid mistake. I have used it since then so i dont know how much it improuved since I have always wrote my own scriot for everything. Might give it a try later just to se
I can't read 🙃🙃🙃
@@b34stmodz54 Maybe once your spelling improves so will the AI.
@@TheOfficialYDB english isn't my first language. Still learning
As a developer myself, I hate this it will really stop alot of newer developers from ever working for somebody or becoming better.
idk I understand your concerns, but I mean as long as someone takes note and actually takes the effort to LEARN from this, it could expand their scripting knowledge
take tmodloader's examplemod, it has all the things you could need to make a terraria mod. you can easily copy and paste the files, change some lines of code, and practically take the lazy dev's way out and learn nothing, or you can take at least a little bit of the knowledge you've gained from the files and try to make your own unique thing, or at the very least learn how to code it from scratch
as a newer developer this hasn't stopped me at all and allowed me to work for MORE people since it makes my life semi easier
I don't think so, I don't think this can make very complicated scripts, it's mostly useful for saving time on long scripts
that is very true, i am a beginner developer and i am trying to learn how to script normally but sometimes i can’t find a lesson and or video bout it i learn it from an AI that’s how i use it anyway
@Leyx2s not really you still need to learn how to code lua
all it does is take what you know and auto complete it or generate the basic structure of what you want
it doesn't completely write a shooter game for you
3:55 I like how you knew exactly what my thoughts were lmao, the function wasn't even closed and it wouldn't have changed the color anyway the parts color property was never defined & that is the least efficient way to make something's color have a rainbow effect, you'd just use tween service.
The parts colour property wasnt defined because it was at the character limit from declaring 20 colour variables lmao
the reason that it didnt change color whilst getting bigger is because it tried to put two different loops, it only executes the first one that is placed and ignores the code after the loop ends.
ye n if u needed to run multiple loops at once then you'd need to use something like coroutine
a loop prevents code below it to run, hence why the code wont run. you could use coroutine(function(), spawn(function() or delay(nil, function().
i mean cant you just put two in one loop so it works? that's what i do when scripting
@@rainhat1 ive tried before but it never worked for me, theres another way though, you can probably enable a value and in one loop it only executes something when the value is true, if its searching nonstop and only fires once then make it false when it detects it is true and run the code
@@rainhat1 correction, you can’t run two INFINITE loops on the same THREAD (unless you use a function like task.spawn() to make a new thread then the script will be the only thread) any code after it won’t run
3:13 WHAT THE HELL IS THAT MONSTROSITY
BTW when spawning a part set the parent after you set the properties, it performs better because we don’t have to replicate everything after
hey what do you think is this good or bad?
@@Sa_bba anything getting people more into coding is good, though I hope the dev forum scripting help doesn’t get pummelled by all the people getting incorrect code generated 😅
@@PastDays I agree.
@@Sa_bba it’s alright, there’s a lot of things to consider. I go over some of them in a video I made a little bit ago
I've been using it since it came out and as a scripter it does nothing for me. However I'm actually surprised by how amazingly good it is at understanding script context. I had it write a few lines in a complex script and they were correct. Looking forward to this ai model improving.
How and where did you learn scripting in roblox cuz I want to learn it and make a game
@@rekamodnar492git good zoomer
@@rekamodnar492 learn english lmao scripting is like english
@@alexskorpik11play79 Is his English bad?
@@robloxcutter no, just scripting IS english, just a bit more complex, so like 98% english.
Hey robuilder, I rlly like that u do a bit with scripting! I think it’s fun/ interesting and helpful to watch! Rlly rlly keep it on!!!
Hey, thanks! This was a fun video!
Hi robuilder if you need to zoom into the script just press control and use the scroll wheel on your mouse.
He really needs to zoom because I can barley see the code lol.
U can also do Ctrl+= And Ctrl+-
You're not alone I myself type while looking at the keyboard the worse thing is I can't type with my hands but my 2 fingers I just can't seem to learn it😢
I would love to make my own game I tried asking my friends to join me just they quit the first 5 minutes, now I am learning everything myself with no help at all becoming an jack of all trade myself hope I will make it!
That is interesting, what kind of game?
@@starseedlightworker6539 War
same
Hey man, I feel you there over the years I’ve made plenty of projects on multiple different platforms most of my friends don’t even bother trying out my games that I’ve made but whenever someone I don’t know does they’re always super surprised & impressed, I had communities of player bases for games I worked on and none of them I knew personally, keep pushing just because your friends don’t see your vision doesn’t mean others won’t!!
@@undefined428 Thx you for this
I will surely mark this down
You Don't Need That You're "The Best Scripter"
wat
@a Thanks!
@a ouyre*
why tf u use a capital letter every single word
@@arandomguythatlikesthebann7337 fr like this isn't a CZcams title
You can't activate two while loops at the time, put the resize and the color change in the same loop
True
Yea but you use spawn function i think to run two while loops
For all the people wondering, I think there is a glitch with the AI and that’s why it’s not working.
Thanks bro
@@chillzliam4921 just to make sure, when you ask it to do something does it give you other things for it to do?
I mean, its still a beta feature and there will be bugs and glitches. Because the material generator came out as well, and its pretty good so far.
I am glad this isn't forced on people, it can be useful, but I'd rather not depend on using it
As a scripter, I noticed that a lot of the code it was generating was very inefficient. If someone with no scripting knowledge created a game using this ai, the game would likely be laggy, or have quality control issues. But I’m sure it will improve in the future. I am not a big fan as I am concerned it will lead to some problems on Roblox. But only time will tell.
His requests were not very specific
-- how to make the 2nd script work
-- 1. create a script in the workspace
-- 2. copy and paste the code above into the script
-- what code?
-- the code above this comment
-- thank you
-- you're welcome
-- next what?
-- save the script and run it
-- okay, but how do i make the clone's body parts go limp?
-- you can set the humanoid's state to dead
-- that would dissasemble it
-- not if you set the humanoid's state to dead after creating the clone
-- are you sure mommy?
-- yes, i'm sure
-- okay i'll try!
-- good luck!]]
-- newchar.dead = true is what to do right?
-- yes, that's correct
-- okay, i'll try it now
-- i didn't say that thing above this!
-- i know, i did
-- are you a human?
-- no, i'm a chatbot
-- your so lifelike...
-- who made you?
-- i was created by a team of developers at OpenAI
-- for what game?
-- i'm not designed for any specific game, but I can be used in many different games'
-- what game are we in now?
-- we're in Roblox
-- whats my username?
-- your username is Guest
-- is that what it says?
-- would i log in to openai on roblox so i appear as my real name?
-- no, you would need to create an account on OpenAI's website and
-- then use the API key they provide to authenticate your requests
-- is that what david baszucki would say?
-- i don't know, but it's possible
-- do you know chat gpt?
-- yes, I'm a variant of GPT-3
-- cool
-- is there anything else you need help with?
-- i wanna know the meaning of life
-- the meaning of life is subjective and varies from person to person
-- what's your meaning of life?
-- roblox
-- that's not a very deep answer
-- it doesen't have to be deep ;)
-- okay, i'll let you go now
-- okay my friend
-- bye
-- cya
-- end of conversation
are u a dev@@genemutant
Ai are getting scarier and smarter these days😮
Ikr
Fr
@@ITZ_XSEAWXS3E83 yessir
Doesn't understand threading yet
no AI has helped yet
1:37 yes, you can do this by remembering the keyboard layout
I Can just doit from muscle memory tbh
Hey Robuilder,
If you're lazy like I am you can also ask ChatGPT to generate scripts for you.
(Maybe an idea for a future video?)
chat gpt's scripts didnt work for me
Oh no this is so weird... I didn't actually hear much about this, from what i did hear it sounded like a near future rumor, but ITS HERE.. and not sure how to feel about it. So many people now are just going to cut the learning process completely and use generated scripts to write there entire games. Also it just feels like another company "Roblox" just jumped on the ChatGPT trend train lmao.
also my bad i commented this before watching the video, but i think the fact that people will skip the learning process remains true, especially seeing how it's similar to chatGPT in the sense that you just feed it the information on what you want to achieve and it will try to achieve it. And not only that but its made by Roblox themselves, So it has 100% all of the information about scripting Lua in Roblox as well. A noobie scripter for example could say "Write me a Variable for a Part with all these properties in the variable" And well it's going to do it for them, and in half the time it would take to actually write the variable out.
I love you mate and also yeah its hard to type without looking!
not really i been replying to comments to try and help them without looking at my keyboard and im not looking at my keyboard as im writing this
Honestly I could see this being very helpfull , I have been trying to learn scripting but they change stuff every year and most the tutorials on CZcams are outdated. So I should be able to learn off of this
The reason why it did not also change the part's color was because the first loop(that made the part bigger) is an infinite loop, because while "true" just means that it will do this thing forever or until you use the break keyword. Basically, it just did the same thing forever and ever and didn't even know that the other thing existed
Me as a programmer I can see your still learning OH btw when you have a local function in your script you need to put an end cuz yes
"cuz yes" wtf does that mean
the rainbow block didnt work because you need to put a end at the end 💀
Keep in mind the A.I Scripting servers are down. We just need to wait for roblox :( and its probably not gonna be fast.
UPDATE: The Material Generator seems to be online again But The Scripting Generator is still down I will update this comment when updates come
UPDATE: The code completion seems to be somewhat back HOWEVER you must have some code with it then it will make some code
UPDATE: i forgot to tell you this but A.I Is working again however remember these things
1: You need to have some scripts written by you(Idk why probably learns using code you make)
2: The A.I Is in beta things may change and things may also break
tell me when its on pls
thanks for the comment!!
I wil let you know when it is online again
@@benshija8208 thx man appreciate it
When u wanted to make it rainbow, u created a new function, a function always needs an end and that’s what you forgot
Start of a new era (you should learn to script, and then rebrand to RoDEV)
RoDEV is taken
this works just like chat gpt, sometimes the ai will mess something up, and I don’t like how it needs to be a comment, cause we’ll probably wanna use a comment for something else.
This is a cool feature, but personally (me being a Roblox dev for 2 and a half years now and someone who has spent hours of time learning to code) it kind of annoys me how people with no knowledge can make a game just as good, or better, than people with loads of time spent learning the coding language. Anyone feel the same or is it just me lol
edit: i just realised the feature isnt too big, i was overreacting lol
Haha, it is kinda hard to make a real game with this. i think this is very very useless
lol yeah, i told it to write a conveyor script and it told me it had to be in a client script xd
Yea its still in beta as for now.. If they update it The A.I then yea Little timmy yea he now has 800m robux and his game has 90k players and he knows nothing on developing
as a scripter,i think you will be good at scripting soon your beginning is very nice
How do you kill local player in localscript? Testing out your knowledge
@@jynz_l Killing a player in a localscript is not efficient as the player would only see the other player dead, and anybody else still sees the player alive. This however doesn't count when the localscript kills the player on it's own client. But here's the code anyway:
local Players = game:GetService("Players")
local targetPlayer = Players:FindFirstChild ("player name")
local targetCharacter = targetPlayer.Character
if targetCharacter then
targetCharacter:BreakJoints()
end
@@jynz_l Pretty sure you cannot kill someone in a local script (not without it breaking), so you would have to fire a remote event to tell the server to kill the player
@@VoidCode no lol, just set the player's health to 0?
@@VoidCode you dont even know a single knowlegde about local script
THIS IS SUCH A COOL FEATURE EVEN FOR A SMALL SCRIPTER
idk what i did but it just randomly stoped working, was working amazing for a while now when typing it doesn't suggest what i want to type like it did and it doesn't generate the script bellow like it did before???
@robuilder for the winmil you can just make an animation and add a script.
i keep rewatching this to see if my roblox is broke or im not doing it right
Hey, Robuider Love your videos
Hey, Robuilder since you know code now I am trying to build a game “Windmill Tycoon” type of game similar to the pet tycoon that you made so could you help with scripting.
can’t wait for robuilder to learn more scripting :D
robuilder, man this is my third heart in a row this really is amazing
I personally think this is a good feature because of the people that dont know ho to script, but maybe the update cause the scripters like me were irrelevant, but maybe nothing happens
It can go like that or it go go like well. Good bye Scripter joe Your fired i dont need to pay you A.I can do Your job Way Quicker And Easier then you so BYE BYE
You should try saying make the part change color and get bigger every second
5:32 you can't run 2 loops at once except if you do some stuff like corountine wrap or spawn but you could just copy the line after the wait in the second loop and put it in the first loop
spawn command - are you serioues reight new bero
@@Random69- coroutine is better
@@kidgaming6529 depends what you are making
@@Random69- Never use spawn unless you have to
@@alpheendomination spawns better and less laggy 💀nine year old
Very interesting! I'll have to check this out!
I don’t understand how people are saying that this could end scripters as most of them would find this helpful to save time
I guess because people thought you could just say stuff like: ''Make it so if you touched this then this would happen'' and like: ''Make this'' and that you would not need even a little bit of knowledge on scriping and just type what you want and boom a i does it for you.That could end scripters if roblox made it like that and since its in beta i there could be an update that just makes knowing scripting useless just do the 2 dashes tell A.I do do something BOOM! done in less than a second even little timmy could have the most popular game ever and how did he do it. Generative A.I. And roblox said their would be one for building and Modeling . And when those go out and roblox makes it so you dont need to know a thing on those then say goodbye to all your Scripters, Builders, Modelers all that A.I could do that so as of now when its in beta and you need to know some scripting knowledge. Cant wait to see the future updates
@@benshija8208 no, there’d be a ton of debugging, you need at least basic knowledge on coding
@@jazzysoggy12 yeah but over time it will keep getting better and better until
W mans for showing a tutorial i was finding this for so long
CZcams search?
if you want a color changing block just make it change to a specific color and once you fill out all the colors just make it repeat
Zoom in to your script pls (hold control and mouse scroll)
This will come in clutch as time passes and improves further
Fun Fact: You can actually chat With Studio AI but it will generate responses with Lua codes.
But can you use the ai to make abilities like shooting or time freeze to a model
No. Just learn to script it isn't that hard with dedication man and it is also free there are really good tutorials and people that can help you in the DevForum. There is no reason to use this useless AI
i love this scripting channel!
Why is it that I have to start off the script before I am able to use the AI?
Hey robuilder. I have a video idea. Make a build with only scripting/ai
it's just not working for me. it writes the code but then the code just doesnt execute??
For those who don't know, the servers are down for this and that is why it is not working.
thank you i was so confused
How do I keep track on Roblox AI servers?
A while true do loop runs on forever. And you put the color one in a different while true do loop below the first one. Now since it runs forever, it never ends, thus it doesn't let the 2nd loop run. A solution to this is to put the code that is changing the color in the 1st loop and delete the second loop.
3:58 those are all variables so you need to actually set the color instead of just making color variables
RoBuilder: Can you guys type without looking in the keyboard? (Answer of me: Probably yes)
Some people in the comments are haters, the AI can be useful for starter scripters, because the AI can write basic scripts that the starter scripters can learn from. I am pretty sure that’s why the AI was created in the first place.
this doesnt work for me :(
i see a future of game developer not coding just using ai
I thought it was very common to be able to type without looking at your keyboard.
It really sucks lmao. I typed the first line, it typed the second:
--The players leaderstats, "Stats", save to the datastore whenever the value of them is changed.
--The players data, "Data", save to the datastore every minute.
dude thanks soo much now i can use this i used another chanels tutorial but none of them worked but yours did
The reason why the rainbow wasnt working is because of the missing "end" eof (end of file)
I can type not look keybord
Hey robuilder u should make a second channel called rogrammer where u do scripts instead of building
he desnt know how to script
@@LinkinPaw ik but it's about him learning how to script
As a scripter myself i don't really need to look all that much at my keyboard as i use it all the time
hello robuilder im a big fan and i want to do commissions but i dont know how to send your builds to the people can you help me with that because nobody ever did a tutorial on it on youtube
yeah me too i want to know i am so noob tbh
Maybe u need what position to locate then spin in that location like coordinate number blah blah make it spin while changing colors I like your videos
this is why i love your videos
All scripts not work
Now I can remake flood escape 2!
MrBeast looking ahh subtitle's💀💀
01:57 i have a TIP for you when you creating a new part in script First Set Properties of the part but set parent of the part last
I tried to test this earlier and it just refused to do anything 😅
Edit: Figured it out, It doesn't like writing code in existing functions.
how did you make it work pls
The reason that the first script didnt work is because there was no "end" at the end of the script, thus this error was brung "Expected 'end'"
I can type without looking at the keyboard but when scripting I have to be careful BC one thing wrong ruins the whole thing
3:30 Not only is there an error, but the AI didn't write any code that actually changes the part's color; Those are just Color3 definitions.
6:15 In your case, both loops were "while" loops; The part wasn't changing color because that was in the second loop, but the first one "catches" the execution. If both while loops were placed inside of "task.spawn" commands, both would run at the same time.
why does the most simple of scripts just not work for me like I copied this script exactly just to test it out for myself and it refuses to do anything
same
2.5k liker lol :)
Thank god you made this I did not know how this worked before this vid!
Yeah, I can type without looking at the keyboard. It took YEARS of practice and I still have to glance down at times
i personally think chat gpt does a better job because it explains it
THAT SMILE 0:24 pause there
I hated that it would make the work for you
When they announced i thought it would ve a AI helper like
"How to i use local?"
"How could i make i dialouge box"
But its more like
"Make a dialouge box"
"Make a animatipn script"
I wish it would be more like a teacher than a machine that do it for you
The reason the script was not working was because first it was cut off with the color and second there was no "end" another thing the function was not even being called so there are like 3 errors of the rainbow script
well i love it, but im scared about sneaky steve
basically im saying that im worried if anyone uses it for bad
I hear any ai in the title. I'll WATCH IT
As a devForum member and scripter/UI designer for 3 years, I can confirm that it is just not a good system so far. I would guess that the system is accidently released as there is no announcement or something. Also, Roblox is a big company and I don't think they can't make it good. Again, I believe it is just an accidental release.
In my mind they released this feature early in hopes that scripters would use it and fix up the code, thus possibly training the AI.
Or maybe by opting in and enabling the AI you consent to the AI learning from your codebase regardless if you use it.
@@CookieMaster12309 Yes. Though, it would be still an accidental release since there is no announcement about it. Also, if you want to fix something inside a function, you would want to put the fix comment in the function. Though, this AI can only do things outside of functions.
Why doesn't it work for me? I did everything as it was shown in the video, and nothing comes out
Servers for the A.I Are down
I am confused on how to make a script where 6 items are pressed and when all of them are pressed It plays an sound.
I can type without looking at the keyboard but since my keyboard is always sitting at 50* and I move it accidentaly because of that and instead of K i press L and some stuff like that but I'm not even a scripter It took me like idk 6 years of pc practise
This is an extremely blunt and primitive instrument, he can't do almost anything, and writes code based on yours, and that is extremely primitive
I can say the same about the image generator, at least in Roblox it is very primitive
@@mr_sdows Remember The thing is still in beta And Updates can be made
I know some coding knowledge so this gonna help me develop my games I can’t wait to started earning
if u want get now I'll introducing AI CHAT DEEPAI the AI CHAT DEEPAI is so powerful and much better than OPENAI since start 2015-2018 and u can show ur picture and video and anything u want
Wow 😯 that’s cool. Amazing 🤩
It is.. Till Scripters start getting fired as its a waste of robux and A.I can do the scripting in less than a second
Either somethings wrong with Roblox studios are somethings wrong with my PC but none of my Scripps ever work
When I make obby game with AI, I use the script it gave to me for when players die or leave they will able to live again in the same as the last checkpoint they touched, but the script not working, it just be like Tower of Hell, how do I fix this problem?
As you asked "can you guys type without seeing" or smth like that so yh i can type actually mostly everyone can type but not correctly 😂
Btw i am good at typing on mobile bc i usually play roblox on my mobile
the reason it wasn't changing color while getting bigger is bc u didnt do it all in the same command, so it does the first thing first and completely ignores the second
Hey! I was wondering why I get an error about missing textures for your fountain?