Advertisement
dkg_yt

RPapi | make cool scripts for redwood prison

Sep 8th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.48 KB | None | 0 0
  1. --[[
  2. how to use:
  3.  
  4. local RPapi = loadstring(game:HttpGet(('https://pastebin.com/raw/jhP0puKA'),true))()
  5.  
  6. then enjoy!
  7.  
  8. ]]
  9.  
  10. local RPapi = {}
  11.  
  12. function RPapi.killAll()
  13. for _, v in pairs(game.Players:GetChildren()) do
  14. game.Workspace.resources.RemoteEvent:FireServer("dealDamage", v.Character.Humanoid, 100)
  15. end
  16. end
  17.  
  18. function RPapi.cuffAll()
  19. for _, v in pairs(game.Players:GetChildren()) do
  20. game.Workspace.resources.RemoteEvent:FireServer("cuff", v)
  21. end
  22. end
  23.  
  24. function RPapi.tazeAll()
  25. for _, v in pairs(game.Players:GetChildren()) do
  26. game.Workspace.resources.RemoteEvent:FireServer("tase", v)
  27. end
  28. end
  29.  
  30. function RPapi.deathtoamerica()
  31. print([[
  32.    
  33.    
  34.    
  35.    
  36.                 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@              
  37.            @@@@@                            @@@@@          
  38.        @@@@                                      @@@      
  39.      @@                                             @@@    
  40.    @@                                                 @@  
  41.  @@@                                                    @@
  42.  @@                                                     @@@
  43. @@                             @              @@@@       @@
  44. @                @@@@           @@         @@@@           @
  45. @         @@   @@@                @@    @@@@              @
  46. @           @@@                    @@ @@@                 @
  47. @@        @@@@@@                   @@@@                  @@
  48. @@       @@    @@                @@@  @@                 @@
  49.  @@     @        @@            @@@     @@               @@
  50.  @@                           @@        @@@            @@  
  51.   @@                                     @@@          @@  
  52.    @@                   @@                @@@        @@    
  53.      @@               @@ @@                        @@@    
  54.       @@@@                @                      @@@      
  55.          @@@@@@@@                  @@@@      @@@@          
  56.                @     @@            @@  @@@@@@              
  57.               @@    @@@     @@     @@                      
  58.                @@@@@ @@    @@@     @@                      
  59.                        @@@@  @@  @@@       
  60.    
  61.    
  62. ______           _   _       _____        ___                      _          
  63. |  _  \         | | | |     |_   _|      / _ \                    (_)          
  64. | | | |___  __ _| |_| |__     | | ___   / /_\ \_ __ ___   ___ _ __ _  ___ __ _
  65. | | | / _ \/ _` | __| '_ \    | |/ _ \  |  _  | '_ ` _ \ / _ \ '__| |/ __/ _` |
  66. | |/ /  __/ (_| | |_| | | |   | | (_) | | | | | | | | | |  __/ |  | | (_| (_| |
  67. |___/ \___|\__,_|\__|_| |_|   \_/\___/  \_| |_/_| |_| |_|\___|_|  |_|\___\__,_|
  68.                                                                              
  69.                                                                              
  70.  
  71.  __                            _                 _   _         __  
  72. / /                           (_)               | | | |        \ \
  73. | |_ __   ___    _ __ __ _  ___ _ ___ _ __ ___   | |_| |__   ___ | |
  74. | | '_ \ / _ \  | '__/ _` |/ __| / __| '_ ` _ \  | __| '_ \ / _ \| |
  75. | | | | | (_) | | | | (_| | (__| \__ \ | | | | | | |_| | | | (_) | |
  76. | |_| |_|\___/  |_|  \__,_|\___|_|___/_| |_| |_|  \__|_| |_|\___/| |
  77. \_\                                                            /_/
  78.                                                                    
  79.  
  80.    
  81. ]])
  82. end
  83.  
  84. function RPapi.SmallNotice(text)
  85. workspace.resources.RemoteEvent:FireServer("FireAllClients", "smallNotice", text, true)
  86. end
  87.  
  88. function RPapi.BigNotice(title, text)
  89. workspace.resources.RemoteEvent:FireServer("FireAllClients", "showNotice", title, text)
  90. end
  91.  
  92. function RPapi.SendNot(title,text)
  93. game.StarterGui:SetCore("SendNotification", {
  94.        Title = title,
  95.        Text = text,
  96.        Duration = 1
  97. }) 
  98. end
  99.  
  100. function RPapi.GiveGamepasses()
  101.         workspace.resources.RemoteFunction:InvokeServer("setDataValue", "hasSwat", true)
  102.         workspace.resources.RemoteFunction:InvokeServer("setDataValue", "hasSpecOps", true)
  103.         workspace.resources.RemoteFunction:InvokeServer("setDataValue", "hasMerc", true)
  104.         workspace.resources.RemoteFunction:InvokeServer("setDataValue", "hasPilot", true)
  105.         workspace.resources.RemoteFunction:InvokeServer("setDataValue", "hasAtv", true)
  106. end
  107.  
  108. function RPapi.SetData(gamepass)
  109. workspace.resources.RemoteFunction:InvokeServer("setDataValue", gamepass, true)    
  110. end
  111.  
  112. function RPapi.SetWalkSpeed(number)
  113. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = number 
  114. end
  115.  
  116. function RPapi.SetJumpPower(number)
  117. game.Players.LocalPlayer.Character.Humanoid.JumpPower = number 
  118. end
  119.  
  120. return RPapi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement