Facebook
From bashar, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 335
  1. function GetPlayer(String)
  2.    local Found = {}
  3.    local strl = String:lower()
  4.        for i,v in pairs(game.Players:GetPlayers()) do
  5.            if v.Name:lower():sub(1, #String) == String:lower() then
  6.                table.insert(Found,v.Name)
  7.            end
  8.        end    
  9.    return Found    
  10. end
  11. local PrisonRuinerGui = Instance.new("ScreenGui")
  12. local Frame = Instance.new("Frame")
  13. local TextLabel = Instance.new("TextLabel")
  14. local Kill = Instance.new("TextButton")
  15. local Merge = Instance.new("TextButton")
  16. local Kick = Instance.new("TextButton")
  17. local KillAll = Instance.new("TextButton")
  18. local Sword = Instance.new("TextButton")
  19. local Player = Instance.new("TextBox")
  20. local TextLabel_2 = Instance.new("TextLabel")
  21. local Line = Instance.new("TextLabel")
  22. local Spectate = Instance.new("TextButton")
  23. local Goto = Instance.new("TextButton")
  24. local Unspectate = Instance.new("TextButton")
  25. PrisonRuinerGui.Name = "Prison Ruiner Gui"
  26. PrisonRuinerGui.Parent = game.CoreGui
  27. PrisonRuinerGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28. Frame.Active = true
  29. Frame.Draggable = true
  30. Frame.Parent = PrisonRuinerGui
  31. Frame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  32. Frame.BorderColor3 = Color3.new(0, 0, 0)
  33. Frame.BorderSizePixel = 0
  34. Frame.Position = UDim2.new(0.0496657118, 0, 0.473186165, 0)
  35. Frame.Size = UDim2.new(0, 337, 0, 319)
  36. TextLabel.Parent = Frame
  37. TextLabel.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  38. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  39. TextLabel.BorderSizePixel = 0
  40. TextLabel.Size = UDim2.new(0, 337, 0, 42)
  41. TextLabel.Font = Enum.Font.Cartoon
  42. TextLabel.Text = "Prison Ruiner Gui"
  43. TextLabel.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  44. TextLabel.TextScaled = true
  45. TextLabel.TextSize = 14
  46. TextLabel.TextWrapped = true
  47. Kill.Name = "Kill"
  48. Kill.Parent = Frame
  49. Kill.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  50. Kill.BorderColor3 = Color3.new(0, 0, 0)
  51. Kill.BorderSizePixel = 0
  52. Kill.Position = UDim2.new(0.0579999983, 0, 0.173843265, 0)
  53. Kill.Size = UDim2.new(0, 131, 0, 33)
  54. Kill.Font = Enum.Font.Cartoon
  55. Kill.Text = "Kill"
  56. Kill.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  57. Kill.TextScaled = true
  58. Kill.TextSize = 14
  59. Kill.TextWrapped = true
  60. Merge.Name = "Merge"
  61. Merge.Parent = Frame
  62. Merge.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  63. Merge.BorderColor3 = Color3.new(0, 0, 0)
  64. Merge.BorderSizePixel = 0
  65. Merge.Position = UDim2.new(0.550999999, 0, 0.173131928, 0)
  66. Merge.Size = UDim2.new(0, 131, 0, 33)
  67. Merge.Font = Enum.Font.Cartoon
  68. Merge.Text = "Merge"
  69. Merge.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  70. Merge.TextScaled = true
  71. Merge.TextSize = 14
  72. Merge.TextWrapped = true
  73. Kick.Name = "Kick"
  74. Kick.Parent = Frame
  75. Kick.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  76. Kick.BorderColor3 = Color3.new(0, 0, 0)
  77. Kick.BorderSizePixel = 0
  78. Kick.Position = UDim2.new(0.0579999983, 0, 0.300999999, 0)
  79. Kick.Size = UDim2.new(0, 131, 0, 33)
  80. Kick.Font = Enum.Font.Cartoon
  81. Kick.Text = "Kick"
  82. Kick.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  83. Kick.TextScaled = true
  84. Kick.TextSize = 14
  85. Kick.TextWrapped = true
  86. KillAll.Name = "Kill All"
  87. KillAll.Parent = Frame
  88. KillAll.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  89. KillAll.BorderColor3 = Color3.new(0, 0, 0)
  90. KillAll.BorderSizePixel = 0
  91. KillAll.Position = UDim2.new(0.550999999, 0, 0.302032351, 0)
  92. KillAll.Size = UDim2.new(0, 131, 0, 33)
  93. KillAll.Font = Enum.Font.Cartoon
  94. KillAll.Text = "Kill All"
  95. KillAll.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  96. KillAll.TextScaled = true
  97. KillAll.TextSize = 14
  98. KillAll.TextWrapped = true
  99. Sword.Name = "Sword"
  100. Sword.Parent = Frame
  101. Sword.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  102. Sword.BorderColor3 = Color3.new(0, 0, 0)
  103. Sword.BorderSizePixel = 0
  104. Sword.Position = UDim2.new(0.0579999685, 0, 0.855558157, 0)
  105. Sword.Size = UDim2.new(0, 131, 0, 33)
  106. Sword.Font = Enum.Font.Cartoon
  107. Sword.Text = "Sword"
  108. Sword.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  109. Sword.TextScaled = true
  110. Sword.TextSize = 14
  111. Sword.TextWrapped = true
  112. Player.Name = "Player"
  113. Player.Parent = Frame
  114. Player.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  115. Player.BorderColor3 = Color3.new(0, 0, 0)
  116. Player.BorderSizePixel = 0
  117. Player.Position = UDim2.new(0.202000022, 0, 0.609539211, 0)
  118. Player.Size = UDim2.new(0, 200, 0, 33)
  119. Player.Font = Enum.Font.Cartoon
  120. Player.PlaceholderColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  121. Player.PlaceholderText = "Player"
  122. Player.Text = ""
  123. Player.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  124. Player.TextScaled = true
  125. Player.TextSize = 14
  126. Player.TextWrapped = true
  127. TextLabel_2.Parent = Frame
  128. TextLabel_2.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  129. TextLabel_2.BorderColor3 = Color3.new(0, 0, 0)
  130. TextLabel_2.BorderSizePixel = 0
  131. TextLabel_2.Position = UDim2.new(0.855000019, 0, 0.654999971, 0)
  132. TextLabel_2.Size = UDim2.new(0, 49, 0, 40)
  133. TextLabel_2.Font = Enum.Font.Cartoon
  134. TextLabel_2.Text = "Gui by Uctron"
  135. TextLabel_2.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  136. TextLabel_2.TextScaled = true
  137. TextLabel_2.TextSize = 14
  138. TextLabel_2.TextWrapped = true
  139. Line.Name = "Line"
  140. Line.Parent = Frame
  141. Line.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  142. Line.BorderColor3 = Color3.new(0, 0, 0)
  143. Line.BorderSizePixel = 0
  144. Line.Position = UDim2.new(0, 0, 0.78076911, 0)
  145. Line.Size = UDim2.new(0, 337, 0, 10)
  146. Line.Font = Enum.Font.Cartoon
  147. Line.Text = ""
  148. Line.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  149. Line.TextScaled = true
  150. Line.TextSize = 14
  151. Line.TextWrapped = true
  152. Spectate.Name = "Spectate"
  153. Spectate.Parent = Frame
  154. Spectate.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  155. Spectate.BorderColor3 = Color3.new(0, 0, 0)
  156. Spectate.BorderSizePixel = 0
  157. Spectate.Position = UDim2.new(0.0579999983, 0, 0.42899999, 0)
  158. Spectate.Size = UDim2.new(0, 131, 0, 33)
  159. Spectate.Font = Enum.Font.Cartoon
  160. Spectate.Text = "Spectate"
  161. Spectate.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  162. Spectate.TextScaled = true
  163. Spectate.TextSize = 14
  164. Spectate.TextWrapped = true
  165. Goto.Name = "Goto"
  166. Goto.Parent = Frame
  167. Goto.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  168. Goto.BorderColor3 = Color3.new(0, 0, 0)
  169. Goto.BorderSizePixel = 0
  170. Goto.Position = UDim2.new(0.551999986, 0, 0.430999994, 0)
  171. Goto.Size = UDim2.new(0, 131, 0, 33)
  172. Goto.Font = Enum.Font.Cartoon
  173. Goto.Text = "Goto"
  174. Goto.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  175. Goto.TextScaled = true
  176. Goto.TextSize = 14
  177. Goto.TextWrapped = true
  178. Unspectate.Name = "Unspectate"
  179. Unspectate.Parent = Frame
  180. Unspectate.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  181. Unspectate.BorderColor3 = Color3.new(0, 0, 0)
  182. Unspectate.BorderSizePixel = 0
  183. Unspectate.Position = UDim2.new(0.550581574, 0, 0.855558157, 0)
  184. Unspectate.Size = UDim2.new(0, 131, 0, 33)
  185. Unspectate.Font = Enum.Font.Cartoon
  186. Unspectate.Text = "Unspectate"
  187. Unspectate.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  188. Unspectate.TextScaled = true
  189. Unspectate.TextSize = 14
  190. Unspectate.TextWrapped = true
  191.  
  192. Kill.MouseButton1Click:Connect(function()
  193. local savedteam = game.Players.LocalPlayer.TeamColor.Name
  194. workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  195. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)    
  196. for i,v in pairs(GetPlayer(Player.Text)) do
  197. local A_1 = {[1] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-391.152252, 8.65560055, -83.2166901)), ["Distance"] = 3.2524313926697, ["Cframe"] = CFrame.new(840.310791, 101.334137, 2267.87988, 0.0636406094, 0.151434347, -0.986416459, 0, 0.988420188, 0.151741937, 0.997972965, -0.00965694897, 0.0629036576), ["Hit"] = game.Players[v].Character.Head}, [2] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-392.481476, -8.44939327, -76.7261353)), ["Distance"] = 3.2699294090271, ["Cframe"] = CFrame.new(840.290466, 101.184189, 2267.93506, 0.0964837447, 0.0589403138, -0.993587971, 4.65661287e-10, 0.998245299, 0.0592165813, 0.995334625, -0.00571343815, 0.0963144377), ["Hit"] = game.Players[v].Character.Head}, [3] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-389.21701, -2.50536323, -92.2163162)), ["Distance"] = 3.1665518283844, ["Cframe"] = CFrame.new(840.338867, 101.236496, 2267.80371, 0.0166504811, 0.0941716284, -0.995416701, 1.16415322e-10, 0.995554805, 0.0941846818, 0.999861419, -0.00156822044, 0.0165764652), ["Hit"] = game.Players[v].Character.Head}, [4] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-393.353973, 3.13988972, -72.5452042)), ["Distance"] = 3.3218522071838, ["Cframe"] = CFrame.new(840.277222, 101.285957, 2267.9707, 0.117109694, 0.118740402, -0.985994935, -1.86264515e-09, 0.992826641, 0.119563118, 0.993119001, -0.0140019981, 0.116269611), ["Hit"] = game.Players[v].Character.Head}, [5] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-390.73172, 3.2097764, -85.5477524)), ["Distance"] = 3.222757101059, ["Cframe"] = CFrame.new(840.317993, 101.286423, 2267.86035, 0.0517584644, 0.123365127, -0.991010666, 0, 0.992340803, 0.123530701, 0.99865967, -0.00639375951, 0.0513620302), ["Hit"] = game.Players[v].Character.Head}}
  198. local A_2 = game.Players.LocalPlayer.Backpack["Remington 870"]
  199. local Event = game:GetService("ReplicatedStorage").ShootEvent
  200. Event:FireServer(A_1, A_2)
  201. Event:FireServer(A_1, A_2)
  202. end
  203. workspace.Remote.TeamEvent:FireServer(savedteam)
  204. end)
  205.  
  206. KillAll.MouseButton1Click:Connect(function()
  207. local savedteam = game.Players.LocalPlayer.TeamColor.Name
  208. workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  209. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)    
  210. for i,v in pairs(game.Players:GetPlayers()) do
  211. local A_1 = {[1] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-391.152252, 8.65560055, -83.2166901)), ["Distance"] = 3.2524313926697, ["Cframe"] = CFrame.new(840.310791, 101.334137, 2267.87988, 0.0636406094, 0.151434347, -0.986416459, 0, 0.988420188, 0.151741937, 0.997972965, -0.00965694897, 0.0629036576), ["Hit"] = v.Character.Head}, [2] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-392.481476, -8.44939327, -76.7261353)), ["Distance"] = 3.2699294090271, ["Cframe"] = CFrame.new(840.290466, 101.184189, 2267.93506, 0.0964837447, 0.0589403138, -0.993587971, 4.65661287e-10, 0.998245299, 0.0592165813, 0.995334625, -0.00571343815, 0.0963144377), ["Hit"] = v.Character.Head}, [3] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-389.21701, -2.50536323, -92.2163162)), ["Distance"] = 3.1665518283844, ["Cframe"] = CFrame.new(840.338867, 101.236496, 2267.80371, 0.0166504811, 0.0941716284, -0.995416701, 1.16415322e-10, 0.995554805, 0.0941846818, 0.999861419, -0.00156822044, 0.0165764652), ["Hit"] = v.Character.Head}, [4] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-393.353973, 3.13988972, -72.5452042)), ["Distance"] = 3.3218522071838, ["Cframe"] = CFrame.new(840.277222, 101.285957, 2267.9707, 0.117109694, 0.118740402, -0.985994935, -1.86264515e-09, 0.992826641, 0.119563118, 0.993119001, -0.0140019981, 0.116269611), ["Hit"] = v.Character.Head}, [5] = {["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-390.73172, 3.2097764, -85.5477524)), ["Distance"] = 3.222757101059, ["Cframe"] = CFrame.new(840.317993, 101.286423, 2267.86035, 0.0517584644, 0.123365127, -0.991010666, 0, 0.992340803, 0.123530701, 0.99865967, -0.00639375951, 0.0513620302), ["Hit"] = v.Character.Head}}
  212. local A_2 = game.Players.LocalPlayer.Backpack["Remington 870"]
  213. local Event = game:GetService("ReplicatedStorage").ShootEvent
  214. Event:FireServer(A_1, A_2)
  215. Event:FireServer(A_1, A_2)
  216. end
  217. game.Players.LocalPlayer.Character:BreakJoints()
  218. workspace.Remote.TeamEvent:FireServer(savedteam)
  219. end)
  220.  
  221. Merge.MouseButton1Click:Connect(function()
  222. for i,v in pairs(GetPlayer(Player.Text)) do
  223. repeat
  224. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v].Character.HumanoidRootPart.CFrame
  225. game:GetService("RunService").Heartbeat:Wait()
  226. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  227. end
  228. end)
  229.  
  230. Kick.MouseButton1Click:Connect(function()
  231. for i,v in pairs(GetPlayer(Player.Text)) do
  232. workspace.Remote.loadchar:InvokeServer(game.Players.LocalPlayer,game.Players[v].TeamColor.Name)
  233. wait(.1)
  234. game:GetService("StarterGui"):SetCore("SendNotification", {
  235. Title = "Starting...";
  236. Text = "Now attempting to kick "..v;
  237. Duration = 5;
  238. })
  239. for i=1,10 do
  240. workspace.Remote.votekick:InvokeServer("Start",game.Players[v])
  241. workspace.Remote.votekick:InvokeServer("Vote")
  242. game:GetService("RunService").Stepped:Wait()
  243. end
  244. if not game.Players:FindFirstChild(v) then
  245. game:GetService("StarterGui"):SetCore("SendNotification", {
  246. Title = "Success!";
  247. Text = v.." has been kicked.";
  248. Duration = 5;
  249. })
  250. end
  251. end
  252. end)
  253.  
  254. Spectate.MouseButton1Click:Connect(function()
  255. for i,v in pairs(GetPlayer(Player.Text)) do
  256. workspace.CurrentCamera.CameraSubject = game.Players[v].Character.Humanoid
  257. end
  258. end)
  259.  
  260. Goto.MouseButton1Click:Connect(function()
  261. for i,v in pairs(GetPlayer(Player.Text)) do
  262. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v].Character.HumanoidRootPart.CFrame
  263. end
  264. end)
  265.  
  266. Unspectate.MouseButton1Click:Connect(function()
  267. for i,v in pairs(GetPlayer(Player.Text)) do
  268. workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  269. end
  270. end)
  271.  
  272. Sword.MouseButton1Click:Connect(function()
  273. for i,v in pairs(GetPlayer(Player.Text)) do
  274. local Sword = Instance.new("Tool")
  275. local Handle = Instance.new("Part")
  276. local Mesh = Instance.new("SpecialMesh")
  277. local Unsheath = Instance.new("Sound")
  278. local SwordSlash = Instance.new("Sound")
  279. SwordSlash.Name = "SwordSlash"
  280. Unsheath.Name = "Unsheath"
  281. Unsheath.SoundId = "http://www.roblox.com/asset/?id=12222225"
  282. Unsheath.Volume = 1
  283. SwordSlash.SoundId = "http://www.roblox.com/asset/?id=12222216"
  284. SwordSlash.Volume = .7
  285. Unsheath.Parent = Handle
  286. SwordSlash.Parent = Handle
  287. Mesh.Parent = Handle
  288. Mesh.MeshId = "rbxassetid://497078148"
  289. Mesh.Scale = Vector3.new(5,5,5)
  290. Handle.Name = "Handle"
  291. Handle.Parent = Sword
  292. Sword.GripForward = Vector3.new(-1,0,0)
  293. Sword.GripPos = Vector3.new(0,0,-1.5)
  294. Sword.GripRight = Vector3.new(0,1,0)
  295. Sword.GripUp = Vector3.new(0,0,1)
  296. Sword.ToolTip = "Uctron's Sword"
  297. Sword.TextureId = "rbxasset://Textures/Sword128.png"
  298. Sword.CanBeDropped = false
  299. Sword.RequiresHandle = true
  300. Handle.Orientation = Vector3.new(-46.24, 42.14, 50.93)
  301. Handle.Position = Vector3.new(-3.174,1.57,3.04)
  302. Handle.CanCollide = true
  303. Handle.Size = Vector3.new(1,.8,4)
  304. Mesh.MeshId = "rbxasset://fonts/sword.mesh"
  305. Mesh.MeshType = "FileMesh"
  306. Mesh.Offset = Vector3.new(0,0,0)
  307. Mesh.Scale = Vector3.new(1,1,1)
  308. Mesh.TextureId = "rbxasset://textures/SwordTexture.png"
  309. Sword.Equipped:Connect(function()
  310. Unsheath:Play()
  311. end)
  312. Sword.Activated:Connect(function()
  313. SwordSlash:Play()
  314. Handle.Touched:Connect(function(Handle)
  315. p=game.Players:FindFirstChild(Handle.Parent.Name)
  316. game.ReplicatedStorage.meleeEvent:FireServer(p)
  317. end)
  318. local Anim = Instance.new("StringValue")
  319. Anim.Name = "toolanim"
  320. Anim.Value = "Slash"
  321. Anim.Parent = Sword
  322. end)
  323. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  324. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  325. Tool = Sword
  326. Mouse = nil
  327. function UpdateIcon()
  328. if Mouse then
  329. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  330. end
  331. end
  332. function OnEquipped(ToolMouse)
  333. Mouse = ToolMouse
  334. UpdateIcon()
  335. end
  336. function OnChanged(Property)
  337. if Property == "Enabled" then
  338. UpdateIcon()
  339. end
  340. end
  341. Tool.Equipped:Connect(OnEquipped)
  342. Tool.Changed:Connect(OnChanged)
  343. Sword.Parent = game.Players.LocalPlayer.Backpack
  344. end
  345. end)