Advertisement
Kermit1900

gg

Aug 13th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.53 KB | None | 0 0
  1. --[[insert it in your module
  2. alright? -HerLxght]]--
  3. local RealPlayer = script.Parent.Parent
  4. local FakeMouse = script.FakeMouse:Clone();
  5. FakeMouse.Parent = RealPlayer.Character;
  6. script.FakeMouse:Destroy()
  7. do
  8. local GUID = {}
  9. do
  10. GUID.IDs = {};
  11. function GUID:new(len)
  12. local id;
  13. if(not len)then
  14. id = (tostring(function() end))
  15. id = id:gsub("function: ","")
  16. else
  17. local function genID(len)
  18. local newID = ""
  19. for i = 1,len do
  20. newID = newID..string.char(math.random(48,90))
  21. end
  22. return newID
  23. end
  24. repeat id = genID(len) until not GUID.IDs[id]
  25. local oid = id;
  26. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  27. GUID.IDs[oid]=true;
  28. end
  29. return id
  30. end
  31. end
  32.  
  33. local AHB = Instance.new("BindableEvent")
  34.  
  35. local FPS = 30
  36.  
  37. local TimeFrame = 0
  38.  
  39. local LastFrame = tick()
  40. local Frame = 1/FPS
  41.  
  42. game:service'RunService'.Heartbeat:connect(function(s,p)
  43. TimeFrame = TimeFrame + s
  44. if(TimeFrame >= Frame)then
  45. for i = 1,math.floor(TimeFrame/Frame) do
  46. AHB:Fire()
  47. end
  48. LastFrame=tick()
  49. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  50. end
  51. end)
  52.  
  53.  
  54. function swait(dur)
  55. if(dur == 0 or typeof(dur) ~= 'number')then
  56. AHB.Event:wait()
  57. else
  58. for i = 1, dur*FPS do
  59. AHB.Event:wait()
  60. end
  61. end
  62. end
  63.  
  64. local oPlayer = RealPlayer
  65. local Player = oPlayer
  66.  
  67. local loudnesses={}
  68. script.Parent = Player.Character
  69. local CoAS = {Actions={}}
  70. local Event = Instance.new("RemoteEvent")
  71. Event.Name = "UserInputEvent"
  72. Event.Parent = Player.Character
  73. local Func = Instance.new("RemoteFunction")
  74. Func.Name = "GetClientProperty"
  75. Func.Parent = Player.Character
  76. local fakeEvent = function()
  77. local t = {_fakeEvent=true,Waited={},Connected={}}
  78. t.Connect = function(self,f)
  79. local ft={}
  80. ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
  81. ft.Disconnect=ft.disconnect
  82.  
  83. ft.Func=function(...)
  84. for id,_ in next, t.Waited do
  85. t.Waited[id] = true
  86. end
  87. return f(...)
  88. end;
  89.  
  90. table.insert(self.Connected,ft)
  91. return ft;
  92. end
  93. t.connect = t.Connect
  94. t.Wait = function()
  95. local guid = GUID:new(25)
  96. local waitingId = guid:Get()
  97. t.Waited[waitingId]=false
  98. repeat swait() until t.Waited[waitingId]==true
  99. t.Waited[waitingId]=nil;
  100. guid:Trash()
  101. end
  102. t.wait = t.Wait
  103. return t
  104. end
  105. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  106. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  107. local Run = {RenderStepped=fakeEvent()}
  108.  
  109. function CoAS:BindAction(name,fun,touch,...)
  110. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  111. end
  112. function CoAS:UnbindAction(name)
  113. CoAS.Actions[name] = nil
  114. end
  115. local function te(self,ev,...)
  116. local t = self[ev]
  117. if t and t._fakeEvent and t.Connected then
  118. for i,v in next, t.Connected do
  119. if(v.Func and not v.Disconnected)then
  120. v.Func(...)
  121. else
  122. t.Connected[i]=nil
  123. end
  124. end
  125. end
  126. end
  127. m.TrigEvent = te
  128. UsIS.TrigEvent = te
  129. Run.TrigEvent = te
  130. Event.OnServerEvent:Connect(function(plr,io)
  131. if plr~=Player then return end
  132. --[[table.foreach(io,print)
  133. print'---']]
  134. if io.Mouse then
  135. m.Target = io.Target
  136. m.Hit = io.Hit
  137. elseif io.KeyEvent then
  138. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  139. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  140. if io.UserInputState == Enum.UserInputState.Begin then
  141. m:TrigEvent("Button1Down")
  142. else
  143. m:TrigEvent("Button1Up")
  144. end
  145. end
  146. if(not io.KeyEvent and not io.Mouse)then
  147.  
  148. for n,t in pairs(CoAS.Actions) do
  149. for _,k in pairs(t.Keys) do
  150. if k==io.KeyCode then
  151. t.Function(t.Name,io.UserInputState,io)
  152. end
  153. end
  154. end
  155. if io.UserInputState == Enum.UserInputState.Begin then
  156. UsIS:TrigEvent("InputBegan",io,false)
  157. else
  158. UsIS:TrigEvent("InputEnded",io,false)
  159. end
  160. end
  161. end)
  162.  
  163. Func.OnServerInvoke = function(plr,inst,play)
  164. if plr~=Player then return end
  165. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  166. loudnesses[inst]=play
  167. end
  168. end
  169.  
  170. function GetClientProperty(inst,prop)
  171. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  172. return loudnesses[inst]
  173. elseif(prop == 'PlaybackLoudness')then
  174. return Func:InvokeClient(Player,'RegSound',inst)
  175. end
  176. return Func:InvokeClient(Player,inst,prop)
  177. end
  178. local oldGame = game;
  179. local oldPlayer = Player;
  180. local fakePlayer = newproxy(true)
  181. getmetatable(fakePlayer).__index = function(s,i)
  182. if(i == 'GetMouse')then
  183. return function() return m; end
  184. end
  185. return Player[i]
  186. end
  187. getmetatable(fakePlayer).__newindex = function(s,i,v)
  188. Player[i]=v
  189. end
  190. getmetatable(fakePlayer).__call=function(self,...)
  191. if(self == fakePlayer)then self = Player end
  192. local wh = {...}
  193. local name = table.remove(wh,1)
  194. for i,v in next, wh do
  195. wh[i]=v
  196. end
  197. if(name == 'GetMouse')then
  198. return m;
  199. end
  200. return self(name,unpack(wh))
  201. end
  202. getmetatable(fakePlayer).__namecall=function(self,...)
  203. if(self == fakePlayer)then self = Player end
  204. local tuple={...}
  205. local name = table.remove(tuple,#tuple)
  206.  
  207. if(name == 'GetMouse')then
  208. return m;
  209. else
  210. return self[name](self,unpack(tuple))
  211. end
  212. end
  213. local oll = LoadLibrary;
  214. function LoadLibrary(libtard)
  215. local libtarddestroyed=oll(libtard)
  216. if(libtard=='RbxUtility')then
  217. local library={Create=function(obj)
  218. local inst = Instance.new(obj)
  219. return function(props)
  220. for prop,valu in next, props do
  221. inst[prop]=valu
  222. end
  223. return inst
  224. end
  225. end}
  226. setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
  227.  
  228. return library
  229. else
  230. return libtarddestroyed
  231. end
  232. end
  233. local function GetService(s,i)
  234. local service = s:GetService(i)
  235. if(i == 'Players')then
  236. local oldService = service;
  237. local fakeService = newproxy(true)
  238. getmetatable(fakeService).__index = function(s,i)
  239. if(s == fakeService)then s=oldService end
  240. if(i == 'LocalPlayer' or i == 'localPlayer')then
  241. return fakePlayer
  242. elseif(i == 'oPlayer')then
  243. return oPlayer
  244. else
  245. return s[i]
  246. end
  247. end
  248. getmetatable(fakeService).__newindex = function(s,i,v)
  249. if(s == fakeService)then s=oldService end
  250. s[i]=v
  251. end
  252. getmetatable(fakeService).__call=function(self,...)
  253. if(self == fakeService)then self = oldService end
  254. local wh = {...}
  255. local name = table.remove(wh,1)
  256. for i,v in next, wh do
  257. wh[i]=v
  258. end
  259. return self(name,unpack(wh))
  260. end
  261. getmetatable(fakeService).__namecall=function(self,...)
  262. if(self == fakeService)then self = oldService end
  263. local tuple={...}
  264. local name = table.remove(tuple,#tuple)
  265.  
  266. return self[name](self,unpack(tuple))
  267. end
  268. getmetatable(fakeService).__metatable = 'gay'
  269. return fakeService
  270. elseif(i == 'RunService')then
  271. local oldService = service;
  272. local fakeService = newproxy(true)
  273. getmetatable(fakeService).__index = function(s,i)
  274. if(s == fakeService)then s=oldService end
  275. return Run[i] or s[i]
  276. end
  277. getmetatable(fakeService).__newindex = function(s,i,v)
  278. if(s == fakeService)then s=oldService end
  279. s[i]=v
  280. end
  281. getmetatable(fakeService).__call=function(self,...)
  282. if(self == fakeService)then self = oldService end
  283. local wh = {...}
  284. local name = table.remove(wh,1)
  285. for i,v in next, wh do
  286. wh[i]=v
  287. end
  288. return self(name,unpack(wh))
  289. end
  290. getmetatable(fakeService).__namecall=function(self,...)
  291. if(self == fakeService)then self = oldService end
  292. local tuple={...}
  293. local name = table.remove(tuple,#tuple)
  294.  
  295. return self[name](self,unpack(tuple))
  296. end
  297. getmetatable(fakeService).__metatable = 'gay'
  298. return fakeService
  299. elseif(i == 'UserInputService')then
  300. return UsIS
  301. elseif(i == 'ContextActionService')then
  302. return CoAS;
  303. else
  304. return service
  305. end
  306. end
  307.  
  308. local new = Instance.new;
  309. Instance = {}
  310. Instance.new = function(inst,obje)
  311. local lp = GetService(oldGame,'Players').localPlayer
  312. local instance = new(inst)
  313. if(inst=='ObjectValue')then
  314. local fake = newproxy(true)
  315. getmetatable(fake).__index=function(self,index)
  316. if(self==fake)then self=instance end
  317. return self[index]
  318. end
  319. getmetatable(fake).__newindex=function(self,index,value)
  320. if(self==fake)then self=instance end
  321. if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then
  322. self[index]=oPlayer
  323. else
  324. self[index]=value
  325. end
  326. end
  327. getmetatable(fake).__call=function(self,...)
  328. if(self == fake)then self = instance end
  329. local wh = {...}
  330. local name = table.remove(wh,1)
  331. for i,v in next, wh do
  332. if(v == fake)then v = instance end
  333. wh[i]=v
  334. end
  335. return self(name,unpack(wh))
  336. end
  337. getmetatable(fake). __namecall=function(self,...)
  338. if(self == fake)then self = instance end
  339. local tuple={...}
  340. local name = table.remove(tuple,#tuple)
  341. return self[name](self,unpack(tuple))
  342. end
  343. return fake
  344. else
  345. instance.Parent = obje
  346. return instance;
  347. end
  348.  
  349. end
  350. local serviceFunctions={
  351. service=true,
  352. GetService=true,
  353. }
  354. local fakeGame = newproxy(true)
  355. getmetatable(fakeGame).__index = function(s,i)
  356. if(s == fakeGame)then s=oldGame end
  357. local serv = GetService(oldGame,i)
  358. if serviceFunctions[i] then
  359. return GetService
  360. elseif(serv)then
  361. return serv
  362. else
  363. return s[i]
  364. end
  365. end
  366. getmetatable(fakeGame).__newindex = function(s,i,v)
  367. if(s == fakeGame)then s=oldGame end
  368. s[i]=v
  369. end
  370. getmetatable(fakeGame).__call=function(self,...)
  371. if(self == fakeGame)then self = oldGame end
  372. local wh = {...}
  373. local name = table.remove(wh,1)
  374. for i,v in next, wh do
  375. if(v == fakeGame)then v = oldGame end
  376. wh[i]=v
  377. end
  378. if serviceFunctions[name] then
  379. return GetService(self,unpack(wh))
  380. else
  381. return self(name,unpack(wh))
  382. end
  383. end
  384. getmetatable(fakeGame). __namecall=function(self,...)
  385. if(self == fakeGame)then self = oldGame end
  386. local tuple={...}
  387. local name = table.remove(tuple,#tuple)
  388.  
  389. local funcToCall=self[name]
  390.  
  391. if serviceFunctions[name] then
  392. return GetService(self,unpack(tuple))
  393. else
  394. return self[name](self,unpack(tuple))
  395. end
  396. end
  397. getmetatable(fakeGame).__metatable = 'gay'
  398.  
  399. coroutine.wrap(function()
  400. while true do
  401. Run:TrigEvent('RenderStepped')
  402. swait()
  403. end
  404. end)()
  405. game=fakeGame
  406. UserInputService,ContextActionService = UsIS,CoAS
  407. end
  408. Player = game:GetService("Players").LocalPlayer
  409. PlayerGui = Player.PlayerGui
  410. Mouse = Player:GetMouse()
  411. Cam = workspace.CurrentCamera
  412. Backpack = Player.Backpack
  413. Character = Player.Character
  414. Humanoid = Character.Humanoid
  415. RootPart = Character["HumanoidRootPart"]
  416. Torso = Character["Torso"]
  417. Head = Character["Head"]
  418. RightArm = Character["Right Arm"]
  419. LeftArm = Character["Left Arm"]
  420. RightLeg = Character["Right Leg"]
  421. LeftLeg = Character["Left Leg"]
  422. RootJoint = RootPart["RootJoint"]
  423. Neck = Torso["Neck"]
  424. RightShoulder = Torso["Right Shoulder"]
  425. LeftShoulder = Torso["Left Shoulder"]
  426. RightHip = Torso["Right Hip"]
  427. LeftHip = Torso["Left Hip"]
  428.  
  429. IT = Instance.new
  430. CF = CFrame.new
  431. VT = Vector3.new
  432. RAD = math.rad
  433. C3 = Color3.new
  434. UD2 = UDim2.new
  435. BRICKC = BrickColor.new
  436. ANGLES = CFrame.Angles
  437. EULER = CFrame.fromEulerAnglesXYZ
  438. COS = math.cos
  439. ACOS = math.acos
  440. SIN = math.sin
  441. ASIN = math.asin
  442. ABS = math.abs
  443. MRANDOM = math.random
  444. FLOOR = math.floor
  445.  
  446. Animation_Speed = 3
  447. local FORCERESET = false
  448. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  449. local Speed = 16
  450. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  451. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  452. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  453. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  454. local DAMAGEMULTIPLIER = 1
  455. local ANIM = "Idle"
  456. local ATTACK = false
  457. local EQUIPPED = false
  458. local HOLD = false
  459. local COMBO = 1
  460. local Rooted = false
  461. local SINE = 0
  462. local KEYHOLD = false
  463. local CHANGE = 2 / Animation_Speed
  464. local WALKINGANIM = false
  465. local VALUE1 = false
  466. local VALUE2 = false
  467. local ROBLOXIDLEANIMATION = IT("Animation")
  468. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  469. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  470. --ROBLOXIDLEANIMATION.Parent = Humanoid
  471. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  472. WEAPONGUI.Name = "BanishV3Gui"
  473. local Weapon = IT("Model")
  474. Weapon.Name = "Adds"
  475. local Effects = IT("Folder", Weapon)
  476. Effects.Name = "Effects"
  477. local ANIMATOR = Humanoid.Animator
  478. local ANIMATE = Character:FindFirstChild("Animate")
  479. local UNANCHOR = true
  480. local TOBANISH = {}
  481. script.Parent = PlayerGui
  482.  
  483. --//=================================\\
  484. --\\=================================//
  485.  
  486.  
  487. --//=================================\\
  488. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  489. --\\=================================//
  490.  
  491. ArtificialHB = Instance.new("BindableEvent", script)
  492. ArtificialHB.Name = "ArtificialHB"
  493.  
  494. script:WaitForChild("ArtificialHB")
  495.  
  496. frame = Frame_Speed
  497. tf = 0
  498. allowframeloss = false
  499. tossremainder = false
  500. lastframe = tick()
  501. script.ArtificialHB:Fire()
  502.  
  503. game:GetService("RunService").Heartbeat:connect(function(s, p)
  504. tf = tf + s
  505. if tf >= frame then
  506. if allowframeloss then
  507. script.ArtificialHB:Fire()
  508. lastframe = tick()
  509. else
  510. for i = 1, math.floor(tf / frame) do
  511. script.ArtificialHB:Fire()
  512. end
  513. lastframe = tick()
  514. end
  515. if tossremainder then
  516. tf = 0
  517. else
  518. tf = tf - frame * math.floor(tf / frame)
  519. end
  520. end
  521. end)
  522. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  523. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  524. end
  525.  
  526. function PositiveAngle(NUMBER)
  527. if NUMBER >= 0 then
  528. NUMBER = 0
  529. end
  530. return NUMBER
  531. end
  532. local VOLUME = 2
  533. local PITCH = 1
  534. local SONGID = 3109097883
  535.  
  536. function Debree(Table)
  537. local KindOf = (Table.Variant or "Ring")
  538. local Position = (Table.Location or Torso.Position)
  539. local Coloration = (Table.Color or C3(1,1,1))
  540. local Texture = (Table.Material or "Slate")
  541. local Fling = (Table.Scatter or 1)
  542. local Number = (Table.Amount or 1)
  543. local Rocks = (Table.DebreeCount or 1)
  544. local Range = (Table.Distance or 1)
  545. local Scale = (Table.Size or 1)
  546. local Timer = (Table.Delay or 1.5)
  547. coroutine.resume(coroutine.create(function()
  548. local ScaleVector = VT(Scale,Scale,Scale)
  549. local Boulders = {}
  550. Position = CF(Position)
  551. if KindOf == "Ring" or KindOf == "Both" then
  552. for RockValue = 1, Number do
  553. local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale/4),math.ceil(Scale/4)),Range)
  554. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
  555. BOULDER.CanCollide = true
  556. BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  557. BOULDER.Color = Coloration
  558. table.insert(Boulders,BOULDER)
  559. end
  560. end
  561. if KindOf == "Loose" or KindOf == "Both" then
  562. for RockValue = 1, Rocks do
  563. local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale-(Scale/2)),math.ceil(Scale-(Scale/2))),0.7)
  564. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, false)
  565. BOULDER.CanCollide = true
  566. BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  567. BOULDER.Velocity = CF(BOULDER.Position-VT(0,4,0),BOULDER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,5,0).p).lookVector*MRANDOM(Fling-(Fling/1.5),Fling+(Fling/1.5))
  568. BOULDER.Color = Coloration
  569. table.insert(Boulders,BOULDER)
  570. end
  571. end
  572. if KindOf == "Random" then
  573. for RockValue = 1, Number do
  574. local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale/4),math.ceil(Scale/4)),MRANDOM(0,Range))
  575. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
  576. BOULDER.CanCollide = true
  577. BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  578. BOULDER.Color = Coloration
  579. table.insert(Boulders,BOULDER)
  580. end
  581. end
  582. wait(Timer)
  583. for E = 1, 45 do
  584. Swait()
  585. for A = 1, #Boulders do
  586. Boulders[A].Transparency = Boulders[A].Transparency + 1/45
  587. end
  588. end
  589. for A = 1, #Boulders do
  590. Boulders[A]:Destroy()
  591. end
  592. end))
  593. end
  594. local BASECOLOR = C3(0,0,0)
  595. local VOLUME = 1
  596. local PITCH = 1
  597. local PLAYING = false
  598. local INTRO = false
  599. local SCREENS = {}
  600. local SCREENWELDS = {}
  601. local GUISTEXT = {}
  602. local GLASSESWLD = nil
  603.  
  604. function NegativeAngle(NUMBER)
  605. if NUMBER <= 0 then
  606. NUMBER = 0
  607. end
  608. return NUMBER
  609. end
  610.  
  611. function Swait(NUMBER)
  612. if NUMBER == 0 or NUMBER == nil then
  613. ArtificialHB.Event:wait()
  614. else
  615. for i = 1, NUMBER do
  616. ArtificialHB.Event:wait()
  617. end
  618. end
  619. end
  620. local GUID = {}
  621. local Func = Instance.new("RemoteFunction")
  622. Func.Name = "GetClientProperty"
  623. Func.Parent = script
  624. local fakeEvent = function()
  625. local t = {_fakeEvent=true,Waited={}}
  626. t.Connect = function(self,f)
  627. local ft={Disconnected=false;disconnect=function(s) s.Disconnected=true end}
  628. ft.Disconnect=ft.disconnect
  629.  
  630. ft.Func=function(...)
  631. for id,_ in next, t.Waited do
  632. t.Waited[id] = true
  633. end
  634. return f(...)
  635. end;
  636. self.Function=ft;
  637. return ft;
  638. end
  639. t.connect = t.Connect
  640. t.Wait = function()
  641. local guid = GUID:new(25)
  642. local waitingId = guid:Get()
  643. t.Waited[waitingId]=false
  644. repeat Swait() until t.Waited[waitingId]==true
  645. t.Waited[waitingId]=nil;
  646. guid:Trash()
  647. end
  648. t.wait = t.Wait
  649. return t
  650. end
  651. local S = IT("Sound",script)
  652. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  653. local NEWSOUND = nil
  654. coroutine.resume(coroutine.create(function()
  655. NEWSOUND = S:Clone()
  656. NEWSOUND.Parent = PARENT
  657. NEWSOUND.Volume = VOLUME
  658. NEWSOUND.Pitch = PITCH
  659. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  660. NEWSOUND:play()
  661. if DOESLOOP == true then
  662. NEWSOUND.Looped = true
  663. else
  664. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  665. NEWSOUND:remove()
  666. end
  667. end))
  668. return NEWSOUND
  669. end
  670. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  671. local NEWMESH = IT(MESH)
  672. if MESH == "SpecialMesh" then
  673. NEWMESH.MeshType = MESHTYPE
  674. if MESHID ~= "nil" and MESHID ~= "" then
  675. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  676. end
  677. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  678. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  679. end
  680. end
  681. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  682. NEWMESH.Scale = SCALE
  683. NEWMESH.Parent = PARENT
  684. return NEWMESH
  685. end
  686.  
  687. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  688. local NEWPART = IT("Part")
  689. NEWPART.formFactor = FORMFACTOR
  690. NEWPART.Reflectance = REFLECTANCE
  691. NEWPART.Transparency = TRANSPARENCY
  692. NEWPART.CanCollide = false
  693. NEWPART.Locked = true
  694. NEWPART.Anchored = true
  695. if ANCHOR == false then
  696. NEWPART.Anchored = false
  697. end
  698. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  699. NEWPART.Name = NAME
  700. NEWPART.Size = SIZE
  701. NEWPART.Position = Torso.Position
  702. NEWPART.Material = MATERIAL
  703. NEWPART:BreakJoints()
  704. NEWPART.Parent = PARENT
  705. return NEWPART
  706. end
  707.  
  708. local function weldBetween(a, b)
  709. local weldd = Instance.new("ManualWeld")
  710. weldd.Part0 = a
  711. weldd.Part1 = b
  712. weldd.C0 = CFrame.new()
  713. weldd.C1 = b.CFrame:inverse() * a.CFrame
  714. weldd.Parent = a
  715. return weldd
  716. end
  717.  
  718. local naeeym2 = Instance.new("BillboardGui",Character)
  719. naeeym2.AlwaysOnTop = true
  720. naeeym2.Size = UDim2.new(5,35,2,35)
  721. naeeym2.StudsOffset = Vector3.new(0,3,0)
  722. naeeym2.Adornee = Character.Head
  723. naeeym2.Name = "Name"
  724. local tecks2 = Instance.new("TextLabel",naeeym2)
  725. tecks2.BackgroundTransparency = 1
  726. tecks2.TextScaled = true
  727. tecks2.BorderSizePixel = 0
  728. tecks2.Text = "template"
  729. tecks2.Font = "Code"
  730. tecks2.TextSize = 30
  731. tecks2.TextTransparency = 1
  732. tecks2.TextStrokeTransparency = 1
  733. tecks2.Size = UDim2.new(1,0,0.5,0)
  734. tecks2.Parent = naeeym2
  735. function QuaternionFromCFrame(cf)
  736. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  737. local trace = m00 + m11 + m22
  738. if trace > 0 then
  739. local s = math.sqrt(1 + trace)
  740. local recip = 0.5 / s
  741. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  742. else
  743. local i = 0
  744. if m11 > m00 then
  745. i = 1
  746. end
  747. if m22 > (i == 0 and m00 or m11) then
  748. i = 2
  749. end
  750. if i == 0 then
  751. local s = math.sqrt(m00 - m11 - m22 + 1)
  752. local recip = 0.5 / s
  753. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  754. elseif i == 1 then
  755. local s = math.sqrt(m11 - m22 - m00 + 1)
  756. local recip = 0.5 / s
  757. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  758. elseif i == 2 then
  759. local s = math.sqrt(m22 - m00 - m11 + 1)
  760. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  761. end
  762. end
  763. end
  764.  
  765. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  766. local xs, ys, zs = x + x, y + y, z + z
  767. local wx, wy, wz = w * xs, w * ys, w * zs
  768. local xx = x * xs
  769. local xy = x * ys
  770. local xz = x * zs
  771. local yy = y * ys
  772. local yz = y * zs
  773. local zz = z * zs
  774. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  775. end
  776.  
  777. function QuaternionSlerp(a, b, t)
  778. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  779. local startInterp, finishInterp;
  780. if cosTheta >= 0.0001 then
  781. if (1 - cosTheta) > 0.0001 then
  782. local theta = ACOS(cosTheta)
  783. local invSinTheta = 1 / SIN(theta)
  784. startInterp = SIN((1 - t) * theta) * invSinTheta
  785. finishInterp = SIN(t * theta) * invSinTheta
  786. else
  787. startInterp = 1 - t
  788. finishInterp = t
  789. end
  790. else
  791. if (1 + cosTheta) > 0.0001 then
  792. local theta = ACOS(-cosTheta)
  793. local invSinTheta = 1 / SIN(theta)
  794. startInterp = SIN((t - 1) * theta) * invSinTheta
  795. finishInterp = SIN(t * theta) * invSinTheta
  796. else
  797. startInterp = t - 1
  798. finishInterp = t
  799. end
  800. end
  801. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  802. end
  803.  
  804. function Clerp(a, b, t)
  805. local qa = {QuaternionFromCFrame(a)}
  806. local qb = {QuaternionFromCFrame(b)}
  807. local ax, ay, az = a.x, a.y, a.z
  808. local bx, by, bz = b.x, b.y, b.z
  809. local _t = 1 - t
  810. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  811. end
  812. function NoOutlines(PART)
  813. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  814. end
  815.  
  816. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  817. local NEWWELD = IT(TYPE)
  818. NEWWELD.Part0 = PART0
  819. NEWWELD.Part1 = PART1
  820. NEWWELD.C0 = C0
  821. NEWWELD.C1 = C1
  822. NEWWELD.Parent = PARENT
  823. return NEWWELD
  824. end
  825. function MakeForm(PART,TYPE)
  826. if TYPE == "Cyl" then
  827. local MSH = IT("CylinderMesh",PART)
  828. elseif TYPE == "Ball" then
  829. local MSH = IT("SpecialMesh",PART)
  830. MSH.MeshType = "Sphere"
  831. elseif TYPE == "Wedge" then
  832. local MSH = IT("SpecialMesh",PART)
  833. MSH.MeshType = "Wedge"
  834. end
  835. end
  836.  
  837.  
  838. NewInstance = function(instance,parent,properties)
  839. local inst = Instance.new(instance)
  840. inst.Parent = parent
  841. if(properties)then
  842. for i,v in next, properties do
  843. pcall(function() inst[i] = v end)
  844. end
  845. end
  846. return inst;
  847. end
  848. local r = 255
  849. local g = 0
  850. local b = 0
  851. coroutine.resume(coroutine.create(function()
  852. while wait() do
  853. for i = 0, 254/5 do
  854. swait()
  855. g = g + 5
  856. end
  857. for i = 0, 254/5 do
  858. swait()
  859. r = r - 5
  860. end
  861. for i = 0, 254/5 do
  862. swait()
  863. b = b + 5
  864. end
  865. for i = 0, 254/5 do
  866. swait()
  867. g = g - 5
  868. end
  869. for i = 0, 254/5 do
  870. swait()
  871. r = r + 5
  872. end
  873. for i = 0, 254/5 do
  874. swait()
  875. b = b - 5
  876. end
  877. end
  878. end))
  879.  
  880. function Chat(text,color)
  881. local who = Character
  882. coroutine.wrap(function()
  883. if(who:FindFirstChild'ChatGUI')then who.ChatGUI:destroy() end
  884. local BBG = NewInstance("BillboardGui",who,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=Vector3.new(0,3,0),Adornee=who.Head})
  885. local offset = 0;
  886. local xsize = 0;
  887. for i = 1, #text do
  888. offset = offset - 16
  889. xsize = xsize + 32
  890. delay(i/25, function()
  891. local Txt = NewInstance("TextLabel",BBG,{Text = text:sub(i,i),Position=UDim2.new(0,0,0,300),BackgroundTransparency=1,TextColor3=(typeof(color) == 'string' and color:lower() == 'rainbow' and C3.HSV(Hue/360,1,1)) or color,BorderSizePixel=0,Font=Enum.Font.Arcade,TextSize=40,TextStrokeTransparency=0,Size=UDim2.new(1,0,.5,0)})
  892. coroutine.resume(coroutine.create(function()
  893. while true do
  894. swait()
  895. Txt.TextColor3 = Color3.new(r/255,g/255,b/255)
  896. end
  897. end))
  898. offset = offset + 32
  899. if(Txt.Parent)then Txt:TweenPosition(UDim2.new(0,offset,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Elastic,1) end
  900. end)
  901. end
  902. BBG.Size = UDim2.new(0,xsize,0,40)
  903. delay((#text/25)+3, function()
  904. for _,v in next, BBG:children() do
  905. v:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.In,Enum.EasingStyle.Linear,1)
  906. end
  907. wait(1.15)
  908. BBG:destroy()
  909. end)
  910. end)()
  911. end
  912. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  913.  
  914. local sick = Instance.new("Sound",RootPart)
  915. sick.SoundId = "rbxassetid://"..SONGID
  916. sick.Volume = 2
  917. sick.Looped =true
  918. sick:Play()
  919. Mouse.KeyDown:Connect(function(key)
  920. KEYHOLD = true
  921. end)
  922.  
  923. Mouse.KeyUp:Connect(function()
  924. KEYHOLD = false
  925. end)
  926. local loudnesses = {}
  927. local RW = RightShoulder
  928. local LW = LeftShoulder
  929. function clerp(a,b,t)
  930. local qa = {QuaternionFromCFrame(a)}
  931. local qb = {QuaternionFromCFrame(b)}
  932. local ax, ay, az = a.x, a.y, a.z
  933. local bx, by, bz = b.x, b.y, b.z
  934. local _t = 1-t
  935. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  936. end
  937. local LH = LeftHip
  938. local RH = RightHip
  939. radian = math.rad
  940. random = math.random
  941. Vec3 = Vector3.new
  942. Inst = Instance.new
  943. cFrame = CFrame.new
  944. Euler = CFrame.fromEulerAnglesXYZ
  945. vt = Vector3.new
  946. bc = BrickColor.new
  947. br = BrickColor.random
  948. it = Instance.new
  949. cf = CFrame.new
  950. cam = game.Workspace.CurrentCamera
  951. CF = CFrame.new
  952. angles = CFrame.Angles
  953. Euler = CFrame.fromEulerAnglesXYZ
  954. Rad = math.rad
  955. IT = Instance.new
  956. BrickC = BrickColor.new
  957. Cos = math.cos
  958. Acos = math.acos
  959. Sin = math.sin
  960. Asin = math.asin
  961. Abs = math.abs
  962. Mrandom = math.random
  963. Floor = math.floor
  964. IT = Instance.new
  965. CF = CFrame.new
  966. VT = Vector3.new
  967. RAD = math.rad
  968. C3 = Color3.new
  969. UD2 = UDim2.new
  970. BRICKC = BrickColor.new
  971. ANGLES = CFrame.Angles
  972. EULER = CFrame.fromEulerAnglesXYZ
  973. COS = math.cos
  974. ACOS = math.acos
  975. SIN = math.sin
  976. ASIN = math.asin
  977. ABS = math.abs
  978. MRANDOM = math.random
  979. FLOOR = math.floor
  980. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  981. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  982. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  983. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  984. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  985. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  986. local sine = 0
  987. local change = 1
  988. local kan = sick
  989. local musicinfo = game.MarketplaceService:GetProductInfo(SONGID)
  990.  
  991. function WACKYEFFECT(Table)
  992. local TYPE = (Table.EffectType or "Sphere")
  993. local SIZE = (Table.Size or VT(1,1,1))
  994. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  995. local TRANSPARENCY = (Table.Transparency or 0)
  996. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  997. local CFRAME = (Table.CFrame or Torso.CFrame)
  998. local MOVEDIRECTION = (Table.MoveToPos or nil)
  999. local ROTATION1 = (Table.RotationX or 0)
  1000. local ROTATION2 = (Table.RotationY or 0)
  1001. local ROTATION3 = (Table.RotationZ or 0)
  1002. local MATERIAL = (Table.Material or "Neon")
  1003. local COLOR = (Table.Color or C3(1,1,1))
  1004. local TIME = (Table.Time or 45)
  1005. local SOUNDID = (Table.SoundID or nil)
  1006. local SOUNDPITCH = (Table.SoundPitch or nil)
  1007. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1008. coroutine.resume(coroutine.create(function()
  1009. local PLAYSSOUND = false
  1010. local SOUND = nil
  1011. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1012. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1013. PLAYSSOUND = true
  1014. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1015. end
  1016. EFFECT.Color = COLOR
  1017. local MSH = nil
  1018. if TYPE == "Sphere" then
  1019. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1020. elseif TYPE == "Block" then
  1021. MSH = IT("BlockMesh",EFFECT)
  1022. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1023. elseif TYPE == "Wave" then
  1024. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1025. elseif TYPE == "Ring" then
  1026. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1027. elseif TYPE == "Slash" then
  1028. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1029. elseif TYPE == "Round Slash" then
  1030. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1031. elseif TYPE == "Swirl" then
  1032. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1033. elseif TYPE == "Skull" then
  1034. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1035. elseif TYPE == "Crystal" then
  1036. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1037. end
  1038. if MSH ~= nil then
  1039. local MOVESPEED = nil
  1040. if MOVEDIRECTION ~= nil then
  1041. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1042. end
  1043. local GROWTH = SIZE - ENDSIZE
  1044. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1045. if TYPE == "Block" then
  1046. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1047. else
  1048. EFFECT.CFrame = CFRAME
  1049. end
  1050. for LOOP = 1, TIME+1 do
  1051. Swait()
  1052. MSH.Scale = MSH.Scale - GROWTH/TIME
  1053. if TYPE == "Wave" then
  1054. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1055. end
  1056. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1057. if TYPE == "Block" then
  1058. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1059. else
  1060. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1061. end
  1062. if MOVEDIRECTION ~= nil then
  1063. local ORI = EFFECT.Orientation
  1064. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1065. EFFECT.Orientation = ORI
  1066. end
  1067. end
  1068. if PLAYSSOUND == false then
  1069. EFFECT:remove()
  1070. else
  1071. SOUND.Stopped:Connect(function()
  1072. EFFECT:remove()
  1073. end)
  1074. end
  1075. else
  1076. if PLAYSSOUND == false then
  1077. EFFECT:remove()
  1078. else
  1079. repeat Swait() until SOUND.Playing == false
  1080. EFFECT:remove()
  1081. end
  1082. end
  1083. end))
  1084. end
  1085.  
  1086. MAINRUINCOLOR = Color3.new(r/255,g/255,b/255)
  1087. Player.Chatted:connect(function(msg)
  1088. if(msg:sub(1,5) == "play/")then
  1089. SONGID = tonumber(msg:sub(6))
  1090. sick.SoundId = "rbxassetid://"..SONGID
  1091. elseif msg:sub(1,4) == "vol/" then
  1092. VOLUME = tonumber(msg:sub(5))
  1093. elseif msg:sub(1,6) == "pitch/" then
  1094. PITCH = msg:sub(7)
  1095. end
  1096. end)
  1097. local noteblock = script.Noteblock:Clone()
  1098. noteblock.Parent = Character
  1099. local bp = Instance.new("BodyPosition", noteblock)
  1100. bp.Position = Character:FindFirstChild("Torso").CFrame * CFrame.new(0, 9, 0).p
  1101. bp.MaxForce = Vector3.new(10000,10000,10000)
  1102. bp.P = 100000
  1103. local rbm = false
  1104. local csm = false
  1105. local loud = GetClientProperty(kan,"PlaybackLoudness")/200
  1106. local timepos = 0
  1107. local mesh = noteblock.Mesh
  1108. returntex = function()
  1109. local function sandbox(var,func)
  1110. local env = getfenv(func)
  1111. local newenv = setmetatable({},{
  1112. __index = function(self,k)
  1113. if k=="script" then
  1114. return var
  1115. else
  1116. return env[k]
  1117. end
  1118. end,
  1119. })
  1120. setfenv(func,newenv)
  1121. return func
  1122. end
  1123. local cors = {}
  1124. local mas = Instance.new("Model",game:GetService("Lighting"))
  1125. local Texture0 = Instance.new("Texture")
  1126. local Texture1 = Instance.new("Texture")
  1127. local Texture2 = Instance.new("Texture")
  1128. local Texture3 = Instance.new("Texture")
  1129. local Texture4 = Instance.new("Texture")
  1130. local Texture5 = Instance.new("Texture")
  1131. Texture0.Parent = mas
  1132. Texture0.Texture = "http://www.roblox.com/asset/?id=87160999"
  1133. Texture0.StudsPerTileU = 4
  1134. Texture0.StudsPerTileV = 4
  1135. Texture1.Parent = mas
  1136. Texture1.Texture = "http://www.roblox.com/asset/?id=87160999"
  1137. Texture1.Face = Enum.NormalId.Left
  1138. Texture1.StudsPerTileU = 4
  1139. Texture1.StudsPerTileV = 4
  1140. Texture2.Parent = mas
  1141. Texture2.Texture = "http://www.roblox.com/asset/?id=87160999"
  1142. Texture2.Face = Enum.NormalId.Top
  1143. Texture2.StudsPerTileU = 4
  1144. Texture2.StudsPerTileV = 4
  1145. Texture3.Parent = mas
  1146. Texture3.Texture = "http://www.roblox.com/asset/?id=87160999"
  1147. Texture3.Face = Enum.NormalId.Bottom
  1148. Texture3.StudsPerTileU = 4
  1149. Texture3.StudsPerTileV = 4
  1150. Texture4.Parent = mas
  1151. Texture4.Texture = "http://www.roblox.com/asset/?id=87160999"
  1152. Texture4.Face = Enum.NormalId.Right
  1153. Texture4.StudsPerTileU = 4
  1154. Texture4.StudsPerTileV = 4
  1155. Texture5.Parent = mas
  1156. Texture5.Texture = "http://www.roblox.com/asset/?id=87160999"
  1157. Texture5.Face = Enum.NormalId.Back
  1158. Texture5.StudsPerTileU = 4
  1159. Texture5.StudsPerTileV = 4
  1160. for i,v in pairs(mas:GetChildren()) do
  1161. v.Parent = noteblock
  1162. pcall(function() v:MakeJoints() end)
  1163. end
  1164. mas:Destroy()
  1165. for i,v in pairs(cors) do
  1166. spawn(function()
  1167. pcall(v)
  1168. end)
  1169. end
  1170. end
  1171. noteblock.ChildRemoved:Connect(function(a)
  1172. if a:IsA("Texture") then
  1173. returntex()
  1174. end
  1175. end)
  1176. while true do
  1177. Swait()
  1178. bp.Position = Character:FindFirstChild("Torso").CFrame * CFrame.new(0, 9, 0).p
  1179. loud = GetClientProperty(kan,"PlaybackLoudness")/200
  1180. if sick.Parent == RootPart then
  1181. timepos = sick.TimePosition
  1182. sick.SoundId = "rbxassetid://"..SONGID
  1183. sick.Volume = VOLUME
  1184. sick.PlaybackSpeed = PITCH
  1185. sick:Resume()
  1186. sick.Looped =true
  1187. else
  1188. sick = Instance.new("Sound",RootPart)
  1189. kan = sick
  1190. sick.TimePosition = timepos
  1191. sick:Play()
  1192. end
  1193. mesh.Scale = Vec3(0.5+loud,0.5+loud,0.5+loud)
  1194. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement