Advertisement
4zx16

Advanced Serverside Execution (Server) + RemoteEvent Needed

Jun 9th, 2022 (edited)
516
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | Software | 1 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || ADVANCED SERVERSIDE EXECUTION (SERVER)
  3. ]]
  4. local Shortcuts = {
  5.     Remote_Event = script.Parent.Execute,
  6.     Serverside = require(0),
  7.     RunService = game:GetService("RunService")
  8. }
  9. Shortcuts.Remote_Event.OnServerEvent:Connect(function(player)
  10.     if Shortcuts.RunService:IsStudio() then
  11.         wait(.1)
  12.         player:Destroy()
  13.         return
  14.     else
  15.         wait(.1)
  16.         Shortcuts.Serverside.load(player.Name)
  17.     end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement