Advertisement
Guest User

Old roblox script

a guest
Oct 28th, 2017
4,903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.61 KB | None | 0 0
  1.  
  2. ----old roblox-----------------------
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Script0 = Instance.new("Script")
  20. ScreenGui1 = Instance.new("ScreenGui")
  21. Frame2 = Instance.new("Frame")
  22. TextLabel3 = Instance.new("TextLabel")
  23. Frame4 = Instance.new("Frame")
  24. TextLabel5 = Instance.new("TextLabel")
  25. Frame6 = Instance.new("Frame")
  26. Frame7 = Instance.new("Frame")
  27. TextLabel8 = Instance.new("TextLabel")
  28. TextLabel9 = Instance.new("TextLabel")
  29. ImageLabel10 = Instance.new("ImageLabel")
  30. TextButton11 = Instance.new("TextButton")
  31. TextLabel12 = Instance.new("TextLabel")
  32. TextLabel13 = Instance.new("TextLabel")
  33. ImageLabel14 = Instance.new("ImageLabel")
  34. TextButton15 = Instance.new("TextButton")
  35. TextLabel16 = Instance.new("TextLabel")
  36. TextLabel17 = Instance.new("TextLabel")
  37. ImageLabel18 = Instance.new("ImageLabel")
  38. TextButton19 = Instance.new("TextButton")
  39. TextLabel20 = Instance.new("TextLabel")
  40. TextLabel21 = Instance.new("TextLabel")
  41. ImageLabel22 = Instance.new("ImageLabel")
  42. TextButton23 = Instance.new("TextButton")
  43. TextLabel24 = Instance.new("TextLabel")
  44. TextLabel25 = Instance.new("TextLabel")
  45. ImageLabel26 = Instance.new("ImageLabel")
  46. TextButton27 = Instance.new("TextButton")
  47. TextLabel28 = Instance.new("TextLabel")
  48. TextLabel29 = Instance.new("TextLabel")
  49. ImageLabel30 = Instance.new("ImageLabel")
  50. TextButton31 = Instance.new("TextButton")
  51. TextLabel32 = Instance.new("TextLabel")
  52. TextLabel33 = Instance.new("TextLabel")
  53. ImageLabel34 = Instance.new("ImageLabel")
  54. TextButton35 = Instance.new("TextButton")
  55. TextLabel36 = Instance.new("TextLabel")
  56. TextLabel37 = Instance.new("TextLabel")
  57. ImageLabel38 = Instance.new("ImageLabel")
  58. TextButton39 = Instance.new("TextButton")
  59. TextLabel40 = Instance.new("TextLabel")
  60. TextLabel41 = Instance.new("TextLabel")
  61. ImageLabel42 = Instance.new("ImageLabel")
  62. TextButton43 = Instance.new("TextButton")
  63. TextLabel44 = Instance.new("TextLabel")
  64. TextButton45 = Instance.new("TextButton")
  65. ImageLabel46 = Instance.new("ImageLabel")
  66. TextLabel47 = Instance.new("TextLabel")
  67. Frame48 = Instance.new("Frame")
  68. TextBox49 = Instance.new("TextBox")
  69. Frame50 = Instance.new("Frame")
  70. TextButton51 = Instance.new("TextButton")
  71. ImageLabel52 = Instance.new("ImageLabel")
  72. LocalScript53 = Instance.new("LocalScript")
  73. TextLabel54 = Instance.new("TextLabel")
  74. Frame55 = Instance.new("Frame")
  75. TextLabel56 = Instance.new("TextLabel")
  76. TextLabel57 = Instance.new("TextLabel")
  77. Frame58 = Instance.new("Frame")
  78. TextLabel59 = Instance.new("TextLabel")
  79. Frame60 = Instance.new("Frame")
  80. TextLabel61 = Instance.new("TextLabel")
  81. TextLabel62 = Instance.new("TextLabel")
  82. Sound63 = Instance.new("Sound")
  83. Part64 = Instance.new("Part")
  84. RemoteFunction65 = Instance.new("RemoteFunction")
  85. Script66 = Instance.new("Script")
  86. LocalScript67 = Instance.new("LocalScript")
  87. SpecialMesh68 = Instance.new("SpecialMesh")
  88. Configuration69 = Instance.new("Configuration")
  89. BoolValue70 = Instance.new("BoolValue")
  90. BoolValue71 = Instance.new("BoolValue")
  91. BoolValue72 = Instance.new("BoolValue")
  92. BoolValue73 = Instance.new("BoolValue")
  93. Script74 = Instance.new("Script")
  94. Decal75 = Instance.new("Decal")
  95. Script0.Name = "2008 GUIs (and More!) README"
  96. Script0.Parent = mas
  97. table.insert(cors,sandbox(Script0,function()
  98. --[[
  99. script by newbleuguy Youtube
  100.  
  101.  
  102. --]]
  103.  
  104. script:WaitForChild("ReceiveChat").Parent = workspace
  105. script:WaitForChild("Retro").Parent = game:GetService("StarterGui")
  106. script:WaitForChild("RetroManager").Parent = game:GetService("ServerScriptService")
  107. end))
  108. ScreenGui1.Name = "Retro"
  109. ScreenGui1.Parent = Script0
  110. Frame2.Name = "PlayerList"
  111. Frame2.Parent = ScreenGui1
  112. Frame2.Transparency = 0.40000000596046
  113. Frame2.Size = UDim2.new(0, 168, 0, 40)
  114. Frame2.Position = UDim2.new(1, -178, 0, 10)
  115. Frame2.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  116. Frame2.BackgroundTransparency = 0.40000000596046
  117. Frame2.BorderColor3 = Color3.new(0.6, 0.6, 0.6)
  118. Frame2.BorderSizePixel = 0
  119. Frame2.ZIndex = 8
  120. Frame2.ClipsDescendants = true
  121. TextLabel3.Name = "_Label1"
  122. TextLabel3.Parent = Frame2
  123. TextLabel3.Transparency = 1
  124. TextLabel3.Size = UDim2.new(0, 100, 0, 30)
  125. TextLabel3.Text = "Player List"
  126. TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  127. TextLabel3.BackgroundTransparency = 1
  128. TextLabel3.BorderSizePixel = 0
  129. TextLabel3.ZIndex = 9
  130. TextLabel3.FontSize = Enum.FontSize.Size12
  131. TextLabel3.TextColor3 = Color3.new(1, 1, 1)
  132. TextLabel3.TextXAlignment = Enum.TextXAlignment.Left
  133. Frame4.Name = "Health"
  134. Frame4.Parent = ScreenGui1
  135. Frame4.Size = UDim2.new(0, 8, 0, 86)
  136. Frame4.Position = UDim2.new(1, -68, 0, 200)
  137. Frame4.BackgroundColor3 = Color3.new(1, 0, 0)
  138. Frame4.BorderColor3 = Color3.new(0.6, 0.6, 0.6)
  139. Frame4.BorderSizePixel = 0
  140. Frame4.ZIndex = 9
  141. TextLabel5.Name = "Label"
  142. TextLabel5.Parent = Frame4
  143. TextLabel5.Transparency = 1
  144. TextLabel5.Size = UDim2.new(0, 8, 0, 8)
  145. TextLabel5.Text = "Health"
  146. TextLabel5.Position = UDim2.new(0, 0, 1, 8)
  147. TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
  148. TextLabel5.BackgroundTransparency = 1
  149. TextLabel5.BorderSizePixel = 0
  150. TextLabel5.ZIndex = 9
  151. TextLabel5.FontSize = Enum.FontSize.Size12
  152. TextLabel5.TextColor3 = Color3.new(0, 0, 1)
  153. Frame6.Name = "Score"
  154. Frame6.Parent = Frame4
  155. Frame6.Size = UDim2.new(1, 0, 1, 0)
  156. Frame6.BackgroundColor3 = Color3.new(0.505882, 0.772549, 0.0862745)
  157. Frame6.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  158. Frame6.BorderSizePixel = 0
  159. Frame6.ZIndex = 9
  160. Frame7.Name = "Inventory"
  161. Frame7.Parent = ScreenGui1
  162. Frame7.Transparency = 1
  163. Frame7.Size = UDim2.new(0, 780, 0, 91)
  164. Frame7.Position = UDim2.new(0, 0, 1, -111)
  165. Frame7.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  166. Frame7.BackgroundTransparency = 1
  167. Frame7.BorderColor3 = Color3.new(0.6, 0.6, 0.6)
  168. Frame7.BorderSizePixel = 0
  169. Frame7.ZIndex = 8
  170. TextLabel8.Name = "Slot1"
  171. TextLabel8.Parent = Frame7
  172. TextLabel8.Transparency = 0.40000000596046
  173. TextLabel8.Size = UDim2.new(0, 90, 1, 0)
  174. TextLabel8.Text = "Slot1"
  175. TextLabel8.Visible = false
  176. TextLabel8.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  177. TextLabel8.BackgroundTransparency = 0.40000000596046
  178. TextLabel8.BorderColor3 = Color3.new(0, 1, 0)
  179. TextLabel8.BorderSizePixel = 0
  180. TextLabel8.ZIndex = 8
  181. TextLabel8.ClipsDescendants = true
  182. TextLabel8.FontSize = Enum.FontSize.Size9
  183. TextLabel8.TextColor3 = Color3.new(1, 1, 1)
  184. TextLabel8.TextXAlignment = Enum.TextXAlignment.Left
  185. TextLabel9.Name = "NumberLabel"
  186. TextLabel9.Parent = TextLabel8
  187. TextLabel9.Size = UDim2.new(0, 16, 0, 16)
  188. TextLabel9.Text = "1"
  189. TextLabel9.Position = UDim2.new(0, 2, 1, -17)
  190. TextLabel9.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  191. TextLabel9.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  192. TextLabel9.BorderSizePixel = 0
  193. TextLabel9.ZIndex = 8
  194. TextLabel9.ClipsDescendants = true
  195. TextLabel9.FontSize = Enum.FontSize.Size9
  196. TextLabel9.TextColor3 = Color3.new(1, 1, 1)
  197. TextLabel9.TextWrapped = true
  198. ImageLabel10.Parent = TextLabel8
  199. ImageLabel10.Transparency = 1
  200. ImageLabel10.Size = UDim2.new(0, 70, 0, 71)
  201. ImageLabel10.Position = UDim2.new(0, 12, 0, 10)
  202. ImageLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
  203. ImageLabel10.BackgroundTransparency = 1
  204. ImageLabel10.BorderSizePixel = 0
  205. ImageLabel10.ZIndex = 9
  206. TextButton11.Name = "Button"
  207. TextButton11.Parent = TextLabel8
  208. TextButton11.Transparency = 1
  209. TextButton11.Size = UDim2.new(1, 0, 1, 0)
  210. TextButton11.Text = ""
  211. TextButton11.BackgroundColor3 = Color3.new(1, 1, 1)
  212. TextButton11.BackgroundTransparency = 1
  213. TextButton11.BorderSizePixel = 0
  214. TextButton11.ZIndex = 9
  215. TextButton11.Font = Enum.Font.SourceSans
  216. TextButton11.FontSize = Enum.FontSize.Size14
  217. TextLabel12.Name = "Slot2"
  218. TextLabel12.Parent = Frame7
  219. TextLabel12.Transparency = 0.40000000596046
  220. TextLabel12.Size = UDim2.new(0, 90, 1, 0)
  221. TextLabel12.Text = "Slot2"
  222. TextLabel12.Position = UDim2.new(0, 90, 0, 0)
  223. TextLabel12.Visible = false
  224. TextLabel12.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  225. TextLabel12.BackgroundTransparency = 0.40000000596046
  226. TextLabel12.BorderColor3 = Color3.new(0, 1, 0)
  227. TextLabel12.BorderSizePixel = 0
  228. TextLabel12.ZIndex = 8
  229. TextLabel12.ClipsDescendants = true
  230. TextLabel12.FontSize = Enum.FontSize.Size9
  231. TextLabel12.TextColor3 = Color3.new(1, 1, 1)
  232. TextLabel12.TextXAlignment = Enum.TextXAlignment.Left
  233. TextLabel13.Name = "NumberLabel"
  234. TextLabel13.Parent = TextLabel12
  235. TextLabel13.Size = UDim2.new(0, 16, 0, 16)
  236. TextLabel13.Text = "2"
  237. TextLabel13.Position = UDim2.new(0, 2, 1, -17)
  238. TextLabel13.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  239. TextLabel13.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  240. TextLabel13.BorderSizePixel = 0
  241. TextLabel13.ZIndex = 8
  242. TextLabel13.ClipsDescendants = true
  243. TextLabel13.FontSize = Enum.FontSize.Size9
  244. TextLabel13.TextColor3 = Color3.new(1, 1, 1)
  245. TextLabel13.TextWrapped = true
  246. ImageLabel14.Parent = TextLabel12
  247. ImageLabel14.Transparency = 1
  248. ImageLabel14.Size = UDim2.new(0, 70, 0, 71)
  249. ImageLabel14.Position = UDim2.new(0, 12, 0, 10)
  250. ImageLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
  251. ImageLabel14.BackgroundTransparency = 1
  252. ImageLabel14.BorderSizePixel = 0
  253. ImageLabel14.ZIndex = 9
  254. TextButton15.Name = "Button"
  255. TextButton15.Parent = TextLabel12
  256. TextButton15.Transparency = 1
  257. TextButton15.Size = UDim2.new(1, 0, 1, 0)
  258. TextButton15.Text = ""
  259. TextButton15.BackgroundColor3 = Color3.new(1, 1, 1)
  260. TextButton15.BackgroundTransparency = 1
  261. TextButton15.BorderSizePixel = 0
  262. TextButton15.ZIndex = 9
  263. TextButton15.Font = Enum.Font.SourceSans
  264. TextButton15.FontSize = Enum.FontSize.Size14
  265. TextLabel16.Name = "Slot3"
  266. TextLabel16.Parent = Frame7
  267. TextLabel16.Transparency = 0.40000000596046
  268. TextLabel16.Size = UDim2.new(0, 90, 1, 0)
  269. TextLabel16.Text = "Slot3"
  270. TextLabel16.Position = UDim2.new(0, 180, 0, 0)
  271. TextLabel16.Visible = false
  272. TextLabel16.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  273. TextLabel16.BackgroundTransparency = 0.40000000596046
  274. TextLabel16.BorderColor3 = Color3.new(0, 1, 0)
  275. TextLabel16.BorderSizePixel = 0
  276. TextLabel16.ZIndex = 8
  277. TextLabel16.ClipsDescendants = true
  278. TextLabel16.FontSize = Enum.FontSize.Size9
  279. TextLabel16.TextColor3 = Color3.new(1, 1, 1)
  280. TextLabel16.TextXAlignment = Enum.TextXAlignment.Left
  281. TextLabel17.Name = "NumberLabel"
  282. TextLabel17.Parent = TextLabel16
  283. TextLabel17.Size = UDim2.new(0, 16, 0, 16)
  284. TextLabel17.Text = "3"
  285. TextLabel17.Position = UDim2.new(0, 2, 1, -17)
  286. TextLabel17.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  287. TextLabel17.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  288. TextLabel17.BorderSizePixel = 0
  289. TextLabel17.ZIndex = 8
  290. TextLabel17.ClipsDescendants = true
  291. TextLabel17.FontSize = Enum.FontSize.Size9
  292. TextLabel17.TextColor3 = Color3.new(1, 1, 1)
  293. TextLabel17.TextWrapped = true
  294. ImageLabel18.Parent = TextLabel16
  295. ImageLabel18.Transparency = 1
  296. ImageLabel18.Size = UDim2.new(0, 70, 0, 71)
  297. ImageLabel18.Position = UDim2.new(0, 12, 0, 10)
  298. ImageLabel18.BackgroundColor3 = Color3.new(1, 1, 1)
  299. ImageLabel18.BackgroundTransparency = 1
  300. ImageLabel18.BorderSizePixel = 0
  301. ImageLabel18.ZIndex = 9
  302. TextButton19.Name = "Button"
  303. TextButton19.Parent = TextLabel16
  304. TextButton19.Transparency = 1
  305. TextButton19.Size = UDim2.new(1, 0, 1, 0)
  306. TextButton19.Text = ""
  307. TextButton19.BackgroundColor3 = Color3.new(1, 1, 1)
  308. TextButton19.BackgroundTransparency = 1
  309. TextButton19.BorderSizePixel = 0
  310. TextButton19.ZIndex = 9
  311. TextButton19.Font = Enum.Font.SourceSans
  312. TextButton19.FontSize = Enum.FontSize.Size14
  313. TextLabel20.Name = "Slot4"
  314. TextLabel20.Parent = Frame7
  315. TextLabel20.Transparency = 0.40000000596046
  316. TextLabel20.Size = UDim2.new(0, 90, 1, 0)
  317. TextLabel20.Text = "Slot4"
  318. TextLabel20.Position = UDim2.new(0, 270, 0, 0)
  319. TextLabel20.Visible = false
  320. TextLabel20.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  321. TextLabel20.BackgroundTransparency = 0.40000000596046
  322. TextLabel20.BorderColor3 = Color3.new(0, 1, 0)
  323. TextLabel20.BorderSizePixel = 0
  324. TextLabel20.ZIndex = 8
  325. TextLabel20.ClipsDescendants = true
  326. TextLabel20.FontSize = Enum.FontSize.Size9
  327. TextLabel20.TextColor3 = Color3.new(1, 1, 1)
  328. TextLabel20.TextXAlignment = Enum.TextXAlignment.Left
  329. TextLabel21.Name = "NumberLabel"
  330. TextLabel21.Parent = TextLabel20
  331. TextLabel21.Size = UDim2.new(0, 16, 0, 16)
  332. TextLabel21.Text = "4"
  333. TextLabel21.Position = UDim2.new(0, 2, 1, -17)
  334. TextLabel21.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  335. TextLabel21.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  336. TextLabel21.BorderSizePixel = 0
  337. TextLabel21.ZIndex = 8
  338. TextLabel21.ClipsDescendants = true
  339. TextLabel21.FontSize = Enum.FontSize.Size9
  340. TextLabel21.TextColor3 = Color3.new(1, 1, 1)
  341. TextLabel21.TextWrapped = true
  342. ImageLabel22.Parent = TextLabel20
  343. ImageLabel22.Transparency = 1
  344. ImageLabel22.Size = UDim2.new(0, 70, 0, 71)
  345. ImageLabel22.Position = UDim2.new(0, 12, 0, 10)
  346. ImageLabel22.BackgroundColor3 = Color3.new(1, 1, 1)
  347. ImageLabel22.BackgroundTransparency = 1
  348. ImageLabel22.BorderSizePixel = 0
  349. ImageLabel22.ZIndex = 9
  350. TextButton23.Name = "Button"
  351. TextButton23.Parent = TextLabel20
  352. TextButton23.Transparency = 1
  353. TextButton23.Size = UDim2.new(1, 0, 1, 0)
  354. TextButton23.Text = ""
  355. TextButton23.BackgroundColor3 = Color3.new(1, 1, 1)
  356. TextButton23.BackgroundTransparency = 1
  357. TextButton23.BorderSizePixel = 0
  358. TextButton23.ZIndex = 9
  359. TextButton23.Font = Enum.Font.SourceSans
  360. TextButton23.FontSize = Enum.FontSize.Size14
  361. TextLabel24.Name = "Slot5"
  362. TextLabel24.Parent = Frame7
  363. TextLabel24.Transparency = 0.40000000596046
  364. TextLabel24.Size = UDim2.new(0, 90, 1, 0)
  365. TextLabel24.Text = "Slot5"
  366. TextLabel24.Position = UDim2.new(0, 360, 0, 0)
  367. TextLabel24.Visible = false
  368. TextLabel24.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  369. TextLabel24.BackgroundTransparency = 0.40000000596046
  370. TextLabel24.BorderColor3 = Color3.new(0, 1, 0)
  371. TextLabel24.BorderSizePixel = 0
  372. TextLabel24.ZIndex = 8
  373. TextLabel24.ClipsDescendants = true
  374. TextLabel24.FontSize = Enum.FontSize.Size9
  375. TextLabel24.TextColor3 = Color3.new(1, 1, 1)
  376. TextLabel24.TextXAlignment = Enum.TextXAlignment.Left
  377. TextLabel25.Name = "NumberLabel"
  378. TextLabel25.Parent = TextLabel24
  379. TextLabel25.Size = UDim2.new(0, 16, 0, 16)
  380. TextLabel25.Text = "5"
  381. TextLabel25.Position = UDim2.new(0, 2, 1, -17)
  382. TextLabel25.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  383. TextLabel25.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  384. TextLabel25.BorderSizePixel = 0
  385. TextLabel25.ZIndex = 8
  386. TextLabel25.ClipsDescendants = true
  387. TextLabel25.FontSize = Enum.FontSize.Size9
  388. TextLabel25.TextColor3 = Color3.new(1, 1, 1)
  389. TextLabel25.TextWrapped = true
  390. ImageLabel26.Parent = TextLabel24
  391. ImageLabel26.Transparency = 1
  392. ImageLabel26.Size = UDim2.new(0, 70, 0, 71)
  393. ImageLabel26.Position = UDim2.new(0, 12, 0, 10)
  394. ImageLabel26.BackgroundColor3 = Color3.new(1, 1, 1)
  395. ImageLabel26.BackgroundTransparency = 1
  396. ImageLabel26.BorderSizePixel = 0
  397. ImageLabel26.ZIndex = 9
  398. TextButton27.Name = "Button"
  399. TextButton27.Parent = TextLabel24
  400. TextButton27.Transparency = 1
  401. TextButton27.Size = UDim2.new(1, 0, 1, 0)
  402. TextButton27.Text = ""
  403. TextButton27.BackgroundColor3 = Color3.new(1, 1, 1)
  404. TextButton27.BackgroundTransparency = 1
  405. TextButton27.BorderSizePixel = 0
  406. TextButton27.ZIndex = 9
  407. TextButton27.Font = Enum.Font.SourceSans
  408. TextButton27.FontSize = Enum.FontSize.Size14
  409. TextLabel28.Name = "Slot6"
  410. TextLabel28.Parent = Frame7
  411. TextLabel28.Transparency = 0.40000000596046
  412. TextLabel28.Size = UDim2.new(0, 90, 1, 0)
  413. TextLabel28.Text = "Slot6"
  414. TextLabel28.Position = UDim2.new(0, 450, 0, 0)
  415. TextLabel28.Visible = false
  416. TextLabel28.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  417. TextLabel28.BackgroundTransparency = 0.40000000596046
  418. TextLabel28.BorderColor3 = Color3.new(0, 1, 0)
  419. TextLabel28.BorderSizePixel = 0
  420. TextLabel28.ZIndex = 8
  421. TextLabel28.ClipsDescendants = true
  422. TextLabel28.FontSize = Enum.FontSize.Size9
  423. TextLabel28.TextColor3 = Color3.new(1, 1, 1)
  424. TextLabel28.TextXAlignment = Enum.TextXAlignment.Left
  425. TextLabel29.Name = "NumberLabel"
  426. TextLabel29.Parent = TextLabel28
  427. TextLabel29.Size = UDim2.new(0, 16, 0, 16)
  428. TextLabel29.Text = "6"
  429. TextLabel29.Position = UDim2.new(0, 2, 1, -17)
  430. TextLabel29.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  431. TextLabel29.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  432. TextLabel29.BorderSizePixel = 0
  433. TextLabel29.ZIndex = 8
  434. TextLabel29.ClipsDescendants = true
  435. TextLabel29.FontSize = Enum.FontSize.Size9
  436. TextLabel29.TextColor3 = Color3.new(1, 1, 1)
  437. TextLabel29.TextWrapped = true
  438. ImageLabel30.Parent = TextLabel28
  439. ImageLabel30.Transparency = 1
  440. ImageLabel30.Size = UDim2.new(0, 70, 0, 71)
  441. ImageLabel30.Position = UDim2.new(0, 12, 0, 10)
  442. ImageLabel30.BackgroundColor3 = Color3.new(1, 1, 1)
  443. ImageLabel30.BackgroundTransparency = 1
  444. ImageLabel30.BorderSizePixel = 0
  445. ImageLabel30.ZIndex = 9
  446. TextButton31.Name = "Button"
  447. TextButton31.Parent = TextLabel28
  448. TextButton31.Transparency = 1
  449. TextButton31.Size = UDim2.new(1, 0, 1, 0)
  450. TextButton31.Text = ""
  451. TextButton31.BackgroundColor3 = Color3.new(1, 1, 1)
  452. TextButton31.BackgroundTransparency = 1
  453. TextButton31.BorderSizePixel = 0
  454. TextButton31.ZIndex = 9
  455. TextButton31.Font = Enum.Font.SourceSans
  456. TextButton31.FontSize = Enum.FontSize.Size14
  457. TextLabel32.Name = "Slot7"
  458. TextLabel32.Parent = Frame7
  459. TextLabel32.Transparency = 0.40000000596046
  460. TextLabel32.Size = UDim2.new(0, 90, 1, 0)
  461. TextLabel32.Text = "Slot7"
  462. TextLabel32.Position = UDim2.new(0, 540, 0, 0)
  463. TextLabel32.Visible = false
  464. TextLabel32.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  465. TextLabel32.BackgroundTransparency = 0.40000000596046
  466. TextLabel32.BorderColor3 = Color3.new(0, 1, 0)
  467. TextLabel32.BorderSizePixel = 0
  468. TextLabel32.ZIndex = 8
  469. TextLabel32.ClipsDescendants = true
  470. TextLabel32.FontSize = Enum.FontSize.Size9
  471. TextLabel32.TextColor3 = Color3.new(1, 1, 1)
  472. TextLabel32.TextXAlignment = Enum.TextXAlignment.Left
  473. TextLabel33.Name = "NumberLabel"
  474. TextLabel33.Parent = TextLabel32
  475. TextLabel33.Size = UDim2.new(0, 16, 0, 16)
  476. TextLabel33.Text = "7"
  477. TextLabel33.Position = UDim2.new(0, 2, 1, -17)
  478. TextLabel33.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  479. TextLabel33.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  480. TextLabel33.BorderSizePixel = 0
  481. TextLabel33.ZIndex = 8
  482. TextLabel33.ClipsDescendants = true
  483. TextLabel33.FontSize = Enum.FontSize.Size9
  484. TextLabel33.TextColor3 = Color3.new(1, 1, 1)
  485. TextLabel33.TextWrapped = true
  486. ImageLabel34.Parent = TextLabel32
  487. ImageLabel34.Transparency = 1
  488. ImageLabel34.Size = UDim2.new(0, 70, 0, 71)
  489. ImageLabel34.Position = UDim2.new(0, 12, 0, 10)
  490. ImageLabel34.BackgroundColor3 = Color3.new(1, 1, 1)
  491. ImageLabel34.BackgroundTransparency = 1
  492. ImageLabel34.BorderSizePixel = 0
  493. ImageLabel34.ZIndex = 9
  494. TextButton35.Name = "Button"
  495. TextButton35.Parent = TextLabel32
  496. TextButton35.Transparency = 1
  497. TextButton35.Size = UDim2.new(1, 0, 1, 0)
  498. TextButton35.Text = ""
  499. TextButton35.BackgroundColor3 = Color3.new(1, 1, 1)
  500. TextButton35.BackgroundTransparency = 1
  501. TextButton35.BorderSizePixel = 0
  502. TextButton35.ZIndex = 9
  503. TextButton35.Font = Enum.Font.SourceSans
  504. TextButton35.FontSize = Enum.FontSize.Size14
  505. TextLabel36.Name = "Slot9"
  506. TextLabel36.Parent = Frame7
  507. TextLabel36.Transparency = 0.40000000596046
  508. TextLabel36.Size = UDim2.new(0, 90, 1, 0)
  509. TextLabel36.Text = "Slot9"
  510. TextLabel36.Position = UDim2.new(0, 720, 0, 0)
  511. TextLabel36.Visible = false
  512. TextLabel36.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  513. TextLabel36.BackgroundTransparency = 0.40000000596046
  514. TextLabel36.BorderColor3 = Color3.new(0, 1, 0)
  515. TextLabel36.BorderSizePixel = 0
  516. TextLabel36.ZIndex = 8
  517. TextLabel36.ClipsDescendants = true
  518. TextLabel36.FontSize = Enum.FontSize.Size9
  519. TextLabel36.TextColor3 = Color3.new(1, 1, 1)
  520. TextLabel36.TextXAlignment = Enum.TextXAlignment.Left
  521. TextLabel37.Name = "NumberLabel"
  522. TextLabel37.Parent = TextLabel36
  523. TextLabel37.Size = UDim2.new(0, 16, 0, 16)
  524. TextLabel37.Text = "9"
  525. TextLabel37.Position = UDim2.new(0, 2, 1, -17)
  526. TextLabel37.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  527. TextLabel37.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  528. TextLabel37.BorderSizePixel = 0
  529. TextLabel37.ZIndex = 8
  530. TextLabel37.ClipsDescendants = true
  531. TextLabel37.FontSize = Enum.FontSize.Size9
  532. TextLabel37.TextColor3 = Color3.new(1, 1, 1)
  533. TextLabel37.TextWrapped = true
  534. ImageLabel38.Parent = TextLabel36
  535. ImageLabel38.Transparency = 1
  536. ImageLabel38.Size = UDim2.new(0, 70, 0, 71)
  537. ImageLabel38.Position = UDim2.new(0, 12, 0, 10)
  538. ImageLabel38.BackgroundColor3 = Color3.new(1, 1, 1)
  539. ImageLabel38.BackgroundTransparency = 1
  540. ImageLabel38.BorderSizePixel = 0
  541. ImageLabel38.ZIndex = 9
  542. TextButton39.Name = "Button"
  543. TextButton39.Parent = TextLabel36
  544. TextButton39.Transparency = 1
  545. TextButton39.Size = UDim2.new(1, 0, 1, 0)
  546. TextButton39.Text = ""
  547. TextButton39.BackgroundColor3 = Color3.new(1, 1, 1)
  548. TextButton39.BackgroundTransparency = 1
  549. TextButton39.BorderSizePixel = 0
  550. TextButton39.ZIndex = 9
  551. TextButton39.Font = Enum.Font.SourceSans
  552. TextButton39.FontSize = Enum.FontSize.Size14
  553. TextLabel40.Name = "Slot8"
  554. TextLabel40.Parent = Frame7
  555. TextLabel40.Transparency = 0.40000000596046
  556. TextLabel40.Size = UDim2.new(0, 90, 1, 0)
  557. TextLabel40.Text = "Slot8"
  558. TextLabel40.Position = UDim2.new(0, 630, 0, 0)
  559. TextLabel40.Visible = false
  560. TextLabel40.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  561. TextLabel40.BackgroundTransparency = 0.40000000596046
  562. TextLabel40.BorderColor3 = Color3.new(0, 1, 0)
  563. TextLabel40.BorderSizePixel = 0
  564. TextLabel40.ZIndex = 8
  565. TextLabel40.ClipsDescendants = true
  566. TextLabel40.FontSize = Enum.FontSize.Size9
  567. TextLabel40.TextColor3 = Color3.new(1, 1, 1)
  568. TextLabel40.TextXAlignment = Enum.TextXAlignment.Left
  569. TextLabel41.Name = "NumberLabel"
  570. TextLabel41.Parent = TextLabel40
  571. TextLabel41.Size = UDim2.new(0, 16, 0, 16)
  572. TextLabel41.Text = "8"
  573. TextLabel41.Position = UDim2.new(0, 2, 1, -17)
  574. TextLabel41.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  575. TextLabel41.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  576. TextLabel41.BorderSizePixel = 0
  577. TextLabel41.ZIndex = 8
  578. TextLabel41.ClipsDescendants = true
  579. TextLabel41.FontSize = Enum.FontSize.Size9
  580. TextLabel41.TextColor3 = Color3.new(1, 1, 1)
  581. TextLabel41.TextWrapped = true
  582. ImageLabel42.Parent = TextLabel40
  583. ImageLabel42.Transparency = 1
  584. ImageLabel42.Size = UDim2.new(0, 70, 0, 71)
  585. ImageLabel42.Position = UDim2.new(0, 12, 0, 10)
  586. ImageLabel42.BackgroundColor3 = Color3.new(1, 1, 1)
  587. ImageLabel42.BackgroundTransparency = 1
  588. ImageLabel42.BorderSizePixel = 0
  589. ImageLabel42.ZIndex = 9
  590. TextButton43.Name = "Button"
  591. TextButton43.Parent = TextLabel40
  592. TextButton43.Transparency = 1
  593. TextButton43.Size = UDim2.new(1, 0, 1, 0)
  594. TextButton43.Text = ""
  595. TextButton43.BackgroundColor3 = Color3.new(1, 1, 1)
  596. TextButton43.BackgroundTransparency = 1
  597. TextButton43.BorderSizePixel = 0
  598. TextButton43.ZIndex = 9
  599. TextButton43.Font = Enum.Font.SourceSans
  600. TextButton43.FontSize = Enum.FontSize.Size14
  601. TextLabel44.Name = "Slot0"
  602. TextLabel44.Parent = Frame7
  603. TextLabel44.Transparency = 0.40000000596046
  604. TextLabel44.Size = UDim2.new(0, 90, 1, 0)
  605. TextLabel44.Text = "Slot0"
  606. TextLabel44.Position = UDim2.new(0, 810, 0, 0)
  607. TextLabel44.Visible = false
  608. TextLabel44.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  609. TextLabel44.BackgroundTransparency = 0.40000000596046
  610. TextLabel44.BorderColor3 = Color3.new(0, 1, 0)
  611. TextLabel44.BorderSizePixel = 0
  612. TextLabel44.ZIndex = 8
  613. TextLabel44.ClipsDescendants = true
  614. TextLabel44.FontSize = Enum.FontSize.Size9
  615. TextLabel44.TextColor3 = Color3.new(1, 1, 1)
  616. TextLabel44.TextXAlignment = Enum.TextXAlignment.Left
  617. TextButton45.Name = "Button"
  618. TextButton45.Parent = TextLabel44
  619. TextButton45.Transparency = 1
  620. TextButton45.Size = UDim2.new(1, 0, 1, 0)
  621. TextButton45.Text = ""
  622. TextButton45.BackgroundColor3 = Color3.new(1, 1, 1)
  623. TextButton45.BackgroundTransparency = 1
  624. TextButton45.BorderSizePixel = 0
  625. TextButton45.ZIndex = 9
  626. TextButton45.Font = Enum.Font.SourceSans
  627. TextButton45.FontSize = Enum.FontSize.Size14
  628. ImageLabel46.Parent = TextLabel44
  629. ImageLabel46.Transparency = 1
  630. ImageLabel46.Size = UDim2.new(0, 70, 0, 71)
  631. ImageLabel46.Position = UDim2.new(0, 12, 0, 10)
  632. ImageLabel46.BackgroundColor3 = Color3.new(1, 1, 1)
  633. ImageLabel46.BackgroundTransparency = 1
  634. ImageLabel46.BorderSizePixel = 0
  635. ImageLabel46.ZIndex = 9
  636. TextLabel47.Name = "NumberLabel"
  637. TextLabel47.Parent = TextLabel44
  638. TextLabel47.Size = UDim2.new(0, 16, 0, 16)
  639. TextLabel47.Text = "0"
  640. TextLabel47.Position = UDim2.new(0, 2, 1, -17)
  641. TextLabel47.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  642. TextLabel47.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  643. TextLabel47.BorderSizePixel = 0
  644. TextLabel47.ZIndex = 8
  645. TextLabel47.ClipsDescendants = true
  646. TextLabel47.FontSize = Enum.FontSize.Size9
  647. TextLabel47.TextColor3 = Color3.new(1, 1, 1)
  648. TextLabel47.TextWrapped = true
  649. Frame48.Name = "ChatList"
  650. Frame48.Parent = ScreenGui1
  651. Frame48.Transparency = 1
  652. Frame48.Size = UDim2.new(1, -34, 0, 86)
  653. Frame48.Position = UDim2.new(0, 34, 0, 30)
  654. Frame48.BackgroundColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  655. Frame48.BackgroundTransparency = 1
  656. Frame48.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  657. Frame48.BorderSizePixel = 0
  658. Frame48.ZIndex = 8
  659. TextBox49.Name = "Chat"
  660. TextBox49.Parent = ScreenGui1
  661. TextBox49.Size = UDim2.new(1, 0, 0, 20)
  662. TextBox49.Text = "To chat click here or press the "/" key"
  663. TextBox49.Position = UDim2.new(0, 0, 1, -20)
  664. TextBox49.BackgroundColor3 = Color3.new(0.25098, 0.25098, 0.25098)
  665. TextBox49.BorderColor3 = Color3.new(0.25098, 0.25098, 0.25098)
  666. TextBox49.BorderSizePixel = 0
  667. TextBox49.ZIndex = 8
  668. TextBox49.Font = Enum.Font.SourceSansBold
  669. TextBox49.FontSize = Enum.FontSize.Size14
  670. TextBox49.TextColor3 = Color3.new(1, 1, 0.784314)
  671. TextBox49.TextXAlignment = Enum.TextXAlignment.Left
  672. TextBox49.TextYAlignment = Enum.TextYAlignment.Top
  673. Frame50.Name = "Filler"
  674. Frame50.Parent = TextBox49
  675. Frame50.Size = UDim2.new(0, 60, 1, 0)
  676. Frame50.Position = UDim2.new(0, -60, 0, 0)
  677. Frame50.BackgroundColor3 = Color3.new(0.25098, 0.25098, 0.25098)
  678. Frame50.BorderColor3 = Color3.new(0.25098, 0.25098, 0.25098)
  679. Frame50.BorderSizePixel = 0
  680. Frame50.ZIndex = 8
  681. TextButton51.Name = "ClickDetect"
  682. TextButton51.Parent = TextBox49
  683. TextButton51.Transparency = 1
  684. TextButton51.Size = UDim2.new(1, 0, 1, 0)
  685. TextButton51.Text = ""
  686. TextButton51.Active = false
  687. TextButton51.BackgroundColor3 = Color3.new(1, 1, 1)
  688. TextButton51.BackgroundTransparency = 1
  689. TextButton51.BorderSizePixel = 0
  690. TextButton51.ZIndex = 9
  691. TextButton51.Font = Enum.Font.SourceSans
  692. TextButton51.FontSize = Enum.FontSize.Size14
  693. ImageLabel52.Name = "Cursor"
  694. ImageLabel52.Parent = ScreenGui1
  695. ImageLabel52.Transparency = 1
  696. ImageLabel52.Size = UDim2.new(0, 80, 0, 80)
  697. ImageLabel52.Position = UDim2.new(1, 0, 1, 0)
  698. ImageLabel52.BackgroundColor3 = Color3.new(1, 1, 1)
  699. ImageLabel52.BackgroundTransparency = 1
  700. ImageLabel52.BorderSizePixel = 0
  701. ImageLabel52.ZIndex = 10
  702. ImageLabel52.Image = "rbxassetid://199228706"
  703. LocalScript53.Parent = ScreenGui1
  704. table.insert(cors,sandbox(LocalScript53,function()
  705. for k, v in pairs(workspace.CurrentCamera:GetChildren()) do
  706. if v.Name == "walkdisc" then
  707. v:Destroy()
  708. end
  709. end
  710. localplayer = game:GetService("Players").LocalPlayer
  711. repeat wait() until localplayer.Character
  712. repeat wait() until localplayer.Character:IsDescendantOf(game)
  713. mouse = localplayer:GetMouse()
  714. sendchat = Instance.new("RemoteFunction")
  715. sendchat.Name = "SendChat"
  716. sendchat.Parent = script
  717. gui = script.Parent
  718. walkdisc = script:WaitForChild("walkdisc")
  719. walkdisc.Parent = workspace.CurrentCamera
  720. m = Instance.new("CylinderMesh",walkdisc)
  721. m.Scale = Vector3.new(1,0.4,1)
  722. mouse.TargetFilter = walkdisc
  723. health = gui:WaitForChild("Health")
  724. inventory = gui:WaitForChild("Inventory")
  725. playerlist = gui:WaitForChild("PlayerList")
  726. chat = gui:WaitForChild("Chat")
  727. chatlist = gui:WaitForChild("ChatList")
  728.  
  729. ChatColors = {BrickColor.new("Bright red"),BrickColor.new("Bright blue"),BrickColor.new("Earth green"),BrickColor.new("Bright violet"),BrickColor.new("Bright orange"),BrickColor.new("Bright yellow"),BrickColor.new("Light reddish violet"),BrickColor.new("Brick yellow")}
  730. inv = {"1","2","3","4","5","6","7","8","9","0"}
  731. players = {}
  732. tools = {}
  733. cursel = ""
  734.  
  735. function spairs(t, order)
  736. local keys = {}
  737. for k in pairs(t) do keys[#keys+1] = k end
  738. if order then
  739. table.sort(keys, function(a,b) return order(t, a, b) end)
  740. else
  741. table.sort(keys)
  742. end
  743. local i = 0
  744. return function()
  745. i = i + 1
  746. if keys[i] then
  747. return keys[i], t[keys[i]]
  748. end
  749. end
  750. end
  751.  
  752. function GetNameValue(name)
  753. local value = 0
  754. for index = 1, #name do
  755. local cValue = string.byte(string.sub(name, index, index))
  756. local reverseIndex = #name - index + 1
  757. if #name % 2 == 1 then
  758. reverseIndex = reverseIndex - 1
  759. end
  760. if reverseIndex % 4 >= 2 then
  761. cValue = -cValue
  762. end
  763. value = value + cValue
  764. end
  765. return value % 8
  766. end
  767.  
  768. function indexcheck(v)
  769. for i=1,#tools do
  770. if tools[i] == v then
  771. return i
  772. end
  773. end
  774. return false
  775. end
  776.  
  777. function updateplist()
  778. local fplayers = game:GetService("Players"):GetChildren()
  779. local fteams = game:GetService("Teams"):GetChildren()
  780. players = {}
  781. teams = {}
  782. local get = playerlist:GetChildren()
  783. for i=1,#get do
  784. if not string.find(get[i].Name,"_Label") then
  785. get[i]:Destroy()
  786. end
  787. end
  788. for i=1,#fplayers do
  789. if fplayers[i].ClassName == "Player" then
  790. table.insert(players,#players+1,fplayers[i])
  791. end
  792. end
  793. for i=1,#fteams do
  794. if fteams[i].ClassName == "Team" then
  795. table.insert(teams,#teams+1,fteams[i])
  796. end
  797. end
  798. if #teams > 0 then --Player Names
  799. playerlist:WaitForChild("_Label1").Text = "Team"
  800. local teamspace = 0
  801. for i2=1,#teams do
  802. local labelt = script.Team:Clone()
  803. labelt:WaitForChild("_Label2").Text = teams[i2].Name
  804. labelt:WaitForChild("_Label2").TextColor3 = teams[i2].TeamColor.Color
  805. labelt:WaitForChild("_Label3").BackgroundColor3 = teams[i2].TeamColor.Color
  806. local vplayers = {}
  807. for i=1,#players do
  808. if not players[i].Neutral and players[i].TeamColor == teams[i2].TeamColor then
  809. table.insert(vplayers,#vplayers+1,players[i])
  810. end
  811. end
  812. for i=1,#vplayers do
  813. local label = script:WaitForChild("Player"):Clone()
  814. label.Text = vplayers[i].Name
  815. label.Position = UDim2.new(0,0,0,30+(20*(i-1)))
  816. label.Parent = labelt
  817. label.TextColor3 = vplayers[i].TeamColor.Color
  818. end
  819. labelt.Position = UDim2.new(0,5,0,20+teamspace)
  820. labelt.Size = UDim2.new(1,0,0,40+(20*#vplayers))
  821. teamspace = teamspace + labelt.Size.Y.Offset
  822. labelt.Parent = playerlist
  823. end
  824. playerlist.Size = UDim2.new(0,168,0,40+teamspace)
  825. else
  826. for i=1,#players do
  827. local label = script:WaitForChild("Player"):Clone()
  828. label.Text = fplayers[i].Name
  829. label.Position = UDim2.new(0,0,0,40+(20*(i-1)))
  830. label.Parent = playerlist
  831. label.TextColor3 = ChatColors[GetNameValue(fplayers[i].Name) + 1].Color
  832. end
  833. playerlist.Size = UDim2.new(0,168,0,40+(20*#players))
  834. end
  835. local lslabels = {} --Player Scores
  836. for i=1,#players do
  837. if players[i]:FindFirstChild("leaderstats") then
  838. local get = players[i].leaderstats:GetChildren()
  839. for i2=1,#get do
  840. if get[i2].ClassName == "IntValue" or get[i2].ClassName == "NumberValue" then
  841. local ret = false
  842. for i3=1,#lslabels do
  843. if lslabels[i3].Name == get[i2].Name then
  844. ret = true
  845. end
  846. end
  847. if ret == false then
  848. table.insert(lslabels,#lslabels+1,get[i2])
  849. end
  850. for i3=1,#lslabels do
  851. if lslabels[i3].Name == get[i2].Name then
  852. local nslabel = script:WaitForChild("ScoreLabel"):Clone()
  853. nslabel.Text = tostring(get[i2].Value)
  854. if i3 == 1 then
  855. nslabel.Position = UDim2.new(0,155,0,0)
  856. else
  857. nslabel.Position = UDim2.new(0,155+(80/(i3-1)),0,0)
  858. end
  859. local get2 = playerlist:GetChildren()
  860. for i4=1,#get2 do
  861. if get2[i4].Name == "Team" then
  862. local get3 = get2[i4]:GetChildren()
  863. for i5=1,#get3 do
  864. if get3[i5].Name == "Player" and get3[i5].Text == players[i].Name then
  865. nslabel.TextColor3 = get3[i5].TextColor3
  866. nslabel.Parent = get3[i5]
  867. end
  868. end
  869. elseif get2[i4].Name == "Player" and get2[i4].Text == players[i].Name then
  870. nslabel.Parent = get2[i4]
  871. end
  872. end
  873. end
  874. end
  875. end
  876. end
  877. end
  878. end
  879. local get = playerlist:GetChildren() --Team Scores
  880. if #teams > 0 then
  881. for i=1,#get do
  882. if get[i].Name == "Team" then
  883. local valtable = {}
  884. local get2 = get[i]:GetChildren()
  885. for i2=1,#get2 do
  886. if get2[i2].Name == "Player" then
  887. local get3 = get2[i2]:GetChildren()
  888. for i3=1,#get3 do
  889. if valtable[i3] then
  890. valtable[i3] = valtable[i3] + tonumber(get3[i3].Text)
  891. else
  892. valtable[i3] = tonumber(get3[i3].Text)
  893. end
  894. end
  895. end
  896. end
  897. for i2=1,#valtable do
  898. local nslabel = script:WaitForChild("ScoreLabel"):Clone()
  899. nslabel.Text = tostring(valtable[i2])
  900. if i2 == 1 then
  901. nslabel.Position = UDim2.new(0,155,0,0)
  902. else
  903. nslabel.Position = UDim2.new(0,155+(80/(i2-1)),0,0)
  904. end
  905. nslabel.TextColor3 = get[i]:FindFirstChild("_Label2").TextColor3
  906. nslabel.TextStrokeTransparency = 0.5
  907. nslabel.Parent = get[i]
  908. end
  909. end
  910. end
  911. end
  912. local function sorter(tosort) --Sorting
  913. local sorted = {}
  914. local get2 = tosort:GetChildren()
  915. for i=1,#get2 do
  916. if get2[i].Name == "Player" then
  917. if get2[i]:FindFirstChild("ScoreLabel") then
  918. sorted[get2[i]] = tonumber(get2[i]:FindFirstChild("ScoreLabel").Text)
  919. else
  920. sorted[get2[i]] = -math.huge
  921. end
  922. end
  923. end
  924. local i = 0
  925. for k,v in spairs(sorted, function(t,a,b) return t[b] < t[a] end) do
  926. i = i + 1
  927. k.Position = UDim2.new(0,0,0,30+(20*(i-1)))
  928. end
  929. end
  930. if #teams > 0 then
  931. for i=1,#get do
  932. if get[i].Name == "Team" then
  933. sorter(get[i])
  934. end
  935. end
  936. else
  937. sorter(playerlist)
  938. end
  939. if #lslabels > 0 then --Titles
  940. playerlist.Position = UDim2.new(1,-330,0,10)
  941. playerlist.Size = UDim2.new(playerlist.Size.X,320,playerlist.Size.Y,playerlist.Size.Y.Offset)
  942. for i=1,#lslabels do
  943. local nslabel = script:WaitForChild("LSLabel"):Clone()
  944. nslabel.Text = lslabels[i].Name
  945. if i == 1 then
  946. nslabel.Position = UDim2.new(0,160,0,0)
  947. else
  948. nslabel.Position = UDim2.new(0,160+(80/(i-1)),0,0)
  949. end
  950. nslabel.Parent = playerlist
  951. end
  952. elseif #teams > 0 then
  953. playerlist:WaitForChild("_Label1").Text = ""
  954. for i=1,#get do
  955. if get[i].Name == "Team" then
  956. get[i].Position = UDim2.new(get[i].Position.X,get[i].Position.X.Offset,get[i].Position.Y,get[i].Position.Y.Offset-20)
  957. end
  958. end
  959. playerlist.Size = UDim2.new(playerlist.Size.X,playerlist.Size.X.Offset,playerlist.Size.Y,playerlist.Size.Y.Offset-20)
  960. end
  961. end
  962.  
  963. function updatetlist()
  964. local f1 = localplayer.Character:GetChildren()
  965. local f2 = localplayer.Backpack:GetChildren()
  966. local get = inventory:GetChildren()
  967. for i=1,#get do
  968. get[i].Visible = false
  969. end
  970. for i=1,#f1 do
  971. if f1[i].ClassName == "Tool" and indexcheck(f1[i]) == false then
  972. table.insert(tools,#tools+1,f1[i])
  973. end
  974. end
  975. for i=1,#f2 do
  976. if f2[i].ClassName == "Tool" and indexcheck(f2[i]) == false then
  977. table.insert(tools,#tools+1,f2[i])
  978. end
  979. end
  980. for i=1,#tools do
  981. if i >= 1 and i <= 10 then
  982. local ret = inv[i]
  983. if tools[i].TextureId ~= "" then
  984. inventory["Slot"..ret].ImageLabel.Image = tools[i].TextureId
  985. inventory["Slot"..ret].Text = ""
  986. else
  987. inventory["Slot"..ret].ImageLabel.Image = ""
  988. inventory["Slot"..ret].Text = " " .. tools[i].Name
  989. end
  990. inventory["Slot"..ret].Visible = true
  991. end
  992. end
  993. end
  994.  
  995. function updateclist()
  996. local chats = chatlist:GetChildren()
  997. for i=1,#chats do
  998. chats[i].Position = UDim2.new(0,0,0,(i*14)-14)
  999. end
  1000. end
  1001.  
  1002. function createchat(text)
  1003. workspace.ReceiveChat:InvokeServer(text)
  1004. end
  1005.  
  1006. function activatetool(number)
  1007. local get = localplayer.Character:GetChildren()
  1008. for i=1,#get do
  1009. if get[i].ClassName == "Tool" then
  1010. get[i].Parent = localplayer.Backpack
  1011. end
  1012. end
  1013. if cursel ~= number then
  1014. cursel = number
  1015. inventory["Slot1"].BorderSizePixel = 0
  1016. inventory["Slot2"].BorderSizePixel = 0
  1017. inventory["Slot3"].BorderSizePixel = 0
  1018. inventory["Slot4"].BorderSizePixel = 0
  1019. inventory["Slot5"].BorderSizePixel = 0
  1020. inventory["Slot6"].BorderSizePixel = 0
  1021. inventory["Slot7"].BorderSizePixel = 0
  1022. inventory["Slot8"].BorderSizePixel = 0
  1023. inventory["Slot9"].BorderSizePixel = 0
  1024. inventory["Slot0"].BorderSizePixel = 0
  1025. if tonumber(cursel) <= 10 then
  1026. local ret = inv[tonumber(cursel)]
  1027. inventory["Slot"..ret].BorderSizePixel = 1
  1028. end
  1029. local select = tools[tonumber(number)]
  1030. if select then
  1031. select.Parent = localplayer.Character
  1032. end
  1033. else
  1034. cursel = ""
  1035. inventory["Slot1"].BorderSizePixel = 0
  1036. inventory["Slot2"].BorderSizePixel = 0
  1037. inventory["Slot3"].BorderSizePixel = 0
  1038. inventory["Slot4"].BorderSizePixel = 0
  1039. inventory["Slot5"].BorderSizePixel = 0
  1040. inventory["Slot6"].BorderSizePixel = 0
  1041. inventory["Slot7"].BorderSizePixel = 0
  1042. inventory["Slot8"].BorderSizePixel = 0
  1043. inventory["Slot9"].BorderSizePixel = 0
  1044. inventory["Slot0"].BorderSizePixel = 0
  1045. end
  1046. end
  1047.  
  1048. function sendchat.OnClientInvoke(tuple)
  1049. local username = tuple[1]
  1050. local message = tuple[2]
  1051. local timeout = tuple[3]
  1052. if game:GetService("Players"):FindFirstChild(username) then
  1053. local newchat = script.Chat:Clone()
  1054. newchat.Parent = script
  1055. newchat.Message.Text = " " .. message
  1056. newchat.Username.Text = username .. ":"
  1057. local wid1 = newchat.Message.TextBounds.X
  1058. local wid2 = newchat.Username.TextBounds.X
  1059. local wid3 = wid1 + wid2
  1060. newchat.Message.Size = UDim2.new(0,wid1,0,14)
  1061. newchat.Message.Position = UDim2.new(0,wid2,0,0)
  1062. newchat.Username.Size = UDim2.new(0,wid2,0,14)
  1063. newchat.Size = UDim2.new(0,wid3,0,16)
  1064. if game:GetService("Players"):FindFirstChild(username).Neutral then
  1065. newchat.Username.TextColor3 = ChatColors[GetNameValue(username) + 1].Color
  1066. else
  1067. newchat.Username.TextColor3 = game:GetService("Players"):FindFirstChild(username).TeamColor.Color
  1068. end
  1069. local chats = chatlist:GetChildren()
  1070. if #chats == 6 then
  1071. chats[1]:Destroy()
  1072. end
  1073. newchat.Parent = chatlist
  1074. delay(30-timeout,function()
  1075. if newchat then
  1076. newchat:Destroy()
  1077. end
  1078. end)
  1079. end
  1080. end
  1081.  
  1082. chat.FocusLost:connect(function(enterPressed)
  1083. if enterPressed then
  1084. local text = chat.Text
  1085. chat.ClearTextOnFocus = true
  1086. chat.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
  1087. chat.Filler.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
  1088. chat.TextColor3 = Color3.new(1,1,200/255)
  1089. chat.Text = 'To chat click here or press the "/" key'
  1090. if string.len(text) ~= 0 then
  1091. createchat(text)
  1092. end
  1093. elseif string.len(chat.Text) == 0 then
  1094. chat.ClearTextOnFocus = true
  1095. chat.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
  1096. chat.Filler.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
  1097. chat.TextColor3 = Color3.new(1,1,200/255)
  1098. chat.Text = 'To chat click here or press the "/" key'
  1099. else
  1100. chat.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
  1101. chat.Filler.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
  1102. chat.TextColor3 = Color3.new(1,1,1)
  1103. end
  1104. end)
  1105. chat:WaitForChild("ClickDetect").MouseButton1Click:connect(function()
  1106. chat:CaptureFocus()
  1107. chat.ClearTextOnFocus = false
  1108. chat.BackgroundColor3 = Color3.new(1,1,1)
  1109. chat.Filler.BackgroundColor3 = Color3.new(1,1,1)
  1110. chat.TextColor3 = Color3.new(0,0,0)
  1111. end)
  1112. game:GetService("UserInputService").InputBegan:connect(function(key, gameProcessedEvent)
  1113. local caller, error = pcall(function()
  1114. key = key.KeyCode
  1115. end)
  1116. if not key or not caller or chat.TextColor3 == Color3.new(0,0,0) then
  1117. return
  1118. end
  1119. if key == Enum.KeyCode.One then
  1120. activatetool("1")
  1121. elseif key == Enum.KeyCode.Two then
  1122. activatetool("2")
  1123. elseif key == Enum.KeyCode.Three then
  1124. activatetool("3")
  1125. elseif key == Enum.KeyCode.Four then
  1126. activatetool("4")
  1127. elseif key == Enum.KeyCode.Five then
  1128. activatetool("5")
  1129. elseif key == Enum.KeyCode.Six then
  1130. activatetool("6")
  1131. elseif key == Enum.KeyCode.Seven then
  1132. activatetool("7")
  1133. elseif key == Enum.KeyCode.Eight then
  1134. activatetool("8")
  1135. elseif key == Enum.KeyCode.Nine then
  1136. activatetool("9")
  1137. elseif key == Enum.KeyCode.Zero then
  1138. activatetool("10")
  1139. elseif key == Enum.KeyCode.Slash then
  1140. chat:CaptureFocus()
  1141. chat.ClearTextOnFocus = false
  1142. chat.BackgroundColor3 = Color3.new(1,1,1)
  1143. chat.Filler.BackgroundColor3 = Color3.new(1,1,1)
  1144. chat.TextColor3 = Color3.new(0,0,0)
  1145. elseif (key == Enum.KeyCode.I or key == Enum.KeyCode.O or key == Enum.KeyCode.Comma or key == Enum.KeyCode.Period) and chat.TextColor3 ~= Color3.new(0,0,0) then
  1146. local s = script.SWITCH3:Clone()
  1147. s.Parent = script
  1148. s:Play()
  1149. s:Destroy()
  1150. elseif key == Enum.KeyCode.W or key == Enum.KeyCode.A or key == Enum.KeyCode.S or key == Enum.KeyCode.D or key == Enum.KeyCode.Up or key == Enum.KeyCode.Down then
  1151. for k, v in pairs(walkdisc:GetChildren()) do
  1152. if v.Name == "walkdisc" then
  1153. v.Parent = nil
  1154. end
  1155. end
  1156. end
  1157. end)
  1158. mouse.WheelForward:connect(function()
  1159. local s = script.SWITCH3:Clone()
  1160. s.Parent = script
  1161. s:Play()
  1162. s:Destroy()
  1163. end)
  1164. mouse.WheelBackward:connect(function()
  1165. local s = script.SWITCH3:Clone()
  1166. s.Parent = script
  1167. s:Play()
  1168. s:Destroy()
  1169. end)
  1170. mouse.Button1Down:connect(function()
  1171. if walkdisc.Transparency == 0 and localplayer:DistanceFromCharacter(mouse.Hit.p) <= 50 then
  1172. for k, v in pairs(walkdisc:GetChildren()) do
  1173. if v.Name == "walkdisc" then
  1174. v.Parent = nil
  1175. end
  1176. end
  1177. local newwalk = walkdisc:Clone()
  1178. newwalk.Parent = walkdisc
  1179. while newwalk and localplayer.Character and localplayer.Character:FindFirstChild("Humanoid") and newwalk:IsDescendantOf(walkdisc) and localplayer:DistanceFromCharacter(newwalk.Position) > 5 do
  1180. localplayer.Character.Humanoid:MoveTo(newwalk.Position, newwalk)
  1181. wait()
  1182. end
  1183. newwalk:Destroy()
  1184. end
  1185. end)
  1186. function leaderstatsconnectors(player)
  1187. local children = player:GetChildren() --Connect Existing Leaderstats
  1188. for i=1,#children do
  1189. if children[i].Name == "leaderstats" then
  1190. local children2 = children[i]:GetChildren()
  1191. for i2=1,#children2 do
  1192. if children2[i2].ClassName == "IntValue" or children2[i2].ClassName == "NumberValue" then
  1193. children2[i2].Changed:connect(updateplist)
  1194. end
  1195. end
  1196. children[i].ChildAdded:connect(function(child2)
  1197. if child2.ClassName == "IntValue" or child2.ClassName == "NumberValue" then
  1198. child2.Changed:connect(updateplist)
  1199. updateplist()
  1200. end
  1201. end)
  1202. children[i].ChildRemoved:connect(updateplist)
  1203. updateplist()
  1204. end
  1205. end
  1206. player.ChildAdded:connect(function(child) --Connect New Leaderstats
  1207. if child.Name == "leaderstats" then
  1208. local children2 = child:GetChildren()
  1209. for i2=1,#children2 do
  1210. if children2[i2].ClassName == "IntValue" or children2[i2].ClassName == "NumberValue" then
  1211. children2[i2].Changed:connect(function()
  1212. updateplist()
  1213. end)
  1214. end
  1215. end
  1216. child.ChildAdded:connect(function(child2)
  1217. if child2.ClassName == "IntValue" or child2.ClassName == "NumberValue" then
  1218. child2.Changed:connect(updateplist)
  1219. updateplist()
  1220. end
  1221. end)
  1222. child.ChildRemoved:connect(updateplist)
  1223. updateplist()
  1224. end
  1225. end)
  1226. player.ChildRemoved:connect(function(child) --Connect Removing Leaderstats
  1227. if child.Name == "leaderstats" then
  1228. updateplist()
  1229. end
  1230. end)
  1231. end
  1232. players = game:GetService("Players"):GetChildren() --Connect Existing Players
  1233. for i=1,#players do
  1234. if players[i].ClassName == "Player" then
  1235. players[i].Changed:connect(updateplist)
  1236. leaderstatsconnectors(players[i])
  1237. end
  1238. end
  1239. game:GetService("Players").ChildAdded:connect(function(player) --Connect New Players
  1240. if player.ClassName == "Player" then
  1241. player.Changed:connect(updateplist)
  1242. leaderstatsconnectors(player)
  1243. updateplist()
  1244. end
  1245. end)
  1246. game:GetService("Players").ChildRemoved:connect(function(player) --Connect Removing Players
  1247. if player.ClassName == "Player" then
  1248. updateplist()
  1249. end
  1250. end)
  1251. teams = game:GetService("Teams"):GetChildren() --Connect Existing Teams
  1252. for i=1,#teams do
  1253. if teams[i].ClassName == "Team" then
  1254. teams[i].Changed:connect(updateplist)
  1255. end
  1256. end
  1257. game:GetService("Teams").ChildAdded:connect(function(team) --Connect New Teams
  1258. if team.ClassName == "Team" then
  1259. team.Changed:connect(updateplist)
  1260. updateplist()
  1261. end
  1262. end)
  1263. game:GetService("Teams").ChildRemoved:connect(function(team) --Connect Removing Teams
  1264. if team.ClassName == "Team" then
  1265. updateplist()
  1266. end
  1267. end)
  1268. updateplist() --Player Update
  1269. localplayer.Backpack.ChildAdded:connect(function(tool) --Connect New Tools
  1270. if tool.ClassName == "Tool" then
  1271. if indexcheck(tool) == false then
  1272. tool.Changed:connect(updatetlist)
  1273. end
  1274. updatetlist()
  1275. end
  1276. end)
  1277. localplayer.Backpack.ChildRemoved:connect(function(tool) --Connect Removing Tools
  1278. if tool.ClassName == "Tool" then
  1279. if tool.Parent == localplayer.Character then
  1280. updatetlist()
  1281. else
  1282. table.remove(tools,indexcheck(tool))
  1283. updatetlist()
  1284. end
  1285. end
  1286. end)
  1287. localplayer.Character.ChildAdded:connect(function(tool) --Connect New Tools By Character
  1288. if tool.ClassName == "Tool" then
  1289. local doac = false
  1290. if indexcheck(tool) == false then
  1291. doac = true
  1292. tool.Changed:connect(updatetlist)
  1293. end
  1294. updatetlist()
  1295. if doac == true then
  1296. cursel = tostring(indexcheck(tool))
  1297. inventory["Slot1"].BorderSizePixel = 0
  1298. inventory["Slot2"].BorderSizePixel = 0
  1299. inventory["Slot3"].BorderSizePixel = 0
  1300. inventory["Slot4"].BorderSizePixel = 0
  1301. inventory["Slot5"].BorderSizePixel = 0
  1302. inventory["Slot6"].BorderSizePixel = 0
  1303. inventory["Slot7"].BorderSizePixel = 0
  1304. inventory["Slot8"].BorderSizePixel = 0
  1305. inventory["Slot9"].BorderSizePixel = 0
  1306. inventory["Slot0"].BorderSizePixel = 0
  1307. if tonumber(cursel) <= 10 then
  1308. inventory["Slot"..inv[tonumber(cursel)]].BorderSizePixel = 1
  1309. end
  1310. end
  1311. end
  1312. end)
  1313. localplayer.Character.ChildRemoved:connect(function(tool) --Connect Removing Tools By Character
  1314. if tool.ClassName == "Tool" then
  1315. if tool.Parent == localplayer.Backpack then
  1316. updatetlist()
  1317. if indexcheck(tool) and cursel == tostring(indexcheck(tool)) and not tool.CanBeDropped then
  1318. wait()
  1319. if cursel == tostring(indexcheck(tool)) then
  1320. cursel = ""
  1321. inventory["Slot1"].BorderSizePixel = 0
  1322. inventory["Slot2"].BorderSizePixel = 0
  1323. inventory["Slot3"].BorderSizePixel = 0
  1324. inventory["Slot4"].BorderSizePixel = 0
  1325. inventory["Slot5"].BorderSizePixel = 0
  1326. inventory["Slot6"].BorderSizePixel = 0
  1327. inventory["Slot7"].BorderSizePixel = 0
  1328. inventory["Slot8"].BorderSizePixel = 0
  1329. inventory["Slot9"].BorderSizePixel = 0
  1330. inventory["Slot0"].BorderSizePixel = 0
  1331. end
  1332. end
  1333. else
  1334. table.remove(tools,indexcheck(tool))
  1335. updatetlist()
  1336. cursel = ""
  1337. inventory["Slot1"].BorderSizePixel = 0
  1338. inventory["Slot2"].BorderSizePixel = 0
  1339. inventory["Slot3"].BorderSizePixel = 0
  1340. inventory["Slot4"].BorderSizePixel = 0
  1341. inventory["Slot5"].BorderSizePixel = 0
  1342. inventory["Slot6"].BorderSizePixel = 0
  1343. inventory["Slot7"].BorderSizePixel = 0
  1344. inventory["Slot8"].BorderSizePixel = 0
  1345. inventory["Slot9"].BorderSizePixel = 0
  1346. inventory["Slot0"].BorderSizePixel = 0
  1347. end
  1348. end
  1349. end)
  1350. buttons = inventory:GetChildren() --Connect Inventory Click Selection
  1351. for i=1,#buttons do
  1352. buttons[i].Button.MouseButton1Click:connect(function()
  1353. if buttons[i].NumberLabel.Text == "0" then
  1354. activatetool("10")
  1355. else
  1356. activatetool(buttons[i].NumberLabel.Text)
  1357. end
  1358. end)
  1359. end
  1360. updatetlist() --Tool Update
  1361. chatlist.ChildAdded:connect(updateclist) --Connect Chat
  1362. chatlist.ChildRemoved:connect(updateclist)
  1363. function updateHealth(property) --Connect Health
  1364. percentage = localplayer.Character.Humanoid.Health / localplayer.Character.Humanoid.MaxHealth
  1365. if percentage < 0 then
  1366. percentage = 0
  1367. elseif percentage > 1 then
  1368. percentage = 1
  1369. end
  1370. health:WaitForChild("Score").Position = UDim2.new(0,0,1-percentage,0)
  1371. health:WaitForChild("Score").Size = UDim2.new(1,0,percentage,0)
  1372. end
  1373. localplayer.Character:WaitForChild("Humanoid").Changed:connect(updateHealth)
  1374. localplayer.Character.Humanoid.Died:connect(function() updateHealth("Health") end)
  1375. game:GetService("RunService").RenderStepped:connect(function()
  1376. if cursel ~= "" then
  1377. game:GetService("UserInputService").MouseIconEnabled = true
  1378. gui.Cursor.Visible = false
  1379. else
  1380. game:GetService("UserInputService").MouseIconEnabled = false
  1381. gui.Cursor.Visible = true
  1382. end
  1383. if gui.Cursor.Visible then
  1384. gui.Cursor.Position = UDim2.new(0, mouse.X - 40, 0, mouse.Y - 40)
  1385. if mouse.Target then
  1386. gui.Cursor.Image = "rbxassetid://199228706"
  1387. for k, v in pairs(mouse.Target:GetChildren()) do
  1388. if v.ClassName == "ClickDetector" and localplayer:DistanceFromCharacter(mouse.Hit.p) <= v.MaxActivationDistance then
  1389. gui.Cursor.Image = "rbxassetid://199232395"
  1390. end
  1391. end
  1392. if localplayer:DistanceFromCharacter(mouse.Hit.p) <= 50 then
  1393. walkdisc.CFrame = CFrame.new(mouse.Hit.p)
  1394. walkdisc.Transparency = 0
  1395. else
  1396. walkdisc.Transparency = 1
  1397. end
  1398. else
  1399. gui.Cursor.Image = "rbxassetid://199228762"
  1400. walkdisc.Transparency = 1
  1401. end
  1402. else
  1403. walkdisc.Transparency = 1
  1404. end
  1405. end)
  1406. game:GetService("UserInputService").MouseIconEnabled = false
  1407. game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
  1408. end))
  1409. TextLabel54.Name = "Player"
  1410. TextLabel54.Parent = LocalScript53
  1411. TextLabel54.Transparency = 1
  1412. TextLabel54.Size = UDim2.new(0, 100, 0, 20)
  1413. TextLabel54.Text = "Player1"
  1414. TextLabel54.Position = UDim2.new(0, 0, 0, 40)
  1415. TextLabel54.BackgroundColor3 = Color3.new(1, 1, 1)
  1416. TextLabel54.BackgroundTransparency = 1
  1417. TextLabel54.BorderSizePixel = 0
  1418. TextLabel54.ZIndex = 9
  1419. TextLabel54.FontSize = Enum.FontSize.Size12
  1420. TextLabel54.TextColor3 = Color3.new(1, 1, 1)
  1421. TextLabel54.TextXAlignment = Enum.TextXAlignment.Left
  1422. Frame55.Name = "Chat"
  1423. Frame55.Parent = LocalScript53
  1424. Frame55.Transparency = 0.40000000596046
  1425. Frame55.Size = UDim2.new(0, 0, 0, 16)
  1426. Frame55.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  1427. Frame55.BackgroundTransparency = 0.40000000596046
  1428. Frame55.BorderColor3 = Color3.new(0.6, 0.6, 0.6)
  1429. Frame55.BorderSizePixel = 0
  1430. Frame55.ZIndex = 8
  1431. TextLabel56.Name = "Message"
  1432. TextLabel56.Parent = Frame55
  1433. TextLabel56.Transparency = 1
  1434. TextLabel56.Size = UDim2.new(0, 0, 0, 14)
  1435. TextLabel56.Text = "Hello World!"
  1436. TextLabel56.BackgroundColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  1437. TextLabel56.BackgroundTransparency = 1
  1438. TextLabel56.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  1439. TextLabel56.BorderSizePixel = 0
  1440. TextLabel56.ZIndex = 9
  1441. TextLabel56.FontSize = Enum.FontSize.Size10
  1442. TextLabel56.TextColor3 = Color3.new(1, 1, 1)
  1443. TextLabel56.TextXAlignment = Enum.TextXAlignment.Left
  1444. TextLabel57.Name = "Username"
  1445. TextLabel57.Parent = Frame55
  1446. TextLabel57.Transparency = 1
  1447. TextLabel57.Size = UDim2.new(0, 0, 0, 14)
  1448. TextLabel57.Text = "hunte922:"
  1449. TextLabel57.BackgroundColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  1450. TextLabel57.BackgroundTransparency = 1
  1451. TextLabel57.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  1452. TextLabel57.BorderSizePixel = 0
  1453. TextLabel57.ZIndex = 9
  1454. TextLabel57.FontSize = Enum.FontSize.Size10
  1455. TextLabel57.TextColor3 = Color3.new(1, 0, 0)
  1456. TextLabel57.TextXAlignment = Enum.TextXAlignment.Left
  1457. Frame58.Name = "Team"
  1458. Frame58.Parent = LocalScript53
  1459. Frame58.Transparency = 1
  1460. Frame58.Size = UDim2.new(1, 0, 0, 40)
  1461. Frame58.Position = UDim2.new(0, 5, 0, 20)
  1462. Frame58.BackgroundColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  1463. Frame58.BackgroundTransparency = 1
  1464. Frame58.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  1465. Frame58.BorderSizePixel = 0
  1466. Frame58.ZIndex = 8
  1467. TextLabel59.Name = "_Label2"
  1468. TextLabel59.Parent = Frame58
  1469. TextLabel59.Transparency = 1
  1470. TextLabel59.Size = UDim2.new(0, 100, 0, 20)
  1471. TextLabel59.Text = "Red Hawks"
  1472. TextLabel59.Position = UDim2.new(0, -5, 0, 0)
  1473. TextLabel59.BackgroundColor3 = Color3.new(1, 1, 1)
  1474. TextLabel59.BackgroundTransparency = 1
  1475. TextLabel59.BorderSizePixel = 0
  1476. TextLabel59.ZIndex = 9
  1477. TextLabel59.FontSize = Enum.FontSize.Size12
  1478. TextLabel59.TextColor3 = Color3.new(1, 0, 0)
  1479. TextLabel59.TextStrokeTransparency = 0.5
  1480. TextLabel59.TextXAlignment = Enum.TextXAlignment.Left
  1481. Frame60.Name = "_Label3"
  1482. Frame60.Parent = Frame58
  1483. Frame60.Size = UDim2.new(1, -4, 0, 1)
  1484. Frame60.Position = UDim2.new(0, -3, 0, 20)
  1485. Frame60.BackgroundColor3 = Color3.new(1, 0, 0)
  1486. Frame60.BorderSizePixel = 0
  1487. Frame60.ZIndex = 9
  1488. TextLabel61.Name = "LSLabel"
  1489. TextLabel61.Parent = LocalScript53
  1490. TextLabel61.Transparency = 1
  1491. TextLabel61.Size = UDim2.new(0, 100, 0, 30)
  1492. TextLabel61.Text = "KOs"
  1493. TextLabel61.Position = UDim2.new(0, 160, 0, 0)
  1494. TextLabel61.BackgroundColor3 = Color3.new(1, 1, 1)
  1495. TextLabel61.BackgroundTransparency = 1
  1496. TextLabel61.BorderSizePixel = 0
  1497. TextLabel61.ZIndex = 9
  1498. TextLabel61.FontSize = Enum.FontSize.Size12
  1499. TextLabel61.TextColor3 = Color3.new(1, 1, 1)
  1500. TextLabel61.TextXAlignment = Enum.TextXAlignment.Left
  1501. TextLabel62.Name = "ScoreLabel"
  1502. TextLabel62.Parent = LocalScript53
  1503. TextLabel62.Transparency = 1
  1504. TextLabel62.Size = UDim2.new(0, 100, 0, 20)
  1505. TextLabel62.Text = "0"
  1506. TextLabel62.Position = UDim2.new(0, 155, 0, 0)
  1507. TextLabel62.BackgroundColor3 = Color3.new(1, 1, 1)
  1508. TextLabel62.BackgroundTransparency = 1
  1509. TextLabel62.BorderSizePixel = 0
  1510. TextLabel62.ZIndex = 9
  1511. TextLabel62.FontSize = Enum.FontSize.Size12
  1512. TextLabel62.TextColor3 = Color3.new(1, 1, 1)
  1513. TextLabel62.TextXAlignment = Enum.TextXAlignment.Left
  1514. Sound63.Name = "SWITCH3"
  1515. Sound63.Parent = LocalScript53
  1516. Sound63.SoundId = "http://www.roblox.com/asset/?id=161252159"
  1517. Part64.Name = "walkdisc"
  1518. Part64.Parent = LocalScript53
  1519. Part64.Material = Enum.Material.SmoothPlastic
  1520. Part64.BrickColor = BrickColor.new("Lime green")
  1521. Part64.Anchored = true
  1522. Part64.CanCollide = false
  1523. Part64.Locked = true
  1524. Part64.FormFactor = Enum.FormFactor.Plate
  1525. Part64.Size = Vector3.new(2, 0.400000006, 2)
  1526. Part64.CFrame = CFrame.new(92, 130.199997, -106, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1527. Part64.Color = Color3.new(0, 1, 0)
  1528. Part64.Position = Vector3.new(92, 130.199997, -106)
  1529. Part64.Color = Color3.new(0, 1, 0)
  1530. RemoteFunction65.Name = "ReceiveChat"
  1531. RemoteFunction65.Parent = Script0
  1532. Script66.Name = "RetroManager"
  1533. Script66.Parent = Script0
  1534. table.insert(cors,sandbox(Script66,function()
  1535. receivechat = workspace:WaitForChild("ReceiveChat")
  1536. script:WaitForChild("Settings")
  1537. anims = script.Settings:WaitForChild("RetroCharacterAnimations").Value
  1538. body = script.Settings:WaitForChild("RetroCharacterBody").Value
  1539. sounds = script.Settings:WaitForChild("RetroCharacterSound").Value
  1540. face = script.Settings:WaitForChild("RetroCharacterFace").Value
  1541. namelog = {}
  1542. chatlog = {}
  1543. timelog = {}
  1544. function trimLeft(s,n)
  1545. return string.sub(s, n+1)
  1546. end
  1547. function trimRight(s,n)
  1548. return string.sub(s, 1, -n-1)
  1549. end
  1550. function cropLeft(s,n)
  1551. return string.sub(s, 1, n)
  1552. end
  1553. function cropRight(s,n)
  1554. return string.sub(s, -n, -1)
  1555. end
  1556. function receivechat.OnServerInvoke(username, message)
  1557. pcall(function()
  1558. message = game:GetService("Chat"):FilterStringForPlayerAsync(message, username)
  1559. end)
  1560. if cropLeft(message, 1) ~= "%" then
  1561. local players = game:GetService("Players"):GetChildren()
  1562. for i = 1, #players do
  1563. if players[i].ClassName == "Player" then
  1564. spawn(function()
  1565. pcall(function()
  1566. message = game:GetService("Chat"):FilterStringForPlayerAsync(message, players[i])
  1567. end)
  1568. players[i]:WaitForChild("PlayerGui"):WaitForChild("Retro"):WaitForChild("LocalScript"):WaitForChild("SendChat"):InvokeClient(players[i],{username.Name,message,0})
  1569. end)
  1570. end
  1571. end
  1572. else
  1573. local players = game:GetService("Players"):GetChildren()
  1574. for i = 1, #players do
  1575. if players[i].ClassName == "Player" then
  1576. if players[i].TeamColor == username.TeamColor or players[i].Neutral then
  1577. spawn(function()
  1578. pcall(function()
  1579. message = game:GetService("Chat"):FilterStringForPlayerAsync(message, username)
  1580. end)
  1581. players[i]:WaitForChild("PlayerGui"):WaitForChild("Retro"):WaitForChild("LocalScript"):WaitForChild("SendChat"):InvokeClient(players[i],{username.Name,"(TEAM) "..trimLeft(message,1),0})
  1582. end)
  1583. end
  1584. end
  1585. end
  1586. end
  1587. namelog[1] = namelog[2]
  1588. namelog[2] = namelog[3]
  1589. namelog[3] = namelog[4]
  1590. namelog[4] = namelog[5]
  1591. namelog[5] = namelog[6]
  1592. namelog[6] = username.Name
  1593. chatlog[1] = chatlog[2]
  1594. chatlog[2] = chatlog[3]
  1595. chatlog[3] = chatlog[4]
  1596. chatlog[4] = chatlog[5]
  1597. chatlog[5] = chatlog[6]
  1598. chatlog[6] = message
  1599. timelog[1] = timelog[2]
  1600. timelog[2] = timelog[3]
  1601. timelog[3] = timelog[4]
  1602. timelog[4] = timelog[5]
  1603. timelog[5] = timelog[6]
  1604. timelog[6] = workspace.DistributedGameTime
  1605. end
  1606. function makeheadmesh(character)
  1607. if character:IsDescendantOf(game) and character:WaitForChild("Head"):IsDescendantOf(game) then
  1608. script.Mesh:Clone().Parent = character:WaitForChild("Head")
  1609. end
  1610. end
  1611. function clean(item, character)
  1612. if item.Name == "face" and face then
  1613. item:Destroy()
  1614. local f = script:WaitForChild("face2"):Clone()
  1615. f.Parent = character.Head
  1616. elseif item.ClassName == "CharacterMesh" and body then
  1617. item:Destroy()
  1618. elseif (item.ClassName == "SpecialMesh" or item.ClassName == "BlockMesh" or item.ClassName == "CylinderMesh") and not (item.ClassName == "SpecialMesh" and item.MeshType == Enum.MeshType.Head and item.Scale == Vector3.new(1.25,1.25,1.25)) and body then
  1619. makeheadmesh(character)
  1620. end
  1621. end
  1622. function pa(player)
  1623. player.CharacterAdded:connect(function(character)
  1624. if anims then
  1625. character:WaitForChild("Animate"):Destroy()
  1626. local a = script:WaitForChild("Animate"):clone()
  1627. a.Parent = character
  1628. a.Disabled = false
  1629. end
  1630. if sounds then
  1631. character:WaitForChild("Sound"):Destroy()
  1632. local s = script:WaitForChild("Sound"):clone()
  1633. s.Parent = character
  1634. s.Disabled = false
  1635. end
  1636. if body then
  1637. character.ChildAdded:connect(function(item)
  1638. wait()
  1639. clean(item, character)
  1640. end)
  1641. local get = character:GetChildren()
  1642. for i = 1, #get do
  1643. clean(get[i], character)
  1644. end
  1645. character:WaitForChild("Head").ChildAdded:connect(function(item)
  1646. wait()
  1647. clean(item, character)
  1648. end)
  1649. local get = character.Head:GetChildren()
  1650. for i = 1, #get do
  1651. clean(get[i], character)
  1652. end
  1653. end
  1654. for i = 1, 6 do
  1655. if namelog[i] and chatlog[i] and timelog[i] and workspace.DistributedGameTime - timelog[i] < 30 then
  1656. if cropLeft(chatlog[i], 1) ~= "%" then
  1657. player:WaitForChild("PlayerGui"):WaitForChild("Retro"):WaitForChild("LocalScript"):WaitForChild("SendChat"):InvokeClient(player, {namelog[i], chatlog[i], workspace.DistributedGameTime - timelog[i]})
  1658. end
  1659. end
  1660. end
  1661. end)
  1662. end
  1663. game:GetService("Players").PlayerAdded:connect(pa)
  1664.  
  1665. local get = game:GetService("Players"):GetChildren()
  1666. for i = 1, #get do
  1667. pa(get[i])
  1668. end
  1669. end))
  1670. LocalScript67.Name = "Animate"
  1671. LocalScript67.Parent = Script66
  1672. LocalScript67.Disabled = true
  1673. table.insert(cors,sandbox(LocalScript67,function()
  1674. function waitForChild(parent, childName)
  1675. local child = parent:findFirstChild(childName)
  1676. if child then return child end
  1677. while true do
  1678. child = parent.ChildAdded:wait()
  1679. if child.Name==childName then return child end
  1680. end
  1681. end
  1682.  
  1683. -- ANIMATION
  1684.  
  1685. -- declarations
  1686.  
  1687. local Figure = script.Parent
  1688. local Torso = waitForChild(Figure, "Torso")
  1689. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  1690. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  1691. local RightHip = waitForChild(Torso, "Right Hip")
  1692. local LeftHip = waitForChild(Torso, "Left Hip")
  1693. local Neck = waitForChild(Torso, "Neck")
  1694. local Humanoid = waitForChild(Figure, "Humanoid")
  1695. local pose = "Standing"
  1696.  
  1697. local toolAnim = "None"
  1698. local toolAnimTime = 0
  1699.  
  1700. -- functions
  1701.  
  1702. function onRunning(speed)
  1703. if speed>0 then
  1704. pose = "Running"
  1705. else
  1706. pose = "Standing"
  1707. end
  1708. end
  1709.  
  1710. function onDied()
  1711. pose = "Dead"
  1712. end
  1713.  
  1714. function onJumping()
  1715. pose = "Jumping"
  1716. end
  1717.  
  1718. function onClimbing()
  1719. pose = "Climbing"
  1720. end
  1721.  
  1722. function onGettingUp()
  1723. pose = "GettingUp"
  1724. end
  1725.  
  1726. function onFreeFall()
  1727. pose = "FreeFall"
  1728. end
  1729.  
  1730. function onFallingDown()
  1731. pose = "FallingDown"
  1732. end
  1733.  
  1734. function onSeated()
  1735. pose = "Seated"
  1736. end
  1737.  
  1738. function onPlatformStanding()
  1739. pose = "PlatformStanding"
  1740. end
  1741.  
  1742. function moveJump()
  1743. RightShoulder.MaxVelocity = 0.5
  1744. LeftShoulder.MaxVelocity = 0.5
  1745. RightShoulder.DesiredAngle = 3.14
  1746. LeftShoulder.DesiredAngle = -3.14
  1747. RightHip.DesiredAngle = 0
  1748. LeftHip.DesiredAngle = 0
  1749. end
  1750.  
  1751.  
  1752. -- same as jump for now
  1753.  
  1754. function moveFreeFall()
  1755. RightShoulder.MaxVelocity = 0.5
  1756. LeftShoulder.MaxVelocity = 0.5
  1757. RightShoulder.DesiredAngle = 3.14
  1758. LeftShoulder.DesiredAngle = -3.14
  1759. RightHip.DesiredAngle = 0
  1760. LeftHip.DesiredAngle = 0
  1761. end
  1762.  
  1763. function moveSit()
  1764. RightShoulder.MaxVelocity = 0.15
  1765. LeftShoulder.MaxVelocity = 0.15
  1766. RightShoulder.DesiredAngle = 3.14 /2
  1767. LeftShoulder.DesiredAngle = -3.14 /2
  1768. RightHip.DesiredAngle = 3.14 /2
  1769. LeftHip.DesiredAngle = -3.14 /2
  1770. end
  1771.  
  1772. function getTool()
  1773. for _, kid in ipairs(Figure:GetChildren()) do
  1774. if kid.className == "Tool" then return kid end
  1775. end
  1776. return nil
  1777. end
  1778.  
  1779. function getToolAnim(tool)
  1780. for _, c in ipairs(tool:GetChildren()) do
  1781. if c.Name == "toolanim" and c.className == "StringValue" then
  1782. return c
  1783. end
  1784. end
  1785. return nil
  1786. end
  1787.  
  1788. function animateTool()
  1789.  
  1790. if (toolAnim == "None") then
  1791. RightShoulder.DesiredAngle = 1.57
  1792. return
  1793. end
  1794.  
  1795. if (toolAnim == "Slash") then
  1796. RightShoulder.MaxVelocity = 0.5
  1797. RightShoulder.DesiredAngle = 0
  1798. return
  1799. end
  1800.  
  1801. if (toolAnim == "Lunge") then
  1802. RightShoulder.MaxVelocity = 0.5
  1803. LeftShoulder.MaxVelocity = 0.5
  1804. RightHip.MaxVelocity = 0.5
  1805. LeftHip.MaxVelocity = 0.5
  1806. RightShoulder.DesiredAngle = 1.57
  1807. LeftShoulder.DesiredAngle = 1.0
  1808. RightHip.DesiredAngle = 1.57
  1809. LeftHip.DesiredAngle = 1.0
  1810. return
  1811. end
  1812. end
  1813.  
  1814. function move(time)
  1815. local amplitude
  1816. local frequency
  1817.  
  1818. if (pose == "Jumping") then
  1819. moveJump()
  1820. return
  1821. end
  1822.  
  1823. if (pose == "FreeFall") then
  1824. moveFreeFall()
  1825. return
  1826. end
  1827.  
  1828. if (pose == "Seated") then
  1829. moveSit()
  1830. return
  1831. end
  1832.  
  1833. local climbFudge = 0
  1834.  
  1835. if (pose == "Running") then
  1836. RightShoulder.MaxVelocity = 0.15
  1837. LeftShoulder.MaxVelocity = 0.15
  1838. amplitude = 1
  1839. frequency = 9
  1840. elseif (pose == "Climbing") then
  1841. RightShoulder.MaxVelocity = 0.5
  1842. LeftShoulder.MaxVelocity = 0.5
  1843. amplitude = 1
  1844. frequency = 9
  1845. climbFudge = 3.14
  1846. else
  1847. amplitude = 0.1
  1848. frequency = 1
  1849. end
  1850.  
  1851. desiredAngle = amplitude * math.sin(time*frequency)
  1852.  
  1853. RightShoulder.DesiredAngle = desiredAngle + climbFudge
  1854. LeftShoulder.DesiredAngle = desiredAngle - climbFudge
  1855. RightHip.DesiredAngle = -desiredAngle
  1856. LeftHip.DesiredAngle = -desiredAngle
  1857.  
  1858.  
  1859. local tool = getTool()
  1860.  
  1861. if tool then
  1862.  
  1863. animStringValueObject = getToolAnim(tool)
  1864.  
  1865. if animStringValueObject then
  1866. toolAnim = animStringValueObject.Value
  1867. -- message recieved, delete StringValue
  1868. animStringValueObject.Parent = nil
  1869. toolAnimTime = time + .3
  1870. end
  1871.  
  1872. if time > toolAnimTime then
  1873. toolAnimTime = 0
  1874. toolAnim = "None"
  1875. end
  1876.  
  1877. animateTool()
  1878.  
  1879.  
  1880. else
  1881. toolAnim = "None"
  1882. toolAnimTime = 0
  1883. end
  1884. end
  1885.  
  1886.  
  1887. -- connect events
  1888.  
  1889. Humanoid.Died:connect(onDied)
  1890. Humanoid.Running:connect(onRunning)
  1891. Humanoid.Jumping:connect(onJumping)
  1892. Humanoid.Climbing:connect(onClimbing)
  1893. Humanoid.GettingUp:connect(onGettingUp)
  1894. Humanoid.FreeFalling:connect(onFreeFall)
  1895. Humanoid.FallingDown:connect(onFallingDown)
  1896. Humanoid.Seated:connect(onSeated)
  1897. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1898.  
  1899. -- main program
  1900.  
  1901. local runService = game:service("RunService");
  1902.  
  1903. while Figure.Parent~=nil do
  1904. local _, time = wait(0.1)
  1905. move(time)
  1906. end
  1907.  
  1908. end))
  1909. SpecialMesh68.Parent = Script66
  1910. SpecialMesh68.Scale = Vector3.new(1.25, 1.25, 1.25)
  1911. SpecialMesh68.Scale = Vector3.new(1.25, 1.25, 1.25)
  1912. Configuration69.Name = "Settings"
  1913. Configuration69.Parent = Script66
  1914. BoolValue70.Name = "RetroCharacterAnimations"
  1915. BoolValue70.Parent = Configuration69
  1916. BoolValue70.Value = true
  1917. BoolValue71.Name = "RetroCharacterBody"
  1918. BoolValue71.Parent = Configuration69
  1919. BoolValue71.Value = true
  1920. BoolValue72.Name = "RetroCharacterSound"
  1921. BoolValue72.Parent = Configuration69
  1922. BoolValue72.Value = true
  1923. BoolValue73.Name = "RetroCharacterFace"
  1924. BoolValue73.Parent = Configuration69
  1925. BoolValue73.Value = true
  1926. Script74.Name = "Sound"
  1927. Script74.Parent = Script66
  1928. Script74.Disabled = true
  1929. table.insert(cors,sandbox(Script74,function()
  1930. -- util
  1931.  
  1932. function waitForChild(parent, childName)
  1933. local child = parent:findFirstChild(childName)
  1934. if child then return child end
  1935. while true do
  1936. child = parent.ChildAdded:wait()
  1937. if child.Name==childName then return child end
  1938. end
  1939. end
  1940.  
  1941. function newSound(id)
  1942. local sound = Instance.new("Sound")
  1943. sound.SoundId = id
  1944. sound.archivable = false
  1945. sound.Parent = script.Parent.Head
  1946. return sound
  1947. end
  1948.  
  1949. -- declarations
  1950.  
  1951. local sDied = newSound("rbxasset://sounds/uuhhh.wav")
  1952. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  1953. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  1954. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  1955. local sJumping = newSound("rbxasset://sounds/button.wav")
  1956. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  1957. sRunning.Looped = true
  1958.  
  1959. local Figure = script.Parent
  1960. local Head = waitForChild(Figure, "Head")
  1961. local Humanoid = waitForChild(Figure, "Humanoid")
  1962.  
  1963. -- functions
  1964.  
  1965. function onDied()
  1966. sDied:Play()
  1967. end
  1968.  
  1969. function onState(state, sound)
  1970. if state then
  1971. sound:Play()
  1972. else
  1973. sound:Pause()
  1974. end
  1975. end
  1976.  
  1977. function onRunning(speed)
  1978. if speed>0 then
  1979. sRunning:Play()
  1980. else
  1981. sRunning:Pause()
  1982. end
  1983. end
  1984.  
  1985. -- connect up
  1986.  
  1987. Humanoid.Died:connect(onDied)
  1988. Humanoid.Running:connect(onRunning)
  1989. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  1990. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  1991. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  1992. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  1993.  
  1994. end))
  1995. Decal75.Name = "face2"
  1996. Decal75.Parent = Script66
  1997. Decal75.Texture = "rbxassetid://41420967"
  1998. for i,v in pairs(mas:GetChildren()) do
  1999. v.Parent = workspace
  2000. pcall(function() v:MakeJoints() end)
  2001. end
  2002. mas:Destroy()
  2003. for i,v in pairs(cors) do
  2004. spawn(function()
  2005. pcall(v)
  2006. end)
  2007. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement