NOLI10

Prison Life GUI

Nov 6th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.60 KB | None | 0 0
  1. --made by NOLI10
  2. --disc nope#6429
  3. function GetPlayer(String)
  4. local Found = {}
  5. local strl = String:lower()
  6. for i,v in pairs(game.Players:GetPlayers()) do
  7. if v.Name:lower():sub(1, #String) == String:lower() then
  8. table.insert(Found,v.Name)
  9. end
  10. end
  11. return Found
  12. end
  13. local PrisonRuinerGui = Instance.new("ScreenGui")
  14. local Frame = Instance.new("Frame")
  15. local TextLabel = Instance.new("TextLabel")
  16. local Kill = Instance.new("TextButton")
  17. local Merge = Instance.new("TextButton")
  18. local KillAll = Instance.new("TextButton")
  19. local Sword = Instance.new("TextButton")
  20. local Player = Instance.new("TextBox")
  21. local TextLabel_2 = Instance.new("TextLabel")
  22. local Line = Instance.new("TextLabel")
  23. local Spectate = Instance.new("TextButton")
  24. local Goto = Instance.new("TextButton")
  25. local Unspectate = Instance.new("TextButton")
  26. PrisonRuinerGui.Name = "Script Creator: nope#6429"
  27. PrisonRuinerGui.Parent = game.CoreGui
  28. PrisonRuinerGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29. Frame.Active = true
  30. Frame.Draggable = true
  31. Frame.Parent = PrisonRuinerGui
  32. Frame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  33. Frame.BorderColor3 = Color3.new(0, 0, 0)
  34. Frame.BorderSizePixel = 0
  35. Frame.Position = UDim2.new(0.0496657118, 0, 0.473186165, 0)
  36. Frame.Size = UDim2.new(0, 337, 0, 319)
  37. TextLabel.Parent = Frame
  38. TextLabel.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  39. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  40. TextLabel.BorderSizePixel = 0
  41. TextLabel.Size = UDim2.new(0, 337, 0, 42)
  42. TextLabel.Font = Enum.Font.Cartoon
  43. TextLabel.Text = "Script Creator: nope#6429"
  44. TextLabel.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  45. TextLabel.TextScaled = true
  46. TextLabel.TextSize = 14
  47. TextLabel.TextWrapped = true
  48. Kill.Name = "Kill"
  49. Kill.Parent = Frame
  50. Kill.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  51. Kill.BorderColor3 = Color3.new(0, 0, 0)
  52. Kill.BorderSizePixel = 0
  53. Kill.Position = UDim2.new(0.0579999983, 0, 0.173843265, 0)
  54. Kill.Size = UDim2.new(0, 131, 0, 33)
  55. Kill.Font = Enum.Font.Cartoon
  56. Kill.Text = "Kill"
  57. Kill.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  58. Kill.TextScaled = true
  59. Kill.TextSize = 14
  60. Kill.TextWrapped = true
  61. Merge.Name = "Merge"
  62. Merge.Parent = Frame
  63. Merge.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  64. Merge.BorderColor3 = Color3.new(0, 0, 0)
  65. Merge.BorderSizePixel = 0
  66. Merge.Position = UDim2.new(0.550999999, 0, 0.173131928, 0)
  67. Merge.Size = UDim2.new(0, 131, 0, 33)
  68. Merge.Font = Enum.Font.Cartoon
  69. Merge.Text = "Merge"
  70. Merge.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  71. Merge.TextScaled = true
  72. Merge.TextSize = 14
  73. Merge.TextWrapped = true
  74. KillAll.Name = "Kill All"
  75. KillAll.Parent = Frame
  76. KillAll.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  77. KillAll.BorderColor3 = Color3.new(0, 0, 0)
  78. KillAll.BorderSizePixel = 0
  79. KillAll.Position = UDim2.new(0.550999999, 0, 0.302032351, 0)
  80. KillAll.Size = UDim2.new(0, 131, 0, 33)
  81. KillAll.Font = Enum.Font.Cartoon
  82. KillAll.Text = "Kill All"
  83. KillAll.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  84. KillAll.TextScaled = true
  85. KillAll.TextSize = 14
  86. KillAll.TextWrapped = true
  87. Sword.Name = "Sword"
  88. Sword.Parent = Frame
  89. Sword.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  90. Sword.BorderColor3 = Color3.new(0, 0, 0)
  91. Sword.BorderSizePixel = 0
  92. Sword.Position = UDim2.new(0.0579999685, 0, 0.855558157, 0)
  93. Sword.Size = UDim2.new(0, 131, 0, 33)
  94. Sword.Font = Enum.Font.Cartoon
  95. Sword.Text = "Sword"
  96. Sword.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  97. Sword.TextScaled = true
  98. Sword.TextSize = 14
  99. Sword.TextWrapped = true
  100. Player.Name = "Player"
  101. Player.Parent = Frame
  102. Player.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  103. Player.BorderColor3 = Color3.new(0, 0, 0)
  104. Player.BorderSizePixel = 0
  105. Player.Position = UDim2.new(0.202000022, 0, 0.609539211, 0)
  106. Player.Size = UDim2.new(0, 200, 0, 33)
  107. Player.Font = Enum.Font.Cartoon
  108. Player.PlaceholderColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  109. Player.PlaceholderText = "Player"
  110. Player.Text = "Soon!"
  111. Player.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  112. Player.TextScaled = true
  113. Player.TextSize = 14
  114. Player.TextWrapped = true
  115. TextLabel_2.Parent = Frame
  116. TextLabel_2.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  117. TextLabel_2.BorderColor3 = Color3.new(0, 0, 0)
  118. TextLabel_2.BorderSizePixel = 0
  119. TextLabel_2.Position = UDim2.new(0.855000019, 0, 0.654999971, 0)
  120. TextLabel_2.Size = UDim2.new(0, 49, 0, 40)
  121. TextLabel_2.Font = Enum.Font.Cartoon
  122. TextLabel_2.Text = "Gui by NOLI10"
  123. TextLabel_2.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  124. TextLabel_2.TextScaled = true
  125. TextLabel_2.TextSize = 14
  126. TextLabel_2.TextWrapped = true
  127. Line.Name = "Line"
  128. Line.Parent = Frame
  129. Line.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  130. Line.BorderColor3 = Color3.new(0, 0, 0)
  131. Line.BorderSizePixel = 0
  132. Line.Position = UDim2.new(0, 0, 0.78076911, 0)
  133. Line.Size = UDim2.new(0, 337, 0, 10)
  134. Line.Font = Enum.Font.Cartoon
  135. Line.Text = ""
  136. Line.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  137. Line.TextScaled = true
  138. Line.TextSize = 14
  139. Line.TextWrapped = true
  140. Spectate.Name = "Spectate"
  141. Spectate.Parent = Frame
  142. Spectate.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  143. Spectate.BorderColor3 = Color3.new(0, 0, 0)
  144. Spectate.BorderSizePixel = 0
  145. Spectate.Position = UDim2.new(0.0579999983, 0, 0.42899999, 0)
  146. Spectate.Size = UDim2.new(0, 131, 0, 33)
  147. Spectate.Font = Enum.Font.Cartoon
  148. Spectate.Text = "Spectate"
  149. Spectate.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  150. Spectate.TextScaled = true
  151. Spectate.TextSize = 14
  152. Spectate.TextWrapped = true
  153. Goto.Name = "Goto"
  154. Goto.Parent = Frame
  155. Goto.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  156. Goto.BorderColor3 = Color3.new(0, 0, 0)
  157. Goto.BorderSizePixel = 0
  158. Goto.Position = UDim2.new(0.551999986, 0, 0.430999994, 0)
  159. Goto.Size = UDim2.new(0, 131, 0, 33)
  160. Goto.Font = Enum.Font.Cartoon
  161. Goto.Text = "Goto"
  162. Goto.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  163. Goto.TextScaled = true
  164. Goto.TextSize = 14
  165. Goto.TextWrapped = true
  166. Unspectate.Name = "Unspectate"
  167. Unspectate.Parent = Frame
  168. Unspectate.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  169. Unspectate.BorderColor3 = Color3.new(0, 0, 0)
  170. Unspectate.BorderSizePixel = 0
  171. Unspectate.Position = UDim2.new(0.550581574, 0, 0.855558157, 0)
  172. Unspectate.Size = UDim2.new(0, 131, 0, 33)
  173. Unspectate.Font = Enum.Font.Cartoon
  174. Unspectate.Text = "Unspectate"
  175. Unspectate.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  176. Unspectate.TextScaled = true
  177. Unspectate.TextSize = 14
  178. Unspectate.TextWrapped = true
  179.  
  180. Kill.MouseButton1Click:Connect(function()
  181. local savedteam = game.Players.LocalPlayer.TeamColor.Name
  182. workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  183. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  184. for i,v in pairs(GetPlayer(Player.Text)) do
  185. 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}}
  186. local A_2 = game.Players.LocalPlayer.Backpack["Remington 870"]
  187. local Event = game:GetService("ReplicatedStorage").ShootEvent
  188. Event:FireServer(A_1, A_2)
  189. Event:FireServer(A_1, A_2)
  190. end
  191. workspace.Remote.TeamEvent:FireServer(savedteam)
  192. end)
  193.  
  194. KillAll.MouseButton1Click:Connect(function()
  195. local savedteam = game.Players.LocalPlayer.TeamColor.Name
  196. workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  197. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  198. for i,v in pairs(game.Players:GetPlayers()) do
  199. 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}}
  200. local A_2 = game.Players.LocalPlayer.Backpack["Remington 870"]
  201. local Event = game:GetService("ReplicatedStorage").ShootEvent
  202. Event:FireServer(A_1, A_2)
  203. Event:FireServer(A_1, A_2)
  204. end
  205. game.Players.LocalPlayer.Character:BreakJoints()
  206. workspace.Remote.TeamEvent:FireServer(savedteam)
  207. end)
  208.  
  209. Merge.MouseButton1Click:Connect(function()
  210. for i,v in pairs(GetPlayer(Player.Text)) do
  211. repeat
  212. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v].Character.HumanoidRootPart.CFrame
  213. game:GetService("RunService").Heartbeat:Wait()
  214. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  215. end
  216. end)
  217.  
  218.  
  219. Spectate.MouseButton1Click:Connect(function()
  220. for i,v in pairs(GetPlayer(Player.Text)) do
  221. workspace.CurrentCamera.CameraSubject = game.Players[v].Character.Humanoid
  222. end
  223. end)
  224.  
  225. Goto.MouseButton1Click:Connect(function()
  226. for i,v in pairs(GetPlayer(Player.Text)) do
  227. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v].Character.HumanoidRootPart.CFrame
  228. end
  229. end)
  230.  
  231. Unspectate.MouseButton1Click:Connect(function()
  232. for i,v in pairs(GetPlayer(Player.Text)) do
  233. workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  234. end
  235. end)
  236.  
  237. Sword.MouseButton1Click:Connect(function()
  238. for i,v in pairs(GetPlayer(Player.Text)) do
  239. local Sword = Instance.new("Tool")
  240. local Handle = Instance.new("Part")
  241. local Mesh = Instance.new("SpecialMesh")
  242. local Unsheath = Instance.new("Sound")
  243. local SwordSlash = Instance.new("Sound")
  244. SwordSlash.Name = "SwordSlash"
  245. Unsheath.Name = "Unsheath"
  246. Unsheath.SoundId = "http://www.roblox.com/asset/?id=12222225"
  247. Unsheath.Volume = 1
  248. SwordSlash.SoundId = "http://www.roblox.com/asset/?id=12222216"
  249. SwordSlash.Volume = .7
  250. Unsheath.Parent = Handle
  251. SwordSlash.Parent = Handle
  252. Mesh.Parent = Handle
  253. Mesh.MeshId = "rbxassetid://497078148"
  254. Mesh.Scale = Vector3.new(5,5,5)
  255. Handle.Name = "Handle"
  256. Handle.Parent = Sword
  257. Sword.GripForward = Vector3.new(-1,0,0)
  258. Sword.GripPos = Vector3.new(0,0,-1.5)
  259. Sword.GripRight = Vector3.new(0,1,0)
  260. Sword.GripUp = Vector3.new(0,0,1)
  261. Sword.ToolTip = "Uctron's Sword"
  262. Sword.TextureId = "rbxasset://Textures/Sword128.png"
  263. Sword.CanBeDropped = false
  264. Sword.RequiresHandle = true
  265. Handle.Orientation = Vector3.new(-46.24, 42.14, 50.93)
  266. Handle.Position = Vector3.new(-3.174,1.57,3.04)
  267. Handle.CanCollide = true
  268. Handle.Size = Vector3.new(1,.8,4)
  269. Mesh.MeshId = "rbxasset://fonts/sword.mesh"
  270. Mesh.MeshType = "FileMesh"
  271. Mesh.Offset = Vector3.new(0,0,0)
  272. Mesh.Scale = Vector3.new(1,1,1)
  273. Mesh.TextureId = "rbxasset://textures/SwordTexture.png"
  274. Sword.Equipped:Connect(function()
  275. Unsheath:Play()
  276. end)
  277. Sword.Activated:Connect(function()
  278. SwordSlash:Play()
  279. Handle.Touched:Connect(function(Handle)
  280. p=game.Players:FindFirstChild(Handle.Parent.Name)
  281. game.ReplicatedStorage.meleeEvent:FireServer(p)
  282. end)
  283. local Anim = Instance.new("StringValue")
  284. Anim.Name = "toolanim"
  285. Anim.Value = "Slash"
  286. Anim.Parent = Sword
  287. end)
  288. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  289. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  290. Tool = Sword
  291. Mouse = nil
  292. function UpdateIcon()
  293. if Mouse then
  294. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  295. end
  296. end
  297. function OnEquipped(ToolMouse)
  298. Mouse = ToolMouse
  299. UpdateIcon()
  300. end
  301. function OnChanged(Property)
  302. if Property == "Enabled" then
  303. UpdateIcon()
  304. end
  305. end
  306. Tool.Equipped:Connect(OnEquipped)
  307. Tool.Changed:Connect(OnChanged)
  308. Sword.Parent = game.Players.LocalPlayer.Backpack
  309. end
  310. end)
Add Comment
Please, Sign In to add comment