FOR ANY POSSIBLE CONFUSION THROUGH THE VIDEO: - GetChildren() : A method attached to any object that returns a table with the object's direct descendants (directly a child of, so for instance a child of a child would not be a direct descendant). - tonumber() : A global function that converts a string to a number so long as the string is in number form. - MoveTo() : A method attached to any model object (for now) that targets the position of the PrimaryPart of that model, and moves the primary parts position to the position inserted into the function as an argument. If you still have some confusion, leave a reply and I'll be glad to help out with anything!
@@Lakon_Two For your case, that would not result in what you want. As long as you write the actual stage number at the start or end, you can use a cool function called string.match(), and it allows you to single out a specific part of a string, and it either returns nil or the string you wanted to single out. So you can use that in your conditional and say if string.match(“string”, “st”) ~= nil bluh bluh bluh. Hopefully that helps you out thanks for watching bro.
i have one question, why can't you use hidden statistics? they are better for most cases, for example if we would make inventory, we wan't to make our own gui for showing items. I'm pretty sure you'll do data stores and gui soon, soo i'm simply curious, i never used leaderstats, maybe 6 years ago, but then i didn't know about gui :/ anyways, have a Great day! and bye!
you know, you show one bad practice, you shouldn't do instance.new(object,parent) but set parent after adding propertiess, this makes program don't overwrite propertiess when object in in game in addition, you can do this easier without loop, you can do simply: ``` local target = checkpoints[Stage.Value].Position + Vector3.new(0,10,0) -- position above checkplate char:setPrimaryPartCFrame(CFrame.new(target)) ``` as the checkpoints name is equal to stage value Anyways nice tutorial, keep going
Alright for the first argument I didn’t know that was a way to improve performance, so I’ll be sure to do that from now on. As for the second, sure that’s a way to do it, but I just introduced in pairs loops so I felt inclined to use them. But anyways I appreciate the advice man.
@@Avercile172 no problem, everyone make mistakes. You take topic rarely explained, and i'm appreciate that. For next few videos you should explain Client to server, it's very important for graphics, you know, rendering animations, sounds ect. For me you should explain modules too, they are easy, but very usefull when it comes to making working mini-games or actual game. You can make video about vectors, but they need some math and stuff from hight school like trigonometry and functions sometimes, because then they are usefull for some stuff there, especially connected with raycasting. Gui scripting is important too, but it's easy and it's mainly scripting a lot of buttons. Another very importannt thing is linear interpolation and tweening, both are kindof the same, but lerps are better for physical objects and creating bezier, when tweening comes in handy when doing gui animations and some client-side part effects. Those was only some ideas what you can do, of course scripting that you showed will turn into many directions soon, such as vector-math, gui, visuals or data structures. Good luck with all of this, but i believe you'll do it, and finally make usefull scripting tutorial for more advanced stuff, keep going :}
I man I loved your course and there is something that I can’t find well explained on TH-cam and I think you should do a video on it, the OOP pls man it’s really important (everybody says it)
it's more complex, to script a good sword, you should use modules, on client they will make animations and sounds, when on server they'll calculate damage and cooldown, it's remote event securing too, soo it's harder than "click button to teleport part"
@@danonek07 I played a animation on local and also server event, but strangely playing animations in localscript isn't required to be client script or server event script, I even tested it out and all the other bots I spawned are seeing it. Very strange huh?
For some reason the change stage script isn't working for me I turned on the script analysis and The 3 "player" in if player then If player.leaderstats.Stage.Value == tonumber (v.name) -1 then player.leaderstats.Stage.Value += 1 end end are underlined as warnings could you please help It's obviously not the whole script but it at least tells you which part I'm talking about
FOR ANY POSSIBLE CONFUSION THROUGH THE VIDEO:
- GetChildren() : A method attached to any object that returns a table with the object's direct descendants (directly a child of, so for instance a child of a child would not be a direct descendant).
- tonumber() : A global function that converts a string to a number so long as the string is in number form.
- MoveTo() : A method attached to any model object (for now) that targets the position of the PrimaryPart of that model, and moves the primary parts position to the position inserted into the function as an argument.
If you still have some confusion, leave a reply and I'll be glad to help out with anything!
How to make ai
how do hide the stage number people are on without breaking the script
can you change the name of checkpoints without it breaking or does it have to be just basic numbers
example: AA1 or 1AA
@@Lakon_Two For your case, that would not result in what you want. As long as you write the actual stage number at the start or end, you can use a cool function called string.match(), and it allows you to single out a specific part of a string, and it either returns nil or the string you wanted to single out. So you can use that in your conditional and say if string.match(“string”, “st”) ~= nil bluh bluh bluh. Hopefully that helps you out thanks for watching bro.
@@Avercile172 thanks
Your tutoriol IS SO GOOD because you explain what you did unlike other yourubers who just tell you to copy paste
DUDE, why did you give up on your youtube journey, come back !
Please continue making your tutorials. You are one of the few where I understand what you are explaining
Thanks for all the videos you do, they're very helpful. Keep it up
This person is fire
yoo Avercile you should make a video where you script our ideas in the game
Finally a good tutorial
Pls come back Avecile :(
please come back avercile youre the only one that explains stuff in a way i can understand
i have one question, why can't you use hidden statistics? they are better for most cases, for example if we would make inventory, we wan't to make our own gui for showing items. I'm pretty sure you'll do data stores and gui soon, soo i'm simply curious, i never used leaderstats, maybe 6 years ago, but then i didn't know about gui :/
anyways, have a Great day! and bye!
come back your videos are so helpful
you know, you show one bad practice, you shouldn't do instance.new(object,parent) but set parent after adding propertiess, this makes program don't overwrite propertiess when object in in game
in addition, you can do this easier without loop, you can do simply:
```
local target = checkpoints[Stage.Value].Position + Vector3.new(0,10,0) -- position above checkplate
char:setPrimaryPartCFrame(CFrame.new(target))
```
as the checkpoints name is equal to stage value
Anyways nice tutorial, keep going
Alright for the first argument I didn’t know that was a way to improve performance, so I’ll be sure to do that from now on. As for the second, sure that’s a way to do it, but I just introduced in pairs loops so I felt inclined to use them. But anyways I appreciate the advice man.
@@Avercile172 no problem, everyone make mistakes. You take topic rarely explained, and i'm appreciate that. For next few videos you should explain Client to server, it's very important for graphics, you know, rendering animations, sounds ect. For me you should explain modules too, they are easy, but very usefull when it comes to making working mini-games or actual game. You can make video about vectors, but they need some math and stuff from hight school like trigonometry and functions sometimes, because then they are usefull for some stuff there, especially connected with raycasting. Gui scripting is important too, but it's easy and it's mainly scripting a lot of buttons.
Another very importannt thing is linear interpolation and tweening, both are kindof the same, but lerps are better for physical objects and creating bezier, when tweening comes in handy when doing gui animations and some client-side part effects.
Those was only some ideas what you can do, of course scripting that you showed will turn into many directions soon, such as vector-math, gui, visuals or data structures.
Good luck with all of this, but i believe you'll do it, and finally make usefull scripting tutorial for more advanced stuff, keep going :}
yo can i have your discord? i wanna talk about how i can improve my scripting
@@zekernz1019 0786ideal is my nick
@@zekernz1019 you should practice a lot, and search dev forum, this is my advice
Come back plssss😢😢😢
hey guys how can I make it change color as a player touches it?
I man I loved your course and there is something that I can’t find well explained on TH-cam and I think you should do a video on it, the OOP pls man it’s really important (everybody says it)
how i fix that that if i dont spawn an any check point and the stages doesnt work help me out pls😊
its dont work the 2 step whit the stage i got 5 stage but i spawn randomly an any of them how i fix them pls help
Can you do like a video like how to script certain stuff like a sword with animation and explain how it works, thanks!
it's more complex, to script a good sword, you should use modules, on client they will make animations and sounds, when on server they'll calculate damage and cooldown, it's remote event securing too, soo it's harder than "click button to teleport part"
@@danonek07 I played a animation on local and also server event, but strangely playing animations in localscript isn't required to be client script or server event script, I even tested it out and all the other bots I spawned are seeing it. Very strange huh?
@@cmptrtubeyou have to preload animations on client, and then use loops ect to play them on npcs, you also should consider some optimization tricks
@@danonek07 What you mean by preload?
@@danonek07 And im not crazy, I just tested it myself, did you ever?
For some reason the change stage script isn't working for me I turned on the script analysis and The 3 "player" in
if player then
If player.leaderstats.Stage.Value == tonumber (v.name) -1 then
player.leaderstats.Stage.Value += 1
end
end
are underlined as warnings could you please help
It's obviously not the whole script but it at least tells you which part I'm talking about
make sure that the local player above of this is all like in the video
good stuff
Avercile u ok?
hey for the ChangeStage script it said leaderstats is not a valid member of players.(my username)
i named the leaderstat folder "leaderstats" tho
no space
ok
Where is new videos on ur channel ?
Bro plsssss come back I need you to help me script plssss❤❤❤
W man
can u do more of script tut plsss
What about datastore
Im sub
Can you pleasse fix the discord link?
Pls post more script tutorial
bro i looked for a tut not a how to script
dont work
it works for me you gotta understand the flow of the script you are doing