KashTheKingYT

Retrieve Codes Script

Feb 28th, 2021
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.43 KB | None | 0 0
  1. local codes = {
  2.     "Kash",
  3.     "Ben",
  4.     "Robbie",
  5.     "Reset",
  6.     "Toby",
  7.     "McOofy"
  8. }
  9.  
  10. local vip = {
  11.     "ITrumposI",
  12.     "Benlovesironman",
  13.     "KashTheKingYT",
  14.     "TobyIsSoCute2020"
  15. }
  16.  
  17. local RobbieId = 1906238425
  18. local KashId = 165583370
  19. local BenId = 95370110
  20. local TobyId = 1445138080
  21.  
  22. game.ReplicatedStorage.SubmitCode.OnServerInvoke = function(player, code)
  23.     if code == codes[1] then
  24.         local boom = Instance.new("Explosion", game.Workspace)
  25.         boom.Position = player.Character.HumanoidRootPart.Position
  26.     elseif code == codes[2] then
  27.         local boombox = game.ServerStorage.Boombox:Clone()
  28.         boombox.Parent = player.Backpack
  29.     elseif code == codes[3] then
  30.         local oof = game.ServerStorage.OOF:Clone()
  31.         oof.Parent = player.PlayerGui.Codes
  32.         oof:Play()
  33.         wait(oof.TimeLength)
  34.         oof:Destroy()
  35.     elseif code == codes[4] then
  36.         player:LoadCharacter()
  37.     elseif code == codes[5] then
  38.         local msg = game.ServerStorage.msg:Clone()
  39.         msg.Parent = player.PlayerGui
  40.         wait(5)
  41.         msg:Destroy()
  42.     elseif code == codes[6] then do
  43.         if player.UserId == RobbieId or KashId or BenId or TobyId then
  44.             local char = game.ServerStorage.Morphs.ITrumposI:Clone()
  45.             char.Parent = game.Workspace
  46.             char.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
  47.             player.Character = char
  48.             game.ReplicatedStorage.Morph:FireClient(player, char.Humanoid)
  49.             elseif player.UserId ~= RobbieId then
  50.                 print("You aren't Robbie lol")
  51.             end
  52.         end
  53.     end
  54. end
Advertisement
Add Comment
Please, Sign In to add comment