Noob scripting vs Advanced scripting in Roblox Studio.

preview_player
Показать описание
Hello everyone ! Today, I'll show you some advanced scripting tips that will organize your scripts and decrease the difficulties. I hope you learned something new ! Don't forget to like and subscribe !

Here's my discord : Boredd#8715

Check out my Fiverr page! (dm me on fiverr: NTDIRS to get 2 extra features for free!!!

Music :

#RobloxStudio #robloxstudio #Roblox #Animation #animation #Animations #animations #system #Tutorial #tutorial #education #scripting #Script
Рекомендации по теме
Комментарии
Автор

This is more like someone who has no idea how to script vs someone who knows the basics

huk
Автор

This is more so someone watching their first tutorial vs someone who's been learning to script for a week

azimus
Автор

Low-key him teaching debounce actually is helping me

jacehiu
Автор

Another thing you can do with the fade is

local part = game.Workspace.Part

while part.Transparency < 1 do

wait(0.5)

part.Transparency = part.Transparency + 0.1

end

Lot more shorter

wildetell
Автор

What the "Advanced" scripter is writing, isn't advanced at all, it is programming basics.

i_i
Автор

lol ok so im gonna try to explain the code and what it does in case somebody wants an indepth explanation

2:02 to explain the code here, instead of writing true, he is using a condition that returns true, you can think of it like as an if statement.

2:56 Here is using a foreach loop, he made the variable i and v, v being the value of the current element and i being the amount of iterations(how many times the loop has run). He is also spawning a function. The reason for this is so that the script will keep going while the part is changing transparency, and wont wait for it to finish before going to the next.

4:02 He is using tweenservice to make a tween effect/animation, he passes a tweeninfo object and a dictionary called TweenGoals into the function, then stores the return value of that function into a variable called tween and then calls the play function.

5:29 He is firing a remote event here. This is used to send a signal to a serverscript from a localscript, or the other way. You can fetch the signal from a serverscript by doing: your function here(arguments))' This is crucial for game security and everybody should know how to do this.

6:13 He makes a function to fire the event, tough this is not necessary, would recommend doing this if you have to fire it multiple times in your script, but doesnt really matter.

7:21 Here he is using debounce in his killscript. He made a boolean variable called debounce and the code will only run if debounce is false. If it runs, debounce is true and it waits a second before its false again. Tip: If you want to set a boolean to the opposite of itself you can use this code: 'bool = not bool'

bobross
Автор

For the fade thing could’ve used a tween would’ve been smoother probably also you get a lot more control

Dustleys
Автор

I love how you explain it thank you very much

frockfor
Автор

For the fade script u could just simply do

local p = game.Workspace.Part
local stop = false

Wait(3)

While not stop do
p.Transparency = p.Transparency - 0.1
Wait(0.1)
if stop then
stop = true
end
end

trenchhez
Автор

Thanks man I will forgot the script like in a second

Unus.Incredibox
Автор

Me: this thing is easy
My brain: *did u forgot u have no braincells left*
Me: oh yea i forgot

DoraTheGacha
Автор

thx für u vid end idk wenn du deutsch sprichst LOL viel spaß mit scripting
;)

Xeq_Roblox
Автор

For the functions instead of adding a seperate line just do :Connect(Fire())

wbeecroft
Автор

It's not really noob but basic things that you learn and you get better at it

Jamal.frl_
Автор

I actually prefer not to use while true do as it can cause problems if your not careful, if you want a good infinite loop use while wait() do, it's far better and means you don't have to always remember to put a wait() further down in the code.

real_Tyles
Автор

As a coder, I know what to do but always forget the syntax.

thunderstormstudios
Автор

0:49 Even newbies know about loops, it's like kindergarten propgramming

kryptoid
Автор

while loops aren't that advanceddd, he should've made a procedurally generating random name array with a __index metamethod which would cache and datastore printed data 😍

bingusiswatching
Автор

In the fading system(for one single part), I could use:

for i=1, 100 do
workspace.Part.Transparency += 0.01
wait(0.001)
end

soft_gaming
Автор

SUCH A BASIC SCRIPT THAT PEOPLE DOESNT NEED TO LEARN

madeadiputrasena