#How to code
1 messages · Page 1 of 1 (latest)
I recommend watching a youtube tutorial series (https://youtube.com/playlist?list=PLQ1Qd31Hmi3W_CGDzYOp7enyHlOuO3MtC&si=sGON3fd4CLvlJjiD)
and recreating and testing the things shown in the video.
Okay I'll try it
This might sound stuiped, but I use studio lite and I can only code with one liners for some reason so is there a tutorial for one liner
Well I never used studio lite so I don't know.
Do you know more about one liner code? All I know is you use " ; " to change between lines
** You are now Level 1! **
I never wrote my code in just one line so not really. But I think that knowing how to change between lines is probably all to it.
Thank you I really want to make my dream game but I can't because the tutorials are just so boring
Is it because the information is boring or how the information is presented
Basically it's just to much and it will take me a long time to watch
Well everything takes its time and effort.
I know everything about how code works and stuff but I just don't know how Roblox does it (I am super good at coding on scratch)
I just don't know how Roblox changes and does scripts
Well thats not half bad then. Knowing how code behaves generally will speed up how fast you learn.
Can you teach me how to code
Im not a great teacher.
I know you can print stuff and use stuff like parent.something
Can you find me someone who can teach me
Wait a minute I need one more question that isn't about scripting but gui HOW DO I MAKE IT NOT CHANGE POSITONS ON MOBILE
Well. I don't know any teachers in this community. I think most people learned how to code by just watching guides or reading the docs.
What do you mean by not change positions
You mean like gui you created
or the studio lite gui
cus I have no idea if it is about studio lite
I tried to recreate the touching code from a killbrick and it isn't working
(I'm trying to make it print after its touched) [the code: local function PlayerTouched(Part) then print("hello") ]
This is the syntax for a function ```lua
local function FunctionName()
end
So in your case:
```lua
local function PlayerTouched(Part) print("hello") end
It doesn't work
You need to run the function
How do I run the function
call*
How do I call the function
you can call the function by just typing its name and then ()
local function PlayerTouched(Part) print("hello") end; PlayerTouched()
I was just correcting myself lol
Uh
** You are now Level 2! **
So basicly
If I type that in it will work?
If you type that it will just print hello once
This is called defining a function
You just write what is going to happen once it is called
I'm touching it and nothing is happening
This is called calling a function.
It is going to execute the code that you've written in the function
Dude it's not doing anything
If you want something to happen once its touched you have to use an event
not just a function
But a function is what the killbrick uses
Did you make a new part or import something?
Well I don't know how your importet killbrick works. I just know how to code one.
I wish there was something that could just tell me everything I can write and what it's for
Roblox Documents is pretty much that
But for that you have to understand how to write code in general
It's easy you just write it
But there is a strict syntax
The only thing I can script is printing
Okay. does your killbrick contain a script?
Dude why wouldn't it
Yeah just show me the script
So now you want to print hello if you touch the kill brick
Not the kill brick but my part
Okay. You first have to reference your part in your code inside a variable.
How do people make games I can't even do this
This is what you could call a reference
You haven't given it enough time yet
Can you sent me a screenshot of your explorer?
Bruh
?
It's just the normal stuff and "killbrick" and "Part"
What are you referring to
What?
Why does Lua need to be so hard
PEOPLE SAY ITS THE EASIEST
This is way to hard
** You are now Level 3! **
It is one of the easiest languages. Maybe python is easier but still. You shouldn't just call something hard because you didn't understand it in one day
Try watching the tutorials.
I think they will still help you despite you being on studio lite
dis lil wigga will have a heart attack where he hears about claude code
** You are now Level 10! **