Advertisement
zephpsian

cube

Feb 4th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.02 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  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 Mokiros | Translated to FE by iPxter")
  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.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97. print([[
  98. ___________________________________
  99.  
  100. cube switcher
  101.  
  102. ___________________________________
  103. ]])
  104.  
  105. player = owner
  106. char = player.Character
  107. hed = char:WaitForChild("Head")
  108. root = char:WaitForChild("HumanoidRootPart")
  109.  
  110.  
  111. vismode = "rainbow"
  112. firstrun = true
  113. asdid = ""
  114. asdtext = ""
  115. asdtimeposition = 0
  116. asdvolume = 0
  117. asdpitch = 0
  118. asd0 = 0
  119. mode = "local"
  120. asdhi=0
  121. asdmi=0
  122. asdlo=0
  123. asddist=0
  124. asdopen=false
  125. asdcolor = false
  126. synctarget = nil
  127. foundsound = false
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134. char.Humanoid.MaxHealth = math.huge
  135. char.Humanoid.Health = math.huge
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. local toggleTag = true
  145. local txt = Instance.new("BillboardGui", hed)
  146. txt.Adornee = nil
  147. txt.Name = "NameDetect"
  148. txt.Size = UDim2.new(4, 0, 1.2, 0)
  149. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  150. local text = Instance.new("TextLabel", txt)
  151.  
  152. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  153. text.FontSize = "Size8"
  154. text.TextScaled = true
  155. text.TextTransparency = 0
  156. text.BackgroundTransparency = 1
  157. text.TextTransparency = 0
  158. text.TextStrokeTransparency = 0
  159. text.Font = "Fantasy"
  160. text.Text = "Beatuiful"
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169. mathrandom={x=0;y=0;z=0;}
  170.  
  171. local rdmx = math.random(0,1)
  172. local rdmy = math.random(0,1)
  173. local rdmz = math.random(0,1)
  174. if rdmx == 0 then mathrandom.x = math.random(40,60) else mathrandom.x = -math.random(40,60) end
  175. if rdmy == 0 then mathrandom.y = math.random(40,60) else mathrandom.y = -math.random(40,60) end
  176. if rdmz == 0 then mathrandom.z = math.random(40,60) else mathrandom.z = -math.random(40,60) end
  177.  
  178. local origcolor = BrickColor.new("Really red")
  179. bc = BrickColor.new
  180. br = BrickColor.random
  181. it = Instance.new
  182. cf = CFrame.new
  183. euler = CFrame.fromEulerAnglesXYZ
  184. angles = CFrame.Angles
  185. matr = math.random
  186. it = Instance.new
  187. vt = Vector3.new
  188. cf = CFrame.new
  189. bc = BrickColor.new
  190.  
  191.  
  192. local leftkey = false
  193. local rightkey = false
  194. local typerot = 5
  195. local rotspeed = 5
  196. local negrotspeed = -5
  197. function swait(num)
  198. if num==0 or num==nil then
  199. game:service'RunService'.Stepped:wait(0)
  200. else
  201. for i=0,num do
  202. game:service'RunService'.Stepped:wait(0)
  203. end
  204. end
  205. end
  206.  
  207. local Create = LoadLibrary("RbxUtility").Create
  208.  
  209. CFuncs = {
  210. ["Part"] = {
  211. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  212. local Part = Create("Part"){
  213. Parent = Parent,
  214. Reflectance = Reflectance,
  215. Transparency = Transparency,
  216. CanCollide = false,
  217. Locked = true,
  218. BrickColor = BrickColor.new(tostring(BColor)),
  219. Name = Name,
  220. Size = Size,
  221. Material = Material,
  222. }
  223. RemoveOutlines(Part)
  224. return Part
  225. end;
  226. };
  227.  
  228. ["Mesh"] = {
  229. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  230. local Msh = Create(Mesh){
  231. Parent = Part,
  232. Offset = OffSet,
  233. Scale = Scale,
  234. }
  235. if Mesh == "SpecialMesh" then
  236. Msh.MeshType = MeshType
  237. Msh.MeshId = MeshId
  238. end
  239. return Msh
  240. end;
  241. };
  242.  
  243. ["Mesh"] = {
  244. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  245. local Msh = Create(Mesh){
  246. Parent = Part,
  247. Offset = OffSet,
  248. Scale = Scale,
  249. }
  250. if Mesh == "SpecialMesh" then
  251. Msh.MeshType = MeshType
  252. Msh.MeshId = MeshId
  253. end
  254. return Msh
  255. end;
  256. };
  257.  
  258. ["Weld"] = {
  259. Create = function(Parent, Part0, Part1, C0, C1)
  260. local Weld = Create("Weld"){
  261. Parent = Parent,
  262. Part0 = Part0,
  263. Part1 = Part1,
  264. C0 = C0,
  265. C1 = C1,
  266. }
  267. return Weld
  268. end;
  269. };
  270.  
  271. ["Sound"] = {
  272. Create = function(id, par, vol, pit)
  273. coroutine.resume(coroutine.create(function()
  274. local S = Create("Sound"){
  275. Volume = vol,
  276. Pitch = pit or 1,
  277. SoundId = id,
  278. Parent = par or workspace,
  279. }
  280. wait()
  281. S:play()
  282. game:GetService("Debris"):AddItem(S, 10)
  283. end))
  284. end;
  285. };
  286.  
  287. ["ParticleEmitter"] = {
  288. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  289. local fp = Create("ParticleEmitter"){
  290. Parent = Parent,
  291. Color = ColorSequence.new(Color1, Color2),
  292. LightEmission = LightEmission,
  293. Size = Size,
  294. Texture = Texture,
  295. Transparency = Transparency,
  296. ZOffset = ZOffset,
  297. Acceleration = Accel,
  298. Drag = Drag,
  299. LockedToPart = LockedToPart,
  300. VelocityInheritance = VelocityInheritance,
  301. EmissionDirection = EmissionDirection,
  302. Enabled = Enabled,
  303. Lifetime = LifeTime,
  304. Rate = Rate,
  305. Rotation = Rotation,
  306. RotSpeed = RotSpeed,
  307. Speed = Speed,
  308. VelocitySpread = VelocitySpread,
  309. }
  310. return fp
  311. end;
  312. };
  313.  
  314. CreateTemplate = {
  315.  
  316. };
  317. }
  318.  
  319.  
  320.  
  321. New = function(Object, Parent, Name, Data)
  322. local Object = Instance.new(Object)
  323. for Index, Value in pairs(Data or {}) do
  324. Object[Index] = Value
  325. end
  326. Object.Parent = Parent
  327. Object.Name = Name
  328. return Object
  329. end
  330.  
  331. function CreateSound(asd)
  332. if synctarget == nil then
  333. if mode == "local" then
  334. soundparent=char:WaitForChild("Torso")
  335. else
  336. soundparent=char
  337. end
  338. sound = Instance.new("Sound",soundparent)
  339. sound.Name = "KyuSound"
  340. sound.Looped = true
  341. effect = Instance.new("EqualizerSoundEffect",sound)
  342. coroutine.resume(coroutine.create(function()
  343. distort = Instance.new("DistortionSoundEffect",sound)
  344. end))
  345. if asd ~= nil then
  346. sound.SoundId = asdid
  347. sound.TimePosition = asdtimeposition
  348. end
  349. sound:Play()
  350. end
  351. end
  352.  
  353. function fetchName(id)
  354. cast = false
  355. coroutine.resume(coroutine.create(function() product = game:GetService("MarketplaceService"):GetProductInfo(id, Enum.InfoType.Asset) cast = true end))
  356. if cast == true then
  357. repeat rs:wait()
  358. coroutine.resume(coroutine.create(function() product = game:GetService("MarketplaceService"):GetProductInfo(id, Enum.InfoType.Asset) end))
  359. asdfname = product.Name
  360. until asdfname ~= nil
  361. else
  362. asdfname = ""
  363. end
  364. return asdfname
  365. end
  366.  
  367. function scan(instance)
  368. if instance.ClassName == "Sound" then
  369. if instance.TimeLength > 20 and instance.IsPlaying and foundsound == false then
  370. asdid = instance.SoundId
  371. sound = instance
  372. foundsound = true
  373. print("Sync to sound :)")
  374. end
  375. end
  376. for _,children in pairs(instance:GetChildren()) do scan(children) end
  377. end
  378.  
  379. function drawgui()
  380.  
  381. Prefix = "/"
  382. function findPlayer(name)
  383. for _, players in pairs(game:getService("Players"):GetPlayers()) do
  384. if players.Name:lower():find(name:lower()) then
  385. return players
  386. end
  387. end
  388. end
  389.  
  390. if firstrun == true then
  391. player.Chatted:connect(function(msg)
  392. if msg:lower():sub(1,#Prefix+#'sync ')==Prefix..'sync ' then
  393. local v = msg:sub(#Prefix+#'sync '+1)
  394. foundsound = false
  395. synctarget = findPlayer(v)
  396. end
  397. end)
  398. end
  399.  
  400. naeeym2 = Instance.new("BillboardGui",root)
  401. naeeym2.Size = UDim2.new(10, 0, 4, 0)
  402. naeeym2.StudsOffset = Vector3.new(0, 7, 0)
  403. naeeym2.Adornee = root
  404. naeeym2.Name = "TalkingBillBoard"
  405. tecks2 = Instance.new("TextLabel",naeeym2)
  406. tecks2.BackgroundTransparency = 1
  407. tecks2.BorderSizePixel = 0
  408. if firstrun == true then
  409. tecks2.Text = ""
  410. else
  411. tecks2.Text = fetchName(tonumber(asdid:sub(#'rbxassetid://'+1)))
  412. end
  413. tecks2.Font = "Fantasy"
  414. tecks2.TextSize = 25
  415. tecks2.Size = UDim2.new(1,0,1,0)
  416. tecks2.TextStrokeTransparency = 0
  417. tecks2.TextTransparency = 0
  418.  
  419. parent = player.PlayerGui
  420. ScreenGui0 = Instance.new("ScreenGui")
  421. TextButton1 = Instance.new("TextButton")
  422. Frame2 = Instance.new("Frame")
  423. TextBox3 = Instance.new("TextBox")
  424. TextButton4 = Instance.new("TextButton")
  425. Frame5 = Instance.new("Frame")
  426. Frame6 = Instance.new("Frame")
  427. Frame7 = Instance.new("Frame")
  428. TextLabel8 = Instance.new("TextLabel")
  429. TextButton9 = Instance.new("TextButton")
  430. Frame10 = Instance.new("Frame")
  431. Frame11 = Instance.new("Frame")
  432. TextLabel12 = Instance.new("TextLabel")
  433. TextButton13 = Instance.new("TextButton")
  434. TextButton14 = Instance.new("TextButton")
  435. Frame15 = Instance.new("Frame")
  436. Frame16 = Instance.new("Frame")
  437. Frame17 = Instance.new("Frame")
  438. TextButton18 = Instance.new("TextButton")
  439. TextLabel19 = Instance.new("TextLabel")
  440. Frame20 = Instance.new("Frame")
  441. Frame21 = Instance.new("Frame")
  442. TextButton22 = Instance.new("TextButton")
  443. TextLabel23 = Instance.new("TextLabel")
  444. Frame24 = Instance.new("Frame")
  445. Frame25 = Instance.new("Frame")
  446. TextButton26 = Instance.new("TextButton")
  447. TextLabel27 = Instance.new("TextLabel")
  448. Frame28 = Instance.new("Frame")
  449. Frame29 = Instance.new("Frame")
  450. TextButton30 = Instance.new("TextButton")
  451. TextLabel31 = Instance.new("TextLabel")
  452. Frame32 = Instance.new("Frame")
  453. TextButton33 = Instance.new("TextButton")
  454. TextButton34 = Instance.new("TextButton")
  455. ScreenGui0.Name = "MusicPlayerKyu"
  456. ScreenGui0.Parent = parent
  457. TextButton1.AnchorPoint = Vector2.new(0, 0.5)
  458. TextButton1.Name = "Open/Close"
  459. TextButton1.Parent = ScreenGui0
  460. TextButton1.Size = UDim2.new(0, 20, 0, 300)
  461. TextButton1.Text = ">>"
  462. TextButton1.Position = UDim2.new(0, 0, 0.5, 0)
  463. TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
  464. TextButton1.SizeConstraint = Enum.SizeConstraint.RelativeXX
  465. TextButton1.Font = Enum.Font.Code
  466. Frame2.AnchorPoint = Vector2.new(0, 0.5)
  467. Frame2.Name = "Core"
  468. Frame2.Parent = ScreenGui0
  469. Frame2.Size = UDim2.new(0, 500, 0, 300)
  470. Frame2.Position = UDim2.new(0, 20, 0.5, 0)
  471. Frame2.BackgroundColor3 = Color3.new(0.615686, 0.615686, 0.615686)
  472. Frame2.SizeConstraint = Enum.SizeConstraint.RelativeXX
  473. TextBox3.Name = "ID"
  474. TextBox3.Parent = Frame2
  475. TextBox3.Size = UDim2.new(0, 100, 0, 100)
  476. if firstrun == true then
  477. TextBox3.Text = "ID"
  478. else
  479. TextBox3.Text = asdtext
  480. end
  481. TextBox3.Position = UDim2.new(0, 50, 0, 20)
  482. TextBox3.BackgroundColor3 = Color3.new(1, 1, 1)
  483. TextBox3.SizeConstraint = Enum.SizeConstraint.RelativeXX
  484. TextBox3.Font = Enum.Font.SciFi
  485. TextBox3.FontSize = Enum.FontSize.Size14
  486. TextButton4.Name = "Play"
  487. TextButton4.Parent = TextBox3
  488. TextButton4.Size = UDim2.new(1, 0, 0, 20)
  489. TextButton4.Text = "PLAY"
  490. TextButton4.Position = UDim2.new(0.5, 0, 1, 0)
  491. TextButton4.BackgroundColor3 = Color3.new(1, 1, 1)
  492. TextButton4.Font = Enum.Font.SciFi
  493. TextButton4.FontSize = Enum.FontSize.Size14
  494. TextButton4.AnchorPoint = Vector2.new(0.5, 0)
  495. Frame5.Name = "SettingsPanel"
  496. Frame5.Parent = Frame2
  497. Frame5.Size = UDim2.new(0, 300, 0, 150)
  498. Frame5.Position = UDim2.new(1, -20, 0, 20)
  499. Frame5.BackgroundColor3 = Color3.new(0.345098, 0.345098, 0.345098)
  500. Frame5.AnchorPoint = Vector2.new(1, 0)
  501. Frame6.Name = "Volume"
  502. Frame6.Parent = Frame5
  503. Frame6.Transparency = 0
  504. Frame6.Size = UDim2.new(0, 100, 0, 100)
  505. Frame6.Position = UDim2.new(0, 100, 0.5, 0)
  506. Frame6.BackgroundColor3 = Color3.new(1, 1, 1)
  507. Frame6.BackgroundTransparency = 1
  508. Frame6.AnchorPoint = Vector2.new(0.5, 0.5)
  509. Frame7.Name = "Line"
  510. Frame7.Parent = Frame6
  511. Frame7.Size = UDim2.new(0, 1, 1, 0)
  512. Frame7.Position = UDim2.new(0.5, 0, 0, 0)
  513. Frame7.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  514. Frame7.BorderSizePixel = 0
  515. Frame7.AnchorPoint = Vector2.new(0.5, 0)
  516. TextLabel8.Name = "Text"
  517. TextLabel8.Parent = Frame6
  518. TextLabel8.Transparency = 0
  519. TextLabel8.Text = "Volume"
  520. TextLabel8.Position = UDim2.new(0.5, 0, 1, 10)
  521. TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
  522. TextLabel8.BackgroundTransparency = 1
  523. TextLabel8.Font = Enum.Font.SourceSans
  524. TextLabel8.FontSize = Enum.FontSize.Size10
  525. TextLabel8.AnchorPoint = Vector2.new(0.5, 0)
  526. TextButton9.Name = "DragVol"
  527. TextButton9.Parent = Frame6
  528. TextButton9.Size = UDim2.new(0, 20, 0, 10)
  529. TextButton9.Text = ""
  530. if firstrun == true then
  531. TextButton9.Position = UDim2.new(0.5, 0, 0.5, 0)
  532. else
  533. TextButton9.Position = asdvolume
  534. end
  535. TextButton9.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  536. TextButton9.Font = Enum.Font.SourceSans
  537. TextButton9.AnchorPoint = Vector2.new(0.5, 0.5)
  538. Frame10.Name = "Pitch"
  539. Frame10.Parent = Frame5
  540. Frame10.Transparency = 0
  541. Frame10.Size = UDim2.new(0, 100, 0, 100)
  542. Frame10.Position = UDim2.new(0, 50, 0.5, 0)
  543. Frame10.BackgroundColor3 = Color3.new(1, 1, 1)
  544. Frame10.BackgroundTransparency = 1
  545. Frame10.AnchorPoint = Vector2.new(0.5, 0.5)
  546. Frame11.Name = "Line"
  547. Frame11.Parent = Frame10
  548. Frame11.Size = UDim2.new(0, 1, 1, 0)
  549. Frame11.Position = UDim2.new(0.5, 0, 0, 0)
  550. Frame11.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  551. Frame11.BorderSizePixel = 0
  552. Frame11.AnchorPoint = Vector2.new(0.5, 0)
  553. TextLabel12.Name = "Text"
  554. TextLabel12.Parent = Frame10
  555. TextLabel12.Transparency = 0
  556. TextLabel12.Text = "Pitch"
  557. TextLabel12.Position = UDim2.new(0.5, 0, 1, 10)
  558. TextLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
  559. TextLabel12.BackgroundTransparency = 1
  560. TextLabel12.Font = Enum.Font.SourceSans
  561. TextLabel12.FontSize = Enum.FontSize.Size10
  562. TextLabel12.AnchorPoint = Vector2.new(0.5, 0)
  563. TextButton13.Name = "DragPitch"
  564. TextButton13.Parent = Frame10
  565. TextButton13.Size = UDim2.new(0, 20, 0, 10)
  566. TextButton13.Text = ""
  567. if firstrun == true then
  568. TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0)
  569. else
  570. TextButton13.Position = asdpitch
  571. end
  572. TextButton13.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  573. TextButton13.Font = Enum.Font.SourceSans
  574. TextButton13.AnchorPoint = Vector2.new(0.5, 0.5)
  575. TextButton14.Name = "Reset"
  576. TextButton14.Parent = Frame10
  577. TextButton14.Size = UDim2.new(0, 20, 0, 20)
  578. TextButton14.Text = ""
  579. TextButton14.Position = UDim2.new(0.5, -15, 0.5, 0)
  580. TextButton14.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  581. TextButton14.Font = Enum.Font.SourceSans
  582. TextButton14.FontSize = Enum.FontSize.Size14
  583. TextButton14.AnchorPoint = Vector2.new(1, 0.5)
  584. Frame15.Name = "Others"
  585. Frame15.Parent = Frame5
  586. Frame15.Transparency = 0
  587. Frame15.Size = UDim2.new(0, 100, 0, 100)
  588. Frame15.Position = UDim2.new(0, 210, 0.5, 0)
  589. Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
  590. Frame15.BackgroundTransparency = 1
  591. Frame15.AnchorPoint = Vector2.new(0.5, 0.5)
  592. Frame16.Name = "Low"
  593. Frame16.Parent = Frame15
  594. Frame16.Transparency = 0
  595. Frame16.Size = UDim2.new(0, 0, 1, 0)
  596. Frame16.BackgroundColor3 = Color3.new(1, 1, 1)
  597. Frame16.BackgroundTransparency = 1
  598. Frame17.Name = "Line"
  599. Frame17.Parent = Frame16
  600. Frame17.Size = UDim2.new(0, 1, 1, 0)
  601. Frame17.Position = UDim2.new(0.5, 0, 0, 0)
  602. Frame17.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  603. Frame17.BorderSizePixel = 0
  604. Frame17.AnchorPoint = Vector2.new(0.5, 0)
  605. TextButton18.Name = "DragLow"
  606. TextButton18.Parent = Frame16
  607. TextButton18.Size = UDim2.new(0, 20, 0, 10)
  608. TextButton18.Text = ""
  609. if firstrun == true then
  610. TextButton18.Position = UDim2.new(0.5, 0, 0.5, -25)
  611. else
  612. TextButton18.Position = asdlo
  613. end
  614. TextButton18.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  615. TextButton18.Font = Enum.Font.SourceSans
  616. TextButton18.AnchorPoint = Vector2.new(0.5, 0.5)
  617. TextLabel19.Name = "Text"
  618. TextLabel19.Parent = Frame16
  619. TextLabel19.Transparency = 0
  620. TextLabel19.Text = "Low"
  621. TextLabel19.Position = UDim2.new(0.5, 0, 1, 10)
  622. TextLabel19.BackgroundColor3 = Color3.new(1, 1, 1)
  623. TextLabel19.BackgroundTransparency = 1
  624. TextLabel19.Font = Enum.Font.SourceSans
  625. TextLabel19.FontSize = Enum.FontSize.Size10
  626. TextLabel19.AnchorPoint = Vector2.new(0.5, 0)
  627. Frame20.Name = "Medium"
  628. Frame20.Parent = Frame15
  629. Frame20.Transparency = 0
  630. Frame20.Size = UDim2.new(0, 0, 1, 0)
  631. Frame20.Position = UDim2.new(0, 40, 0, 0)
  632. Frame20.BackgroundColor3 = Color3.new(1, 1, 1)
  633. Frame20.BackgroundTransparency = 1
  634. Frame21.Name = "Line"
  635. Frame21.Parent = Frame20
  636. Frame21.Size = UDim2.new(0, 1, 1, 0)
  637. Frame21.Position = UDim2.new(0.5, 0, 0, 0)
  638. Frame21.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  639. Frame21.BorderSizePixel = 0
  640. Frame21.AnchorPoint = Vector2.new(0.5, 0)
  641. TextButton22.Name = "DragMed"
  642. TextButton22.Parent = Frame20
  643. TextButton22.Size = UDim2.new(0, 20, 0, 10)
  644. TextButton22.Text = ""
  645. if firstrun == true then
  646. TextButton22.Position = UDim2.new(0.5, 0, 0.5, -25)
  647. else
  648. TextButton22.Position = asdmi
  649. end
  650. TextButton22.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  651. TextButton22.Font = Enum.Font.SourceSans
  652. TextButton22.AnchorPoint = Vector2.new(0.5, 0.5)
  653. TextLabel23.Name = "Text"
  654. TextLabel23.Parent = Frame20
  655. TextLabel23.Transparency = 0
  656. TextLabel23.Text = "Medium"
  657. TextLabel23.Position = UDim2.new(0.5, 0, 1, 10)
  658. TextLabel23.BackgroundColor3 = Color3.new(1, 1, 1)
  659. TextLabel23.BackgroundTransparency = 1
  660. TextLabel23.Font = Enum.Font.SourceSans
  661. TextLabel23.FontSize = Enum.FontSize.Size10
  662. TextLabel23.AnchorPoint = Vector2.new(0.5, 0)
  663. Frame24.Name = "High"
  664. Frame24.Parent = Frame15
  665. Frame24.Transparency = 0
  666. Frame24.Size = UDim2.new(0, 0, 1, 0)
  667. Frame24.Position = UDim2.new(0, 80, 0, 0)
  668. Frame24.BackgroundColor3 = Color3.new(1, 1, 1)
  669. Frame24.BackgroundTransparency = 1
  670. Frame25.Name = "Line"
  671. Frame25.Parent = Frame24
  672. Frame25.Size = UDim2.new(0, 1, 1, 0)
  673. Frame25.Position = UDim2.new(0.5, 0, 0, 0)
  674. Frame25.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  675. Frame25.BorderSizePixel = 0
  676. Frame25.AnchorPoint = Vector2.new(0.5, 0)
  677. TextButton26.Name = "DragHigh"
  678. TextButton26.Parent = Frame24
  679. TextButton26.Size = UDim2.new(0, 20, 0, 10)
  680. TextButton26.Text = ""
  681. if firstrun == true then
  682. TextButton26.Position = UDim2.new(0.5, 0, 0.5, -25)
  683. else
  684. TextButton26.Position = asdhi
  685. end
  686. TextButton26.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  687. TextButton26.Font = Enum.Font.SourceSans
  688. TextButton26.AnchorPoint = Vector2.new(0.5, 0.5)
  689. TextLabel27.Name = "Text"
  690. TextLabel27.Parent = Frame24
  691. TextLabel27.Transparency = 0
  692. TextLabel27.Text = "High"
  693. TextLabel27.Position = UDim2.new(0.5, 0, 1, 10)
  694. TextLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
  695. TextLabel27.BackgroundTransparency = 1
  696. TextLabel27.Font = Enum.Font.SourceSans
  697. TextLabel27.FontSize = Enum.FontSize.Size10
  698. TextLabel27.AnchorPoint = Vector2.new(0.5, 0)
  699. Frame28.Name = "Distortion"
  700. Frame28.Parent = Frame15
  701. Frame28.Transparency = 0
  702. Frame28.Size = UDim2.new(0, 0, 1, 0)
  703. Frame28.Position = UDim2.new(0, 120, 0, 0)
  704. Frame28.BackgroundColor3 = Color3.new(1, 1, 1)
  705. Frame28.BackgroundTransparency = 1
  706. Frame29.Name = "Line"
  707. Frame29.Parent = Frame28
  708. Frame29.Size = UDim2.new(0, 1, 1, 0)
  709. Frame29.Position = UDim2.new(0.5, 0, 0, 0)
  710. Frame29.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  711. Frame29.BorderSizePixel = 0
  712. Frame29.AnchorPoint = Vector2.new(0.5, 0)
  713. TextButton30.Name = "DragDist"
  714. TextButton30.Parent = Frame28
  715. TextButton30.Size = UDim2.new(0, 20, 0, 10)
  716. TextButton30.Text = ""
  717. if firstrun == true then
  718. TextButton30.Position = UDim2.new(0.5, 0, 0.5, 50)
  719. else
  720. TextButton30.Position = asddist
  721. end
  722. TextButton30.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  723. TextButton30.Font = Enum.Font.SourceSans
  724. TextButton30.AnchorPoint = Vector2.new(0.5, 0.5)
  725. TextLabel31.Name = "Text"
  726. TextLabel31.Parent = Frame28
  727. TextLabel31.Transparency = 0
  728. TextLabel31.Text = "Dist"
  729. TextLabel31.Position = UDim2.new(0.5, 0, 1, 10)
  730. TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
  731. TextLabel31.BackgroundTransparency = 1
  732. TextLabel31.Font = Enum.Font.SourceSans
  733. TextLabel31.FontSize = Enum.FontSize.Size10
  734. TextLabel31.AnchorPoint = Vector2.new(0.5, 0)
  735. Frame32.Name = "Line"
  736. Frame32.Parent = Frame5
  737. Frame32.Size = UDim2.new(0, 1, 1, -20)
  738. Frame32.Position = UDim2.new(0.5, -20, 0.5, 0)
  739. Frame32.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  740. Frame32.BorderSizePixel = 0
  741. Frame32.AnchorPoint = Vector2.new(0.5, 0.5)
  742. TextButton33.Name = "Global/Local"
  743. TextButton33.Parent = Frame2
  744. TextButton33.Size = UDim2.new(0, 100, 0, 100)
  745. if mode == "local" then
  746. TextButton33.Text = "LOCAL"
  747. else
  748. TextButton33.Text = "GLOBAL"
  749. end
  750. TextButton33.Position = UDim2.new(0, 50, 0, 180)
  751. TextButton33.BackgroundColor3 = Color3.new(1, 1, 1)
  752. TextButton33.Font = Enum.Font.SciFi
  753. TextButton33.FontSize = Enum.FontSize.Size14
  754. TextButton34.Name = "Style"
  755. TextButton34.Parent = Frame2
  756. TextButton34.Size = UDim2.new(0.5, 50, 0, 100)
  757. TextButton34.Text = "Style: "..vismode
  758. TextButton34.Position = UDim2.new(0.5, 80, 0, 180)
  759. TextButton34.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
  760. TextButton34.Font = Enum.Font.SciFi
  761. TextButton34.FontSize = Enum.FontSize.Size14
  762. TextButton34.TextColor3 = Color3.new(1, 1, 0)
  763. TextButton34.AnchorPoint = Vector2.new(0.5, 0)
  764. Frame2.Visible = asdopen
  765.  
  766. draggable = {TextButton9;TextButton13;TextButton18;TextButton22;TextButton26;TextButton30}
  767. held = false
  768. trigger = nil
  769. base = UDim2.new(0,0,0,0)
  770.  
  771. TextButton1.MouseButton1Click:connect(function()
  772. if Frame2.Visible == true then
  773. Frame2.Visible = false
  774. asdopen = false
  775. TextButton1.Text = ">>"
  776. else
  777. Frame2.Visible = true
  778. asdopen = true
  779. TextButton1.Text = "<<"
  780. end
  781. end)
  782.  
  783. TextButton4.MouseButton1Click:connect(function()
  784. if mode == "local" then
  785. if not char:WaitForChild("Torso"):FindFirstChild("KyuSound") then CreateSound() end
  786. else
  787. if not char:FindFirstChild("KyuSound") then CreateSound() end
  788. end
  789. synctarget = nil
  790. sound:Stop()
  791. soundname = fetchName(TextBox3.Text)
  792. tecks2.Text = soundname
  793. asdid = "rbxassetid://"..TextBox3.Text
  794. sound:Play()
  795. end)
  796.  
  797. TextButton14.MouseButton1Click:connect(function()
  798. TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0)
  799. end)
  800.  
  801. TextButton33.MouseButton1Click:connect(function()
  802. if synctarget == nil then
  803. if mode == "local" then
  804. mode = "global"
  805. TextButton33.Text = "GLOBAL"
  806. if char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  807. sound:Pause()
  808. sound.Parent = char
  809. sound:Resume()
  810. end
  811. else
  812. mode = "local"
  813. TextButton33.Text = "LOCAL"
  814. if char:FindFirstChild("KyuSound") then
  815. sound:Pause()
  816. sound.Parent = char:WaitForChild("Torso")
  817. sound:Resume()
  818. end
  819. end
  820. end
  821. end)
  822.  
  823. function changemode()
  824. if vismode == "nothing" then
  825. vismode = "rainbow"
  826. local rdmx = math.random(0,1)
  827. local rdmy = math.random(0,1)
  828. local rdmz = math.random(0,1)
  829. if rdmx == 0 then mathrandom.x = math.random(40,60) else mathrandom.x = -math.random(40,60) end
  830. if rdmy == 0 then mathrandom.y = math.random(40,60) else mathrandom.y = -math.random(40,60) end
  831. if rdmz == 0 then mathrandom.z = math.random(40,60) else mathrandom.z = -math.random(40,60) end
  832. elseif vismode == "rainbow" then
  833. vismode = "classic"
  834. bp.Position = char.Head.Position+Vector3.new(0,2,0)
  835. Main.Position = char.Head.Position+Vector3.new(0,2,0)
  836. part:Destroy()
  837. elseif vismode == "classic" then
  838. vismode = "trail"
  839. local rdmx = math.random(0,1)
  840. local rdmy = math.random(0,1)
  841. local rdmz = math.random(0,1)
  842. if rdmx == 0 then mathrandom.x = math.random(40,60) else mathrandom.x = -math.random(40,60) end
  843. if rdmy == 0 then mathrandom.y = math.random(40,60) else mathrandom.y = -math.random(40,60) end
  844. if rdmz == 0 then mathrandom.z = math.random(40,60) else mathrandom.z = -math.random(40,60) end
  845. elseif vismode == "trail" then
  846. part:Destroy()
  847. vismode = "nooby"
  848. elseif vismode == "nooby" then
  849. vismode = "trail kyu"
  850. centralpart:Destroy()
  851. local rdmx = math.random(0,1)
  852. local rdmy = math.random(0,1)
  853. local rdmz = math.random(0,1)
  854. if rdmx == 0 then mathrandom.x = math.random(40,60) else mathrandom.x = -math.random(40,60) end
  855. if rdmy == 0 then mathrandom.y = math.random(40,60) else mathrandom.y = -math.random(40,60) end
  856. if rdmz == 0 then mathrandom.z = math.random(40,60) else mathrandom.z = -math.random(40,60) end
  857. elseif vismode == "trail kyu" then
  858. part:Destroy()
  859. vismode = "nothing"
  860. end
  861. end
  862.  
  863. TextButton34.MouseButton1Click:connect(function()
  864. changemode()
  865. end)
  866.  
  867. for i,v in pairs(draggable) do
  868. v.MouseButton1Down:connect(function()
  869. trigger = v
  870. base = UDim2.new(0.5,0,0.5,mouse.y) - trigger.Position
  871. held = true
  872. end)
  873. v.MouseButton1Up:connect(function()
  874. base = UDim2.new(0.5,0,0.5,0)
  875. trigger = nil
  876. held = false
  877. end)
  878. end
  879.  
  880. mouse.Button1Up:connect(function()
  881. base = UDim2.new(0.5,0,0.5,0)
  882. trigger = nil
  883. held = false
  884. end)
  885.  
  886.  
  887.  
  888. Visualiser = Instance.new("Model",char)
  889. Visualiser2 = Instance.new("Model",Visualiser)
  890. Visualiser2.Name = "VisualiserK"
  891. Main = Instance.new("Part",Visualiser)
  892. Main.Name = "VisualiserClassic"
  893. Main.Position = char.Head.Position+Vector3.new(0,2,0)
  894. Main.CanCollide = false
  895. Main.Size = Vector3.new(1,1,1)
  896. Main.Transparency = 1
  897. Visualiserpos = Instance.new("Attachment",Main)
  898. Visualiserpos.Position = Vector3.new(5,0,0)
  899. Visualiserpos2 = Instance.new("Attachment",Main)
  900. Visualiserpos2.Position = Vector3.new(-5,0,0)
  901. bp = Instance.new("BodyPosition",Main)
  902. bp.P = 3500
  903. ba = Instance.new("BodyAngularVelocity",Main)
  904. firstrun = false
  905. end
  906.  
  907. local i = 0
  908.  
  909.  
  910.  
  911. while wait() do
  912.  
  913. script.Parent = nil
  914. char = player.Character
  915. root = char:WaitForChild("HumanoidRootPart")
  916.  
  917. text.TextStrokeColor3 = Color3.fromHSV(i,1,1)
  918. text.TextColor3 = Color3.fromHSV(i,1,1)
  919.  
  920. end
  921.  
  922. if not (foundsound == true or char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound")) then
  923. CreateSound("BACKUP")
  924. end
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933. if vismode == "classic" then
  934. block = Instance.new("Part",Visualiser:FindFirstChild("VisualiserK"))
  935. blockm = Instance.new("BlockMesh",block)
  936. if foundsound == true or char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  937. change = sound.PlaybackLoudness/80
  938. blockm.Scale = Vector3.new(1+change,1+change,1+change)
  939. end
  940. block.Anchored = true
  941. block.CanCollide = false
  942. block.Material = Enum.Material.Neon
  943. block.Size = Vector3.new(1,1,1)
  944. light = Instance.new("PointLight",block)
  945. light.Color = Color3.fromHSV(0,0,1)
  946. light.Brightness = 2+sound.PlaybackLoudness/25
  947. light.Range = 5+sound.PlaybackLoudness/10
  948. block.CFrame = CFrame.new(Visualiserpos.WorldPosition,Vector3.new(math.random(0,3600)/10,math.random(0,3600)/10,math.random(0,3600)/10))
  949. --------------
  950. block = Instance.new("Part",Visualiser:FindFirstChild("VisualiserK"))
  951. blockm = Instance.new("BlockMesh",block)
  952. if foundsound == true or char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  953. change = sound.PlaybackLoudness/80
  954. blockm.Scale = Vector3.new(1+change,1+change,1+change)
  955. end
  956. block.Anchored = true
  957. block.CanCollide = false
  958. block.Material = Enum.Material.Neon
  959. block.Size = Vector3.new(1,1,1)
  960. light = Instance.new("PointLight",block)
  961. light.Color = Color3.fromHSV(0,0,1)
  962. light.Brightness = 2+sound.PlaybackLoudness/25
  963. light.Range = 5+sound.PlaybackLoudness/10
  964. block.CFrame = CFrame.new(Visualiserpos2.WorldPosition,Vector3.new(math.random(0,3600)/10,math.random(0,3600)/10,math.random(0,3600)/10))
  965.  
  966. ba.AngularVelocity = Vector3.new(0,0.2+(0/100),0)
  967. bp.Position = char.Head.Position+Vector3.new(0,2,0)
  968. tecks2.TextColor3 = Color3.fromHSV(0,0,0)
  969. tecks2.TextStrokeColor3 = Color3.fromHSV(0,0,1)
  970. elseif vismode == "rainbow" then
  971. if not char:FindFirstChild("VisualiserRGB") then
  972. part=Instance.new("Part",char)
  973. part.Name="VisualiserRGB"
  974. part.Position=root.Position + Vector3.new(0,10,0)
  975. part.CFrame = CFrame.new(part.Position)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360)))
  976. blockmesh=Instance.new("BlockMesh",part)
  977. end
  978. if not part:FindFirstChildOfClass("BodyPosition") then
  979. bp2=Instance.new("BodyPosition",part)
  980. end
  981. if not part:FindFirstChildOfClass("BodyAngularVelocity") then
  982. ba2=Instance.new("BodyAngularVelocity",part)
  983. end
  984. if not part:FindFirstChildOfClass("PointLight") then
  985. light=Instance.new("PointLight",part)
  986. end
  987. part.Color = Color3.fromHSV(i,1,1)
  988. light.Color = Color3.fromHSV(i,1,1)
  989. light.Brightness = 2+sound.PlaybackLoudness/25
  990. light.Range = 5+sound.PlaybackLoudness/10
  991. part:BreakJoints()
  992. part.CanCollide = false
  993. part.Material = Enum.Material.Neon
  994. blockmesh.Scale= Vector3.new(1+(sound.PlaybackLoudness/150),1+(sound.PlaybackLoudness/150),1+(sound.PlaybackLoudness/150))
  995. part.Size = Vector3.new(3,3,3)
  996. bp2.Position = root.Position + Vector3.new(0,10,0)
  997. ba2.AngularVelocity = Vector3.new((mathrandom.x/100)+(sound.PlaybackLoudness/mathrandom.x),(mathrandom.y/100)+(sound.PlaybackLoudness/mathrandom.y),(mathrandom.z/100)+(sound.PlaybackLoudness/mathrandom.z))
  998.  
  999. light.Range = 20
  1000. light.Brightness = 50
  1001.  
  1002.  
  1003.  
  1004.  
  1005. if i >= 1 then
  1006. i = 0
  1007. else
  1008. i = i + 0.005
  1009. end
  1010.  
  1011. elseif vismode == "trail" then
  1012.  
  1013. if not char:FindFirstChild("VisualiserRGB") then
  1014. local function createtrail(part0,part1,parent)
  1015. local trail = Instance.new("Trail",parent)
  1016. trail.Attachment0 = part0
  1017. trail.Attachment1 = part1
  1018. trail.MinLength = 0
  1019. trail.Lifetime = 0.05
  1020. trail.LightEmission = 1
  1021. trail.LightInfluence = 0
  1022. trail.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(0,1,1))
  1023. --trail.Transparency = NumberSequence.new(0,1)
  1024. end
  1025. part=Instance.new("Part",char)
  1026. part.Name="VisualiserRGB"
  1027. part.Position=root.Position + Vector3.new(0,10,0)
  1028. part.CFrame = CFrame.new(part.Position)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360)))
  1029. blockmesh=Instance.new("BlockMesh",part)
  1030. A = Instance.new("Attachment",part)
  1031. B = Instance.new("Attachment",part)
  1032. C = Instance.new("Attachment",part)
  1033. D = Instance.new("Attachment",part)
  1034. E = Instance.new("Attachment",part)
  1035. F = Instance.new("Attachment",part)
  1036. G = Instance.new("Attachment",part)
  1037. H = Instance.new("Attachment",part)
  1038. A.Position = Vector3.new(1,1,1)
  1039. B.Position = Vector3.new(1,-1,1)
  1040. C.Position = Vector3.new(-1,1,1)
  1041. D.Position = Vector3.new(-1,-1,1)
  1042.  
  1043. E.Position = Vector3.new(1,1,-1)
  1044. F.Position = Vector3.new(1,-1,-1)
  1045. G.Position = Vector3.new(-1,1,-1)
  1046. H.Position = Vector3.new(-1,-1,-1)
  1047. createtrail(A,E,part)
  1048. createtrail(B,F,part)
  1049. createtrail(C,G,part)
  1050. createtrail(D,H,part)
  1051. createtrail(A,B,part)
  1052. createtrail(C,D,part)
  1053. createtrail(E,F,part)
  1054. createtrail(G,H,part)
  1055. createtrail(A,C,part)
  1056. createtrail(B,D,part)
  1057. createtrail(E,G,part)
  1058. createtrail(F,H,part)
  1059. end
  1060. if not part:FindFirstChildOfClass("BodyPosition") then
  1061. bp2=Instance.new("BodyPosition",part)
  1062. end
  1063. if not part:FindFirstChildOfClass("BodyAngularVelocity") then
  1064. ba2=Instance.new("BodyAngularVelocity",part)
  1065. end
  1066. if not part:FindFirstChildOfClass("PointLight") then
  1067. light=Instance.new("PointLight",part)
  1068. end
  1069. part.Color = Color3.fromHSV(i,1,1)
  1070. light.Color = Color3.fromHSV(i,1,1)
  1071. light.Brightness = 2+sound.PlaybackLoudness/25
  1072. light.Range = 5+sound.PlaybackLoudness/10
  1073. part:BreakJoints()
  1074. part.CanCollide = false
  1075. part.Material = Enum.Material.Neon
  1076. local asd = 1+(sound.PlaybackLoudness/150)
  1077. blockmesh.Scale= Vector3.new(asd/2,asd/2,asd/2)
  1078. part.Size = Vector3.new(1,1,1)
  1079. bp2.Position = root.Position + Vector3.new(0,10,0)
  1080. ba2.AngularVelocity = Vector3.new((mathrandom.x/100)+(sound.PlaybackLoudness/mathrandom.x),(mathrandom.y/100)+(sound.PlaybackLoudness/mathrandom.y),(mathrandom.z/100)+(sound.PlaybackLoudness/mathrandom.z))
  1081. tecks2.TextColor3 = Color3.fromHSV(i,1,0.8)
  1082. tecks2.TextStrokeColor3 = Color3.fromHSV(i,1,1)
  1083. A.Position = Vector3.new(asd/2,asd/2,asd/2)
  1084. B.Position = Vector3.new(asd/2,-asd/2,asd/2)
  1085. C.Position = Vector3.new(-asd/2,asd/2,asd/2)
  1086. D.Position = Vector3.new(-asd/2,-asd/2,asd/2)
  1087.  
  1088. E.Position = Vector3.new(asd/2,asd/2,-asd/2)
  1089. F.Position = Vector3.new(asd/2,-asd/2,-asd/2)
  1090. G.Position = Vector3.new(-asd/2,asd/2,-asd/2)
  1091. H.Position = Vector3.new(-asd/2,-asd/2,-asd/2)
  1092.  
  1093. if i >= 0.8 then
  1094. asdcolor = true
  1095. elseif i <= 0.5 then
  1096. asdcolor = false
  1097. end
  1098.  
  1099. if asdcolor == true then
  1100. i = i - 0.001
  1101. else
  1102. i = i + 0.001
  1103. end
  1104. local function createtrail(part0,part1,part)
  1105.  
  1106. local trail = Instance.new("Trail",part)
  1107. trail.Attachment0 = part0
  1108. trail.Attachment1 = part1
  1109. trail.MinLength = 90
  1110. trail.Lifetime = 4
  1111. trail.LightEmission = 1
  1112. trail.LightInfluence = 0
  1113. trail.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(0,1,1))
  1114. end
  1115.  
  1116.  
  1117. createtrail()
  1118.  
  1119. part=Instance.new("Part",char)
  1120. part.Name="VisualiserRGB"
  1121. part.Position=root.Position + Vector3.new(0,10,0)
  1122. part.CFrame = CFrame.new(part.Position)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360)))
  1123. blockmesh=Instance.new("BlockMesh",part)
  1124. part2=part:Clone()
  1125. part2.Parent = part
  1126. part2.Transparency = 1
  1127. part2.CFrame = CFrame.new(part2.Position)*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360)))
  1128.  
  1129. A = Instance.new("Attachment",part)
  1130. B = Instance.new("Attachment",part)
  1131. C = Instance.new("Attachment",part)
  1132. D = Instance.new("Attachment",part)
  1133. E = Instance.new("Attachment",part)
  1134. F = Instance.new("Attachment",part)
  1135. G = Instance.new("Attachment",part)
  1136. H = Instance.new("Attachment",part)
  1137. A2 = Instance.new("Attachment",part2)
  1138. B2 = Instance.new("Attachment",part2)
  1139. C2 = Instance.new("Attachment",part2)
  1140. D2 = Instance.new("Attachment",part2)
  1141. E2 = Instance.new("Attachment",part2)
  1142. F2 = Instance.new("Attachment",part2)
  1143. G2 = Instance.new("Attachment",part2)
  1144. H2 = Instance.new("Attachment",part2)
  1145.  
  1146. A.Position = Vector3.new(1,1,1)
  1147. B.Position = Vector3.new(1,-1,1)
  1148. C.Position = Vector3.new(-1,1,1)
  1149. D.Position = Vector3.new(-1,-1,1)
  1150.  
  1151. E.Position = Vector3.new(1,1,-1)
  1152. F.Position = Vector3.new(1,-1,-1)
  1153. G.Position = Vector3.new(-1,1,-1)
  1154. H.Position = Vector3.new(-1,-1,-1)
  1155.  
  1156. createtrail(A,E,part)
  1157. createtrail(B,F,part)
  1158. createtrail(C,G,part)
  1159. createtrail(D,H,part)
  1160. createtrail(A,B,part)
  1161. createtrail(C,D,part)
  1162. createtrail(E,F,part)
  1163. createtrail(G,H,part)
  1164. createtrail(A,C,part)
  1165. createtrail(B,D,part)
  1166. createtrail(E,G,part)
  1167. createtrail(F,H,part)
  1168.  
  1169. A2.Position = Vector3.new(1,1,1)
  1170. B2.Position = Vector3.new(1,-1,1)
  1171. C2.Position = Vector3.new(-1,1,1)
  1172. D2.Position = Vector3.new(-1,-1,1)
  1173.  
  1174. E2.Position = Vector3.new(1,1,-1)
  1175. F2.Position = Vector3.new(1,-1,-1)
  1176. G2.Position = Vector3.new(-1,1,-1)
  1177. H2.Position = Vector3.new(-1,-1,-1)
  1178. createtrail(A2,E2,part)
  1179. createtrail(B2,F2,part)
  1180. createtrail(C2,G2,part)
  1181. createtrail(D2,H2,part)
  1182. createtrail(A2,B2,part)
  1183. createtrail(C2,D2,part)
  1184. createtrail(E2,F2,part)
  1185. createtrail(G2,H2,part)
  1186. createtrail(A2,C2,part)
  1187. createtrail(B2,D2,part)
  1188. createtrail(E2,G2,part)
  1189. createtrail(F2,H2,part)
  1190.  
  1191. end
  1192. if not part:FindFirstChildOfClass("BodyPosition") then
  1193. bp2=Instance.new("BodyPosition",part)
  1194. end
  1195. if not part:FindFirstChildOfClass("BodyAngularVelocity") then
  1196. ba2=Instance.new("BodyAngularVelocity",part)
  1197. end
  1198. if not part:FindFirstChildOfClass("PointLight") then
  1199. light=Instance.new("PointLight",part)
  1200. end
  1201. if not part2:FindFirstChildOfClass("BodyPosition") then
  1202. bp3=Instance.new("BodyPosition",part2)
  1203. end
  1204. if not part2:FindFirstChildOfClass("BodyAngularVelocity") then
  1205. ba3=Instance.new("BodyAngularVelocity",part2)
  1206. end
  1207. part.Color = Color3.fromHSV(i,1,1)
  1208. light.Color = Color3.fromHSV(i,1,1)
  1209. light.Brightness = 2+sound.PlaybackLoudness/25
  1210. light.Range = 5+sound.PlaybackLoudness/10
  1211. part:BreakJoints()
  1212. part.Material = Enum.Material.Neon
  1213. local asd = 1+(sound.PlaybackLoudness/150)
  1214. blockmesh.Scale= Vector3.new(asd/2,asd/2,asd/2)
  1215. part.Size = Vector3.new(1,1,1)
  1216. part2.Size = Vector3.new(1,1,1)
  1217. part.CanCollide = false
  1218. part2.CanCollide = false
  1219. bp2.Position = root.Position + Vector3.new(0,10,0)
  1220. ba2.AngularVelocity = Vector3.new((mathrandom.x/100)+(sound.PlaybackLoudness/mathrandom.x),(mathrandom.y/100)+(sound.PlaybackLoudness/mathrandom.y),(mathrandom.z/100)+(sound.PlaybackLoudness/mathrandom.z))
  1221. bp3.Position = root.Position + Vector3.new(0,10,0)
  1222. ba3.AngularVelocity = Vector3.new(-(mathrandom.x/100)-(sound.PlaybackLoudness/mathrandom.x),-(mathrandom.y/100)-(sound.PlaybackLoudness/mathrandom.y),-(mathrandom.z/100)-(sound.PlaybackLoudness/mathrandom.z))
  1223. tecks2.TextColor3 = Color3.fromHSV(i,1,0.8)
  1224. tecks2.TextStrokeColor3 = Color3.fromHSV(i,1,1)
  1225. A.Position = Vector3.new(asd/2,asd/2,asd/2)
  1226. B.Position = Vector3.new(asd/2,-asd/2,asd/2)
  1227. C.Position = Vector3.new(-asd/2,asd/2,asd/2)
  1228. D.Position = Vector3.new(-asd/2,-asd/2,asd/2)
  1229.  
  1230. E.Position = Vector3.new(asd/2,asd/2,-asd/2)
  1231. F.Position = Vector3.new(asd/2,-asd/2,-asd/2)
  1232. G.Position = Vector3.new(-asd/2,asd/2,-asd/2)
  1233. H.Position = Vector3.new(-asd/2,-asd/2,-asd/2)
  1234.  
  1235. A2.Position = Vector3.new(asd,asd,asd)
  1236. B2.Position = Vector3.new(asd,-asd,asd)
  1237. C2.Position = Vector3.new(-asd,asd,asd)
  1238. D2.Position = Vector3.new(-asd,-asd,asd)
  1239.  
  1240. E2.Position = Vector3.new(asd,asd,-asd)
  1241. F2.Position = Vector3.new(asd,-asd,-asd)
  1242. G2.Position = Vector3.new(-asd,asd,-asd)
  1243. H2.Position = Vector3.new(-asd,-asd,-asd)
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250. if i >= 0.8 then
  1251. asdcolor = true
  1252. elseif i <= 0.5 then
  1253. asdcolor = false
  1254. end
  1255.  
  1256. if asdcolor == true then
  1257. i = i - 0.001
  1258. else
  1259. i = i + 0.001
  1260. end
  1261.  
  1262. elseif vismode == "nothing" then
  1263.  
  1264. tecks2.Text = ""
  1265.  
  1266. elseif vismode == "nooby" then
  1267. if not char:FindFirstChild("noobyvis") then
  1268. centralpart = it("Part",char)
  1269. centralpart.Name = "noobyvis"
  1270. centralpart.CFrame = hed.CFrame + Vector3.new(0,-2.5,0)
  1271. centralpart.Anchored = true
  1272. centralpart.Size = vt(1,1,1)
  1273. centralpart.Transparency = 1
  1274. centralpart.CanCollide = false
  1275. centralpart2a = it("Part",centralpart)
  1276. centralpart2a.CFrame = centralpart.CFrame
  1277. centralpart2a.Anchored = true
  1278. centralpart2a.Transparency = 0
  1279. centralpart2a.BrickColor = origcolor
  1280. centralpart2a.Material = "Neon"
  1281. centralpart2a.Size = vt(1,1,1)
  1282. centralpart2a.CanCollide = false
  1283.  
  1284. meshy = Instance.new("SpecialMesh", centralpart2a)
  1285. meshy.Scale = vt(1.05,1.05,1.05)
  1286. meshy.MeshType = "Sphere"
  1287.  
  1288. centralpart2 = it("Part",centralpart)
  1289. centralpart2.CFrame = centralpart.CFrame
  1290. centralpart2.Anchored = true
  1291. centralpart2.Transparency = 0.65
  1292. centralpart2.BrickColor = BrickColor.new("Really black")
  1293. centralpart2.Material = "Neon"
  1294. centralpart2.Size = vt(1,1,1)
  1295. centralpart2.CanCollide = false
  1296.  
  1297. meshy2 = Instance.new("SpecialMesh", centralpart2)
  1298. meshy2.Scale = vt(1.075,1.075,1.075)
  1299. meshy2.MeshType = "Sphere"
  1300.  
  1301.  
  1302. centralpart3 = it("Part",centralpart)
  1303. centralpart3.CFrame = centralpart.CFrame
  1304. centralpart3.Anchored = true
  1305. centralpart3.Transparency = 0.5
  1306. centralpart3.BrickColor = origcolor
  1307. centralpart3.Material = "Neon"
  1308. centralpart3.Size = vt(0.5,1,0.5)
  1309. centralpart3.CanCollide = false
  1310.  
  1311. meshy3 = Instance.new("SpecialMesh", centralpart3)
  1312. meshy3.Scale = vt(1,0.035,1.075)
  1313. meshy3.MeshType = "Brick"
  1314.  
  1315. centralpart4 = it("Part",centralpart)
  1316. centralpart4.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(15),0)
  1317. centralpart4.Anchored = true
  1318. centralpart4.Transparency = 0.5
  1319. centralpart4.BrickColor = origcolor
  1320. centralpart4.Material = "Neon"
  1321. centralpart4.Size = vt(0.5,1,0.5)
  1322. centralpart4.CanCollide = false
  1323.  
  1324. meshy4 = Instance.new("SpecialMesh", centralpart4)
  1325. meshy4.Scale = vt(1,0.035,1.075)
  1326. meshy4.MeshType = "Brick"
  1327.  
  1328. centralpart5 = it("Part",centralpart)
  1329. centralpart5.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(30),0)
  1330. centralpart5.Anchored = true
  1331. centralpart5.Transparency = 0.5
  1332. centralpart5.BrickColor = origcolor
  1333. centralpart5.Material = "Neon"
  1334. centralpart5.Size = vt(0.5,1,0.5)
  1335. centralpart5.CanCollide = false
  1336.  
  1337. meshy5 = Instance.new("SpecialMesh", centralpart5)
  1338. meshy5.Scale = vt(1,0.035,1.075)
  1339. meshy5.MeshType = "Brick"
  1340.  
  1341. centralpart6 = it("Part",centralpart)
  1342. centralpart6.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(45),0)
  1343. centralpart6.Anchored = true
  1344. centralpart6.Transparency = 0.5
  1345. centralpart6.BrickColor = origcolor
  1346. centralpart6.Material = "Neon"
  1347. centralpart6.Size = vt(0.5,1,0.5)
  1348. centralpart6.CanCollide = false
  1349.  
  1350. meshy6 = Instance.new("SpecialMesh", centralpart6)
  1351. meshy6.Scale = vt(1,0.035,1.075)
  1352. meshy6.MeshType = "Brick"
  1353.  
  1354. centralpart7 = it("Part",centralpart)
  1355. centralpart7.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(60),0)
  1356. centralpart7.Anchored = true
  1357. centralpart7.Transparency = 0.5
  1358. centralpart7.BrickColor = origcolor
  1359. centralpart7.Material = "Neon"
  1360. centralpart7.Size = vt(0.5,1,0.5)
  1361. centralpart7.CanCollide = false
  1362.  
  1363. meshy7 = Instance.new("SpecialMesh", centralpart7)
  1364. meshy7.Scale = vt(1,0.035,1.075)
  1365. meshy7.MeshType = "Brick"
  1366.  
  1367. centralpart8 = it("Part",centralpart)
  1368. centralpart8.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(75),0)
  1369. centralpart8.Anchored = true
  1370. centralpart8.Transparency = 0.5
  1371. centralpart8.BrickColor = origcolor
  1372. centralpart8.Material = "Neon"
  1373. centralpart8.Size = vt(0.5,1,0.5)
  1374. centralpart8.CanCollide = false
  1375.  
  1376. meshy8 = Instance.new("SpecialMesh", centralpart8)
  1377. meshy8.Scale = vt(1,0.035,1.075)
  1378. meshy8.MeshType = "Brick"
  1379.  
  1380. centralpart9 = it("Part",centralpart)
  1381. centralpart9.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(90),0)
  1382. centralpart9.Anchored = true
  1383. centralpart9.Transparency = 0.5
  1384. centralpart9.BrickColor = origcolor
  1385. centralpart9.Material = "Neon"
  1386. centralpart9.Size = vt(0.5,1,0.5)
  1387. centralpart9.CanCollide = false
  1388.  
  1389. meshy9 = Instance.new("SpecialMesh", centralpart9)
  1390. meshy9.Scale = vt(1,0.035,1.075)
  1391. meshy9.MeshType = "Brick"
  1392.  
  1393. centralpart10 = it("Part",centralpart)
  1394. centralpart10.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(105),0)
  1395. centralpart10.Anchored = true
  1396. centralpart10.Transparency = 0.5
  1397. centralpart10.BrickColor = origcolor
  1398. centralpart10.Material = "Neon"
  1399. centralpart10.Size = vt(0.5,1,0.5)
  1400. centralpart10.CanCollide = false
  1401.  
  1402. meshy10 = Instance.new("SpecialMesh", centralpart10)
  1403. meshy10.Scale = vt(1,0.035,1.075)
  1404. meshy10.MeshType = "Brick"
  1405.  
  1406. centralpart11 = it("Part",centralpart)
  1407. centralpart11.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(120),0)
  1408. centralpart11.Anchored = true
  1409. centralpart11.Transparency = 0.5
  1410. centralpart11.BrickColor = origcolor
  1411. centralpart11.Material = "Neon"
  1412. centralpart11.Size = vt(0.5,1,0.5)
  1413. centralpart11.CanCollide = false
  1414.  
  1415. meshy11 = Instance.new("SpecialMesh", centralpart11)
  1416. meshy11.Scale = vt(1,0.035,1.075)
  1417. meshy11.MeshType = "Brick"
  1418.  
  1419. centralpart12 = it("Part",centralpart)
  1420. centralpart12.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(135),0)
  1421. centralpart12.Anchored = true
  1422. centralpart12.Transparency = 0.5
  1423. centralpart12.BrickColor = origcolor
  1424. centralpart12.Material = "Neon"
  1425. centralpart12.Size = vt(0.5,1,0.5)
  1426. centralpart12.CanCollide = false
  1427.  
  1428. meshy12 = Instance.new("SpecialMesh", centralpart12)
  1429. meshy12.Scale = vt(1,0.035,1.075)
  1430. meshy12.MeshType = "Brick"
  1431.  
  1432. centralpart13 = it("Part",centralpart)
  1433. centralpart13.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(150),0)
  1434. centralpart13.Anchored = true
  1435. centralpart13.Transparency = 0.5
  1436. centralpart13.BrickColor = origcolor
  1437. centralpart13.Material = "Neon"
  1438. centralpart13.Size = vt(0.5,1,0.5)
  1439. centralpart13.CanCollide = false
  1440.  
  1441. meshy13 = Instance.new("SpecialMesh", centralpart13)
  1442. meshy13.Scale = vt(1,0.035,1.075)
  1443. meshy13.MeshType = "Brick"
  1444.  
  1445. centralpart14 = it("Part",centralpart)
  1446. centralpart14.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(165),0)
  1447. centralpart14.Anchored = true
  1448. centralpart14.Transparency = 0.5
  1449. centralpart14.BrickColor = origcolor
  1450. centralpart14.Material = "Neon"
  1451. centralpart14.Size = vt(0.5,1,0.5)
  1452. centralpart14.CanCollide = false
  1453.  
  1454. meshy14 = Instance.new("SpecialMesh", centralpart14)
  1455. meshy14.Scale = vt(1,0.035,1.075)
  1456. meshy14.MeshType = "Brick"
  1457.  
  1458. centralpart15 = it("Part",centralpart)
  1459. centralpart15.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(180),0)
  1460. centralpart15.Anchored = true
  1461. centralpart15.Transparency = 0.5
  1462. centralpart15.BrickColor = origcolor
  1463. centralpart15.Material = "Neon"
  1464. centralpart15.Size = vt(0.5,1,0.5)
  1465. centralpart15.CanCollide = false
  1466.  
  1467. meshy15 = Instance.new("SpecialMesh", centralpart15)
  1468. meshy15.Scale = vt(1,0.035,1.075)
  1469. meshy15.MeshType = "Brick"
  1470.  
  1471. centralparto = it("Part",centralpart)
  1472. centralparto.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(0),0)
  1473. centralparto.Anchored = true
  1474. centralparto.Transparency = 0.5
  1475. centralparto.BrickColor = BrickColor.new("Really black")
  1476. centralparto.Material = "Neon"
  1477. centralparto.Size = vt(0.5,1,0.5)
  1478. centralparto.CanCollide = false
  1479.  
  1480. meshyo = Instance.new("SpecialMesh", centralparto)
  1481. meshyo.Scale = vt(1.05,0.05,0.25)
  1482. meshyo.MeshType = "Sphere"
  1483.  
  1484. centralparto2 = it("Part",centralpart)
  1485. centralparto2.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(90),0)
  1486. centralparto2.Anchored = true
  1487. centralparto2.Transparency = 0.5
  1488. centralparto2.BrickColor = BrickColor.new("Really black")
  1489. centralparto2.Material = "Neon"
  1490. centralparto2.Size = vt(0.5,1,0.5)
  1491. centralparto2.CanCollide = false
  1492.  
  1493. meshyo2 = Instance.new("SpecialMesh", centralparto2)
  1494. meshyo2.Scale = vt(1.05,0.05,0.25)
  1495. meshyo2.MeshType = "Sphere"
  1496.  
  1497. centralparto3 = it("Part",centralpart)
  1498. centralparto3.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(45),0)
  1499. centralparto3.Anchored = true
  1500. centralparto3.Transparency = 0.5
  1501. centralparto3.BrickColor = BrickColor.new("Maroon")
  1502. centralparto3.Material = "Neon"
  1503. centralparto3.Size = vt(0.5,1,0.5)
  1504. centralparto3.CanCollide = false
  1505.  
  1506. meshyo3 = Instance.new("SpecialMesh", centralparto3)
  1507. meshyo3.Scale = vt(1.05,0.075,0.25)
  1508. meshyo3.MeshType = "Sphere"
  1509.  
  1510. centralparto4 = it("Part",centralpart)
  1511. centralparto4.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(135),0)
  1512. centralparto4.Anchored = true
  1513. centralparto4.Transparency = 0.5
  1514. centralparto4.BrickColor = BrickColor.new("Maroon")
  1515. centralparto4.Material = "Neon"
  1516. centralparto4.Size = vt(0.5,1,0.5)
  1517. centralparto4.CanCollide = false
  1518.  
  1519. meshyo4 = Instance.new("SpecialMesh", centralparto4)
  1520. meshyo4.Scale = vt(1.05,0.075,0.25)
  1521. meshyo4.MeshType = "Sphere"
  1522.  
  1523. eff = Instance.new("ParticleEmitter",centralpart)
  1524. eff.Texture = "http://www.roblox.com/asset/?id=243664672"
  1525. eff.LightEmission = 0.75
  1526. eff.Color = ColorSequence.new(Color3.new(255,0,0))
  1527. eff.Lifetime = NumberRange.new(2.5)
  1528. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  1529. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.45,0),NumberSequenceKeypoint.new(1,1,0)})
  1530. eff.Acceleration = Vector3.new(0,-75,0)
  1531. eff.Rotation = NumberRange.new(-500,500)
  1532. eff.VelocitySpread = 90
  1533. eff.RotSpeed = NumberRange.new(-500,500)
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544. ogsize = meshy.Scale
  1545. ogsize2 = meshy2.Scale
  1546. ogsize3 = meshy3.Scale
  1547. ogsize4 = meshy4.Scale
  1548. ogsize5 = meshy5.Scale
  1549. ogsize6 = meshy6.Scale
  1550. ogsize7 = meshy7.Scale
  1551. ogsize8 = meshy8.Scale
  1552. ogsize9 = meshy9.Scale
  1553. ogsize10 = meshy10.Scale
  1554. ogsize11 = meshy11.Scale
  1555. ogsize12 = meshy12.Scale
  1556. ogsize13 = meshy13.Scale
  1557. ogsize14 = meshy14.Scale
  1558. ogsize15 = meshy15.Scale
  1559.  
  1560. ogsizeo = meshyo.Scale
  1561. ogsizeo2 = meshyo2.Scale
  1562. ogsizeo3 = meshyo3.Scale
  1563. ogsizeo4 = meshyo4.Scale
  1564. end
  1565. meshy.Scale = meshy.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/600*3.5,ogsize.Y+sound.PlaybackLoudness/600*3.5,ogsize.Z+sound.PlaybackLoudness/525*3.5),0.8)
  1566. meshy2.Scale = meshy2.Scale:lerp(Vector3.new(ogsize2.X+sound.PlaybackLoudness/500*3.5,ogsize2.Y+sound.PlaybackLoudness/500*3.5,ogsize2.Z+sound.PlaybackLoudness/500*3.5),0.8)
  1567. meshy3.Scale = meshy3.Scale:lerp(Vector3.new(1,0.035,ogsize3.Z+sound.PlaybackLoudness/100*7),0.8)
  1568. meshy4.Scale = meshy4.Scale:lerp(Vector3.new(1,0.035,ogsize4.Z+sound.PlaybackLoudness/100*7.25),0.8)
  1569. meshy5.Scale = meshy5.Scale:lerp(Vector3.new(1,0.035,ogsize5.Z+sound.PlaybackLoudness/100*7.5),0.8)
  1570. meshy6.Scale = meshy6.Scale:lerp(Vector3.new(1,0.035,ogsize6.Z+sound.PlaybackLoudness/100*7.75),0.8)
  1571. meshy7.Scale = meshy7.Scale:lerp(Vector3.new(1,0.035,ogsize7.Z+sound.PlaybackLoudness/100*8),0.8)
  1572. meshy8.Scale = meshy8.Scale:lerp(Vector3.new(1,0.035,ogsize8.Z+sound.PlaybackLoudness/100*8.25),0.8)
  1573. meshy9.Scale = meshy9.Scale:lerp(Vector3.new(1,0.035,ogsize9.Z+sound.PlaybackLoudness/100*8.5),0.8)
  1574. meshy10.Scale = meshy10.Scale:lerp(Vector3.new(1,0.035,ogsize10.Z+sound.PlaybackLoudness/100*8.75),0.8)
  1575. meshy11.Scale = meshy11.Scale:lerp(Vector3.new(1,0.035,ogsize11.Z+sound.PlaybackLoudness/100*9),0.8)
  1576. meshy12.Scale = meshy12.Scale:lerp(Vector3.new(1,0.035,ogsize12.Z+sound.PlaybackLoudness/100*9.25),0.8)
  1577. meshy13.Scale = meshy13.Scale:lerp(Vector3.new(1,0.035,ogsize13.Z+sound.PlaybackLoudness/100*9.5),0.8)
  1578. meshy14.Scale = meshy14.Scale:lerp(Vector3.new(1,0.035,ogsize14.Z+sound.PlaybackLoudness/100*9.75),0.8)
  1579. meshy15.Scale = meshy15.Scale:lerp(Vector3.new(1,0.035,ogsize15.Z+sound.PlaybackLoudness/100*10),0.8)
  1580.  
  1581. meshyo.Scale = meshyo.Scale:lerp(Vector3.new(ogsizeo.X+sound.PlaybackLoudness/250*7.5,0.15,ogsizeo.Z+sound.PlaybackLoudness/1000*250),0.8)
  1582. meshyo2.Scale = meshyo2.Scale:lerp(Vector3.new(ogsizeo2.X+sound.PlaybackLoudness/250*7.5,0.15,ogsizeo2.Z+sound.PlaybackLoudness/1000*250),0.8)
  1583. meshyo3.Scale = meshyo3.Scale:lerp(Vector3.new(ogsizeo3.X+sound.PlaybackLoudness/250*5,0.225,ogsizeo3.Z+sound.PlaybackLoudness/500*100),0.8)
  1584. meshyo4.Scale = meshyo4.Scale:lerp(Vector3.new(ogsizeo4.X+sound.PlaybackLoudness/250*5,0.225,ogsizeo4.Z+sound.PlaybackLoudness/500*100),0.8)
  1585. centralpart.Position = root.Position + Vector3.new(0,5,0)
  1586. centralpart3.Position = centralpart.Position
  1587. centralpart3.CFrame = centralpart3.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1588. centralpart4.Position = centralpart.Position
  1589. centralpart4.CFrame = centralpart4.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1590. centralpart5.Position = centralpart.Position
  1591. centralpart5.CFrame = centralpart5.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1592. centralpart6.Position = centralpart.Position
  1593. centralpart6.CFrame = centralpart6.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1594. centralpart7.Position = centralpart.Position
  1595. centralpart7.CFrame = centralpart7.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1596. centralpart8.Position = centralpart.Position
  1597. centralpart8.CFrame = centralpart8.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1598. centralpart9.Position = centralpart.Position
  1599. centralpart9.CFrame = centralpart9.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1600. centralpart10.Position = centralpart.Position
  1601. centralpart10.CFrame = centralpart10.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1602. centralpart11.Position = centralpart.Position
  1603. centralpart11.CFrame = centralpart11.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1604. centralpart12.Position = centralpart.Position
  1605. centralpart12.CFrame = centralpart12.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1606. centralpart13.Position = centralpart.Position
  1607. centralpart13.CFrame = centralpart13.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1608. centralpart14.Position = centralpart.Position
  1609. centralpart14.CFrame = centralpart14.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1610. centralpart15.Position = centralpart.Position
  1611. centralpart15.CFrame = centralpart15.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/750*25),0)
  1612.  
  1613. centralparto.Position = centralpart.Position
  1614. centralparto.CFrame = centralparto.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/1000*75),0)
  1615. centralparto2.Position = centralpart.Position
  1616. centralparto2.CFrame = centralparto2.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/1000*75),0)
  1617. centralparto3.Position = centralpart.Position
  1618. centralparto3.CFrame = centralparto3.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/1000*15),0)
  1619. centralparto4.Position = centralpart.Position
  1620. centralparto4.CFrame = centralparto4.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/1000*15),0)
  1621. centralpart.CFrame = centralpart.CFrame
  1622. centralpart2.CFrame = centralpart.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/250),0)
  1623. centralpart2a.CFrame = centralpart2.CFrame*CFrame.Angles(0,math.rad(sound.PlaybackLoudness/250),0)
  1624. eff.Rate = sound.PlaybackLoudness/3
  1625. eff.Speed = NumberRange.new(sound.PlaybackLoudness/5)
  1626. eff.Color = ColorSequence.new(Color3.new(sound.PlaybackLoudness/255,0,0))
  1627. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,sound.PlaybackLoudness/75,0),NumberSequenceKeypoint.new(1,0,0)})
  1628. centralpart2a.Color = Color3.new(sound.PlaybackLoudness/400,0,0)
  1629. centralparto3.Color = Color3.new(sound.PlaybackLoudness/375,0,0)
  1630. centralparto4.Color = Color3.new(sound.PlaybackLoudness/375,0,0)
  1631.  
  1632.  
  1633.  
  1634.  
  1635. local hum = char:FindFirstChild("Humanoid")
  1636. local pet = part
  1637. local torso = char:FindFirstChild("Torso")
  1638.  
  1639. local maxFloat = 1
  1640. local floatInc = 0.025
  1641. local sw = false
  1642. local fl = 0
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648. while true do
  1649. wait()
  1650. if not sw then
  1651. fl = fl + floatInc
  1652. if fl >= maxFloat then
  1653. sw = true
  1654. end
  1655. else
  1656. fl = fl - floatInc
  1657. if fl <=-maxFloat then
  1658. sw = false
  1659. end
  1660. end
  1661. if pet ~= nil and hum ~= nil and torso ~= nil then
  1662. if hum.Health >= 0 then
  1663. local cf = torso.CFrame * CFrame.new(3,2+fl,3)
  1664. pet.BodyPosition.Position = Vector3.new(cf.x,cf.y,cf.z)
  1665. pet.BodyGyro.CFrame = torso.CFrame * CFrame.new(3,0,-3)
  1666. else
  1667. break
  1668. end
  1669. end
  1670. end
  1671.  
  1672.  
  1673.  
  1674.  
  1675. end
  1676.  
  1677. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement