Kiki Devlog

[Lua] script 와 local script 차이 (루아) 본문

Lua & Roblox/Roblox

[Lua] script 와 local script 차이 (루아)

kimkiki 2021. 9. 1. 14:40
728x90

 

LocalScripts are for client-side use, scripts are server-sided.

 

script

: 얘는 모든 플레이어에게 동일하게 보이는 server을 통제함

Script는 오직 아래의 범위안에 들어있을 때만 작동함. 

local script

- You can collect player input on the server. But The Server( = 그냥 script) can not tell when a user presses a certain key, or clicks the mouse.

- Game changes that happen within a LocalScript only affect the local player. If a client needs to make a change that affects the entire server, the client can send a remote request to the server. 

LocalScript는 오직 아래의 범위안에 들어있을 때만 작동함. 

local player = game.Players.LocalPlayer -- local script 에서만 사용가능

Roblox Client-Server Model

 

Roblox Client-Server Model

This Platform uses cookies to offer you a better experience, to personalize content, to provide social media features and to analyse the traffic on our site. For further information, including information on how to prevent or manage the use of cookies on t

developer.roblox.com

아래 링크의 client to server 부분 참고

Remote Functions and Events (roblox.com)

 

Remote Functions and Events

This Platform uses cookies to offer you a better experience, to personalize content, to provide social media features and to analyse the traffic on our site. For further information, including information on how to prevent or manage the use of cookies on t

developer.roblox.com

 

 

'Lua & Roblox > Roblox' 카테고리의 다른 글

[21.7.31] 루아 기초 공부  (0) 2021.07.31
[21.7.30] 로블록스 기초 공부  (0) 2021.07.30
Comments