DEXLTH

some trash coding, around 1000 lines of code

Jul 22nd, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.73 KB | None | 0 0
  1.  
  2. -- applebee
  3. -- Version: 3.0
  4. -- Instances:
  5. local RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI = Instance.new("ScreenGui")
  6. local FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI = Instance.new("Frame")
  7. local _1 = Instance.new("TextButton")
  8. local _2 = Instance.new("TextButton")
  9. local _3 = Instance.new("TextButton")
  10. local Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD = Instance.new("Frame")
  11. local _1_2 = Instance.new("TextButton")
  12. local _2_2 = Instance.new("TextButton")
  13. local _3_2 = Instance.new("TextButton")
  14. --Properties:
  15. RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI.Name = "RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADI"
  16. RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
  17. RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  18.  
  19. FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI.Name = "Frame RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADI"
  20. FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI.Parent = RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI
  21. FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI.BackgroundColor3 = Color3.new(1, 1, 1)
  22. FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI.Position = UDim2.new(-0.000756919384, 0, -0.0110564828, 0)
  23. FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI.Size = UDim2.new(0, 190, 0, 171)
  24.  
  25. _1.Name = "1"
  26. _1.Parent = FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI
  27. _1.BackgroundColor3 = Color3.new(1, 1, 1)
  28. _1.Size = UDim2.new(0, 190, 0, 50)
  29. _1.Font = Enum.Font.SourceSans
  30. _1.Text = "Radio 1"
  31. _1.TextColor3 = Color3.new(0, 0, 0)
  32. _1.TextSize = 14
  33.  
  34. _2.Name = "2"
  35. _2.Parent = FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI
  36. _2.BackgroundColor3 = Color3.new(1, 1, 1)
  37. _2.Position = UDim2.new(0, 0, 0.350877196, 0)
  38. _2.Size = UDim2.new(0, 190, 0, 50)
  39. _2.Font = Enum.Font.SourceSans
  40. _2.Text = "Radio 2"
  41. _2.TextColor3 = Color3.new(0, 0, 0)
  42. _2.TextSize = 14
  43.  
  44. _3.Name = "3"
  45. _3.Parent = FrameRADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI
  46. _3.BackgroundColor3 = Color3.new(1, 1, 1)
  47. _3.Position = UDim2.new(0, 0, 0.707602382, 0)
  48. _3.Size = UDim2.new(0, 190, 0, 50)
  49. _3.Font = Enum.Font.SourceSans
  50. _3.Text = "Radio 3"
  51. _3.TextColor3 = Color3.new(0, 0, 0)
  52. _3.TextSize = 14
  53.  
  54. Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD.Name = "Frame2 RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RADIO RAD"
  55. Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD.Parent = RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADI
  56. Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD.BackgroundColor3 = Color3.new(1, 1, 1)
  57. Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD.Position = UDim2.new(0.143073514, 0, -0.0110564828, 0)
  58. Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD.Size = UDim2.new(0, 190, 0, 171)
  59.  
  60. _1_2.Name = "1"
  61. _1_2.Parent = Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD
  62. _1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  63. _1_2.Size = UDim2.new(0, 190, 0, 50)
  64. _1_2.Font = Enum.Font.SourceSans
  65. _1_2.Text = "Radio 4"
  66. _1_2.TextColor3 = Color3.new(0, 0, 0)
  67. _1_2.TextSize = 14
  68.  
  69. _2_2.Name = "2"
  70. _2_2.Parent = Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD
  71. _2_2.BackgroundColor3 = Color3.new(1, 1, 1)
  72. _2_2.Position = UDim2.new(0, 0, 0.350877196, 0)
  73. _2_2.Size = UDim2.new(0, 190, 0, 50)
  74. _2_2.Font = Enum.Font.SourceSans
  75. _2_2.Text = "Radio 5"
  76. _2_2.TextColor3 = Color3.new(0, 0, 0)
  77. _2_2.TextSize = 14
  78.  
  79. _3_2.Name = "3"
  80. _3_2.Parent = Frame2RADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORADIORAD
  81. _3_2.BackgroundColor3 = Color3.new(1, 1, 1)
  82. _3_2.Position = UDim2.new(0, 0, 0.707602382, 0)
  83. _3_2.Size = UDim2.new(0, 190, 0, 50)
  84. _3_2.Font = Enum.Font.SourceSans
  85. _3_2.Text = "Radio 6"
  86. _3_2.TextColor3 = Color3.new(0, 0, 0)
  87. _3_2.TextSize = 14
  88. -- Scripts:
  89. spawn(function () -- _1.LocalScript
  90. local script = Instance.new('LocalScript')
  91. script.Parent = _1
  92. 1.MouseButton1Click:Connect(function()
  93. local Player = game.Players.LocalPlayer
  94. local c = Player.Character
  95. if not c or not c.Parent then
  96. c = Player.CharacterAdded:wait()
  97. end
  98.  
  99. wait(1)
  100.  
  101. local radio = Instance.new("Part",c)
  102. radio.Name = "Radio"
  103. radio.CanCollide = false
  104. radio.Anchored = true
  105. radio.FormFactor = "Custom"
  106. radio.Size = Vector3.new(3.2, 1.43, 0.8)
  107. radio.CFrame = c.Torso.CFrame * CFrame.new(0,0,.8)
  108. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,3.15,0)
  109. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.7)
  110.  
  111. local mesh = Instance.new("SpecialMesh",radio)
  112. mesh.MeshId = "http://www.roblox.com/asset/?id=1097137"
  113. mesh.TextureId = "http://www.roblox.com/asset?id=1097133"
  114.  
  115. local weld = Instance.new("Weld",radio)
  116. weld.Part0 = c.Torso
  117. weld.Part1 = radio
  118. weld.C0 = c.Torso.CFrame:inverse()
  119. weld.C1 = radio.CFrame:inverse()
  120. radio.Anchored = false
  121.  
  122. local sound = Instance.new("Sound",radio)
  123. sound.Name = "Music"
  124. sound.Looped = true
  125. sound.Volume = 1
  126.  
  127. local gui = Instance.new("ScreenGui",Player.PlayerGui)
  128.  
  129. local frame = Instance.new("Frame",gui)
  130. frame.BackgroundColor3 = Color3.new(58/255,58/255,58/255)
  131. frame.BorderColor3 = Color3.new(0,0,0)
  132. frame.BorderSizePixel = 2
  133. frame.Size = UDim2.new(0,300,0,200)
  134. frame.Position = UDim2.new(0,20,.5,-100)
  135.  
  136. local playb = Instance.new("TextButton",frame)
  137. playb.BackgroundColor3 = Color3.new(0,85/255,0)
  138. playb.BorderColor3 = Color3.new(0,0,0)
  139. playb.BorderSizePixel = 2
  140. playb.Size = UDim2.new(.3,0,.2,0)
  141. playb.Position = UDim2.new(.1,0,.7,0)
  142. playb.Text = "Play"
  143. playb.TextColor3 = Color3.new(255,255,255)
  144. playb.TextScaled = true
  145.  
  146. local stopb = Instance.new("TextButton",frame)
  147. stopb.BackgroundColor3 = Color3.new(170/255,0,0)
  148. stopb.BorderColor3 = Color3.new(0,0,0)
  149. stopb.BorderSizePixel = 2
  150. stopb.Size = UDim2.new(.3,0,.2,0)
  151. stopb.Position = UDim2.new(.6,0,.7,0)
  152. stopb.Text = "Stop"
  153. stopb.TextColor3 = Color3.new(255,255,255)
  154. stopb.TextScaled = true
  155.  
  156. local stipb = Instance.new("TextBox",frame)
  157. stipb.BackgroundColor3 = Color3.new(0,0,127/255)
  158. stipb.BorderColor3 = Color3.new(0,0,0)
  159. stipb.BorderSizePixel = 2
  160. stipb:TweenSize(UDim2.new(.5,0,.25,0),"Out","Quad",1,true)
  161. stipb.Position = UDim2.new(.25,0,.3,0)
  162. stipb.Text = "SoundId"
  163. stipb.TextColor3 = Color3.new(255,255,255)
  164. stipb.TextScaled = true
  165.  
  166. local Playing = false
  167.  
  168. stipb.Changed:connect(function()
  169. sound.SoundId = "rbxassetid://" .. stipb.Text
  170. end)
  171.  
  172. playb.MouseButton1Click:connect(function()
  173. sound:Play()
  174. Playing = true
  175. end)
  176.  
  177. stopb.MouseButton1Click:connect(function()
  178. sound:Stop()
  179. Playing = false
  180. end)
  181.  
  182. while true do
  183. if Playing then
  184. mesh.Scale = Vector3.new(1.1,1.1,1.1)
  185. wait(.2)
  186. mesh.Scale = Vector3.new(1,1,1)
  187. end
  188. wait(.2)
  189. end
  190. end)
  191.  
  192. end)
  193.  
  194. spawn(function () -- _2.LocalScript
  195. local script = Instance.new('LocalScript')
  196. script.Parent = _2
  197. 2.MouseButton1Click:Connect(function()
  198. scrgui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  199. --
  200. sound = Instance.new("Sound",scrgui)
  201. --
  202. fr1 = Instance.new("Frame",scrgui)
  203. fr1tl1 = Instance.new("TextLabel",fr1)
  204. --
  205. fr4 = Instance.new("Frame",fr1)
  206. fr4tb1 = Instance.new("TextButton",fr4)
  207. --
  208. fr2 = Instance.new("Frame",fr1)
  209. fr2tb1 = Instance.new("TextBox",fr2)
  210. fr2tl1 = Instance.new("TextLabel",fr2)
  211. --
  212. fr3 = Instance.new("Frame",fr2)
  213. fr3tl1 = Instance.new("TextLabel",fr3)
  214. fr3tl2 = Instance.new("TextLabel",fr3)
  215. fr3tl2tb1 = Instance.new("TextButton",fr3tl2)
  216. fr3tl3 = Instance.new("TextLabel",fr3)
  217. fr3tl3tb1 = Instance.new("TextBox",fr3tl3)
  218. --
  219. scrf = Instance.new("ScrollingFrame",fr2)
  220. looped = false
  221.  
  222. function a(num1, num2, num3) --color3 converter function
  223. local color1 = num1/255
  224. local color2 = num2/255
  225. local color3 = num3/255
  226. return color1, color2, color3
  227. end
  228.  
  229. --music
  230.  
  231. local music = {
  232. ["1"]="467369212",
  233. ["2"]="492272696",
  234. ["3"]="561274893",
  235. ["4"]="461736208",
  236. ["5"]="438917260"
  237. }
  238.  
  239. local musicnames = {
  240. "The Chainsmokers ft. Halsey - Closer",
  241. "Rae Sremmurd - Black Beatles",
  242. "The Weeknd - Starboy (ft. Daft Punk)",
  243. "Major Lazer - Cold Water",
  244. "twenty one pilots - Heathens"
  245. }
  246.  
  247. --name
  248.  
  249. fr1.Name = "fr1"
  250. fr1tl1.Name = "fr1tl1"
  251. fr4.Name = "fr4"
  252. fr4tb1.Name = "fr4tb1"
  253. fr2.Name = "fr2"
  254. fr2tb1.Name = "fr2tb1"
  255. fr2tl1.Name = "fr2tl1"
  256. fr3.Name = "fr3"
  257. fr3tl1.Name = "fr3tl1"
  258. fr3tl2.Name = "fr3tl2"
  259. fr3tl2tb1.Name = "fr3tl2tb1"
  260. fr3tl3.Name = "fr3tl3"
  261. fr3tl3tb1.Name = "fr3tl3tb1"
  262. scrf.Name = "scrf"
  263. for i=1,50 do
  264. local sbc = Instance.new("TextButton",scrf)
  265. sbc.Parent = scrf
  266. sbc.Name = i
  267. sbc.Size = UDim2.new(1, 0,0, 25)
  268. sbc.Position = UDim2.new(0, 0, 0, (i*25)-25)
  269. sbc.BorderSizePixel = 0
  270. sbc.BackgroundColor3 = Color3.new(a(41, 128, 185))
  271. sbc.Font = "SourceSansBold"
  272. sbc.FontSize = "Size18"
  273. sbc.TextColor3 = Color3.new(a(27, 42, 53))
  274. sbc.TextWrapped = true
  275. if i <= 5 then
  276. sbc.Text = musicnames[i]
  277. else
  278. sbc.Text = "Empty"
  279. end
  280. if (i % 2 == 0) then
  281. sbc.BackgroundTransparency = 0.7
  282. else
  283. sbc.BackgroundTransparency = 0.3
  284. end
  285. sbc.MouseButton1Click:connect(function()
  286. if music[sbc.Name] then
  287. sound.SoundId = "rbxassetid://"..music[sbc.Name]
  288. sound:Play()
  289. end
  290. end)
  291. end
  292.  
  293. --backgroundcolor3
  294.  
  295. fr1.BackgroundColor3 = Color3.new(a(236, 240, 241))
  296. fr1tl1.BackgroundColor3 = Color3.new(a(44, 62, 80))
  297. fr4.BackgroundColor3 = Color3.new(a(231, 76, 60))
  298. fr4tb1.BackgroundColor3 = Color3.new(a(231, 76, 60))
  299. fr2.BackgroundColor3 = Color3.new(a(52, 152, 219))
  300. fr2tb1.BackgroundColor3 = Color3.new(a(236, 240, 241))
  301. fr2tl1.BackgroundColor3 = Color3.new(a(255, 255, 255))
  302. fr3.BackgroundColor3 = Color3.new(a(41, 128, 185))
  303. fr3tl1.BackgroundColor3 = Color3.new(a(255, 255, 255))
  304. fr3tl2.BackgroundColor3 = Color3.new(a(255, 255, 255))
  305. fr3tl2tb1.BackgroundColor3 = Color3.new(a(236, 240, 241))
  306. fr3tl3.BackgroundColor3 = Color3.new(a(255, 255, 255))
  307. fr3tl3tb1.BackgroundColor3 = Color3.new(a(236, 240, 241))
  308. scrf.BackgroundColor3 = Color3.new(a(41, 128, 185))
  309.  
  310. --backgroundtransparency
  311.  
  312. fr1.BackgroundTransparency = 0.3
  313. fr1tl1.BackgroundTransparency = 1
  314. fr4.BackgroundTransparency = 0.3
  315. fr4tb1.BackgroundTransparency = 1
  316. fr2.BackgroundTransparency = 0.3
  317. fr2tb1.BackgroundTransparency = 0
  318. fr2tl1.BackgroundTransparency = 1
  319. fr3.BackgroundTransparency = 0.6
  320. fr3tl1.BackgroundTransparency = 1
  321. fr3tl2.BackgroundTransparency = 1
  322. fr3tl2tb1.BackgroundTransparency = 0
  323. fr3tl3.BackgroundTransparency = 1
  324. fr3tl3tb1.BackgroundTransparency = 0
  325. scrf.BackgroundTransparency = 0.6
  326.  
  327. --bordersizepixel
  328.  
  329. fr1.BorderSizePixel = 0
  330. fr1tl1.BorderSizePixel = 0
  331. fr4.BorderSizePixel = 0
  332. fr4tb1.BorderSizePixel = 0
  333. fr2.BorderSizePixel = 0
  334. fr2tb1.BorderSizePixel = 0
  335. fr2tl1.BorderSizePixel = 0
  336. fr3.BorderSizePixel = 0
  337. fr3tl1.BorderSizePixel = 0
  338. fr3tl2.BorderSizePixel = 0
  339. fr3tl2tb1.BorderSizePixel = 0
  340. fr3tl3.BorderSizePixel = 0
  341. fr3tl3tb1.BorderSizePixel = 0
  342. scrf.BorderSizePixel = 0
  343.  
  344. --position
  345.  
  346. fr1.Position = UDim2.new(0, 42,0, 250)
  347. fr1tl1.Position = UDim2.new(0.5, -1,0.5, -2)
  348. fr4.Position = UDim2.new(1, -23,0, 2)
  349. fr4tb1.Position = UDim2.new(0, 0,0, -1)
  350. fr2.Position = UDim2.new(0, 0,0, 25)
  351. fr2tb1.Position = UDim2.new(1, -135,0, 40)
  352. fr2tl1.Position = UDim2.new(1, -175,0, 0)
  353. fr3.Position = UDim2.new(1, -135,0, 75)
  354. fr3tl1.Position = UDim2.new(0, 0,0, 0)
  355. fr3tl2.Position = UDim2.new(0, 4,0, 30)
  356. fr3tl2tb1.Position = UDim2.new(1, -15,0.5, -5)
  357. fr3tl3.Position = UDim2.new(0, 4,0, 50)
  358. fr3tl3tb1.Position = UDim2.new(1, -25,0.5, -5)
  359. scrf.Position = UDim2.new(0, 5,0, 5)
  360.  
  361. --size
  362.  
  363. fr1.Size = UDim2.new(0, 450,0, 25)
  364. fr1tl1.Size = UDim2.new(0, 1,0, 1)
  365. fr4.Size = UDim2.new(0, 21,0, 21)
  366. fr4tb1.Size = UDim2.new(0, 21,0, 21)
  367. fr2.Size = UDim2.new(0, 450,0, 350)
  368. fr2tb1.Size = UDim2.new(0, 125,0, 25)
  369. fr2tl1.Size = UDim2.new(0, 200,0, 50)
  370. fr3.Size = UDim2.new(0, 125,0, 75)
  371. fr3tl1.Size = UDim2.new(1, 0,0, 20)
  372. fr3tl2.Size = UDim2.new(1, -8,0, 20)
  373. fr3tl2tb1.Size = UDim2.new(0, 15,0, 15)
  374. fr3tl3.Size = UDim2.new(1, -8,0, 20)
  375. fr3tl3tb1.Size = UDim2.new(0, 25,0, 15)
  376. scrf.Size = UDim2.new(0, 300,1, -10)
  377. scrf.CanvasSize = UDim2.new(0, 0, 0, 750)
  378. scrf.ScrollBarThickness = 4
  379.  
  380. --text
  381.  
  382. fr3tl1.Text = "Settings"
  383. fr3tl2.Text = "Looped"
  384. fr3tl3.Text = "Volume"
  385. fr3tl2tb1.Text = ""
  386. fr3tl3tb1.Text = "0-10"
  387. fr2tb1.Text = "Music ID"
  388. fr2tl1.Text = "Or, enter your own..."
  389. fr1tl1.Text = "Rain Radio v1"
  390. fr4tb1.Text = "X"
  391.  
  392. --fontsize
  393.  
  394. fr3tl1.FontSize = "Size14"
  395. fr3tl2.FontSize = "Size18"
  396. fr3tl3.FontSize = "Size18"
  397. fr3tl2tb1.FontSize = "Size14"
  398. fr3tl3tb1.FontSize = "Size14"
  399. fr2tb1.FontSize = "Size14"
  400. fr2tl1.FontSize = "Size18"
  401. fr1tl1.FontSize = "Size32"
  402. fr4tb1.FontSize = "Size14"
  403. fr4tb1.TextScaled = true
  404.  
  405. --font
  406.  
  407. fr3tl1.Font = "SourceSansItalic"
  408. fr3tl2.Font = "SourceSansLight"
  409. fr3tl3.Font = "SourceSansLight"
  410. fr3tl2tb1.Font = "SourceSans"
  411. fr3tl3tb1.Font = "SourceSans"
  412. fr2tb1.Font = "SourceSans"
  413. fr2tl1.Font = "SourceSansItalic"
  414. fr1tl1.Font = "SourceSansLight"
  415. fr4tb1.Font = "SourceSansBold"
  416.  
  417. fr3tl2.TextXAlignment = "Left"
  418. fr3tl2tb1.MouseButton1Click:connect(function()
  419. if not looped then
  420. looped = true
  421. sound.Looped = true
  422. fr3tl2tb1.BackgroundColor3 = Color3.new(a(178, 180, 181))
  423. else
  424. looped = false
  425. sound.Looped = false
  426. fr3tl2tb1.BackgroundColor3 = Color3.new(a(236, 240, 241))
  427. end
  428. end)
  429.  
  430. fr3tl3tb1.FocusLost:connect(function()
  431. if tonumber(fr3tl3tb1.Text) < 11 then
  432. sound.Volume = fr3tl3tb1.Text
  433. end
  434. end)
  435.  
  436. fr2tb1.FocusLost:connect(function()
  437. sound.SoundId = "rbxassetid://"..fr2tb1.Text
  438. sound:Play()
  439. end)
  440.  
  441. fr1.Draggable = true
  442. fr1.Active = true
  443. end)
  444.  
  445. end)
  446.  
  447. spawn(function () -- _3.LocalScript
  448. local script = Instance.new('LocalScript')
  449. script.Parent = _3
  450. 3.MouseButton1Click:Connect(function()
  451. local Player = game.Players.LocalPlayer
  452. local c = Player.Character
  453. if not c or not c.Parent then
  454. c = Player.CharacterAdded:wait()
  455. end
  456.  
  457. wait(1)
  458.  
  459. local radio = Instance.new("Part",c)
  460. radio.Name = "Radio"
  461. radio.CanCollide = false
  462. radio.Anchored = true
  463. radio.FormFactor = "Custom"
  464. radio.Size = Vector3.new(3.2, 1.43, 0.8)
  465. radio.CFrame = c.Torso.CFrame * CFrame.new(0,0,.8)
  466. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,3.15,0)
  467. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.7)
  468.  
  469. local mesh = Instance.new("SpecialMesh",radio)
  470. mesh.MeshId = "http://www.roblox.com/asset/?id=151760030"
  471. mesh.TextureId = "https://www.roblox.com/Sweg-item?id=156708131"
  472.  
  473. local weld = Instance.new("Weld",radio)
  474. weld.Part0 = c.Torso
  475. weld.Part1 = radio
  476. weld.C0 = c.Torso.CFrame:inverse()
  477. weld.C1 = radio.CFrame:inverse()
  478. radio.Anchored = false
  479.  
  480. local sound = Instance.new("Sound",radio)
  481. sound.Name = "Music"
  482. sound.Looped = true
  483. sound.Volume = 1
  484.  
  485. local gui = Instance.new("ScreenGui",Player.PlayerGui)
  486.  
  487. local frame = Instance.new("Frame",gui)
  488. frame.BackgroundColor3 = Color3.new(58/255,58/255,58/255)
  489. frame.BorderColor3 = Color3.new(0,0,0)
  490. frame.BorderSizePixel = 2
  491. frame.Size = UDim2.new(0,300,0,200)
  492. frame.Position = UDim2.new(0,20,.5,-100)
  493.  
  494. local playb = Instance.new("TextButton",frame)
  495. playb.BackgroundColor3 = Color3.new(0,85/255,0)
  496. playb.BorderColor3 = Color3.new(0,0,0)
  497. playb.BorderSizePixel = 2
  498. playb.Size = UDim2.new(.3,0,.2,0)
  499. playb.Position = UDim2.new(.1,0,.7,0)
  500. playb.Text = "Play"
  501. playb.TextColor3 = Color3.new(255,255,255)
  502. playb.TextScaled = true
  503.  
  504. local stopb = Instance.new("TextButton",frame)
  505. stopb.BackgroundColor3 = Color3.new(170/255,0,0)
  506. stopb.BorderColor3 = Color3.new(0,0,0)
  507. stopb.BorderSizePixel = 2
  508. stopb.Size = UDim2.new(.3,0,.2,0)
  509. stopb.Position = UDim2.new(.6,0,.7,0)
  510. stopb.Text = "Stop"
  511. stopb.TextColor3 = Color3.new(255,255,255)
  512. stopb.TextScaled = true
  513.  
  514. local stipb = Instance.new("TextBox",frame)
  515. stipb.BackgroundColor3 = Color3.new(0,0,127/255)
  516. stipb.BorderColor3 = Color3.new(0,0,0)
  517. stipb.BorderSizePixel = 2
  518. stipb:TweenSize(UDim2.new(.5,0,.25,0),"Out","Quad",1,true)
  519. stipb.Position = UDim2.new(.25,0,.3,0)
  520. stipb.Text = "SoundId"
  521. stipb.TextColor3 = Color3.new(255,255,255)
  522. stipb.TextScaled = true
  523.  
  524. local Playing = false
  525.  
  526. stipb.Changed:connect(function()
  527. sound.SoundId = "rbxassetid://" .. stipb.Text
  528. end)
  529.  
  530. playb.MouseButton1Click:connect(function()
  531. sound:Play()
  532. Playing = true
  533. end)
  534.  
  535. stopb.MouseButton1Click:connect(function()
  536. sound:Stop()
  537. Playing = false
  538. end)
  539.  
  540. while true do
  541. if Playing then
  542. mesh.Scale = Vector3.new(1.1,1.1,1.1)
  543. wait(.2)
  544. mesh.Scale = Vector3.new(1,1,1)
  545. end
  546. wait(.2)
  547. end
  548.  
  549. end)
  550.  
  551. end)
  552.  
  553. spawn(function () -- _1_2.LocalScript
  554. local script = Instance.new('LocalScript')
  555. script.Parent = _1_2
  556. 1.MouseButton1Click:Connect(function()
  557. -- GPlayr by ModernLukest. Made for v3rmillion, , etc.
  558. -- Note that anyone can hear the music that you play. Just a clarification for what LocalScripts can do.
  559.  
  560. local char = game.Players.LocalPlayer.Character
  561.  
  562.  
  563.  
  564. -- CREATING BUTTONS, LABELS, FRAMES, ETC.
  565. local gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui) -- CoreGui is buggy, since GPlayr is designed for PlayerGuis, not CoreGuis.
  566. local openbtn = Instance.new("TextButton", gui)
  567. local closebtn = Instance.new("TextButton", gui)
  568. local openguibtn = Instance.new("TextButton", gui)
  569. local playmusicint = Instance.new("Frame", gui)
  570. local playmusicbtn = Instance.new("ImageButton", playmusicint)
  571. local stopmusicbtn = Instance.new("ImageButton", playmusicint)
  572. local musicidbox = Instance.new("TextBox", playmusicint)
  573. local credit = Instance.new("TextLabel", playmusicint)
  574. local title = Instance.new("TextLabel", playmusicint)
  575.  
  576. -- SIZING --
  577.  
  578. openbtn.Size = UDim2.new(0, 100, 0, 50)
  579. closebtn.Size = UDim2.new(0, 100, 0, 50)
  580. openguibtn.Size = UDim2.new(0, 100, 0, 50)
  581. playmusicbtn.Size = UDim2.new(0, 50, 0, 50)
  582. stopmusicbtn.Size = UDim2.new(0, 57, 0, 57)
  583. musicidbox.Size = UDim2.new(0, 300, 0, 50)
  584. credit.Size = UDim2.new(0, 300, 0, 20)
  585. title.Size = UDim2.new(0, 300, 0, 30)
  586. playmusicint.Size = UDim2.new(0, 300, 0, 500)
  587.  
  588. -- POSITIONING --
  589.  
  590. openbtn.Position = UDim2.new(0, 0, 0, 510)
  591. closebtn.Position = UDim2.new(0, 0, 0, 510)
  592. openguibtn.Position = UDim2.new(0, 0, 0, 590)
  593. playmusicbtn.Position = UDim2.new(0, 50, 0, 200)
  594. stopmusicbtn.Position = UDim2.new(0, 175, 0, 197)
  595. musicidbox.Position = UDim2.new(0, 0, 0, 100)
  596. credit.Position = UDim2.new(0, 0, 0, 470)
  597. title.Position = UDim2.new(0, 0, 0, 0)
  598. playmusicint.Position = UDim2.new(0, 200, 0, 100)
  599.  
  600. -- SET TEXT --
  601.  
  602. title.Text = "GPlayr (BETA)"
  603. credit.Text = "GPlayr & radio scripting by Developer / ModernLukest"
  604. musicidbox.Text = "Enter Sound ID Here"
  605. openbtn.Text = "Take Out Radio"
  606. closebtn.Text = "Put Away Radio"
  607. openguibtn.Text = "Open/Close Music GUI"
  608.  
  609. -- SET IMAGE IDS --
  610. playmusicbtn.Image = "rbxassetid://499381047"
  611. stopmusicbtn.Image = "rbxassetid://499381006"
  612.  
  613. -- BACKGROUND COLOR3 --
  614.  
  615. playmusicint.BackgroundColor3 = Color3.new(136, 136, 136)
  616. openbtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  617. closebtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  618. openguibtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  619. musicidbox.BackgroundColor3 = Color3.fromRGB(109, 109, 109)
  620.  
  621. -- BACKGROUND TRANSPARENCY --
  622.  
  623. playmusicint.BackgroundTransparency = 0.9
  624. playmusicbtn.BackgroundTransparency = 1
  625. stopmusicbtn.BackgroundTransparency = 1
  626. musicidbox.BackgroundTransparency = 0.43
  627. credit.BackgroundTransparency = 1
  628. title.BackgroundTransparency = 1
  629.  
  630. -- BORDER SIZE PIXEL --
  631.  
  632. musicidbox.BorderSizePixel = 0
  633. openbtn.BorderSizePixel = 3
  634. closebtn.BorderSizePixel = 3
  635. openguibtn.BorderSizePixel = 3
  636.  
  637. -- FONTS --
  638. musicidbox.Font = "SourceSansLight"
  639. credit.Font = "SourceSansLight"
  640. title.Font = "SourceSansLight"
  641.  
  642.  
  643. -- TEXT SCALED --
  644. credit.TextScaled = true
  645. title.TextScaled = true
  646.  
  647. -- TEXT WRAPPED --
  648. musicidbox.TextWrapped = true
  649. credit.TextWrapped = true
  650. title.TextWrapped = true
  651. openguibtn.TextWrapped = true
  652.  
  653. -- FONT SIZE --
  654. musicidbox.FontSize = "Size28"
  655.  
  656. -- ACTIVE --
  657. playmusicint.Active = true
  658.  
  659. -- DRAGGABLE --
  660. playmusicint.Draggable = true
  661.  
  662. -- GUI FUNCTIONS (MAIN) --
  663.  
  664. -- set up the stuff --
  665. isGuiOpen = false
  666. closebtn.Visible = false
  667. playmusicint.Visible = false
  668. openguibtn.Visible = false
  669.  
  670. openbtn.MouseButton1Click:connect(function()
  671. openbtn.Visible = false
  672. closebtn.Visible = true
  673.  
  674. local radio = Instance.new("Part", char)
  675. radio.Name = "Radio"
  676. local mesh = Instance.new("FileMesh", radio)
  677. mesh.MeshId = "http://www.roblox.com/asset/?id=212302951"
  678. mesh.TextureId = "http://www.roblox.com/asset/?id=212303049"
  679. mesh.Scale = Vector3.new(4, 4, 4)
  680. mesh.VertexColor = Vector3.new(1, 1, 1)
  681. mesh.Offset = Vector3.new(0, 0, 0)
  682.  
  683.  
  684. local function weldBetween(a, b)
  685. local weld = Instance.new("ManualWeld")
  686. weld.Part0 = a
  687. weld.Part1 = b
  688. weld.C0 = CFrame.new()
  689. weld.C1 = b.CFrame:inverse() * a.CFrame
  690. weld.Parent = a
  691. return weld;
  692. end
  693. local hand = radio:clone()
  694. hand.Parent=char
  695. hand.CFrame=char:WaitForChild("Torso").CFrame*CFrame.new(Vector3.new(0,0,0.9))*CFrame.Angles(0,math.rad(180),math.rad(45))
  696. weldBetween(char:WaitForChild("Torso"), hand)
  697. hand.CanCollide=true
  698. hand.Anchored=false
  699.  
  700. sound = Instance.new("Sound", hand) -- we will now call the radio "hand"
  701. sound.Volume = 0.5
  702. sound.Pitch = 1
  703.  
  704. openguibtn.Visible = true
  705. char:FindFirstChild("Radio"):Destroy()
  706. end)
  707.  
  708.  
  709. closebtn.MouseButton1Click:connect(function()
  710. openbtn.Visible = true
  711. closebtn.Visible = false
  712. openguibtn.Visible = false
  713. playmusicint.Visible = false
  714. isGuiOpen = false
  715. char:WaitForChild("Radio"):Destroy()
  716. end)
  717.  
  718. playmusicbtn.MouseButton1Click:connect(function()
  719. sound:stop()
  720. wait(0.2)
  721. sound.SoundId = "rbxassetid://"..musicidbox.Text
  722. sound:play()
  723. end)
  724.  
  725. stopmusicbtn.MouseButton1Click:connect(function()
  726. sound:stop()
  727. end)
  728.  
  729.  
  730. openguibtn.MouseButton1Click:connect(function()
  731. if isGuiOpen == false then isGuiOpen = true
  732. playmusicint.Visible = true else isGuiOpen = false playmusicint.Visible = false
  733. end
  734. end)
  735.  
  736. end)
  737.  
  738. spawn(function () -- _2_2.LocalScript
  739. local script = Instance.new('LocalScript')
  740. script.Parent = _2_2
  741. 2.MouseButton1Click:Connect(function()
  742. local Player = game.Players.LocalPlayer
  743. local c = Player.Character
  744. if not c or not c.Parent then
  745. c = Player.CharacterAdded:wait()
  746. end
  747.  
  748. wait(1)
  749.  
  750. local radio = Instance.new("Part",c)
  751. radio.Name = "Radio"
  752. radio.CanCollide = false
  753. radio.Anchored = true
  754. radio.FormFactor = "Custom"
  755. radio.Size = Vector3.new(3.2, 1.43, 0.8)
  756. radio.CFrame = c.Torso.CFrame * CFrame.new(0,0,.8)
  757. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,3.15,0)
  758. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.7)
  759.  
  760. local mesh = Instance.new("SpecialMesh",radio)
  761. mesh.MeshId = "http://www.roblox.com/asset/?id=151760030"
  762. mesh.TextureId = "http://www.roblox.com/asset?id=151760072"
  763.  
  764. local weld = Instance.new("Weld",radio)
  765. weld.Part0 = c.Torso
  766. weld.Part1 = radio
  767. weld.C0 = c.Torso.CFrame:inverse()
  768. weld.C1 = radio.CFrame:inverse()
  769. radio.Anchored = false
  770.  
  771. local sound = Instance.new("Sound",radio)
  772. sound.Name = "Music"
  773. sound.Looped = true
  774. sound.Volume = 1
  775.  
  776. local gui = Instance.new("ScreenGui",Player.PlayerGui)
  777.  
  778. local frame = Instance.new("Frame",gui)
  779. frame.BackgroundColor3 = Color3.new(58/255,58/255,58/255)
  780. frame.BorderColor3 = Color3.new(0,0,0)
  781. frame.BorderSizePixel = 2
  782. frame.Size = UDim2.new(0,300,0,200)
  783. frame.Position = UDim2.new(0,20,.5,-100)
  784.  
  785. local playb = Instance.new("TextButton",frame)
  786. playb.BackgroundColor3 = Color3.new(0,85/255,0)
  787. playb.BorderColor3 = Color3.new(0,0,0)
  788. playb.BorderSizePixel = 2
  789. playb.Size = UDim2.new(.3,0,.2,0)
  790. playb.Position = UDim2.new(.1,0,.7,0)
  791. playb.Text = "Play"
  792. playb.TextColor3 = Color3.new(255,255,255)
  793. playb.TextScaled = true
  794.  
  795. local stopb = Instance.new("TextButton",frame)
  796. stopb.BackgroundColor3 = Color3.new(170/255,0,0)
  797. stopb.BorderColor3 = Color3.new(0,0,0)
  798. stopb.BorderSizePixel = 2
  799. stopb.Size = UDim2.new(.3,0,.2,0)
  800. stopb.Position = UDim2.new(.6,0,.7,0)
  801. stopb.Text = "Stop"
  802. stopb.TextColor3 = Color3.new(255,255,255)
  803. stopb.TextScaled = true
  804.  
  805. local stipb = Instance.new("TextBox",frame)
  806. stipb.BackgroundColor3 = Color3.new(0,0,127/255)
  807. stipb.BorderColor3 = Color3.new(0,0,0)
  808. stipb.BorderSizePixel = 2
  809. stipb:TweenSize(UDim2.new(.5,0,.25,0),"Out","Quad",1,true)
  810. stipb.Position = UDim2.new(.25,0,.3,0)
  811. stipb.Text = "SoundId"
  812. stipb.TextColor3 = Color3.new(255,255,255)
  813. stipb.TextScaled = true
  814.  
  815. local Playing = false
  816.  
  817. stipb.Changed:connect(function()
  818. sound.SoundId = "rbxassetid://" .. stipb.Text
  819. end)
  820.  
  821. playb.MouseButton1Click:connect(function()
  822. sound:Play()
  823. Playing = true
  824. end)
  825.  
  826. stopb.MouseButton1Click:connect(function()
  827. sound:Stop()
  828. Playing = false
  829. end)
  830.  
  831. while true do
  832. if Playing then
  833. mesh.Scale = Vector3.new(1.1,1.1,1.1)
  834. wait(.2)
  835. mesh.Scale = Vector3.new(1,1,1)
  836. end
  837. wait(.2)
  838. end
  839. end)
  840.  
  841. end)
  842.  
  843. spawn(function () -- _3_2.LocalScript
  844. local script = Instance.new('LocalScript')
  845. script.Parent = _3_2
  846. 3.MouseButton1Click:Connect(function()
  847. if script == nil then return end
  848.  
  849.  
  850. ModelName = "Radio"
  851. Player = script:FindFirstChild("Player") ~= nil and script.Player.Value or game:GetService("Players"):FindFirstChild("DarkShadow6")
  852. Selected = false
  853. Connected = false
  854. Button1Down = false
  855. CanUse = true
  856. Activated = false
  857. Channel = 1
  858.  
  859.  
  860. function CheckPlayer()
  861. if Player.Character == nil then return false end
  862. if Player.Character:FindFirstChild("Torso") == nil or Player.Character:FindFirstChild("Right Arm") == nil or Player.Character:FindFirstChild("Humanoid") == nil then return false end
  863. if Player.Character.Humanoid.Health <= 0 then return false end
  864. return true
  865. end
  866.  
  867.  
  868. function CreateParts(Parent, Format)
  869. if Parent == nil then return end
  870. local Parts = Instance.new("Model")
  871. Parts.Name = ModelName
  872. if Format == 1 then
  873. Parts.Name = Parts.Name.. " (Holstered)"
  874. end
  875. Parts.Parent = Parent
  876.  
  877. local MasterPart = Instance.new("Part")
  878. MasterPart.Name = "Handle"
  879. MasterPart.BrickColor = BrickColor.new("Black")
  880. MasterPart.TopSurface = 0
  881. MasterPart.BottomSurface = 0
  882. MasterPart.FormFactor = "Custom"
  883. MasterPart.Size = Vector3.new(0.3, 1.5, 0.5)
  884. MasterPart.Locked = true
  885. MasterPart.Parent = Parts
  886. local Weld = Instance.new("Weld", MasterPart)
  887. Weld.Part0 = Weld.Parent
  888. if Format == 1 then
  889. Weld.Part1 = Player.Character:FindFirstChild("Left Leg")
  890. Weld.C1 = CFrame.new(-0.625, 1, 0)
  891. elseif Format == 2 then
  892. Weld.Part1 = Player.Character:FindFirstChild("Right Arm")
  893. Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  894. Weld.C1 = CFrame.new(0, -1, -0.1)
  895. end
  896.  
  897. local Part = MasterPart:Clone()
  898. Part.Name = "Antenna"
  899. Part.Size = Vector3.new(0.2, 1, 0.2)
  900. Part.Parent = Parts
  901. local Mesh = Instance.new("CylinderMesh", Part)
  902. Mesh.Scale = Vector3.new(0.5, 1, 0.5)
  903. local Weld = Instance.new("Weld")
  904. Weld.Part0 = Part
  905. Weld.Part1 = MasterPart
  906. Weld.C0 = CFrame.new(0, 1.25, 0.1)
  907. Weld.Parent = Weld.Part0
  908.  
  909. local Part = MasterPart:Clone()
  910. Part.Name = "Light"
  911. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  912. Part.BrickColor = Activated == true and BrickColor.new("Bright green") or BrickColor.new("Really red")
  913. Part.Parent = Parts
  914. local Mesh = Instance.new("SpecialMesh", Part)
  915. Mesh.MeshType = "Sphere"
  916. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  917. local Weld = Instance.new("Weld")
  918. Weld.Part0 = Part
  919. Weld.Part1 = MasterPart
  920. Weld.C0 = CFrame.new(0, 0.75, -0.1)
  921. Weld.Parent = Weld.Part0
  922. end
  923.  
  924.  
  925. function RemoveParts(Parent, Format)
  926. if Format == 1 then
  927. pcall(function() Parent[ModelName.. " (Holstered)"]:Remove() end)
  928. elseif Format == 2 then
  929. pcall(function() Parent[ModelName]:Remove() end)
  930. end
  931. end
  932.  
  933.  
  934. function SetAngle(Joint, Angle, Character)
  935. if Character == nil then return false end
  936. local Joints = {
  937. Character.Torso:FindFirstChild("Right Shoulder 2"),
  938. Character.Torso:FindFirstChild("Left Shoulder 2"),
  939. Character.Torso:FindFirstChild("Right Hip 2"),
  940. Character.Torso:FindFirstChild("Left Hip 2")
  941. }
  942. if Joints[Joint] == nil then return false end
  943. if Joint == 1 or Joint == 3 then
  944. Joints[Joint].DesiredAngle = Angle
  945. end
  946. if Joint == 2 or Joint == 4 then
  947. Joints[Joint].DesiredAngle = -Angle
  948. end
  949. end
  950.  
  951.  
  952. function ForceAngle(Joint, Angle, Character)
  953. if Character == nil then return false end
  954. local Joints = {
  955. Character.Torso:FindFirstChild("Right Shoulder 2"),
  956. Character.Torso:FindFirstChild("Left Shoulder 2"),
  957. Character.Torso:FindFirstChild("Right Hip 2"),
  958. Character.Torso:FindFirstChild("Left Hip 2")
  959. }
  960. if Joints[Joint] == nil then return false end
  961. if Joint == 1 or Joint == 3 then
  962. Joints[Joint].DesiredAngle = Angle
  963. Joints[Joint].CurrentAngle = Angle
  964. end
  965. if Joint == 2 or Joint == 4 then
  966. Joints[Joint].DesiredAngle = -Angle
  967. Joints[Joint].CurrentAngle = -Angle
  968. end
  969. end
  970.  
  971.  
  972. function SetSpeed(Joint, Speed, Character)
  973. if Character == nil then return false end
  974. local Joints = {
  975. Character.Torso:FindFirstChild("Right Shoulder 2"),
  976. Character.Torso:FindFirstChild("Left Shoulder 2"),
  977. Character.Torso:FindFirstChild("Right Hip 2"),
  978. Character.Torso:FindFirstChild("Left Hip 2")
  979. }
  980. if Joints[Joint] == nil then return false end
  981. Joints[Joint].MaxVelocity = Speed
  982. end
  983.  
  984.  
  985. function DisableLimb(Limb, Character)
  986. if Character == nil then return false end
  987. if Character:FindFirstChild("Torso") == nil then return false end
  988. local Joints = {
  989. Character.Torso:FindFirstChild("Right Shoulder"),
  990. Character.Torso:FindFirstChild("Left Shoulder"),
  991. Character.Torso:FindFirstChild("Right Hip"),
  992. Character.Torso:FindFirstChild("Left Hip")
  993. }
  994. local Limbs = {
  995. Character:FindFirstChild("Right Arm"),
  996. Character:FindFirstChild("Left Arm"),
  997. Character:FindFirstChild("Right Leg"),
  998. Character:FindFirstChild("Left Leg")
  999. }
  1000. if Joints[Limb] == nil then return false end
  1001. if Limbs[Limb] == nil then return false end
  1002. local Joint = Instance.new("Motor")
  1003. Joint.Parent = Character.Torso
  1004. Joint.Part0 = Character.Torso
  1005. Joint.Part1 = Limbs[Limb]
  1006. if Limb == 1 then
  1007. Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1008. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1009. Joint.Name = "Right Shoulder 2"
  1010. elseif Limb == 2 then
  1011. Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1012. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1013. Joint.Name = "Left Shoulder 2"
  1014. elseif Limb == 3 then
  1015. Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1016. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1017. Joint.Name = "Right Hip 2"
  1018. elseif Limb == 4 then
  1019. Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1020. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1021. Joint.Name = "Left Hip 2"
  1022. end
  1023. Joint.MaxVelocity = Joints[Limb].MaxVelocity
  1024. Joint.CurrentAngle = Joints[Limb].CurrentAngle
  1025. Joint.DesiredAngle = Joints[Limb].DesiredAngle
  1026. Joints[Limb]:Remove()
  1027. end
  1028.  
  1029.  
  1030. function ResetLimbCFrame(Limb, Character)
  1031. if Character == nil then return false end
  1032. if Character.Parent == nil then return false end
  1033. if Character:FindFirstChild("Torso") == nil then return false end
  1034. local Joints = {
  1035. Character.Torso:FindFirstChild("Right Shoulder 2"),
  1036. Character.Torso:FindFirstChild("Left Shoulder 2"),
  1037. Character.Torso:FindFirstChild("Right Hip 2"),
  1038. Character.Torso:FindFirstChild("Left Hip 2")
  1039. }
  1040. local Limbs = {
  1041. Character:FindFirstChild("Right Arm"),
  1042. Character:FindFirstChild("Left Arm"),
  1043. Character:FindFirstChild("Right Leg"),
  1044. Character:FindFirstChild("Left Leg")
  1045. }
  1046. if Joints[Limb] == nil then return false end
  1047. if Limbs[Limb] == nil then return false end
  1048. if Limb == 1 then
  1049. Joints[Limb].C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1050. Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1051. elseif Limb == 2 then
  1052. Joints[Limb].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1053. Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1054. elseif Limb == 3 then
  1055. Joints[Limb].C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1056. Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1057. elseif Limb == 4 then
  1058. Joints[Limb].C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1059. Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1060. end
  1061. end
  1062.  
  1063.  
  1064. function EnableLimb(Limb, Character)
  1065. if Character == nil then return false end
  1066. if Character:FindFirstChild("Torso") == nil then return false end
  1067. local Joints = {
  1068. Character.Torso:FindFirstChild("Right Shoulder 2"),
  1069. Character.Torso:FindFirstChild("Left Shoulder 2"),
  1070. Character.Torso:FindFirstChild("Right Hip 2"),
  1071. Character.Torso:FindFirstChild("Left Hip 2")
  1072. }
  1073. local Limbs = {
  1074. Character:FindFirstChild("Right Arm"),
  1075. Character:FindFirstChild("Left Arm"),
  1076. Character:FindFirstChild("Right Leg"),
  1077. Character:FindFirstChild("Left Leg")
  1078. }
  1079. if Joints[Limb] == nil then return false end
  1080. if Limbs[Limb] == nil then return false end
  1081. if Limb == 1 then
  1082. Joints[Limb].Name = "Right Shoulder"
  1083. elseif Limb == 2 then
  1084. Joints[Limb].Name = "Left Shoulder"
  1085. elseif Limb == 3 then
  1086. Joints[Limb].Name = "Right Hip"
  1087. elseif Limb == 4 then
  1088. Joints[Limb].Name = "Left Hip"
  1089. end
  1090. Animate = Character:FindFirstChild("Animate")
  1091. if Animate == nil then return false end
  1092. Animate = Animate:Clone()
  1093. Character.Animate:Remove()
  1094. Animate.Parent = Character
  1095. end
  1096.  
  1097.  
  1098. function ToggleRadio()
  1099. if Activated == true then
  1100. Activated = false
  1101. pcall(function() Player.Character[ModelName].Light.BrickColor = BrickColor.new("Really red") end)
  1102. pcall(function() Player.PlayerGui.RadioChannelGui.Channel.TextColor3 = Color3.new(0.9, 0, 0) end)
  1103. if Player.Channels:FindFirstChild(Channel) ~= nil then
  1104. Player.Channels[Channel]:Remove()
  1105. end
  1106. else
  1107. Activated = true
  1108. pcall(function() Player.Character[ModelName].Light.BrickColor = BrickColor.new("Bright green") end)
  1109. pcall(function() Player.PlayerGui.RadioChannelGui.Channel.TextColor3 = Color3.new(0, 0.8, 0) end)
  1110. local NewChannel = Instance.new("Model", Player.Channels)
  1111. NewChannel.Name = Channel
  1112. local CanSend = Instance.new("BoolValue", NewChannel)
  1113. CanSend.Name = "CanSend"
  1114. CanSend.Value = true
  1115. end
  1116. end
  1117.  
  1118.  
  1119. function onButton1Down(Mouse)
  1120. if Button1Down == true then return end
  1121. Button1Down = true
  1122. if CheckPlayer() == false then return end
  1123. if Player:FindFirstChild("Channels") == nil then return end
  1124. if CanUse == true then
  1125. CanUse = false
  1126. ToggleRadio()
  1127. CanUse = true
  1128. end
  1129. end
  1130.  
  1131.  
  1132. function onButton1Up(Mouse)
  1133. Button1Down = false
  1134. end
  1135.  
  1136.  
  1137. function onKeyDown(Key, Mouse)
  1138. if Selected == false then return end
  1139. Key = Key:lower()
  1140. if CheckPlayer() == true then
  1141. if Button1Down == false and CanUse == true then
  1142. if Key == "q" then
  1143. if Mouse.Target == nil then return end
  1144. if CheckPlayer() == false then return end
  1145. local NewPlayer = game:GetService("Players"):GetPlayerFromCharacter(Mouse.Target.Parent)
  1146. if NewPlayer == nil then return end
  1147. if NewPlayer.Character == nil then return end
  1148. if NewPlayer.Character:FindFirstChild("Torso") == nil then return end
  1149. if (NewPlayer.Character.Torso.Position - Player.Character.Torso.Position).magnitude > 10 then return end
  1150. if Activated == true then Button1Down(Mouse) end
  1151. onDeselected(Mouse)
  1152. wait()
  1153. RemoveParts(Player.Character, 1)
  1154. script.Parent.Parent = NewPlayer.Backpack
  1155. Player = NewPlayer
  1156. end
  1157. if Key == "e" or Key == "r" then
  1158. CanUse = false
  1159. KeyERDown = true
  1160. while KeyERDown == true do
  1161. local Reactivate = Activated
  1162. if Activated == true then
  1163. ToggleRadio()
  1164. end
  1165. Channel = Channel + (Key == "e" and -1 or 1)
  1166. if Channel < 1 or Channel > 9 then
  1167. pcall(function()
  1168. Player.PlayerGui.RadioChannelGui.Channel.Text = "Scanning for channel " ..Channel.. "..."
  1169. Player.PlayerGui.RadioChannelGui.Channel.TextColor3 = Color3.new(0.4, 0.4, 0.4)
  1170. end)
  1171. wait(math.random(100, 500) / 1000)
  1172. pcall(function()
  1173. Player.PlayerGui.RadioChannelGui.Channel.Text = "Cannot broadcast to channel " ..Channel.. "."
  1174. Player.PlayerGui.RadioChannelGui.Channel.TextColor3 = Color3.new(0.9, 0, 0)
  1175. end)
  1176. wait(2.5)
  1177. Channel = Channel < 1 and 1 or 9
  1178. pcall(function() Player.PlayerGui.RadioChannelGui.Channel.Text = "Channel: " ..Channel end)
  1179. if Activated == true then
  1180. pcall(function() Player.PlayerGui.RadioChannelGui.Channel.TextColor3 = Color3.new(0, 0.9, 0) end)
  1181. else
  1182. pcall(function() Player.PlayerGui.RadioChannelGui.Channel.TextColor3 = Color3.new(0.9, 0, 0) end)
  1183. end
  1184. break
  1185. end
  1186. pcall(function()
  1187. Player.PlayerGui.RadioChannelGui.Channel.Text = "Scanning for channel " ..Channel.. "..."
  1188. Player.PlayerGui.RadioChannelGui.Channel.TextColor3 = Color3.new(0.4, 0.4, 0.4)
  1189. end)
  1190. wait(math.random(1, 250) / 1000)
  1191. pcall(function() Player.PlayerGui.RadioChannelGui.Channel.Text = "Channel: " ..Channel end)
  1192. if Reactivate == true then
  1193. ToggleRadio()
  1194. else
  1195. pcall(function() Player.PlayerGui.RadioChannelGui.Channel.TextColor3 = Color3.new(0.9, 0, 0) end)
  1196. end
  1197. end
  1198. CanUse = true
  1199. end
  1200. end
  1201. end
  1202. end
  1203.  
  1204.  
  1205. function onKeyUp(Key, Mouse)
  1206. if Selected == false then return end
  1207. Key = Key:lower()
  1208. if CheckPlayer() == true then
  1209. if Key == "e" or Key == "r" then
  1210. KeyERDown = false
  1211. end
  1212. end
  1213. end
  1214.  
  1215.  
  1216. function onSelected(Mouse)
  1217. if Selected == true or CanUse == false then return end
  1218. CanUse = false
  1219. while true do
  1220. if CheckPlayer() == true then
  1221. if Player.Character.Torso:FindFirstChild("Right Shoulder") ~= nil then
  1222. break
  1223. end
  1224. end
  1225. wait(0.1)
  1226. end
  1227. Selected = true
  1228. pcall(function()
  1229. local Gui = Instance.new("ScreenGui", Player.PlayerGui)
  1230. Gui.Name = "RadioChannelGui"
  1231. local TextLabel = Instance.new("TextLabel", Gui)
  1232. TextLabel.Name = "Channel"
  1233. TextLabel.Size = UDim2.new(1, 0, 0, 30)
  1234. TextLabel.Position = UDim2.new(0, 0, 1, -100)
  1235. TextLabel.BackgroundTransparency = 1
  1236. TextLabel.TextXAlignment = "Right"
  1237. TextLabel.FontSize = "Size24"
  1238. TextLabel.Text = "Channel: " ..Channel
  1239. TextLabel.TextColor3 = Activated == false and Color3.new(0.9, 0, 0) or Color3.new(0, 0.8, 0)
  1240. end)
  1241. if Activated == true then
  1242. pcall(function()
  1243. Player.Channels[Channel].CanSend.Value = true
  1244. end)
  1245. end
  1246. RemoveParts(Player.Character, 1)
  1247. CreateParts(Player.Character, 2)
  1248. DisableLimb(1, Player.Character)
  1249. SetSpeed(1, 0.5, Player.Character)
  1250. SetAngle(1, math.rad(90), Player.Character)
  1251. Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1252. Mouse.Button1Down:connect(function() onButton1Down(Mouse) end)
  1253. Mouse.Button1Up:connect(function() onButton1Up(Mouse) end)
  1254. Mouse.KeyDown:connect(function(Key) onKeyDown(Key, Mouse) end)
  1255. Mouse.KeyUp:connect(function(Key) onKeyUp(Key, Mouse) end)
  1256. CanUse = true
  1257. end
  1258.  
  1259.  
  1260. function onDeselected(Mouse)
  1261. if Selected == false then return end
  1262. Selected = false
  1263. Button1Down = false
  1264. while CanUse == false do wait() end
  1265. if Selected == true then return end
  1266. if CheckPlayer() == false or pcall(function() local _ = Player.Character.Torso["Right Shoulder 2"] end) == false then
  1267. RemoveParts(Player.Character, 2)
  1268. CreateParts(Player.Character, 1)
  1269. SetSpeed(1, 0.25, Player.Character)
  1270. SetAngle(1, 0, Player.Character)
  1271. ResetLimbCFrame(1, Player.Character)
  1272. EnableLimb(1, Player.Character)
  1273. return
  1274. end
  1275. CanUse = false
  1276. if Activated == true then
  1277. pcall(function()
  1278. Player.Channels[Channel].CanSend.Value = false
  1279. end)
  1280. end
  1281. pcall(function()
  1282. Player.PlayerGui.RadioChannelGui:Remove()
  1283. end)
  1284. RemoveParts(Player.Character, 2)
  1285. CreateParts(Player.Character, 1)
  1286. SetSpeed(1, 0.25, Player.Character)
  1287. SetAngle(1, 0, Player.Character)
  1288. ResetLimbCFrame(1, Player.Character)
  1289. EnableLimb(1, Player.Character)
  1290. CanUse = true
  1291. end
  1292.  
  1293.  
  1294. if script.Parent.ClassName ~= "HopperBin" then
  1295. if Player == nil then print("Error: Player not found!") return end
  1296. Tool = Instance.new("HopperBin")
  1297. Tool.Name = ModelName
  1298. Tool.Parent = Player.Backpack
  1299. script.Name = "Main"
  1300. script.Parent = Tool
  1301. elseif script.Parent.ClassName == "HopperBin" and Connected == false then
  1302. Connected = true
  1303. Player = script.Parent.Parent.Parent
  1304. script.Parent.Selected:connect(onSelected)
  1305. script.Parent.Deselected:connect(onDeselected)
  1306. CreateParts(Player.Character, 1)
  1307. end
  1308. end)
  1309.  
  1310. end)
Advertisement
Add Comment
Please, Sign In to add comment