Advertisement
WagnerJunio07

Headphones

Jul 16th, 2019
755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.15 KB | None | 0 0
  1. -- This script has been converted to FE by JunioBRFriends
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by JunioBRFriends")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --Created with PenguinAnonymous's compiler
  88. --PenguinAnonymous is not responsible for damages caused to your game
  89. --Please stop using my plugin to create abusive scripts
  90. --Errors:
  91. local runDummyScript = function(f,scri)
  92. local oldenv = getfenv(f)
  93. local newenv = setmetatable({}, {
  94. __index = function(_, k)
  95. if k:lower() == 'script' then
  96. return scri
  97. else
  98. return oldenv[k]
  99. end
  100. end
  101. })
  102. setfenv(f, newenv)
  103. ypcall(function() f() end)
  104. end
  105. cors = {}
  106. mas = Instance.new("Model",game:GetService("Lighting"))
  107. mas.Name = "CompiledModel"
  108. o1 = Instance.new("LocalScript")
  109. o1.Name = "Wubstep"
  110. o1.Parent = mas
  111. table.insert(cors,function()
  112. wait()
  113. runDummyScript(function()
  114.  
  115. function clerp(c1,c2,al)
  116. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  117. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  118. for i,v in pairs(com1) do
  119. com1[i] = v+(com2[i]-v)*al
  120. end
  121. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  122. end
  123.  
  124. plr = owner
  125. char = plr.Character
  126. humanoid = char:findFirstChild("Humanoid")
  127. torso = char:findFirstChild("Torso")
  128. head = char.Head
  129. ra = char:findFirstChild("Right Arm")
  130. la = char:findFirstChild("Left Arm")
  131. rl = char:findFirstChild("Right Leg")
  132. ll = char:findFirstChild("Left Leg")
  133. rs = torso:findFirstChild("Right Shoulder")
  134. ls = torso:findFirstChild("Left Shoulder")
  135. rh = torso:findFirstChild("Right Hip")
  136. lh = torso:findFirstChild("Left Hip")
  137. neck = torso:findFirstChild("Neck")
  138. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  139. rootpart = char:findFirstChild("HumanoidRootPart")
  140. camera = workspace.CurrentCamera
  141. anim = char:findFirstChild("Animate")
  142.  
  143. if char:FindFirstChild("Animate") then
  144. char.Animate:Destroy()
  145. end
  146. humanoid.Animator:Destroy()
  147.  
  148. local rm = Instance.new("Weld", torso)
  149. rm.C0 = CFrame.new(1.5, 0.5, 0)
  150. rm.C1 = CFrame.new(0, 0.5, 0)
  151. rm.Part0 = torso
  152. rm.Part1 = ra
  153.  
  154. local lm = Instance.new("Weld", torso)
  155. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  156. lm.C1 = CFrame.new(0, 0.5, 0)
  157. lm.Part0 = torso
  158. lm.Part1 = la
  159.  
  160. local rlegm = Instance.new("Weld", torso)
  161. rlegm.C0 = CFrame.new(0.5, -1, 0)
  162. rlegm.C1 = CFrame.new(0, 1, 0)
  163. rlegm.Part0 = torso
  164. rlegm.Part1 = rl
  165. local llegm = Instance.new("Weld", torso)
  166. llegm.C0 = CFrame.new(-0.5, -1, 0)
  167. llegm.C1 = CFrame.new(0, 1, 0)
  168. llegm.Part0 = torso
  169. llegm.Part1 = ll
  170.  
  171. neck.C0 = CFrame.new(0, 1, 0)
  172. neck.C1 = CFrame.new(0, -.5, 0)
  173.  
  174. rj.C0 = CFrame.new()
  175. rj.C1 = CFrame.new()
  176.  
  177. local Rbx = LoadLibrary("RbxUtility")
  178. local Create = Rbx.Create
  179.  
  180. GUI = Create("ScreenGui"){
  181. Parent = plr.PlayerGui,
  182. Enabled = true,
  183. ResetOnSpawn = true,
  184. Name = "WubstepGUI"
  185. }
  186.  
  187. Main = Create("Frame"){
  188. Parent = GUI,
  189. BackgroundColor3 = Color3.new(50/255,50/255,50/255),
  190. BorderColor3 = Color3.new(27/255,42/255,53/255),
  191. BorderSizePixel = 0,
  192. BackgroundTransparency = 0,
  193. Size = UDim2.new(0.2,0,0.5,0),
  194. Position = UDim2.new(-1.2,0,0.25,0),
  195. ZIndex = 1,
  196. Visible = true,
  197. Selectable = false,
  198. Name = "Main"
  199. }
  200.  
  201. IDBox = Create("TextBox"){
  202. Parent = Main,
  203. BackgroundColor3 = Color3.new(9/255,9/255,9/255),
  204. BackgroundTransparency = 0.7,
  205. BorderColor3 = Color3.new(255/255,255/255,255/255),
  206. BorderSizePixel = 5,
  207. Name = "ID",
  208. Position = UDim2.new(0.05,0,0.03,0),
  209. Selectable = true,
  210. ShowNativeInput = true,
  211. ClearTextOnFocus = true,
  212. Size = UDim2.new(0.9,0,0.15,0),
  213. Visible = true,
  214. ZIndex = 2,
  215. Text = "ID",
  216. TextWrapped = true,
  217. TextScaled = true,
  218. TextColor3 = Color3.new(255/255,255/255,255/255),
  219. TextStrokeTransparency = 0,
  220. TextStrokeColor3 = Color3.new(0,0,0)
  221. }
  222.  
  223. PlayButton = Create("TextButton"){
  224. Parent = Main,
  225. BackgroundTransparency = 0,
  226. BackgroundColor3 = Color3.new(9/255,9/255,9/255),
  227. BorderSizePixel = 0,
  228. BorderColor3 = Color3.new(27/255,42/255,53/255),
  229. Name = "Play",
  230. Modal = false,
  231. Position = UDim2.new(0.05,0,0.205,0),
  232. Size = UDim2.new(0.9,0,0.1,0),
  233. ZIndex = 2,
  234. Text = "Play",
  235. TextScaled = true,
  236. TextStrokeColor3 = Color3.new(0,0,0),
  237. TextStrokeTransparency = 1,
  238. TextColor3 = Color3.new(255/255,255/255,255/255),
  239. TextWrapped = true
  240. }
  241.  
  242. VolumeInc = Create("TextButton"){
  243. Parent = Main,
  244. BackgroundColor3 = Color3.new(0,7/255,48/255),
  245. BorderSizePixel = 2,
  246. Modal = false,
  247. Name = "+",
  248. Position = UDim2.new(0.75,0,0.325,0),
  249. Size = UDim2.new(0.2,0,0.34,0),
  250. Visible = true,
  251. TextScaled = true,
  252. TextColor3 = Color3.new(255/255,255/255,255/255),
  253. TextStrokeTransparency = 1,
  254. Text = "+"
  255. }
  256.  
  257. VolumeDec = Create("TextButton"){
  258. Parent = Main,
  259. BackgroundColor3 = Color3.new(48/255,0,0),
  260. BorderSizePixel = 2,
  261. Modal = false,
  262. Name = "+",
  263. Position = UDim2.new(0.05,0,0.325,0),
  264. Size = UDim2.new(0.2,0,0.34,0),
  265. Visible = true,
  266. TextScaled = true,
  267. TextColor3 = Color3.new(255/255,255/255,255/255),
  268. TextStrokeTransparency = 1,
  269. Text = "-"
  270. }
  271.  
  272. VolText = Create("TextLabel"){
  273. Parent = Main,
  274. BackgroundColor3 = Color3.new(255/255,255/255,255/255),
  275. BackgroundTransparency = 1,
  276. BorderColor3 = Color3.new(27/255,42/255,53/255),
  277. BorderSizePixel = 0,
  278. Name = "Volume",
  279. Position = UDim2.new(0.175,0,0.325,0),
  280. Size = UDim2.new(0.64,0,0.1,0),
  281. Visible = true,
  282. Text = "Volume",
  283. TextColor3 = Color3.new(255/255,255/255,255/255),
  284. TextScaled = true,
  285. TextStrokeColor3 = Color3.new(0,0,0),
  286. TextStrokeTransparency = 0
  287. }
  288.  
  289. VolNum = Create("TextLabel"){
  290. Parent = Main,
  291. BackgroundTransparency = 1,
  292. BorderSizePixel = 0,
  293. Name = "###",
  294. Position = UDim2.new(0.175,0,0.45,0),
  295. Size = UDim2.new(0.64,0,0.2,0),
  296. TextStrokeTransparency = 0,
  297. TextColor3 = Color3.new(255/255,255/255,255/255),
  298. Text = "1",
  299. TextScaled = true
  300. }
  301.  
  302. HeadphText = Create("TextLabel"){
  303. Parent = Main,
  304. BackgroundTransparency = 1,
  305. BorderSizePixel = 0,
  306. Name = "Headphones",
  307. Position = UDim2.new(0.05,0,0.7,0),
  308. Size = UDim2.new(0.64,0,0.1,0),
  309. TextStrokeTransparency = 0,
  310. TextColor3 = Color3.new(255/255,255/255,255/255),
  311. Text = "Headphones",
  312. TextScaled = true
  313. }
  314.  
  315. NotesText = Create("TextLabel"){
  316. Parent = Main,
  317. BackgroundTransparency = 1,
  318. BorderSizePixel = 0,
  319. Name = "Notes",
  320. Position = UDim2.new(0.05,0,0.85,0),
  321. Size = UDim2.new(0.64,0,0.1,0),
  322. TextStrokeTransparency = 0,
  323. TextColor3 = Color3.new(255/255,255/255,255/255),
  324. Text = "Notes",
  325. TextScaled = true
  326. }
  327.  
  328. Check1 = Create("TextButton"){
  329. Parent = Main,
  330. BackgroundTransparency = 0.7,
  331. BackgroundColor3 = Color3.new(50/255,50/255,50/255),
  332. BorderSizePixel = 5,
  333. BorderColor3 = Color3.new(0,0,0),
  334. Name = "Check1",
  335. Modal = false,
  336. Position = UDim2.new(0.78,0,0.7,0),
  337. Size = UDim2.new(0.13,0,0.1,0),
  338. ZIndex = 2,
  339. Text = "",
  340. TextScaled = true,
  341. TextStrokeColor3 = Color3.new(0,0,0),
  342. TextStrokeTransparency = 1,
  343. TextColor3 = Color3.new(255/255,255/255,255/255),
  344. TextWrapped = true
  345. }
  346.  
  347. Check2 = Create("TextButton"){
  348. Parent = Main,
  349. BackgroundTransparency = 0.7,
  350. BackgroundColor3 = Color3.new(50/255,50/255,50/255),
  351. BorderSizePixel = 5,
  352. BorderColor3 = Color3.new(0,0,0),
  353. Name = "Check2",
  354. Modal = false,
  355. Position = UDim2.new(0.78,0,0.85,0),
  356. Size = UDim2.new(0.13,0,0.1,0),
  357. ZIndex = 2,
  358. Text = "",
  359. TextScaled = true,
  360. TextStrokeColor3 = Color3.new(0,0,0),
  361. TextStrokeTransparency = 1,
  362. TextColor3 = Color3.new(255/255,255/255,255/255),
  363. TextWrapped = true
  364. }
  365.  
  366. Checkmark1 = Create("ImageLabel"){
  367. Parent = Check1,
  368. Size = UDim2.new(1,0,1,0),
  369. Position = UDim2.new(0,0,0,0),
  370. BorderSizePixel = 0,
  371. BackgroundTransparency = 1,
  372. Image = "rbxassetid://55565289",
  373. }
  374.  
  375. Checkmark2 = Create("ImageLabel"){
  376. Parent = Check2,
  377. Size = UDim2.new(1,0,1,0),
  378. Position = UDim2.new(0,0,0,0),
  379. BorderSizePixel = 0,
  380. BackgroundTransparency = 1,
  381. Image = "rbxassetid://55565289",
  382. }
  383.  
  384. OpenButton = Create("TextButton"){
  385. Parent = GUI,
  386. BackgroundTransparency = 0.7,
  387. BackgroundColor3 = Color3.new(50/255,50/255,50/255),
  388. BorderSizePixel = 5,
  389. BorderColor3 = Color3.new(0,0,0),
  390. Name = "Open/Close",
  391. Modal = false,
  392. Position = UDim2.new(0,0,0.7,0),
  393. Size = UDim2.new(0.13,0,0.1,0),
  394. ZIndex = 2,
  395. Text = "Wubstep",
  396. TextScaled = true,
  397. TextStrokeColor3 = Color3.new(0,0,0),
  398. TextStrokeTransparency = 0,
  399. TextColor3 = Color3.new(255/255,255/255,255/255),
  400. TextWrapped = true
  401. }
  402.  
  403. local Open = false
  404. local Debounce = false
  405. OpenButton.MouseButton1Down:connect(function()
  406. if Open == false and Debounce == false then
  407. Debounce = true
  408. Main:TweenPosition(UDim2.new(0.4, 0, 0.25, 0),"Out","Quad",3,false)
  409. repeat wait() until Main.Position == UDim2.new(0.4,0,0.25,0)
  410. wait(0.2)
  411. Open = true
  412. Debounce = false
  413. elseif Open == true and Debounce == false then
  414. Debounce = true
  415. Main:TweenPosition(UDim2.new(-1.2, 0, 0.25, 0),"Out","Quad",5,false)
  416. repeat wait() until Main.Position == UDim2.new(-1.2,0,0.25,0)
  417. wait(0.2)
  418. Open = false
  419. Debounce = false
  420. end
  421. end)
  422.  
  423. local Volume = 1
  424. VolumeInc.MouseButton1Down:connect(function()
  425. if Volume < 10 then
  426. Volume = Volume + 0.5
  427. end
  428. end)
  429. VolumeDec.MouseButton1Down:connect(function()
  430. if Volume > 0 then
  431. Volume = Volume - 0.5
  432. end
  433. end)
  434.  
  435. humanoid.WalkSpeed = 7
  436.  
  437. local s = Instance.new('Sound', head)
  438. s.Volume = Volume
  439. s.SoundId = "rbxassetid://0" --EG: Music to my ears
  440. s.Looped = true
  441. s:play()
  442.  
  443. PlayButton.MouseButton1Down:connect(function()
  444. s.SoundId = "rbxassetid://"..IDBox.Text
  445. end)
  446.  
  447. rsc0 = rm.C0
  448. lsc0 = lm.C0
  449. neckc0 = neck.C0
  450. rootc0 = rj.C0
  451. llc0 = llegm.C0
  452. rlc0 = rlegm.C0
  453. speed = 0.25
  454. angle = 0
  455. anglespeed = 1
  456.  
  457. local Hat = Instance.new('Part', char)
  458. Hat.FormFactor = 'Custom'
  459. Hat.Size = Vector3.new(1,1,1)
  460. Hat.CanCollide = false
  461. Hat.Locked = true
  462. Hat.Name = 'Headphones'
  463. Hat:breakJoints()
  464. Hat.TopSurface = 0
  465. Hat.BottomSurface = 0
  466. local Mesh = Instance.new('SpecialMesh', Hat)
  467. Mesh.MeshId = "http://www.roblox.com/asset/?id=1051545"
  468. Mesh.TextureId = "rbxassetid://186142634"
  469.  
  470. local Weld = Instance.new('Weld', Hat)
  471. Weld.Part0 = Hat
  472. Weld.Part1 = head
  473. Weld.C1 = CFrame.new(0, .2, 0)
  474.  
  475. local HP = true
  476. local Not = true
  477. Check1.MouseButton1Down:connect(function()
  478. if HP == true then
  479. HP = false
  480. Hat.Transparency = 0
  481. Checkmark1.Visible = true
  482. elseif HP == false then
  483. HP = true
  484. Hat.Transparency = 1
  485. Checkmark1.Visible = false
  486. end
  487. end)
  488. Check2.MouseButton1Down:connect(function()
  489. if Not == true then
  490. Not = false
  491. Checkmark2.Visible = false
  492. elseif Not == false then
  493. Not = true
  494. Checkmark2.Visible = true
  495. end
  496. end)
  497.  
  498. local SplashEffect = Instance.new('Part')
  499. Instance.new("CylinderMesh", SplashEffect);
  500. SplashEffect.Size = Vector3.new(.2,.2,.2)
  501. SplashEffect.Anchored = true
  502. SplashEffect.Transparency = 1
  503. SplashEffect.CanCollide = false
  504. SplashEffect.Locked = true
  505. SplashEffect.Material = "Neon"
  506. local surfacegui = Instance.new('SurfaceGui', SplashEffect)
  507. surfacegui.Face = 'Top'
  508. surfacegui.CanvasSize = Vector2.new(800,800)
  509. local SplashEffectImage = Instance.new('ImageLabel', surfacegui)
  510. SplashEffectImage.Size = UDim2.new(1,0,1,0)
  511. SplashEffectImage.Image = "rbxassetid://166139049"
  512. SplashEffectImage.BackgroundTransparency = 1
  513. SplashEffectImage.Name = 'Effect'
  514. SplashEffectImage.ImageColor3 = Color3.new(223/255, 0, 255/255)
  515. local light = Instance.new('PointLight', SplashEffect)
  516.  
  517. local SplashEffect2 = SplashEffect:clone()
  518. SplashEffect2:ClearAllChildren()
  519. Instance.new("CylinderMesh", SplashEffect2);
  520. local surfacegui2 = Instance.new('SurfaceGui', SplashEffect2)
  521. surfacegui2.Face = 'Top'
  522. surfacegui2.CanvasSize = Vector2.new(800,800)
  523. local SplashEffect2Image = Instance.new('ImageLabel', surfacegui2)
  524. SplashEffect2Image.Size = UDim2.new(1,0,1,0)
  525. SplashEffect2Image.Image = "rbxassetid://166139049"
  526. SplashEffect2Image.BackgroundTransparency = 1
  527. SplashEffect2Image.Name = 'Effect'
  528. SplashEffect2Image.ImageColor3 = Color3.new(223/255, 0, 255/255)
  529. local light2 = Instance.new('PointLight', SplashEffect2)
  530.  
  531. local Crack = Instance.new('Part')
  532. Crack.Size = Vector3.new(12, .2, 12)
  533. Crack.Anchored = true
  534. Crack.Transparency = 1
  535. Crack.CanCollide = false
  536.  
  537. Images = {"rbxassetid://109516732", "rbxassetid://185526499"}
  538. local Image = Instance.new('Decal', Crack)
  539. Image.Face = 'Top'
  540.  
  541.  
  542. local SplashColors = {Color3.new(223/255, 0, 255/255), Color3.new(223/255, 0, 255/255), Color3.new(226/255, 156/255, 210/255), Color3.new(120/255, 91/255, 169/255), Color3.new(8/255, 146/255, 208/255), Color3.new(0,0,1), Color3.new(127/255, 255/255, 212/255)}
  543. local Splash1cframe
  544. local Splash2cframe
  545.  
  546. function math_pos(float)
  547. if float < 0 then float = 0 end
  548. return float
  549. end
  550. function math_neg(float)
  551. if float > 0 then float = 0 end
  552. return float
  553. end
  554. function math_max(float, max)
  555. if float > max then float = max end
  556. return float
  557. end
  558. function math_min(float, min)
  559. if float > min then float = min end
  560. return float
  561. end
  562. pchar = char
  563. Part = function(x,y,z,color,tr,cc,an,parent)
  564. local p = Instance.new('Part',parent)
  565. p.formFactor = 'Custom'
  566. p.Size = Vector3.new(x,y,z)
  567. p.BrickColor = BrickColor.new(color)
  568. p.Material = "Neon"
  569. p.CanCollide = cc
  570. p.Transparency = tr
  571. p.Anchored = an
  572. p.TopSurface,p.BottomSurface = 0,0
  573. p.Locked=true
  574. p:BreakJoints()
  575. return p
  576. end
  577. Mesh = function(par,num,x,y,z)
  578. local msh = _
  579. if num == 1 then
  580. msh = Instance.new("CylinderMesh",par)
  581. elseif num == 2 then
  582. msh = Instance.new("SpecialMesh",par)
  583. msh.MeshType = 3
  584. elseif num == 3 then
  585. msh = Instance.new("BlockMesh",par)
  586. elseif num == 4 then
  587. msh = Instance.new("SpecialMesh",par)
  588. msh.MeshType = "Torso"
  589. elseif type(num) == 'string' then
  590. msh = Instance.new("SpecialMesh",par)
  591. msh.MeshId = num
  592. end
  593. msh.Scale = Vector3.new(x,y,z)
  594. return msh
  595. end
  596. function explosion(col1,col2,cfr,sz,rng,dmg)
  597. local a= Part(1,1,1,col1,.5,false,true,pchar)
  598. local a2= Part(1,1,1,col2,.5,false,true,pchar)
  599. local a3= Part(1,1,1,col2,.5,false,true,pchar)
  600. v1,v2,v3=sz.x,sz.y,sz.z
  601. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  602. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  603. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  604. a.CFrame=cfr
  605. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  606. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  607. for i,v in pairs(workspace:children()) do
  608. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  609. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  610. if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
  611. v.Humanoid.Health=v.Humanoid.Health-dmg
  612. v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
  613. end
  614. end
  615. end
  616. end
  617. Spawn(function()
  618. while true do
  619. wait()
  620. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  621. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  622. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  623. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  624. a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
  625. a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
  626. a.Transparency=a.Transparency+0.05
  627. a2.Transparency=a2.Transparency+0.05
  628. a3.Transparency=a3.Transparency+0.05
  629. end
  630. end)
  631. end
  632.  
  633. local lasttick
  634. local Action = false
  635. local db = false
  636. cd = false
  637.  
  638. mouse.KeyDown:connect(function(k)
  639. if k:byte() == 32 then
  640. if not jumped then
  641. lasttick = tick()
  642. end
  643. elseif k:lower() == "c" and db == false and cd == false then
  644. cd = true
  645. local Colors = {"New Yeller","Really red","Really blue","Royal purple","Pastel orange","Lime green","Hot pink","Toothpaste","Institutional white"}
  646. local Col1 = Colors[math.random(1,#Colors)]
  647. local Col2 = Colors[math.random(1,#Colors)]
  648. explosion(Col1,Col2,torso.CFrame,Vector3.new(80,80,80),60,80)
  649. cd = false
  650. elseif k:lower() == "f" and db == false then
  651. db = true
  652. local Rbx = LoadLibrary("RbxUtility")
  653. local Cre = Rbx.Create
  654. local Colors = {"New Yeller","Really red","Really blue","Royal purple","Pastel orange","Lime green","Hot pink","Toothpaste","Institutional white"}
  655. local sh = Cre("Part"){
  656. Parent = char,
  657. Size = Vector3.new(0.2,0.2,0.2),
  658. Anchored = true,
  659. CanCollide = false,
  660. Material = "Neon",
  661. BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]),
  662. CFrame = torso.CFrame
  663. }
  664. local msh = Cre("SpecialMesh"){
  665. MeshType = "Sphere",
  666. Scale = Vector3.new(0.01,0.01,0.01),
  667. Parent = sh
  668. }
  669. game:GetService("Debris"):AddItem(sh,25)
  670. coroutine.resume(coroutine.create(function()
  671. local a = 0
  672. for i=0,150 do
  673. sh.CFrame = torso.CFrame
  674. msh.Scale = msh.Scale + Vector3.new(math.floor(i/18),math.floor(i/18),math.floor(i/18))
  675. sh.Transparency = i/150
  676. a = a + 1
  677. if a >= 3 then
  678. a = 0
  679. sh.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  680. end
  681. for i,v in pairs(game.Workspace:GetChildren()) do
  682. if v and v.Name ~= plr.Name and v:FindFirstChild("Humanoid") then
  683. if v:FindFirstChild("Torso") then
  684. if (v.Torso.Position - torso.Position).magnitude <= i then
  685. v:BreakJoints()
  686. end
  687. end
  688. end
  689. end
  690. end
  691. db = false
  692. end))
  693. end
  694. end)
  695.  
  696. plr.Chatted:connect(function(msg)
  697. if msg == "/e dance" or msg == "/emote dance" then
  698. Action = 'Dancing'
  699. end
  700. if msg == "/e dance2" or msg == "/emote dance2" then
  701. Action = 'Dancing2'
  702. end
  703. if msg == "/e dance3" or msg == "/emote dance3" then
  704. Action = 'Dancing3'
  705. end
  706. end)
  707.  
  708. local screengui = Instance.new('ScreenGui', plr.PlayerGui)
  709. screengui.Name = "Vinyl's Effect"
  710. local frame = Instance.new('ImageLabel', screengui)
  711. frame.Size = UDim2.new(1,250,1,250)
  712. frame.Position = UDim2.new(0,-125,0,-125)
  713. frame.Image = "rbxassetid://186263828"
  714. frame.BackgroundTransparency = 1
  715.  
  716. local parts = Instance.new('Model', char)
  717.  
  718. coroutine.resume(coroutine.create(function()
  719. while true do
  720. VolNum.Text = Volume
  721. s.Volume = Volume
  722. end
  723. end))
  724.  
  725. local Notes = {}
  726. angle = (angle % 100) + anglespeed/10
  727. local rscf = rsc0
  728. local lscf = lsc0
  729. local rjcf = rootc0
  730. local ncf = neckc0
  731. local rlcf = rlc0
  732. local llcf = llc0
  733. local jumpray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  734. local jumphit, jumppos = workspace:FindPartOnRayWithIgnoreList(jumpray, {char, parts, Crack, SplashEffect, SplashEffect2})
  735. do --Right leg effect
  736. local ray = Ray.new(rl.CFrame.p, ((rl.CFrame*CFrame.new(0,-1,0)).p - rl.Position).unit*1)
  737. local hit,hitz, normal = workspace:FindPartOnRay(ray, char)
  738. if hit and hit:IsA'BasePart' and hitz then
  739. if SplashEffect.Parent == nil then
  740. local COLOR = SplashColors[math.random(1,#SplashColors)];
  741. SplashEffect.Parent = parts
  742. SplashEffect.Transparency = 0.2
  743. SplashEffect.BrickColor = BrickColor.new(COLOR)
  744. SplashEffect.Size = Vector3.new(.2,.2,.2)
  745. SplashEffectImage.ImageColor3 = COLOR;
  746. SplashEffectImage.ImageTransparency = 0
  747. SplashEffect.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.65, 0)
  748. Splash1cframe = SplashEffect.CFrame
  749. light.Color = SplashEffectImage.ImageColor3
  750. light.Brightness = 1
  751. light.Range = 8
  752. if Not == true then
  753. for i = 1, math.random(6,10) do
  754. local Note = Instance.new('Part', parts)
  755. Note.CanCollide = false
  756. Note.Material = "Neon"
  757. Note.Anchored = true
  758. Note.CFrame = SplashEffect.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20)
  759. Note.Color = SplashEffectImage.ImageColor3
  760. Note.Size = Vector3.new(1,1,1)
  761. local mesh = Instance.new('SpecialMesh', Note)
  762. mesh.MeshId = "rbxassetid://1088207"
  763. mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5)
  764. table.insert(Notes,Note)
  765. end
  766. end
  767. wait(1)
  768. SplashEffect.Parent = nil
  769. Splash1cframe = nil
  770. end
  771. end
  772. end
  773. do --Left leg effect
  774. local ray = Ray.new(ll.CFrame.p, ((ll.CFrame*CFrame.new(0,-1,0)).p - ll.Position).unit*1)
  775. local hit,hitz, normal = workspace:FindPartOnRay(ray, char)
  776. if hit and hit:IsA'BasePart' and hitz then
  777. if SplashEffect2.Parent == nil then
  778. local COLOR = SplashColors[math.random(1,#SplashColors)];
  779. SplashEffect2.Parent = parts
  780. SplashEffect2.Transparency = 0.2
  781.  
  782. SplashEffect2.BrickColor = BrickColor.new(COLOR)
  783. SplashEffect2.Size = Vector3.new(.2,.2,.2)
  784. SplashEffect2Image.ImageColor3 = COLOR;
  785. SplashEffect2Image.ImageTransparency = 0
  786. SplashEffect2.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.65, 0)
  787. Splash2cframe = SplashEffect2.CFrame
  788. light2.Color = SplashEffect2Image.ImageColor3
  789. light2.Brightness = 1
  790. light2.Range = 8
  791. if Not == true then
  792. for i = 1, math.random(6,10) do
  793. local Note = Instance.new('Part', parts)
  794. Note.CanCollide = false
  795. Note.Material = "Neon"
  796. Note.Anchored = true
  797. Note.CFrame = SplashEffect2.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20)
  798. Note.Color = SplashEffect2Image.ImageColor3
  799. Note.Size = Vector3.new(1,1,1)
  800. local mesh = Instance.new('SpecialMesh', Note)
  801. mesh.MeshId = "rbxassetid://1088207"
  802. mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5)
  803. table.insert(Notes,Note)
  804. end
  805. end
  806. wait(1)
  807. SplashEffect2.Parent = nil
  808. Splash2cframe = nil
  809. end
  810. end
  811. end
  812. if Action == 'Dancing' then
  813. anglespeed = .95
  814. llcf = llc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2)-.12, 0, -.02)
  815. rlcf = rlc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2), 0, .02)
  816. rscf = rsc0 * CFrame.Angles(math.rad(70) - math.asin(math.sin(angle))*1.5, 0, 0)
  817. lscf = lsc0 * CFrame.Angles(math.rad(10) - math.asin(math.sin(angle))*.45, 0, -.1)
  818. rjcf = rootc0 * CFrame.new(0, -.2 + -math_neg(math.asin(math.sin(angle))*2), 0) * CFrame.Angles(-math_pos(math.asin(math.sin(angle))*.2), 0, 0)
  819. ncf = neckc0 * CFrame.Angles(-math_neg(math.asin(math.sin(angle))*.2), 0, 0)
  820. elseif Action == 'Dancing2' then
  821. anglespeed = 1.15
  822. llcf = llc0 * CFrame.new(0, -math_neg(math.sin((angle+2)*2))*.2, math_neg(math.sin((angle+4)*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, -.02)
  823. rlcf = rlc0 * CFrame.new(0, -math_neg(math.sin(angle*2))*.2, math_neg(math.sin(angle*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, .02)
  824. rscf = rsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, -.2 + math.abs(math.asin(math.sin(angle)))*.35)
  825. lscf = lsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, .2 - math.abs(math.asin(math.sin(angle)))*.35)
  826. rjcf = rootc0 * CFrame.new(0, -.1 + -math_neg(math.sin(angle*2)*.8), 0) * CFrame.Angles(0, 0, 0)
  827. ncf = neckc0 * CFrame.Angles(-math_neg(math.sin(angle/2)*.2), 0, math.asin(math.sin(angle))*.2)
  828. elseif Action == 'Dancing3' then
  829. anglespeed = .95
  830. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0) * CFrame.Angles(0,math.asin(math.sin(angle))*.05,0)
  831. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.5, -math_pos(-math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.4,0,.075 + -math.asin(math.sin(angle))*.05)
  832. llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.5, -math_pos(math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.4,0,-.075 + -math.asin(math.sin(angle))*.05)
  833. rscf = rsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8)
  834. lscf = lsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8)
  835. ncf = neckc0 * CFrame.Angles(0,-math.asin(math.sin(angle))*.5,0)
  836. elseif Action == false then
  837. if not jumphit then
  838. anglespeed = 2
  839. rlcf = rlc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 - math.asin(math.sin(angle))*.05, 0, 0)
  840. llcf = llc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 + math.asin(math.sin(angle))*.05, 0, 0)
  841. lscf = lsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) - math.asin(math.sin(angle))*.05, 0, 0)
  842. rscf = rsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) + math.asin(math.sin(angle))*.05, 0, 0)
  843. elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude < 2 then
  844. anglespeed = .75
  845. ncf = neckc0 * CFrame.Angles(math.abs(math.asin(math.sin(angle))*.15), math.asin(math.sin(angle))*.15, 0)
  846. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0)
  847. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.25, -math_pos(-math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.24,0,.075 + -math.asin(math.sin(angle))*.05)
  848. llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.25, -math_pos(math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.24,0,-.075 + -math.asin(math.sin(angle))*.05)
  849. rscf = rsc0 * CFrame.Angles(-math.asin(math.sin(angle))*.25, 0, .015)
  850. lscf = lsc0 * CFrame.Angles(math.asin(math.sin(angle))*.25, 0, -.015)
  851. elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude > 2 then
  852. anglespeed = 1
  853. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.025, .05 - math.cos(angle*2)*.025, 0) * CFrame.Angles(-.15 + -math.abs(math.cos(angle)*.025),math.asin(math.sin(angle))*.025,0)
  854. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(math.cos(angle - 0.25)*.3), math_neg(-math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 + math.asin(math.sin(angle))*.4,0,.025 + -math.asin(math.sin(angle))*.025)
  855. llcf = llc0 * CFrame.new(0, -.05 + math_pos(-math.cos(angle - 0.25)*.3), math_neg(math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 - math.asin(math.sin(angle))*.4,0,-.025 + -math.asin(math.sin(angle))*.025)
  856. rscf = rsc0 * CFrame.Angles(.5 - math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2)
  857. lscf = lsc0 * CFrame.Angles(.5 + math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2)
  858. end
  859. end
  860. if SplashEffect.Parent ~= nil then
  861. if light then
  862. light.Range = light.Range + 1
  863. light.Brightness = light.Brightness - .045
  864. end
  865. SplashEffect.Size = SplashEffect.Size + Vector3.new(1.25,0,1.25)
  866. SplashEffectImage.ImageTransparency = SplashEffectImage.ImageTransparency + .045
  867. SplashEffect.Transparency = SplashEffect.Transparency + .025
  868. SplashEffect.CFrame = Splash1cframe
  869. end
  870.  
  871. if Crack.Parent ~= nil then
  872. if Image.Transparency > 1 then Crack.Parent = nil end
  873. Image.Transparency = Image.Transparency + .045
  874. end
  875.  
  876. if SplashEffect2.Parent ~= nil then
  877. if light2 then
  878. light2.Range = light2.Range + 1
  879. light2.Brightness = light2.Brightness - .045
  880. end
  881. SplashEffect2.Size = SplashEffect2.Size + Vector3.new(1.25,0,1.25)
  882. SplashEffect2Image.ImageTransparency = SplashEffect2Image.ImageTransparency + .045
  883. SplashEffect2.Transparency = SplashEffect2.Transparency + .025
  884. SplashEffect2.CFrame = Splash2cframe
  885. end
  886.  
  887. for i,v in pairs(Notes) do
  888. if v and v:IsA'BasePart' then
  889. if v.Transparency > 1 then
  890. v:Destroy()
  891. table.remove(Notes, i)
  892. end
  893. v.CFrame = v.CFrame * CFrame.new(0,0,-.285)
  894. v.Transparency = v.Transparency + .025
  895. end
  896. end
  897.  
  898. if Action ~= false then
  899. if torso.Velocity.magnitude > 2 then
  900. Action = false
  901. end
  902. end
  903.  
  904. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  905. llegm.C0 = clerp(llegm.C0,llcf,speed)
  906. rj.C0 = clerp(rj.C0,rjcf,speed)
  907. rm.C0 = clerp(rm.C0,rscf,speed)
  908. lm.C0 = clerp(lm.C0,lscf,speed)
  909. rj.C0 = clerp(rj.C0,rjcf,speed)
  910. neck.C0 = clerp(neck.C0,ncf,speed)
  911. end)
  912.  
  913. plr.Chatted:connect(function(msg)
  914. if (msg:sub(1,4) == "/mc ") then
  915. s:stop();
  916. s.SoundId = "rbxassetid://"..msg:sub(5);
  917. s:play();
  918. elseif msg:lower() == "/mc epicsaxguy" then
  919. s:stop()
  920. s.SoundId = "rbxassetid://130775431"
  921. s:play()
  922. elseif msg:lower() == "/mc shirushi" then
  923. s:stop()
  924. s.SoundId = "rbxassetid://186565262"
  925. s:play()
  926. end
  927. end)
  928.  
  929.  
  930. while true do
  931. for i = 0,140,15 do
  932. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  933. frame.Rotation = 0+math.random()
  934. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  935. end
  936. for i = 140,5, -15 do
  937. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  938. frame.Rotation = 0+math.random(-10,10)/10
  939. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  940. end
  941. for i = 5,25,15 do
  942. frame.Rotation = 0-math.random()
  943. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  944. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  945. end
  946. for i = 25,0,-15 do
  947. frame.Rotation = 0+math.random()
  948. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  949. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  950. end
  951. for i = 0,75,-15 do
  952. frame.Rotation = 0-math.random()
  953. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  954. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  955. end
  956. for i = 75,0,-15 do
  957. frame.Rotation = 0
  958. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  959. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  960. end
  961. end
  962. end,o1)
  963. end)
  964. mas.Parent = workspace
  965. mas:MakeJoints()
  966. local mas1 = mas:GetChildren()
  967. for i=1,#mas1 do
  968. mas1[i].Parent = script
  969. ypcall(function() mas1[i]:MakeJoints() end)
  970. end
  971. mas:Destroy()
  972. for i=1,#cors do
  973. spawn(cors[i])
  974. end
  975.  
  976. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  977. game:GetService("Lighting").Brightness = 1
  978. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  979. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  980. game:GetService("Lighting").GlobalShadows = true
  981. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
  982. game:GetService("Lighting").Outlines = true
  983. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  984. game:GetService("Lighting").TimeOfDay = "14:00:00"
  985. game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
  986. game:GetService("Lighting").FogEnd = 100000
  987. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement