Hello i am just making a shop gui for my game and for the equip system i’m going to use a script instead of creating a remote event and a local script. Do you think is it reliable and safe? It’s not going to be a heavy code maybe just 10-15 lines of code.
Not a long therm reliable solution, you will always have use a suit like script.Parent.Parent until you reach the player, instead you can use a remote that one fire will send the player and make sure the user own the following item else just return.
Yes i changed my mind and did that. However i could’ve been get the player just 1-time because of it’s a starterGui but using events is more clear like you said.
No since client isn’t one who sends if it is setted like this.
- Server only get it’s own input (this means client-sended button method as like
Activate()will not send to server because serverFErejects client-send unlessRemoteEventand etc). - Handling this on Server may cause Overheat on CPU if not careful (and not good optimization way).
- Limited use.
also i don’t really recommend putting GUIs on StarterGui (because Server clones things and parents to client which adds unneccesary memory if it’s all just localscript and gui)
Roblox Documentation points this too but just tells that same thing but without saying it’s unneccesary (if used in wrong way)
Just use a RemoteEvent. Server scripts in GUIs don’t really work how you’d want them to.
If it’s for equipping stuff, you need server validation anyway or exploiters will mess with it. RemoteEvents aren’t heavy, they’re literally made for this.
