Yeah as he said code is logical so it literally will do what you type so if your trying to check for all humanoids in game and kill them and wonder why it’s killing you it’s because you didn’t say don’t kill mine, it doesn’t take those things into account you have to tell it exactly what you want such as for a Touched event, it will touch every part in your body over and over unless you tell it to only touch one and not do it over and over you have to mesh things and bend them to your likes and when people do this exceptionally well you get a front page game and bank.
I mean you would have an easier time if you took notes during thedevkings videos etc so you could easily refer back to them instead of trying to remember them and forgetting.
When I started coding - It was a mess.
But I started with (and suggest trying yourself!) Doors.
Start off with a basic: Click to open.
This allows you to become familiar with functions and events.
Then move onto making the door slide open rather than simply opening, this will teach you CFrame.
Then from there, any query you have - You can search on Devforum or the official ROBLOX LUA Coding sites that provide live demos. You can then reverse engineer these to see exactly how they work and how to get to your desired end point.
Good luck and happy codin’!
LOL I’m glad I’m not the only one who wrote notes like that. What I do now is I print out my notes into A4 paper, waste of paper sure but it gets the job done.
I’ve only been scripting for a few months and joining scripting discord servers have been extremely beneficial to my success. Additionally, posting on the developer forums about issues, errors, and explaining a new concept also works well. Practice makes perfect (and that takes time )
Everyone can!
Various ways to learn are:
- Start a little project and try to use basic scripts and look into your errors by googling them.
- Read books if you like to read.
- Grab free models in the toobox and learn how their scripts work.
- You can also watch AlvinBlox who has a starting scripters tutorials and other tutorials and he explains how things work.
Yeah for some reason I barely see any people writing notes but thats alot of paper wasted if your writing it down on paper lol.
You want to use the process of abstraction. Break down your problem, and teach yourself how to solve them.
To kill all players, you need to get all players. Find out how to do this.
Now you have all your players, find out how to kill all of them.
You should be able to do this with the following:
game.Players:GetPlayers()
for
loops
Humanoid:TakeDamage(100)
Good luck! (Please tell me if this helped, I enjoy seeing people’s progress )
I don’t write them out on paper, I type my notes in docs, print them then store them in a file. Makes for easy reference. I would leave them in digital form but since I don’t have dual monitors, it’ll be a hassle to keep clicking out of studio just to look at it.