• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


12 Jan, 2025

Updated at 22 Jan, 2025

Why shouldn't you connect Server Scripts to UI?

Why shouldn’t you? I’ve seen many people say you shouldn’t. However, I’ve never known why. In fact, I would think it benefits you because the client cannot read the server script and you don’t need a remote event, so they would not be able to fire it via FireServer, and would have to use VirtualInputManager.

Furthermore, answer me this: Why don’t all games use Server Scripts for UI? All the benefits listed like cheat prevention and no compromises should make it extremely promising to use server scripts.

The only thing I could think of that would not be good is architecture. You’d have to use BindableEvents in ServerStorage instead of RemoteEvents in ReplicatedStorage, but that is a pretty minor change to do. If nobody disputes this idea, I will make a module for this. A client-communication module that can bind UI via server scripts, and a porting tool to help turn remotes into bindable events.

This was moved to Scripting Support from Development Discussion because it became a question.

Answer if you can, thanks.

2 posts - 2 participants

Read full topic