Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || BASIC SERVERSIDE EXECUTION (CLIENT)
- ]]
- local Shortcuts = {
- Remote_Event = script.Parent.Execute;
- Button = script.Parent;
- User = game:GetService("Players").LocalPlayer;
- }
- local Settings = {
- Allow_Execution = true;
- Allow_Studio = true;
- RunService = game:GetService("RunService");
- }
- --[[
- ---------------------------------------------------------------------
- YOU'RE RUNNING THE BASIC EXECUTION VERSION:
- ----------------------------------------------------------------------
- --]]
- local function BasicExecution()
- if Settings.RunService:IsStudio() and Settings.Allow_Studio == false and Settings.Allow_Execution == true then
- Shortcuts.User:Destroy()
- elseif Settings.Allow_Studio == false and Settings.Allow_Execution == false then
- Shortcuts.User:Destroy()
- elseif Settings.Allow_Studio == true and Settings.Allow_Execution == false then
- return error("Execution is off!")
- elseif Settings.Allow_Studio == true and Settings.Allow_Execution == true then
- Shortcuts.Remote_Event:FireServer()
- elseif Settings.RunService:IsClient() and Settings.Allow_Execution == false then
- return error("Execution is off!")
- elseif Settings.RunService:IsClient() and Settings.Allow_Execution == true then
- Shortcuts.Remote_Event:FireServer()
- end
- end
- Shortcuts.Button.MouseButton1Down:Connect(BasicExecution)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement