What are Local and Server Scripts? - Roblox Scripting Tutorial

What are Local and Server Scripts? - Roblox Scripting Tutorial

GnomeCode

5 лет назад

37,917 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@mrOOF123
@mrOOF123 - 15.05.2024 12:01

i saw this health gui in the tool box, and the ''read me'' script said to put the ''HealthGui_SetupScript'' in ServerScriptStorage, and I don't know where is the ServerScriptStorage

Ответить
@luissesaber
@luissesaber - 26.11.2023 05:56

I have a question, I'm very new to coding and coding in roblox and I'm trying to make a hitbox, is their any way to send information/data from my local scripts to my server scripts?
I want the hitbox to be client side but the damage dealt and all of that other stuff to be server sided.
if I put the hitbox code in the server it has this awful delay.

Ответить
@tobygamer_
@tobygamer_ - 09.08.2023 13:41

W

Ответить
@kahmauriaiken2982
@kahmauriaiken2982 - 03.05.2023 01:02

simple explantion, Server scripts appear for everyone for example if you put a kill script in serverscript then it will appear for everyone. Local Script: it only appears for the client (your own self) for example if you open a shop gui only you can see not others.

Ответить
@eienjirosama916
@eienjirosama916 - 30.03.2023 23:11

this is well made for explaining

Ответить
@awttygaming2510
@awttygaming2510 - 04.03.2023 04:12

Can you tell me a list of scripts I need to make a multiplayer game I'm just starting out and all I need to know is every basic script like do I need to make a server script or data score script service I need to know what I need to make please

Ответить
@maskedrobloxian8043
@maskedrobloxian8043 - 03.03.2023 22:38

So did brookhaven developers make a local scriptcity which we can add in the game

Ответить
@yyhhttcccyyhhttccc6694
@yyhhttcccyyhhttccc6694 - 21.11.2022 03:39

local scripts: hey i affect guis and stuff
me: ok can you upgrade a sword if i tell u to?
local scripts: yeah sure
me: THEN ACT LIKE IT DAMN IT
tutorials: hey look at this video
me: STOP TALKING OR ILL SHOVE MY FIST IN YOUR FACE
tutorials: uhh
me: punch
me: WHY IS THERE NO TUTORIAL ON THE INTERNET THAT HELPS

Ответить
@Jack-xm8tt
@Jack-xm8tt - 03.09.2022 07:49

your server verification doesn't work
fix it

Ответить
@grunkeTV
@grunkeTV - 22.07.2022 13:51

I know I'm a bit late, but I just wanted to ask how to communicate between Local and Server scripts? In GLua it's through "Net Messages" but I don't know about Roblox. Hopefully someone can reply.

Ответить
@mrrage9549
@mrrage9549 - 11.06.2022 17:29

This video was so helpful! Thank u for clearing my confusion! Now I have a broader knowledge of roblox coding!

Ответить
@doggywater8982
@doggywater8982 - 02.05.2022 20:23

So I made a punching animation and script but when I join the game it does not work. Do you know why?

Ответить
@BrandonZChin
@BrandonZChin - 02.03.2022 19:07

Can you reduce lag by using local script to run a cframe tween animation? For example a door or window opening with tween.

Ответить
@TFUBRAES
@TFUBRAES - 25.01.2022 02:20

How do I get the local player in a server script without using 'game.Players.PlayerAdded:Wait()'?

Ответить
@totalnubs1148
@totalnubs1148 - 23.12.2021 05:20

although this vid is 2 years old and he will probably never see this, I just need to say.

You are amazing, the amount of effort you put into each of these tutorials are incomparable to 99% of the other roblox tutorials out there. Thank you so much u amazing gnome man.
i’m rooting for u in ur battle against alvinblox

Ответить
@chiphand
@chiphand - 16.10.2021 20:26

you goddamn made effort, a like button for worth than nothing

Ответить
@bearForIce
@bearForIce - 26.09.2021 02:00

Hey I need some help I've been trying to figure this out for months I can't declare a character in server script and it's really annoying

Ответить
@Freddyjay7
@Freddyjay7 - 19.08.2021 04:42

how do i make a auto morph script for exploits

Ответить
@iceplaysroblox713
@iceplaysroblox713 - 31.07.2021 15:43

i have a problem with a scipt in gui idk how to do it server cus it is clinent

Ответить
@InfinityBS
@InfinityBS - 14.07.2021 00:18

This was helpful! Now I can clearly tell the difference between them and what they are used for. Thanks!

Ответить
@rich-nt3su
@rich-nt3su - 30.06.2021 07:54

but how do i change a local to a server

Ответить
@FlokTheOne
@FlokTheOne - 16.05.2021 04:29

Thanks , but u r so slow in talking its like the video will be 5 minutes if u talk normally or with more speed

Ответить
@yetnothugs
@yetnothugs - 02.05.2021 10:05

i cant find my serverescriptservice

Ответить
@determinatork4513
@determinatork4513 - 05.03.2021 14:59

so can you change the script of a door into a local script so only you can enter if you like open it

Ответить
@ThanoSalt
@ThanoSalt - 04.03.2021 11:46

How do I make a module script animation ;-;

Ответить
@typeable
@typeable - 22.01.2021 23:37

g o o e y

Ответить
@Dhruvmallu
@Dhruvmallu - 04.01.2021 22:50

ye

Ответить
@daymo3160
@daymo3160 - 22.12.2020 00:56

how do i make a script activate another offline script?

Ответить
@karmatheslumpgod7099
@karmatheslumpgod7099 - 13.12.2020 10:17

I have this turret and when I kill someone with it or even move it around it looks like nothing happens on the other person's screen they dont even die what would be the problem with it?

Ответить
@Key815_24
@Key815_24 - 10.10.2020 16:42

Subcrieb to this dude

Ответить
@moongus6247
@moongus6247 - 13.09.2020 23:47

thankyou so much for a while i have been trying to figure out how to make a sound only play for one person the problem was my local script was in workspace:D

Ответить
@t_x4x
@t_x4x - 29.07.2020 09:15

ok how the hell this guy not have 1 mil subs

Ответить
@javierdonas7813
@javierdonas7813 - 27.07.2020 04:21

Wiki

Ответить
@berlin2985
@berlin2985 - 04.07.2020 00:01

I am currently trying to understand localscript, I know the difference but I'm confused on what a LocalPlayer is exactly.

Ответить
@somedeer7739
@somedeer7739 - 19.06.2020 14:52

i made a button you can click on but the local script never works

Ответить
@Konnekted2Much
@Konnekted2Much - 15.06.2020 12:53

Hey man please help me out. I made a local script f to punch. it worked for me but not for other players, I then changed it to just a script which isnt local. When me and my friend went into team test we could both punch each other but when she was losing hp on my creen. she still had full hp on her screen how to fi x that

Ответить
@angryblobfish570
@angryblobfish570 - 09.05.2020 07:29

Now i actually know what im doing now

Ответить
@Orzeb
@Orzeb - 04.05.2020 06:39

Ok so i have the local script in the starter gui, and i want it to clone things in replicated storage that has scripts in them, it clones it, but the scripts inside the models dont work any reason why??

Ответить
@kmineblox600z
@kmineblox600z - 01.05.2020 05:12

If in normal scripts everybody can see properties changing
but local script only you can see it
so that means if you win a game of anything the reward comes from a local script or wat?

Ответить
@Banana-ui3kj
@Banana-ui3kj - 19.04.2020 18:14

Server scripts: Shows on everyone’s screen, delete a part, the whole server sees the block deleted
Local script: Only u can see at, delete a block, only u see the block get deleted everyone else still has it and can see it

Ответить
@dpchppr
@dpchppr - 19.04.2020 17:03

You should get more subscriber

Ответить
@baconcat2458
@baconcat2458 - 14.04.2020 20:44

Would a local script be used to make an item disappear for a character that clicked on it, but have it stay there for any other players until they also click on it? And if so, how would I go about doing this? I can get the disappearing function to work, but it makes it go away for all players.

Ответить
@majnkraftpopolzkuyutube4722
@majnkraftpopolzkuyutube4722 - 06.04.2020 03:31

Ok so i've made a local part using local script and also made regen button that was supposed to regenerate that local brick, but sadly - it didn't work. So here's my question, how to script the local part, how to execute it to work? Is there any tutorial for that?

Ответить
@smoothrequiem5374
@smoothrequiem5374 - 03.04.2020 03:36

inside a nutshell,
Server: Server scripts show to everyone when you run a script, for example, if you ran grab knife. since grab knife v4 is a FD, you would have to require it. (Which I did). When you require a script you turn it to Server or loadstrings are the same. FD scripts dont work now, but all other scripts that are server scripts, show to everyone.
Local: Local scripts are when a script only shows to the user, but it registers the command when you kill someone. So therefore, it kills them on their screen but it's like their resetting. This is why its different from Server side scripts, because Local scripts dont show to everyone.

Ответить
@davidngo5423
@davidngo5423 - 27.03.2020 21:02

I'm pretty late but, is there anyway to have a local script activate a script in workspace?

Ответить
@speakerlogin9687
@speakerlogin9687 - 09.03.2020 01:53

I have a script in a text label in startergui.. It is a local script. And I want the text label to be the value of a string value. And when I play in an actual server it doesn't work, but it does in roblox studio???

Ответить
@charleychener
@charleychener - 19.02.2020 18:44

hello im struggeling with a script that shows a gui with all the players in
and a button next to it that says "kill" and if you press it then the health = 0


help pls

Ответить
@susan-cq5rs
@susan-cq5rs - 09.12.2019 10:33

How do I make a gui for script builder

Ответить
@dedeleledede
@dedeleledede - 23.10.2019 23:37

How do I get the player on a server script?
For example, on a local script, it's like this: game.Players.LocalPlayer

Ответить
@tokyoghoul3038
@tokyoghoul3038 - 18.09.2019 12:38

when i use a local script on a thing on the floor why cant my friends see me with the stuff the script gave me?

Ответить