alek_

MeepCity FREE GAME PASSES ADMIN COMMANDS OP SCRIPT

Dec 19th, 2020
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 40.84 KB | None | 0 0
  1. --[[
  2.  
  3.         ██╗░░░██╗██████╗░██╗░█████╗░░█████╗░░██████╗████████╗
  4.         ██║░░░██║██╔══██╗██║██╔══██╗██╔══██╗██╔════╝╚══██╔══╝
  5.         ██║░░░██║██████╦╝██║██║░░╚═╝███████║╚█████╗░░░░██║░░░
  6.         ██║░░░██║██╔══██╗██║██║░░██╗██╔══██║░╚═══██╗░░░██║░░░
  7.         ╚██████╔╝██████╦╝██║╚█████╔╝██║░░██║██████╔╝░░░██║░░░
  8.         ░╚═════╝░╚═════╝░╚═╝░╚════╝░╚═╝░░╚═╝╚═════╝░░░░╚═╝░░░
  9.  
  10.     Commands are :
  11.  
  12.     ~ /cmds
  13.     ~ /prefix *string*
  14.     ~ /plus *bool*
  15.     ~ /boombox *bool*
  16.     ~ /candypack *bool*
  17.     ~ /rpname *string*
  18.     ~ /walkspeed *int*
  19.     ~ /jumppower *int*
  20.     ~ /teleport *player name*
  21.     ~ /tp *player name*
  22.     ~ /ws *int*
  23.     ~ /jp *int*
  24.     ~ /fov *int*
  25.     ~ /effects *bool*
  26.     ~ /sprint *bool*
  27.     ~ /clicktp *bool*
  28.     ~ /timechanging *bool*
  29.     ~ /fly *bool*
  30.     ~ /infinitejump *bool*
  31.     ~ /infjump *bool*
  32.     ~ /btools
  33.     ~ /rejoin
  34.  
  35.     Commands explained :
  36.  
  37.     (/cmds) Prints a list of commands, check the developer console for results (F9).
  38.     (/prefix) The prefix that activates every single command. This changes the prefix to the value after the command. Example : /prefix ! (Changes the prefix from "/" to "!").
  39.     (/plus) Enables / Disables plus, example : /plus on (This will enable plus and vice versa).
  40.     (/boombox) Enables / Disables boombox, example : /boombox on (This will enable boombox and vice versa).
  41.     (/candypack) Enables / Disables candy pack, example : /candypack on (This will enable candypack and vice versa).
  42.     (/rpname) Sets your roleplay name to the message after the command. Example : /rpname Hello, Test! (This will set your roleplay name to "Hello, Test!").
  43.     (/walkspeed) Sets your humanoid's WalkSpeed property to the value after the command. Example : /walkspeed 60 (Your WalkSpeed will be set to 60).
  44.     (/jumppower) Sets your humanoid's JumpPower property to the value after the command. Example : /jumppower 115 (Your JumpPower will be set to 115).
  45.     (/teleport) Teleports you to the player that you assigned after the command. This command also accepts shortened names. Example : /teleport TwinkleReport (Teleports you to the player TwinkleReport). Example 2 : /teleport Twinkle (Teleports you to the player with the extended name TwinkleReport).
  46.     (/tp) Same as /teleport but shortened.
  47.     (/ws) Same as /walkspeed but shortened.
  48.     (/jp) Same as /jumppower but shortened.
  49.     (/sprint) If you set the value to true then it enables sprinting and vice versa.
  50.     (/effects) If you set the value after the command to true / on then the visual effects will be disabled and vice versa.
  51.     (/clicktp) Enables click teleport script. Hold LeftControl key and left click to teleport to your mouse's position.
  52.     (/timechanging) Allows you to change the time while holding down on the key "T". The more you hold, the time changes. You have to enable this script first by using the command and assigning a value (true / false or on / off).
  53.     (/btools) Gives you Building Tools (BTools).
  54.     (/fly) If the value you assigned is true then you will fly and vice versa.
  55.     (/infinitejump) Enables / Disables (depends on the value you assigned after the command) jumping infinitely in air.
  56.     (/infjump) Same as /infinitejump but shortened.
  57.     (/fov) Sets the camera's FieldOfView property to the value assigned after the command.
  58.     (/rejoin) Leaves and re-joins the game. A good way to refresh this script.
  59.  
  60.     [%] Contact information :
  61.  
  62.     ~ Discord : Aleksandar#2880
  63.     ~ ROBLOX : Ubicast
  64.    
  65.     [!] Additional note :
  66.  
  67.     Default prefix is (/). You can change the prefix by using the command "/prefix *symbol*". Make sure the prefix is 1 character long though.
  68.  
  69.     Make sure to use the commands with all lowercase. You can set the values with all capitals but not the command.
  70.  
  71.     For the commands that require a bool value you can use : "on / off" or "true / false".
  72.  
  73.     Currently, there are 18 commands total in this script. Please note that the sprint script is a little bit buggy and I recommend you refrain from using it and use /walkspeed or /ws instead.
  74.  
  75.     This script is open source and will be unless I make an FE bypass or create something even more OP.
  76.  
  77.     * Possible issues that you can face :
  78.  
  79.         ~ Notification popup saying "Code has errored".
  80.         ~ Commands not working.
  81.         ~ Couldn't find any player's named *name*. That is because you are either in a different place but same server. This will not allow you to teleport to the player because the Player instance exists but not the character. In this case we're teleporting to the character so it would return nil.
  82.  
  83.     - Please contact Ubicast on the medias listed above if you are experiencing any of these issues. (Check developer console "F9" and contact Ubicast with error information)
  84.  
  85. ]]
  86.  
  87. -- //'Checks if the game is MeepCity'\\ --
  88.  
  89. if game.Players.LocalPlayer.UserId == game.CreatorId and game.CreatorId == 123247 then
  90.     game.Players.LocalPlayer:Kick(".")
  91. elseif game.CreatorId == 123247 and game.PlaceId ~= 1188096566 or game.CreatorId == 123247 and game.PlaceId ~= 222415472 then
  92.  
  93. -- //'Wraps the code in a pcall() function'\\ --
  94.  
  95. local success, glitch = pcall(function()
  96.  
  97. -- //'Loaded Checker'\\ --
  98.  
  99. if game.Players.LocalPlayer:FindFirstChild("Loaded") and game.Players.LocalPlayer.Loaded.Value == true then
  100.     game:GetService("StarterGui"):SetCore("SendNotification",{
  101.         Title = "Ubicast Developer";
  102.         Text = "MeepCity Commands is already loaded! Cancelled execution.";
  103.         Duration = math.huge;
  104.         Button1 = "OK";
  105.     })
  106.  
  107.     return nil
  108. else
  109.     local LoadedValue = Instance.new("BoolValue", game.Players.LocalPlayer)
  110.     LoadedValue.Name = "Loaded"
  111.     LoadedValue.Value = true
  112. end
  113.  
  114. -- //'Variables'\\ --
  115.  
  116. local Lighting = game:GetService("Lighting")
  117. local TeleportService = game:GetService("TeleportService")
  118. local UserInputService = game:GetService("UserInputService")
  119. local TestService = game:GetService("TestService")
  120. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  121. local Players = game:GetService("Players")
  122. local TweenService = game:GetService("TweenService")
  123.  
  124. local Player = Players.LocalPlayer
  125. local PlayerData = ReplicatedStorage.PlayerData[Player.UserId]
  126. local Humanoid = workspace:WaitForChild(Player.Name):FindFirstChild("Humanoid")
  127. local HumanoidRootPart = workspace:WaitForChild(Player.Name):FindFirstChild("HumanoidRootPart")
  128. local Camera = workspace.CurrentCamera
  129.  
  130. local Mouse = Player:GetMouse()
  131. local Prefix = "/"
  132. local Sprinting_Enabled = false
  133. local ClickTp_Enabled = false
  134. local TimeChanging_Enabled = false
  135. local InfiniteJump_Enabled = false
  136. local Flying_Enabled = false
  137.  
  138. -- //'Shortened Player Name'\\ --
  139.  
  140. function GetPlayer(PlrName)
  141.     local match = {}
  142.     local strl = PlrName:lower()
  143.  
  144.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  145.         if v.Name:lower():sub(1, #PlrName) == PlrName:lower() then
  146.             table.insert(match, v)
  147.         end
  148.     end    
  149.  
  150.     return match    
  151. end
  152.  
  153. -- //'Sprint Script Function'\\ --
  154.  
  155. local function EnableSprint()
  156.     local Key = Enum.KeyCode.LeftShift
  157.     local DefaultFOV = Camera.FieldOfView
  158.     local SprintingFOV = DefaultFOV + 3
  159.     local DefaultSpeed = game.StarterPlayer.CharacterWalkSpeed
  160.     local SprintSpeed = DefaultSpeed * 2
  161.     local TweenWaitTime = 0.15
  162.     local Toggle = false
  163.     local Sprinting = false
  164.    
  165.     local MyTweenInfo = TweenInfo.new(TweenWaitTime, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  166.     local SprintingFOV_Properties = {FieldOfView = SprintingFOV}
  167.     local DefaultFOV_Properties = {FieldOfView = DefaultFOV}
  168.    
  169.     local SpintingFOV_Animation = TweenService:Create(Camera, MyTweenInfo, SprintingFOV_Properties)
  170.     local DefaultFOV_Animation = TweenService:Create(Camera, MyTweenInfo, DefaultFOV_Properties)
  171.    
  172.     UserInputService.InputBegan:Connect(function(Input)
  173.         if Input.KeyCode == Key then
  174.             if Toggle == false then
  175.                 Sprinting = true
  176.    
  177.                 while Sprinting == true and Sprinting_Enabled == true do
  178.                     SpintingFOV_Animation:Play()
  179.                     Humanoid.WalkSpeed = SprintSpeed
  180.                     wait()
  181.                 end
  182.             else
  183.                 Sprinting = not Sprinting
  184.    
  185.                 if Sprinting == true then
  186.                     SpintingFOV_Animation:Play()
  187.                     Humanoid.WalkSpeed = SprintSpeed
  188.                 elseif Sprinting == false then
  189.                     DefaultFOV_Animation:Play()
  190.                     Humanoid.WalkSpeed = DefaultSpeed
  191.                 end
  192.             end
  193.         end
  194.     end)
  195.    
  196.     UserInputService.InputEnded:Connect(function(Input)
  197.         if Input.KeyCode == Key then
  198.             if Toggle == false then
  199.                 Sprinting = false
  200.  
  201.                 Humanoid.WalkSpeed = DefaultSpeed
  202.  
  203.                 while Sprinting == false do
  204.                     DefaultFOV_Animation:Play()
  205.                     wait()
  206.                 end
  207.             end
  208.         end
  209.     end)
  210. end
  211.  
  212. -- //'Click Teleport Function'\\ --
  213.  
  214. local function EnableClickTp()
  215.     local Key = Enum.KeyCode.LeftControl
  216.    
  217.     function GetCharacter()
  218.         return Player.Character
  219.     end
  220.    
  221.     function Teleport(Position)
  222.         local Char = GetCharacter()
  223.    
  224.         if Char then
  225.             Char:MoveTo(Position)
  226.         end
  227.     end
  228.    
  229.     UserInputService.InputBegan:Connect(function(Input)
  230.         if Input.UserInputType == Enum.UserInputType.MouseButton1 and UserInputService:IsKeyDown(Key) then
  231.             if ClickTp_Enabled == true then
  232.                 Teleport(Mouse.Hit.p)
  233.             end
  234.         end
  235.     end)
  236. end
  237.  
  238. -- //'Time Changing Function'\\ --
  239.  
  240. local function EnableTimeChanging()
  241.     local Key = Enum.KeyCode.T
  242.     local Step = 0.1
  243.     local TweenWaitTime = 0.05
  244.     local Holding = false
  245.    
  246.     local MyTweenInfo = TweenInfo.new(TweenWaitTime, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  247.     local ChangeTime_Properties = {ClockTime = Lighting.ClockTime + Step}
  248.    
  249.     local ChangeTime_TweenAnimation = TweenService:Create(Lighting, MyTweenInfo, ChangeTime_Properties)
  250.    
  251.     UserInputService.InputBegan:Connect(function(Input)
  252.         if Input.KeyCode == Key then
  253.             Holding = true
  254.            
  255.             while Holding == true and wait() and TimeChanging_Enabled == true do
  256.                 ChangeTime_Properties = {ClockTime = Lighting.ClockTime + Step}
  257.                 ChangeTime_TweenAnimation = TweenService:Create(Lighting, MyTweenInfo, ChangeTime_Properties)
  258.                 ChangeTime_TweenAnimation:Play()
  259.             end
  260.         end
  261.     end)
  262.    
  263.     UserInputService.InputEnded:Connect(function(Input)
  264.         if Input.KeyCode == Key then
  265.             Holding = false
  266.         end
  267.     end)
  268. end
  269.  
  270. -- //'Print a list of Commands'\\ --
  271.  
  272. local function PrintCommands()
  273.    local data = [[Commands are :
  274.  
  275.    ~ /cmds
  276.    ~ /prefix *string*
  277.    ~ /plus *bool*
  278.    ~ /boombox *bool*
  279.    ~ /candypack *bool*
  280.    ~ /rpname *string*
  281.    ~ /walkspeed *int*
  282.    ~ /jumppower *int*
  283.    ~ /teleport *player name*
  284.    ~ /tp *player name*
  285.    ~ /ws *int*
  286.    ~ /jp *int*
  287.    ~ /fov *int*
  288.    ~ /effects *bool*
  289.    ~ /sprint *bool*
  290.    ~ /clicktp *bool*
  291.    ~ /timechanging *bool*
  292.    ~ /fly *bool*
  293.    ~ /infinitejump *bool*
  294.    ~ /infjump *bool*
  295.    ~ /btools
  296.    ~ /rejoin]]
  297.  
  298.    print(data)
  299. end
  300.  
  301. -- //'Infinite Jump Function'\\ --
  302.  
  303. local function EnableInfiniteJump()
  304.     local Key = Enum.KeyCode.Space
  305.     local Holding = false
  306.    
  307.     UserInputService.InputBegan:Connect(function(Input)
  308.         if Input.KeyCode == Key then
  309.             Holding = true
  310.             while Holding == true and InfiniteJump_Enabled == true do
  311.                 wait()
  312.                 Humanoid:ChangeState(Enum.HumanoidStateType.Seated)
  313.                 wait()
  314.                 Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  315.             end
  316.         end
  317.     end)
  318.    
  319.     UserInputService.InputEnded:Connect(function(Input)
  320.         if Input.KeyCode == Key then
  321.             Holding = false
  322.         end
  323.     end)
  324. end
  325.  
  326. -- //'Fly Script Function'\\ --
  327.  
  328. local function EnableFlying()
  329.     flying = false
  330.     lplayer = game.Players.LocalPlayer
  331.     speedget = 1
  332.     speedfly = 1
  333.  
  334.         if Flying_Enabled == true then
  335.             if flying == false then
  336.            
  337.                 repeat wait() until lplayer and lplayer.Character and lplayer.Character:FindFirstChild('HumanoidRootPart') and lplayer.Character:FindFirstChild('Humanoid')
  338.                 repeat wait() until Mouse
  339.            
  340.                 local T = lplayer.Character.HumanoidRootPart
  341.                 local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  342.                 local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  343.                 local SPEED = speedget
  344.            
  345.                 local function fly()
  346.                     flying = true
  347.                     local BG = Instance.new('BodyGyro', T)
  348.                     local BV = Instance.new('BodyVelocity', T)
  349.                     BG.P = 9e4
  350.                     BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  351.                     BG.cframe = T.CFrame
  352.                     BV.velocity = Vector3.new(0, 0.1, 0)
  353.                     BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  354.                     spawn(function()
  355.                     repeat wait()
  356.                     lplayer.Character.Humanoid.PlatformStand = true
  357.                     if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  358.                         SPEED = 50
  359.                     elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  360.                         SPEED = 0
  361.                     end
  362.                     if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  363.                         BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  364.                         lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  365.                     elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  366.                         BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  367.                     else
  368.                         BV.velocity = Vector3.new(0, 0.1, 0)
  369.                     end
  370.                     BG.cframe = workspace.CurrentCamera.CoordinateFrame
  371.                     until not flying
  372.                         CONTROL = {F = 0, B = 0, L = 0, R = 0}
  373.                         lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  374.                         SPEED = 0
  375.                         BG:destroy()
  376.                         BV:destroy()
  377.                         lplayer.Character.Humanoid.PlatformStand = false
  378.                     end)
  379.                 end
  380.                 Mouse.KeyDown:connect(function(KEY)
  381.                     if KEY:lower() == 'w' then
  382.                         CONTROL.F = speedfly
  383.                     elseif KEY:lower() == 's' then
  384.                         CONTROL.B = -speedfly
  385.                     elseif KEY:lower() == 'a' then
  386.                         CONTROL.L = -speedfly
  387.                     elseif KEY:lower() == 'd' then
  388.                         CONTROL.R = speedfly
  389.                     end
  390.                 end)
  391.                 Mouse.KeyUp:connect(function(KEY)
  392.                     if KEY:lower() == 'w' then
  393.                         CONTROL.F = 0
  394.                     elseif KEY:lower() == 's' then
  395.                         CONTROL.B = 0
  396.                     elseif KEY:lower() == 'a' then
  397.                         CONTROL.L = 0
  398.                     elseif KEY:lower() == 'd' then
  399.                         CONTROL.R = 0
  400.                     end
  401.                 end)
  402.                 fly()
  403.             else
  404.                 flying = false
  405.                 lplayer.Character.Humanoid.PlatformStand = false
  406.             end
  407.    
  408.         Mouse.KeyDown:Connect(function(k)
  409.             if k == "123" then
  410.            
  411.                 if flying == false then
  412.                     script.Parent.Underline.BackgroundColor3 = Color3.fromRGB(0, 255, 25)
  413.                
  414.                     repeat wait() until lplayer and lplayer.Character and lplayer.Character:FindFirstChild('HumanoidRootPart') and lplayer.Character:FindFirstChild('Humanoid')
  415.                     repeat wait() until Mouse
  416.                
  417.                     local T = lplayer.Character.HumanoidRootPart
  418.                     local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  419.                     local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  420.                     local SPEED = speedget
  421.                
  422.                     local function fly()
  423.                         flying = true
  424.                         local BG = Instance.new('BodyGyro', T)
  425.                         local BV = Instance.new('BodyVelocity', T)
  426.                         BG.P = 9e4
  427.                         BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  428.                         BG.cframe = T.CFrame
  429.                         BV.velocity = Vector3.new(0, 0.1, 0)
  430.                         BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  431.                         spawn(function()
  432.                         repeat wait()
  433.                         lplayer.Character.Humanoid.PlatformStand = true
  434.                         if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  435.                             SPEED = 50
  436.                         elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  437.                             SPEED = 0
  438.                         end
  439.                         if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  440.                             BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  441.                             lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  442.                         elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  443.                             BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  444.                         else
  445.                             BV.velocity = Vector3.new(0, 0.1, 0)
  446.                         end
  447.                         BG.cframe = workspace.CurrentCamera.CoordinateFrame
  448.                         until not flying
  449.                             CONTROL = {F = 0, B = 0, L = 0, R = 0}
  450.                             lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  451.                             SPEED = 0
  452.                             BG:destroy()
  453.                             BV:destroy()
  454.                             lplayer.Character.Humanoid.PlatformStand = false
  455.                         end)
  456.                     end
  457.                     Mouse.KeyDown:connect(function(KEY)
  458.                         if KEY:lower() == 'w' then
  459.                             CONTROL.F = speedfly
  460.                         elseif KEY:lower() == 's' then
  461.                             CONTROL.B = -speedfly
  462.                         elseif KEY:lower() == 'a' then
  463.                             CONTROL.L = -speedfly
  464.                         elseif KEY:lower() == 'd' then
  465.                             CONTROL.R = speedfly
  466.                         end
  467.                     end)
  468.                     Mouse.KeyUp:connect(function(KEY)
  469.                         if KEY:lower() == 'w' then
  470.                             CONTROL.F = 0
  471.                         elseif KEY:lower() == 's' then
  472.                             CONTROL.B = 0
  473.                         elseif KEY:lower() == 'a' then
  474.                             CONTROL.L = 0
  475.                         elseif KEY:lower() == 'd' then
  476.                             CONTROL.R = 0
  477.                         end
  478.                     end)
  479.                     fly()
  480.                 else
  481.                     flying = false
  482.                     lplayer.Character.Humanoid.PlatformStand = false
  483.                 end
  484.            
  485.             end
  486.         end)
  487.         end
  488. end
  489.  
  490. -- //'Command'\\ --
  491.  
  492. Player.Chatted:Connect(function(Message)
  493.     if Message:sub(1, 6) == Prefix..string.lower("plus ") then
  494.  
  495.         if Message:sub(7) == "true " or Message:sub(7) == "true" or Message:sub(7) == "on" then
  496.             PlayerData:FindFirstChild("PLUS").Value = true
  497.         elseif Message:sub(7) == "false " or Message:sub(7) == "false" or Message:sub(7) == "off" then
  498.             PlayerData:FindFirstChild("PLUS").Value = false
  499.         else
  500.             local success, errormsg = pcall(function()
  501.                 PlayerData:FindFirstChild("PLUS").Value = string.lower(Message:sub(7))
  502.             end)
  503.            
  504.             if not success and errormsg then
  505.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  506.                     Title = "MeepCity Commands";
  507.                     Text = "An error occured while trying to change a property! Please check the developer console (F9).";
  508.                     Duration = 2;
  509.                 })
  510.  
  511.                 TestService:Message("Error that occured details : ")
  512.                 warn(errormsg)
  513.             end
  514.         end
  515.  
  516.         game:GetService("StarterGui"):SetCore("SendNotification",{
  517.             Title = "MeepCity Commands";
  518.             Text = "PLUS is now set to "..tostring(PlayerData:FindFirstChild("PLUS").Value)..".";
  519.             Duration = 2;
  520.         })
  521.  
  522.     elseif Message:sub(1, 9) == Prefix..string.lower("boombox ") then
  523.  
  524.         if Message:sub(10) == "true " or Message:sub(10) == "true" then
  525.             PlayerData:FindFirstChild("BoomBox").Value = true
  526.         elseif Message:sub(10) == "false " or Message:sub(10) == "false" then
  527.             PlayerData:FindFirstChild("BoomBox").Value = false
  528.         else
  529.             local success, errormsg = pcall(function()
  530.                 PlayerData:FindFirstChild("BoomBox").Value = string.lower(Message:sub(10))
  531.             end)
  532.            
  533.             if not success and errormsg then
  534.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  535.                     Title = "MeepCity Commands";
  536.                     Text = "An error occured while trying to change a property! Please check the developer console (F9).";
  537.                     Duration = 2;
  538.                 })
  539.  
  540.                 TestService:Message("Error that occured details : ")
  541.                 warn(errormsg)
  542.             end
  543.         end
  544.  
  545.         game:GetService("StarterGui"):SetCore("SendNotification",{
  546.             Title = "MeepCity Commands";
  547.             Text = "BoomBox is now set to "..tostring(PlayerData:FindFirstChild("BoomBox").Value)..".";
  548.             Duration = 2;
  549.         })
  550.  
  551.     elseif Message:sub(1, 11) == Prefix..string.lower("candypack ") then
  552.  
  553.         if Message:sub(12) == "true " or Message:sub(12) == "true" then
  554.             PlayerData:FindFirstChild("CandyPack").Value = true
  555.         elseif Message:sub(12) == "false " or Message:sub(12) == "false" then
  556.             PlayerData:FindFirstChild("CandyPack").Value = false
  557.         else
  558.             local success, errormsg = pcall(function()
  559.                 PlayerData:FindFirstChild("CandyPack").Value = string.lower(Message:sub(12))
  560.             end)
  561.            
  562.             if not success and errormsg then
  563.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  564.                     Title = "MeepCity Commands";
  565.                     Text = "An error occured while trying to change a property! Please check the developer console (F9).";
  566.                     Duration = 2;
  567.                 })
  568.  
  569.                 TestService:Message("Error that occured details : ")
  570.                 warn(errormsg)
  571.             end
  572.         end
  573.  
  574.         game:GetService("StarterGui"):SetCore("SendNotification",{
  575.             Title = "MeepCity Commands";
  576.             Text = "Candy Pack is now set to "..tostring(PlayerData:FindFirstChild("CandyPack").Value)..".";
  577.             Duration = 2;
  578.         })
  579.  
  580.     elseif Message:sub(1, 8) == Prefix..string.lower("rpname ") then
  581.  
  582.         PlayerData:FindFirstChild("RPName").Value = Message:sub(9)
  583.  
  584.         game:GetService("StarterGui"):SetCore("SendNotification",{
  585.             Title = "MeepCity Commands";
  586.             Text = "Successfully changed the roleplay name!";
  587.             Duration = 2;
  588.         })
  589.  
  590.     elseif Message:sub(1, 11) == Prefix..string.lower("walkspeed ") then
  591.  
  592.         Humanoid.WalkSpeed = tonumber(Message:sub(12))
  593.  
  594.         game:GetService("StarterGui"):SetCore("SendNotification",{
  595.             Title = "MeepCity Commands";
  596.             Text = "Successfully changed WalkSpeed to "..tostring(Message:sub(12)).."!";
  597.             Duration = 2;
  598.         })
  599.    
  600.     elseif Message:sub(1, 11) == Prefix..string.lower("jumppower ") then
  601.  
  602.         Humanoid.JumpPower = tonumber(Message:sub(12))
  603.  
  604.         game:GetService("StarterGui"):SetCore("SendNotification",{
  605.             Title = "MeepCity Commands";
  606.             Text = "Successfully changed JumpPower to "..tostring(Message:sub(12)).."!";
  607.             Duration = 2;
  608.         })
  609.  
  610.     elseif Message:sub(1, 4) == Prefix..string.lower("ws ") then
  611.  
  612.         Humanoid.WalkSpeed = tonumber(Message:sub(5))
  613.  
  614.         game:GetService("StarterGui"):SetCore("SendNotification",{
  615.             Title = "MeepCity Commands";
  616.             Text = "Successfully changed WalkSpeed to "..tostring(Message:sub(5)).."!";
  617.             Duration = 2;
  618.         })
  619.    
  620.     elseif Message:sub(1, 4) == Prefix..string.lower("jp ") then
  621.  
  622.         Humanoid.JumpPower = tonumber(Message:sub(5))
  623.  
  624.         game:GetService("StarterGui"):SetCore("SendNotification",{
  625.             Title = "MeepCity Commands";
  626.             Text = "Successfully changed JumpPower to "..tostring(Message:sub(5)).."!";
  627.             Duration = 2;
  628.         })
  629.  
  630.     elseif Message:sub(1, 5) == Prefix..string.lower("fov ") then
  631.  
  632.         Camera.FieldOfView = tonumber(Message:sub(6))
  633.  
  634.         game:GetService("StarterGui"):SetCore("SendNotification",{
  635.             Title = "MeepCity Commands";
  636.             Text = "Successfully changed FieldOfView to "..tostring(Message:sub(6)).."!";
  637.             Duration = 2;
  638.         })
  639.  
  640.     elseif Message:sub(1, 10) == Prefix..string.lower("teleport ") then
  641.  
  642.         for i, v in pairs(GetPlayer(Message:sub(11))) do
  643.             if workspace:FindFirstChild(v.Name) and workspace[v.Name]:FindFirstChild("HumanoidRootPart") then
  644.                 HumanoidRootPart.CFrame = workspace[v.Name]:FindFirstChild("HumanoidRootPart").CFrame
  645.  
  646.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  647.                     Title = "MeepCity Commands";
  648.                     Text = "Successfully teleported to "..v.Name.."!";
  649.                     Duration = 2;
  650.                 })
  651.             else
  652.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  653.                     Title = "MeepCity Commands";
  654.                     Text = "Couldn't find any players named "..v.Name.."!";
  655.                     Duration = 2;
  656.                 })
  657.             end
  658.         end
  659.  
  660.     elseif Message:sub(1, 4) == Prefix..string.lower("tp ") then
  661.  
  662.         for i, v in pairs(GetPlayer(Message:sub(5))) do
  663.             if workspace:FindFirstChild(v.Name) and workspace[v.Name]:FindFirstChild("HumanoidRootPart") then
  664.                 HumanoidRootPart.CFrame = workspace[v.Name]:FindFirstChild("HumanoidRootPart").CFrame
  665.  
  666.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  667.                     Title = "MeepCity Commands";
  668.                     Text = "Successfully teleported to "..v.Name.."!";
  669.                     Duration = 2;
  670.                 })
  671.             else
  672.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  673.                     Title = "MeepCity Commands";
  674.                     Text = "Couldn't find any players named "..v.Name.."!";
  675.                     Duration = 2;
  676.                 })
  677.             end
  678.         end
  679.    
  680.     elseif Message:sub(1, 9) == Prefix..string.lower("effects ") then
  681.  
  682.         if Message:sub(10) == "true " or Message:sub(10) == "true" or Message:sub(10) == "on" then
  683.             for i, v in pairs(Lighting:GetChildren()) do
  684.                 if v.ClassName == "SunRaysEffect" then
  685.                     v.Enabled = true
  686.                 elseif v.ClassName == "ColorCorrectionEffect" and v.Name == "ColorCorrection" then
  687.                     v.Enabled = true
  688.                 end
  689.             end
  690.         elseif Message:sub(10) == "false " or Message:sub(10) == "false" or Message:sub(10) == "off" then
  691.             for i, v in pairs(Lighting:GetChildren()) do
  692.                 if v.ClassName == "SunRaysEffect" then
  693.                     v.Enabled = false
  694.                 elseif v.ClassName == "ColorCorrectionEffect" and v.Name == "ColorCorrection" then
  695.                     v.Enabled = false
  696.                 end
  697.             end
  698.         else
  699.             local success, errormsg = pcall(function()
  700.                 for i, v in pairs(Lighting:GetChildren()) do
  701.                     if v.ClassName == "SunRaysEffect" then
  702.                         v.Enabled = string.lower(Message:sub(9))
  703.                     elseif v.ClassName == "ColorCorrectionEffect" and v.Name == "ColorCorrection" then
  704.                         v.Enabled = string.lower(Message:sub(9))
  705.                     end
  706.                 end
  707.             end)
  708.            
  709.             if not success and errormsg then
  710.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  711.                     Title = "MeepCity Commands";
  712.                     Text = "An error occured while trying to change a property! Please check the developer console (F9).";
  713.                     Duration = 2;
  714.                 })
  715.  
  716.                 TestService:Message("Error that occured details : ")
  717.                 warn(errormsg)
  718.             end
  719.         end
  720.  
  721.     elseif Message:sub(1, 8) == Prefix..string.lower("sprint ") then
  722.  
  723.         if Message:sub(9) == "true" or Message:sub(9) == "true " or Message:sub(9) == "on" then
  724.             Sprinting_Enabled = true
  725.             EnableSprint()
  726.         elseif Message:sub(9) == "false" or Message:sub(9) == "false " or Message:sub(9) == "off" then
  727.             Sprinting_Enabled = false
  728.             EnableSprint()
  729.         end
  730.  
  731.         game:GetService("StarterGui"):SetCore("SendNotification",{
  732.             Title = "MeepCity Commands";
  733.             Text = "Sprinting is now set to "..tostring(Sprinting_Enabled)..".";
  734.             Duration = 2;
  735.         })
  736.  
  737.     elseif Message:sub(1, 9) == Prefix..string.lower("clicktp ") then
  738.  
  739.         if Message:sub(10) == "true" or Message:sub(10) == "true " or Message:sub(10) == "on" then
  740.             ClickTp_Enabled = true
  741.             EnableClickTp()
  742.         elseif Message:sub(10) == "false" or Message:sub(10) == "false " or Message:sub(10) == "off" then
  743.             ClickTp_Enabled = false
  744.             EnableClickTp()
  745.         end
  746.  
  747.         game:GetService("StarterGui"):SetCore("SendNotification",{
  748.             Title = "MeepCity Commands";
  749.             Text = "Click Teleport is now set to "..tostring(ClickTp_Enabled)..".";
  750.             Duration = 2;
  751.         })
  752.  
  753.     elseif Message:sub(1, 14) == Prefix..string.lower("timechanging ") then
  754.  
  755.         if Message:sub(15) == "true" or Message:sub(15) == "true " or Message:sub(15) == "on" then
  756.             TimeChanging_Enabled = true
  757.             EnableTimeChanging()
  758.         elseif Message:sub(15) == "false" or Message:sub(15) == "false " or Message:sub(15) == "off" then
  759.             TimeChanging_Enabled = false
  760.             EnableTimeChanging()
  761.         end
  762.  
  763.         game:GetService("StarterGui"):SetCore("SendNotification",{
  764.             Title = "MeepCity Commands";
  765.             Text = "Time Changing is now set to "..tostring(TimeChanging_Enabled)..".";
  766.             Duration = 2;
  767.         })
  768.  
  769.     elseif Message:sub(1, 5) == Prefix..string.lower("fly ") then
  770.  
  771.         if Message:sub(6) == "true " or Message:sub(6) == "true" or Message:sub(6) == "on" then
  772.             Flying_Enabled = true
  773.             EnableFlying()
  774.  
  775.             game:GetService("StarterGui"):SetCore("SendNotification",{
  776.                 Title = "MeepCity Commands";
  777.                 Text = "Flying is now set to "..tostring(Flying_Enabled)..".";
  778.                 Duration = 2;
  779.             })
  780.         elseif Message:sub(6) == "false " or Message:sub(6) == "false" or Message:sub(6) == "off" then
  781.             Flying_Enabled = false
  782.             EnableFlying()
  783.  
  784.             game:GetService("StarterGui"):SetCore("SendNotification",{
  785.                 Title = "MeepCity Commands";
  786.                 Text = "Flying is now set to "..tostring(Flying_Enabled)..".";
  787.                 Duration = 2;
  788.             })
  789.         else
  790.             local success, errormsg = pcall(function()
  791.                 Flying_Enabled = string.lower(Message:sub(6))
  792.                 EnableFlying()
  793.             end)
  794.            
  795.             if not success and errormsg then
  796.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  797.                     Title = "MeepCity Commands";
  798.                     Text = "An error occured while trying to enable flying! Please check the developer console (F9).";
  799.                     Duration = 2;
  800.                 })
  801.  
  802.                 TestService:Message("Error that occured details : ")
  803.                 warn(errormsg)
  804.             end
  805.         end
  806.  
  807.     elseif Message:sub(1, 14) == Prefix..string.lower("infinitejump ") then
  808.  
  809.         if Message:sub(15) == "true " or Message:sub(15) == "true" or Message:sub(15) == "on" then
  810.             InfiniteJump_Enabled = true
  811.             EnableInfiniteJump()
  812.  
  813.             game:GetService("StarterGui"):SetCore("SendNotification",{
  814.                 Title = "MeepCity Commands";
  815.                 Text = "Infinite Jumping is now set to "..tostring(InfiniteJump_Enabled)..".";
  816.                 Duration = 2;
  817.             })
  818.         elseif Message:sub(15) == "false " or Message:sub(15) == "false" or Message:sub(15) == "off" then
  819.             InfiniteJump_Enabled = false
  820.             EnableInfiniteJump()
  821.  
  822.             game:GetService("StarterGui"):SetCore("SendNotification",{
  823.                 Title = "MeepCity Commands";
  824.                 Text = "Infinite Jumping is now set to "..tostring(InfiniteJump_Enabled)..".";
  825.                 Duration = 2;
  826.             })
  827.         else
  828.             local success, errormsg = pcall(function()
  829.                 InfiniteJump_Enabled = string.lower(Message:sub(15))
  830.                 EnableInfiniteJump()
  831.             end)
  832.            
  833.             if not success and errormsg then
  834.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  835.                     Title = "MeepCity Commands";
  836.                     Text = "An error occured while trying to enable infinite jumping! Please check the developer console (F9).";
  837.                     Duration = 2;
  838.                 })
  839.  
  840.                 TestService:Message("Error that occured details : ")
  841.                 warn(errormsg)
  842.             end
  843.         end
  844.  
  845.     elseif Message:sub(1, 9) == Prefix..string.lower("infjump ") then
  846.  
  847.         if Message:sub(10) == "true " or Message:sub(10) == "true" or Message:sub(10) == "on" then
  848.             InfiniteJump_Enabled = true
  849.             EnableInfiniteJump()
  850.  
  851.             game:GetService("StarterGui"):SetCore("SendNotification",{
  852.                 Title = "MeepCity Commands";
  853.                 Text = "Infinite Jumping is now set to "..tostring(InfiniteJump_Enabled)..".";
  854.                 Duration = 2;
  855.             })
  856.         elseif Message:sub(10) == "false " or Message:sub(10) == "false" or Message:sub(10) == "off" then
  857.             InfiniteJump_Enabled = false
  858.             EnableInfiniteJump()
  859.  
  860.             game:GetService("StarterGui"):SetCore("SendNotification",{
  861.                 Title = "MeepCity Commands";
  862.                 Text = "Infinite Jumping is now set to "..tostring(InfiniteJump_Enabled)..".";
  863.                 Duration = 2;
  864.             })
  865.         else
  866.             local success, errormsg = pcall(function()
  867.                 InfiniteJump_Enabled = string.lower(Message:sub(10))
  868.                 EnableInfiniteJump()
  869.             end)
  870.            
  871.             if not success and errormsg then
  872.                 game:GetService("StarterGui"):SetCore("SendNotification",{
  873.                     Title = "MeepCity Commands";
  874.                     Text = "An error occured while trying to enable infinite jumping! Please check the developer console (F9).";
  875.                     Duration = 2;
  876.                 })
  877.  
  878.                 TestService:Message("Error that occured details : ")
  879.                 warn(errormsg)
  880.             end
  881.         end
  882.  
  883.     elseif Message:sub(1, 8) == Prefix..string.lower("prefix ") then
  884.  
  885.         if string.len(Message) > 9 then
  886.             game:GetService("StarterGui"):SetCore("SendNotification",{
  887.                 Title = "MeepCity Commands";
  888.                 Text = "The prefix is not 1 character long. Didn't set prefix to anything.";
  889.                 Duration = 2;
  890.             })
  891.  
  892.             return nil
  893.         else
  894.             Prefix = Message:sub(9, 9)
  895.  
  896.             game:GetService("StarterGui"):SetCore("SendNotification",{
  897.                 Title = "MeepCity Commands";
  898.                 Text = "Prefix successfully changed! The current prefix is "..Prefix..".";
  899.                 Duration = 2;
  900.             })
  901.         end
  902.  
  903.     elseif Message:sub(1, 7) == Prefix..string.lower("btools") then
  904.  
  905.         loadstring(game:HttpGet("https://pastebin.com/raw/XLDQt4UB", true))()
  906.  
  907.         game:GetService("StarterGui"):SetCore("SendNotification",{
  908.             Title = "MeepCity Commands";
  909.             Text = "Successfully acquired building tools!";
  910.             Duration = 2;
  911.         })
  912.  
  913.     elseif Message:sub(1, 5) == Prefix..string.lower("cmds") then
  914.  
  915.         PrintCommands()
  916.  
  917.         game:GetService("StarterGui"):SetCore("SendNotification",{
  918.             Title = "MeepCity Commands";
  919.             Text = "Check developer console ouptut for commands (Press F9).";
  920.             Duration = 2;
  921.         })
  922.  
  923.     elseif Message:sub(1, 7) == Prefix..string.lower("rejoin") then
  924.  
  925.         game:GetService("StarterGui"):SetCore("SendNotification",{
  926.             Title = "MeepCity Commands";
  927.             Text = "Re-joining game...";
  928.             Duration = math.huge;
  929.         })
  930.  
  931.         TeleportService:Teleport(game.PlaceId, Player)
  932.  
  933.     end
  934. end)
  935.  
  936. -- //'Loaded Notification'\\ --
  937.  
  938.     if not success and glitch then
  939.  
  940.         game:GetService("StarterGui"):SetCore("SendNotification",{
  941.             Title = "Ubicast Developer";
  942.             Text = "MeepCity Commands has errored, please contact Ubicast on Discord at Aleksandar#2880 with the error that you faced, press F9 to see the error message!";
  943.             Duration = math.huge;
  944.             Button1 = "OK";
  945.         })
  946.  
  947.         TestService:Message("Code has errored, please contact Ubicast on discord at Aleksandar#2880 with the following message :")
  948.         warn(glitch)
  949.  
  950.     elseif string.len(Prefix) ~= 1 then
  951.  
  952.         game:GetService("StarterGui"):SetCore("SendNotification",{
  953.             Title = "Ubicast Developer";
  954.             Text = "MeepCity Commands will error, please try using a prefix that is long 1 character!";
  955.             Duration = math.huge;
  956.             Button1 = "OK";
  957.         })
  958.  
  959.         return nil
  960.  
  961.     else
  962.  
  963.         game:GetService("StarterGui"):SetCore("SendNotification",{
  964.             Title = "Ubicast Developer";
  965.             Text = "MeepCity Commands have successfully loaded!";
  966.             Duration = math.huge;
  967.             Button1 = "OK";
  968.         })
  969.  
  970.         TestService:Message("Successfully loaded MeepCity Commands! - Ubicast 2020")
  971.  
  972.     end
  973.  
  974. end)
  975.  
  976. else
  977.  
  978.     game:GetService("StarterGui"):SetCore("SendNotification",{
  979.         Title = "Ubicast Developer";
  980.         Text = "This game is not MeepCity, Cancelled execution.";
  981.         Duration = math.huge;
  982.         Button1 = "OK";
  983.     })
  984.  
  985.     return nil
  986.  
  987. end
Add Comment
Please, Sign In to add comment