Advertisement
PR0J3CT11

Untitled

Jun 24th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
  5.     script.Parent = InternalData.RealOwner.Character
  6.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  7.     local function createObject (connections, index)
  8.         local proxy = newproxy (true);local meta = getmetatable (proxy);
  9.         local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  10.         while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  11.         meta.__index = function (self, i)
  12.             if (i == 'TriggerEvent') then return runbind end;
  13.             return connections[i] and connections[i].Event or index[i];
  14.         end;
  15.         meta.__newindex = index;meta.__metatable = false;return proxy
  16.     end;
  17.     local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  18.     local UserInputService = createObject({"InputBegan","InputEnded"},{})
  19.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  20.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  21.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  22.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  23.         if FiredBy ~= InternalData.RealOwner then return end
  24.         if Input.MouseEvent then
  25.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  26.         elseif Input.Sound then
  27.             if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  28.         else
  29.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  30.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  31.             for _,Action in pairs(ContextActionService.Actions) do
  32.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33.             end
  34.             Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35.         end
  36.     end)
  37.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38.     Event.Parent = NLS([[
  39.         local Player = owner;
  40.         local Sounds = {};
  41.         local Event = script:WaitForChild("UserInput");
  42.         local UserInputService = game:GetService("UserInputService");
  43.         local Mouse = Player:GetMouse();
  44.         local Input = function(Input,gameProcessedEvent)
  45.             if gameProcessedEvent then return end
  46.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47.         end
  48.         Event.OnClientEvent:connect(function(Args)
  49.             if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50.         end)
  51.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52.         local Hit,Target
  53.         while wait(1/30) do
  54.             for x,Sound in pairs(Sounds) do
  55.                 if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56.             end
  57.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58.                 Hit = Mouse.Hit;Target = Mouse.Target;
  59.                 Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60.             end
  61.         end
  62.     ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65.     __index = function (self,Index)
  66.             local Type = type(InternalData.RealOwner[Index])
  67.             if Type == "function" then
  68.                 if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69.                 return function (self)return InternalData["Mouse"] end
  70.                 end
  71.             return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72.         elseif Index == "FakePlayer" then
  73.             return true
  74.         end
  75.         return InternalData.RealOwner[Index]
  76.     end;
  77.     __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. --LoadLibrary("RbxUtility").Create
  80. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  81.     if Library == "RbxUtility" then
  82.         return setmetatable({},{
  83.             __tostring = function() return "RbxUtility" end;
  84.             __index = function(self, Index)
  85.                 if Index:lower() == "create" then
  86.                     return function(Type)
  87.                         return function(Data)
  88.                             Data = Data or {}
  89.                             local Inst = Instance.new(Type)
  90.                             for x,y in pairs(Data) do
  91.                                 if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  92.                                 if y == owner then y = InternalData.RealOwner end
  93.                                 Inst[x] = y
  94.                             end
  95.                             return Inst
  96.                         end
  97.                     end
  98.                 end
  99.                 return InternalData.LoadLibrary(Library)[Index]
  100.             end
  101.         })
  102.     end
  103.     return InternalData.LoadLibrary(Library)
  104. end
  105. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  106.     __index = function (self,Index)
  107.         if Index:lower() == 'new' then
  108.             return function (Type, Parent)
  109.                 if Parent == owner then Parent = InternalData.RealOwner end
  110.                 if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  111.                 local Real = InternalData.RealInstance.new(Type,Parent)
  112.                 if not Type then return end
  113.                 if Type == "BillboardGui" then
  114.                     local ToReturn = setmetatable({},{
  115.                         __index = function (self,Index)
  116.                             if type(Real[Index]) == "function" then
  117.                                 if Index:lower() == "clone" then
  118.                                     return function (self)
  119.                                         local Real = Real:Clone()
  120.                                         local ToReturn = setmetatable({RealObject = Real},{
  121.                                             __index = function (self,Index)
  122.                                                 if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  123.                                                 return Real[Index]
  124.                                             end;
  125.                                             __newindex = function (self,Index,Value)
  126.                                                 if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  127.                                                 if Value == owner then Value = InternalData.RealOwner end
  128.                                                 Real[Index] = Value
  129.                                             end;
  130.                                             __tostring = function(self) return tostring(Real) end;
  131.                                         })
  132.                                         InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  133.                                     end
  134.                                 end
  135.                                 return function (self,...) return Real[Index](Real,...)end
  136.                             end
  137.                             return Real[Index]
  138.                         end;
  139.                         __newindex = function (self,Index,Value)
  140.                             if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  141.                             if Value == owner then Value = InternalData.RealOwner end
  142.                             Real[Index] = Value
  143.                         end;
  144.                         __tostring = function(self) return tostring(Real) end;
  145.                     })
  146.                     InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  147.                 elseif Type:lower() == "sound" then
  148.                     Real.Parent = owner.Character;
  149.                     local ToReturn = setmetatable({RealObject = Real},{
  150.                         __index = function (self,Index)
  151.                             if Index:lower() == "playbackloudness" then
  152.                                 return InternalData.SoundLoudness[Real] or 0
  153.                             elseif type(Real[Index]) == "function" then
  154.                                 if Index:lower() == "clone" then
  155.                                     return function (self)
  156.                                         local Real = Real:Clone()
  157.                                         local ToReturn = setmetatable({},{
  158.                                             __index = function (self,Index)
  159.                                                 if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  160.                                                 return Real[Index]
  161.                                             end;
  162.                                             __newindex = function (self,Index,Value)
  163.                                                 if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  164.                                                 if Value == owner then Value = InternalData.RealOwner end
  165.                                                 Real[Index] = Value
  166.                                             end;
  167.                                             __tostring = function(self) return tostring(Real) end;
  168.                                         })
  169.                                         InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  170.                                     end
  171.                                 end
  172.                                 return function (self,...) return Real[Index](Real,...)end
  173.                             end
  174.                             return Real[Index]
  175.                         end;
  176.                         __newindex = function (self,Index,Value)
  177.                             if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  178.                             if Value == owner then Value = InternalData.RealOwner end
  179.                             Real[Index] = Value
  180.                         end;
  181.                         __tostring = function(self) return tostring(Real) end;
  182.                     })
  183.                     InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  184.                 else
  185.                     local ToReturn = setmetatable({RealObject = Real},{
  186.                         __index = function (self,Index)
  187.                             if type(Real[Index]) == "function" then
  188.                                 if Index:lower() == "clone" then
  189.                                     return function (self)
  190.                                         local Real = Real:Clone()
  191.                                         local ToReturn = setmetatable({},{
  192.                                             __index = function (self,Index)
  193.                                                 if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  194.                                                 return Real[Index]
  195.                                             end;
  196.                                             __newindex = function (self,Index,Value)
  197.                                                 if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  198.                                                 if Value == owner then Value = InternalData.RealOwner end
  199.                                                 Real[Index] = Value
  200.                                             end;
  201.                                             __tostring = function(self) return tostring(Real) end;
  202.                                         })
  203.                                         InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  204.                                     end
  205.                                 end
  206.                                 return function (self,...) return Real[Index](Real,...)end
  207.                             end
  208.                             return Real[Index]
  209.                         end;
  210.                         __newindex = function (self,Index,Value)
  211.                             if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  212.                             if Value == owner then Value = InternalData.RealOwner end
  213.                             Real[Index] = Value
  214.                         end;
  215.                         __tostring = function(self) return tostring(Real) end;
  216.                     })
  217.                     InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  218.                 end
  219.             end
  220.         end
  221.         return InternalData.RealInstance[Index]
  222.     end;
  223.     __tostring = function(self) return tostring(InternalData.RealInstance) end;
  224. });
  225. InternalData.RealGame = game;game = setmetatable({},{
  226.     __index = function (self,Index)
  227.         if InternalData.RealGame[Index] then
  228.             local Type = type(InternalData.RealGame[Index])
  229.             if Type == "function" then
  230.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  231.                     return function (self,Service)
  232.                         local FakeServices = {
  233.                             ["players"] = function()
  234.                                 return setmetatable({},{
  235.                                     __index = function (self2,Index2)
  236.                                         local RealService = InternalData.RealGame:GetService(Service)
  237.                                         local Type2 = type(RealService[Index2])
  238.                                         if Type2 == "function" then
  239.                                             return function (self,...) return RealService[Index2](RealService,...)end
  240.                                         else
  241.                                             if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  242.                                             return RealService[Index2]
  243.                                         end
  244.                                     end;
  245.                                     __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  246.                                 })
  247.                             end;
  248.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  249.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  250.                             ["debris"] = function()
  251.                                 return setmetatable({},{
  252.                                     __index = function(self2,Index2)
  253.                                         local RealService = InternalData.RealGame:GetService(Service)
  254.                                         local Type2 = type(RealService[Index2])
  255.                                         if Type2 == "function" then
  256.                                             if Index2:lower() == "additem" then
  257.                                                 return function (self,Item,Time)
  258.                                                     if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  259.                                                     return RealService:AddItem(Item,Time)
  260.                                                 end
  261.                                             end
  262.                                             return function (self,...) return RealService[Index2](RealService,...) end
  263.                                         end
  264.                                         return RealService[Index2]
  265.                                     end;
  266.                                     __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  267.                                 })
  268.                             end;
  269.                             ["runservice"] = function()
  270.                                 return setmetatable({},{
  271.                                     __index = function(self2,Index2)
  272.                                         local RealService = InternalData.RealGame:GetService(Service)
  273.                                         local Type2 = type(RealService[Index2])
  274.                                         if Type2 == "function" then
  275.                                             return function (self,...) return RealService[Index2](RealService,...) end
  276.                                         else
  277.                                             local RunServices = {
  278.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  279.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  280.                                             }
  281.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  282.                                             return RealService[Index2]
  283.                                         end
  284.                                     end;
  285.                                     __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  286.                                 })
  287.                             end
  288.                         }
  289.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  290.                         return InternalData.RealGame:GetService(Service)
  291.                     end
  292.                 end
  293.                 return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  294.             else
  295.                 if game:GetService(Index) then return game:GetService(Index) end
  296.                 return InternalData.RealGame[Index]
  297.             end
  298.         end
  299.         return nil
  300.     end;
  301.     __tostring = function(self) return tostring(InternalData.game) end
  302. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  303.  
  304. player = game:GetService("Players").LocalPlayer
  305. char = player.Character
  306. root = char:WaitForChild("HumanoidRootPart")
  307. rs = game:GetService("RunService").RenderStepped
  308. mouse = player:GetMouse()
  309.  
  310. parent = player.PlayerGui
  311. ScreenGui0 = Instance.new("ScreenGui")
  312. TextButton1 = Instance.new("TextButton")
  313. Frame2 = Instance.new("Frame")
  314. TextBox3 = Instance.new("TextBox")
  315. TextButton4 = Instance.new("TextButton")
  316. Frame5 = Instance.new("Frame")
  317. Frame6 = Instance.new("Frame")
  318. Frame7 = Instance.new("Frame")
  319. TextLabel8 = Instance.new("TextLabel")
  320. TextButton9 = Instance.new("TextButton")
  321. Frame10 = Instance.new("Frame")
  322. Frame11 = Instance.new("Frame")
  323. TextLabel12 = Instance.new("TextLabel")
  324. TextButton13 = Instance.new("TextButton")
  325. TextButton14 = Instance.new("TextButton")
  326. Frame15 = Instance.new("Frame")
  327. Frame16 = Instance.new("Frame")
  328. Frame17 = Instance.new("Frame")
  329. TextButton18 = Instance.new("TextButton")
  330. TextLabel19 = Instance.new("TextLabel")
  331. Frame20 = Instance.new("Frame")
  332. Frame21 = Instance.new("Frame")
  333. TextButton22 = Instance.new("TextButton")
  334. TextLabel23 = Instance.new("TextLabel")
  335. Frame24 = Instance.new("Frame")
  336. Frame25 = Instance.new("Frame")
  337. TextButton26 = Instance.new("TextButton")
  338. TextLabel27 = Instance.new("TextLabel")
  339. Frame28 = Instance.new("Frame")
  340. Frame29 = Instance.new("Frame")
  341. TextButton30 = Instance.new("TextButton")
  342. TextLabel31 = Instance.new("TextLabel")
  343. Frame32 = Instance.new("Frame")
  344. TextButton33 = Instance.new("TextButton")
  345. TextButton34 = Instance.new("TextButton")
  346. ScreenGui0.Name = "MusicPlayerKyu"
  347. ScreenGui0.Parent = parent
  348. TextButton1.Name = "Open/Close"
  349. TextButton1.Parent = ScreenGui0
  350. TextButton1.Size = UDim2.new(0, 20, 0, 300)
  351. TextButton1.Text = ">>"
  352. TextButton1.Position = UDim2.new(0, 0, 0, 250)
  353. TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
  354. TextButton1.SizeConstraint = Enum.SizeConstraint.RelativeXX
  355. TextButton1.Font = Enum.Font.Code
  356. Frame2.Name = "Core"
  357. Frame2.Parent = ScreenGui0
  358. Frame2.Size = UDim2.new(0, 500, 0, 300)
  359. Frame2.Position = UDim2.new(0, 20, 0, 250)
  360. Frame2.BackgroundColor3 = Color3.new(0.615686, 0.615686, 0.615686)
  361. Frame2.SizeConstraint = Enum.SizeConstraint.RelativeXX
  362. TextBox3.Name = "ID"
  363. TextBox3.Parent = Frame2
  364. TextBox3.Size = UDim2.new(0, 100, 0, 100)
  365. TextBox3.Text = "ID"
  366. TextBox3.Position = UDim2.new(0, 50, 0, 20)
  367. TextBox3.BackgroundColor3 = Color3.new(1, 1, 1)
  368. TextBox3.SizeConstraint = Enum.SizeConstraint.RelativeXX
  369. TextBox3.Font = Enum.Font.SciFi
  370. TextBox3.FontSize = Enum.FontSize.Size14
  371. TextButton4.Name = "Play"
  372. TextButton4.Parent = TextBox3
  373. TextButton4.Size = UDim2.new(1, 0, 0, 20)
  374. TextButton4.Text = "PLAY"
  375. TextButton4.Position = UDim2.new(0.5, 0, 1, 0)
  376. TextButton4.BackgroundColor3 = Color3.new(1, 1, 1)
  377. TextButton4.Font = Enum.Font.SciFi
  378. TextButton4.FontSize = Enum.FontSize.Size14
  379. TextButton4.AnchorPoint = Vector2.new(0.5, 0)
  380. Frame5.Name = "SettingsPanel"
  381. Frame5.Parent = Frame2
  382. Frame5.Size = UDim2.new(0, 300, 0, 150)
  383. Frame5.Position = UDim2.new(1, -20, 0, 20)
  384. Frame5.BackgroundColor3 = Color3.new(0.345098, 0.345098, 0.345098)
  385. Frame5.AnchorPoint = Vector2.new(1, 0)
  386. Frame6.Name = "Volume"
  387. Frame6.Parent = Frame5
  388. Frame6.Transparency = 0
  389. Frame6.Size = UDim2.new(0, 100, 0, 100)
  390. Frame6.Position = UDim2.new(0, 100, 0.5, 0)
  391. Frame6.BackgroundColor3 = Color3.new(1, 1, 1)
  392. Frame6.BackgroundTransparency = 1
  393. Frame6.AnchorPoint = Vector2.new(0.5, 0.5)
  394. Frame7.Name = "Line"
  395. Frame7.Parent = Frame6
  396. Frame7.Size = UDim2.new(0, 1, 1, 0)
  397. Frame7.Position = UDim2.new(0.5, 0, 0, 0)
  398. Frame7.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  399. Frame7.BorderSizePixel = 0
  400. Frame7.AnchorPoint = Vector2.new(0.5, 0)
  401. TextLabel8.Name = "Text"
  402. TextLabel8.Parent = Frame6
  403. TextLabel8.Transparency = 0
  404. TextLabel8.Text = "Volume"
  405. TextLabel8.Position = UDim2.new(0.5, 0, 1, 10)
  406. TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
  407. TextLabel8.BackgroundTransparency = 1
  408. TextLabel8.Font = Enum.Font.SourceSans
  409. TextLabel8.FontSize = Enum.FontSize.Size10
  410. TextLabel8.AnchorPoint = Vector2.new(0.5, 0)
  411. TextButton9.Name = "DragVol"
  412. TextButton9.Parent = Frame6
  413. TextButton9.Size = UDim2.new(0, 20, 0, 10)
  414. TextButton9.Text = ""
  415. TextButton9.Position = UDim2.new(0.5, 0, 0.5, 0)
  416. TextButton9.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  417. TextButton9.Font = Enum.Font.SourceSans
  418. TextButton9.AnchorPoint = Vector2.new(0.5, 0.5)
  419. Frame10.Name = "Pitch"
  420. Frame10.Parent = Frame5
  421. Frame10.Transparency = 0
  422. Frame10.Size = UDim2.new(0, 100, 0, 100)
  423. Frame10.Position = UDim2.new(0, 50, 0.5, 0)
  424. Frame10.BackgroundColor3 = Color3.new(1, 1, 1)
  425. Frame10.BackgroundTransparency = 1
  426. Frame10.AnchorPoint = Vector2.new(0.5, 0.5)
  427. Frame11.Name = "Line"
  428. Frame11.Parent = Frame10
  429. Frame11.Size = UDim2.new(0, 1, 1, 0)
  430. Frame11.Position = UDim2.new(0.5, 0, 0, 0)
  431. Frame11.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  432. Frame11.BorderSizePixel = 0
  433. Frame11.AnchorPoint = Vector2.new(0.5, 0)
  434. TextLabel12.Name = "Text"
  435. TextLabel12.Parent = Frame10
  436. TextLabel12.Transparency = 0
  437. TextLabel12.Text = "Pitch"
  438. TextLabel12.Position = UDim2.new(0.5, 0, 1, 10)
  439. TextLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
  440. TextLabel12.BackgroundTransparency = 1
  441. TextLabel12.Font = Enum.Font.SourceSans
  442. TextLabel12.FontSize = Enum.FontSize.Size10
  443. TextLabel12.AnchorPoint = Vector2.new(0.5, 0)
  444. TextButton13.Name = "DragPitch"
  445. TextButton13.Parent = Frame10
  446. TextButton13.Size = UDim2.new(0, 20, 0, 10)
  447. TextButton13.Text = ""
  448. TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0)
  449. TextButton13.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  450. TextButton13.Font = Enum.Font.SourceSans
  451. TextButton13.AnchorPoint = Vector2.new(0.5, 0.5)
  452. TextButton14.Name = "Reset"
  453. TextButton14.Parent = Frame10
  454. TextButton14.Size = UDim2.new(0, 20, 0, 20)
  455. TextButton14.Text = ""
  456. TextButton14.Position = UDim2.new(0.5, -15, 0.5, 0)
  457. TextButton14.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  458. TextButton14.Font = Enum.Font.SourceSans
  459. TextButton14.FontSize = Enum.FontSize.Size14
  460. TextButton14.AnchorPoint = Vector2.new(1, 0.5)
  461. Frame15.Name = "Others"
  462. Frame15.Parent = Frame5
  463. Frame15.Transparency = 0
  464. Frame15.Size = UDim2.new(0, 100, 0, 100)
  465. Frame15.Position = UDim2.new(0, 210, 0.5, 0)
  466. Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
  467. Frame15.BackgroundTransparency = 1
  468. Frame15.AnchorPoint = Vector2.new(0.5, 0.5)
  469. Frame16.Name = "Low"
  470. Frame16.Parent = Frame15
  471. Frame16.Transparency = 0
  472. Frame16.Size = UDim2.new(0, 0, 1, 0)
  473. Frame16.BackgroundColor3 = Color3.new(1, 1, 1)
  474. Frame16.BackgroundTransparency = 1
  475. Frame17.Name = "Line"
  476. Frame17.Parent = Frame16
  477. Frame17.Size = UDim2.new(0, 1, 1, 0)
  478. Frame17.Position = UDim2.new(0.5, 0, 0, 0)
  479. Frame17.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  480. Frame17.BorderSizePixel = 0
  481. Frame17.AnchorPoint = Vector2.new(0.5, 0)
  482. TextButton18.Name = "DragLow"
  483. TextButton18.Parent = Frame16
  484. TextButton18.Size = UDim2.new(0, 20, 0, 10)
  485. TextButton18.Text = ""
  486. TextButton18.Position = UDim2.new(0.5, 0, 0.5, -25)
  487. TextButton18.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  488. TextButton18.Font = Enum.Font.SourceSans
  489. TextButton18.AnchorPoint = Vector2.new(0.5, 0.5)
  490. TextLabel19.Name = "Text"
  491. TextLabel19.Parent = Frame16
  492. TextLabel19.Transparency = 0
  493. TextLabel19.Text = "Low"
  494. TextLabel19.Position = UDim2.new(0.5, 0, 1, 10)
  495. TextLabel19.BackgroundColor3 = Color3.new(1, 1, 1)
  496. TextLabel19.BackgroundTransparency = 1
  497. TextLabel19.Font = Enum.Font.SourceSans
  498. TextLabel19.FontSize = Enum.FontSize.Size10
  499. TextLabel19.AnchorPoint = Vector2.new(0.5, 0)
  500. Frame20.Name = "Medium"
  501. Frame20.Parent = Frame15
  502. Frame20.Transparency = 0
  503. Frame20.Size = UDim2.new(0, 0, 1, 0)
  504. Frame20.Position = UDim2.new(0, 40, 0, 0)
  505. Frame20.BackgroundColor3 = Color3.new(1, 1, 1)
  506. Frame20.BackgroundTransparency = 1
  507. Frame21.Name = "Line"
  508. Frame21.Parent = Frame20
  509. Frame21.Size = UDim2.new(0, 1, 1, 0)
  510. Frame21.Position = UDim2.new(0.5, 0, 0, 0)
  511. Frame21.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  512. Frame21.BorderSizePixel = 0
  513. Frame21.AnchorPoint = Vector2.new(0.5, 0)
  514. TextButton22.Name = "DragMed"
  515. TextButton22.Parent = Frame20
  516. TextButton22.Size = UDim2.new(0, 20, 0, 10)
  517. TextButton22.Text = ""
  518. TextButton22.Position = UDim2.new(0.5, 0, 0.5, -25)
  519. TextButton22.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  520. TextButton22.Font = Enum.Font.SourceSans
  521. TextButton22.AnchorPoint = Vector2.new(0.5, 0.5)
  522. TextLabel23.Name = "Text"
  523. TextLabel23.Parent = Frame20
  524. TextLabel23.Transparency = 0
  525. TextLabel23.Text = "Medium"
  526. TextLabel23.Position = UDim2.new(0.5, 0, 1, 10)
  527. TextLabel23.BackgroundColor3 = Color3.new(1, 1, 1)
  528. TextLabel23.BackgroundTransparency = 1
  529. TextLabel23.Font = Enum.Font.SourceSans
  530. TextLabel23.FontSize = Enum.FontSize.Size10
  531. TextLabel23.AnchorPoint = Vector2.new(0.5, 0)
  532. Frame24.Name = "High"
  533. Frame24.Parent = Frame15
  534. Frame24.Transparency = 0
  535. Frame24.Size = UDim2.new(0, 0, 1, 0)
  536. Frame24.Position = UDim2.new(0, 80, 0, 0)
  537. Frame24.BackgroundColor3 = Color3.new(1, 1, 1)
  538. Frame24.BackgroundTransparency = 1
  539. Frame25.Name = "Line"
  540. Frame25.Parent = Frame24
  541. Frame25.Size = UDim2.new(0, 1, 1, 0)
  542. Frame25.Position = UDim2.new(0.5, 0, 0, 0)
  543. Frame25.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  544. Frame25.BorderSizePixel = 0
  545. Frame25.AnchorPoint = Vector2.new(0.5, 0)
  546. TextButton26.Name = "DragHigh"
  547. TextButton26.Parent = Frame24
  548. TextButton26.Size = UDim2.new(0, 20, 0, 10)
  549. TextButton26.Text = ""
  550. TextButton26.Position = UDim2.new(0.5, 0, 0.5, -25)
  551. TextButton26.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  552. TextButton26.Font = Enum.Font.SourceSans
  553. TextButton26.AnchorPoint = Vector2.new(0.5, 0.5)
  554. TextLabel27.Name = "Text"
  555. TextLabel27.Parent = Frame24
  556. TextLabel27.Transparency = 0
  557. TextLabel27.Text = "High"
  558. TextLabel27.Position = UDim2.new(0.5, 0, 1, 10)
  559. TextLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
  560. TextLabel27.BackgroundTransparency = 1
  561. TextLabel27.Font = Enum.Font.SourceSans
  562. TextLabel27.FontSize = Enum.FontSize.Size10
  563. TextLabel27.AnchorPoint = Vector2.new(0.5, 0)
  564. Frame28.Name = "Distortion"
  565. Frame28.Parent = Frame15
  566. Frame28.Transparency = 0
  567. Frame28.Size = UDim2.new(0, 0, 1, 0)
  568. Frame28.Position = UDim2.new(0, 120, 0, 0)
  569. Frame28.BackgroundColor3 = Color3.new(1, 1, 1)
  570. Frame28.BackgroundTransparency = 1
  571. Frame29.Name = "Line"
  572. Frame29.Parent = Frame28
  573. Frame29.Size = UDim2.new(0, 1, 1, 0)
  574. Frame29.Position = UDim2.new(0.5, 0, 0, 0)
  575. Frame29.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  576. Frame29.BorderSizePixel = 0
  577. Frame29.AnchorPoint = Vector2.new(0.5, 0)
  578. TextButton30.Name = "DragDist"
  579. TextButton30.Parent = Frame28
  580. TextButton30.Size = UDim2.new(0, 20, 0, 10)
  581. TextButton30.Text = ""
  582. TextButton30.Position = UDim2.new(0.5, 0, 0.5, 50)
  583. TextButton30.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  584. TextButton30.Font = Enum.Font.SourceSans
  585. TextButton30.AnchorPoint = Vector2.new(0.5, 0.5)
  586. TextLabel31.Name = "Text"
  587. TextLabel31.Parent = Frame28
  588. TextLabel31.Transparency = 0
  589. TextLabel31.Text = "Dist"
  590. TextLabel31.Position = UDim2.new(0.5, 0, 1, 10)
  591. TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
  592. TextLabel31.BackgroundTransparency = 1
  593. TextLabel31.Font = Enum.Font.SourceSans
  594. TextLabel31.FontSize = Enum.FontSize.Size10
  595. TextLabel31.AnchorPoint = Vector2.new(0.5, 0)
  596. Frame32.Name = "Line"
  597. Frame32.Parent = Frame5
  598. Frame32.Size = UDim2.new(0, 1, 1, -20)
  599. Frame32.Position = UDim2.new(0.5, -20, 0.5, 0)
  600. Frame32.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  601. Frame32.BorderSizePixel = 0
  602. Frame32.AnchorPoint = Vector2.new(0.5, 0.5)
  603. TextButton33.Name = "Global/Local"
  604. TextButton33.Parent = Frame2
  605. TextButton33.Size = UDim2.new(0, 100, 0, 100)
  606. TextButton33.Text = "LOCAL"
  607. TextButton33.Position = UDim2.new(0, 50, 0, 180)
  608. TextButton33.BackgroundColor3 = Color3.new(1, 1, 1)
  609. TextButton33.Font = Enum.Font.SciFi
  610. TextButton33.FontSize = Enum.FontSize.Size14
  611. TextButton34.Name = "Style"
  612. TextButton34.Parent = Frame2
  613. TextButton34.Size = UDim2.new(0.5, 50, 0, 100)
  614. TextButton34.Text = "Comming Soon"
  615. TextButton34.Position = UDim2.new(0.5, 80, 0, 180)
  616. TextButton34.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
  617. TextButton34.Font = Enum.Font.SciFi
  618. TextButton34.FontSize = Enum.FontSize.Size14
  619. TextButton34.TextColor3 = Color3.new(1, 1, 0)
  620. TextButton34.AnchorPoint = Vector2.new(0.5, 0)
  621. Frame2.Visible = false
  622.  
  623. draggable = {TextButton9;TextButton13;TextButton18;TextButton22;TextButton26;TextButton30}
  624. mode = "local"
  625. held = false
  626. trigger = nil
  627. base = UDim2.new(0,0,0,0)
  628.  
  629. function CreateSound()
  630. if mode == "local" then
  631. soundparent=char:WaitForChild("Torso")
  632. else
  633. soundparent=char
  634. end
  635. sound = Instance.new("Sound",soundparent)
  636. sound.Name = "KyuSound"
  637. sound.Looped = true
  638. effect = Instance.new("EqualizerSoundEffect",sound)
  639. distort = Instance.new("DistortionSoundEffect",sound)
  640. end
  641.  
  642. TextButton1.MouseButton1Click:connect(function()
  643. if Frame2.Visible == true then
  644. Frame2.Visible = false
  645. TextButton1.Text = ">>"
  646. else
  647. Frame2.Visible = true
  648. TextButton1.Text = "<<"
  649. end
  650. end)
  651.  
  652. TextButton4.MouseButton1Click:connect(function()
  653. if mode == "local" then
  654. if not char:WaitForChild("Torso"):FindFirstChild("KyuSound") then CreateSound() end
  655. else
  656. if not char:FindFirstChild("KyuSound") then CreateSound() end
  657. end
  658. sound:Stop()
  659. sound.SoundId = "rbxassetid://"..TextBox3.Text
  660. sound:Play()
  661. end)
  662.  
  663. TextButton14.MouseButton1Click:connect(function()
  664. TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0)
  665. end)
  666.  
  667. TextButton33.MouseButton1Click:connect(function()
  668. if mode == "local" then
  669. mode = "global"
  670. TextButton33.Text = "GLOBAL"
  671. if char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  672. sound:Pause()
  673. sound.Parent = char
  674. sound:Resume()
  675. end
  676. else
  677. mode = "local"
  678. TextButton33.Text = "LOCAL"
  679. if char:FindFirstChild("KyuSound") then
  680. sound:Pause()
  681. sound.Parent = char:WaitForChild("Torso")
  682. sound:Resume()
  683. end
  684. end
  685. end)
  686.  
  687. for i,v in pairs(draggable) do
  688. v.MouseButton1Down:connect(function()
  689.     trigger = v
  690.     base = UDim2.new(0.5,0,0.5,mouse.y) - trigger.Position
  691.     held = true
  692. end)
  693. v.MouseButton1Up:connect(function()
  694.     base = UDim2.new(0.5,0,0.5,0)
  695.     trigger = nil
  696.     held = false
  697. end)
  698. end
  699.  
  700. mouse.Button1Up:connect(function()
  701.     base = UDim2.new(0.5,0,0.5,0)
  702.     trigger = nil
  703.     held = false
  704. end)
  705.  
  706. mouse.Move:connect(function()
  707.     if held then
  708.         trigger.Position = UDim2.new(0.5,0,0.5,mouse.y) - base
  709.         if trigger.Position.Y.Offset > 50 then
  710.         trigger.Position = UDim2.new(0.5, 0,0.5, 50)
  711.         end
  712.         if trigger.Position.Y.Offset < -50 then
  713.         trigger.Position = UDim2.new(0.5, 0,0.5, -50)
  714.         end
  715.         if trigger.Position.X.Offset ~= 0 then
  716.         trigger.Position = UDim2.new(0.5, 0,0.5, trigger.Position.Y.Offset)
  717.         end
  718.     end
  719. end)
  720. max = 0
  721. Visualiser = Instance.new("Model",char)
  722. Visualiser2 = Instance.new("Model",Visualiser)
  723. Main = Instance.new("Part",Visualiser)
  724. Main.CanCollide = false
  725. Main.Size = Vector3.new(1,1,1)
  726. Main.Transparency = 1
  727. Visualiserpos = Instance.new("Attachment",Main)
  728. Visualiserpos.Position = Vector3.new(5,0,0)
  729. bp = Instance.new("BodyPosition",Main)
  730. ba = Instance.new("BodyAngularVelocity",Main)
  731. coroutine.resume(coroutine.create(function()
  732. while wait(0.03) do
  733. block = Instance.new("Part",Visualiser2)
  734. blockm = Instance.new("BlockMesh",block)
  735. if char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  736. change = sound.PlaybackLoudness/80
  737. blockm.Scale = Vector3.new(1+change,1+change,1+change)
  738. end
  739. block.Anchored = true
  740. block.CanCollide = false
  741. block.Material = Enum.Material.Neon
  742. block.Size = Vector3.new(1,1,1)
  743. block.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  744. block.Position = Visualiserpos.WorldPosition
  745. end
  746. end))
  747. while rs:wait() do
  748. char = player.Character
  749. root = char:WaitForChild("HumanoidRootPart")
  750. if char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  751. if max < sound.PlaybackLoudness then
  752. if sound.PlaybackLoudness <= 300 then
  753. max = 300
  754. else
  755. max = sound.PlaybackLoudness
  756. end
  757. else
  758. if sound.PlaybackLoudness < 0 then
  759. max = max -1
  760. end
  761. end
  762. sound.Volume = 5-(TextButton9.Position.Y.Offset/10)
  763. sound.PlaybackSpeed = math.ceil((1-(TextButton13.Position.Y.Offset/50))*10)/10
  764. distort.Level = 0.5+(-TextButton30.Position.Y.Offset/50)
  765. effect.HighGain = -(TextButton26.Position.Y.Offset*1.2)
  766. effect.MidGain = -(TextButton22.Position.Y.Offset*1.2)
  767. effect.LowGain = -(TextButton18.Position.Y.Offset*1.2)
  768. Visualiserpos.Position = Vector3.new(5+(max/20),0,0)
  769. ba.AngularVelocity = Vector3.new(0,0.2+(max/180),0)
  770. for i,v in pairs(Visualiser2:GetChildren()) do
  771. local change = 0.1+(max/5000)
  772. v.Mesh.Scale = v.Mesh.Scale+Vector3.new(change,change,change)
  773. v.Transparency = v.Transparency + 0.05
  774. if v.Transparency >= 1 then
  775. v:Destroy()
  776. end
  777. end
  778. else
  779. Visualiserpos.Position = Vector3.new(5,0,0)
  780. ba.AngularVelocity = Vector3.new(0,0.2,0)
  781. for i,v in pairs(Visualiser2:GetChildren()) do
  782. local change = 0.1
  783. v.Mesh.Scale = v.Mesh.Scale+Vector3.new(change,change,change)
  784. v.Transparency = v.Transparency + 0.05
  785. if v.Transparency >= 1 then
  786. v:Destroy()
  787. end
  788. end
  789. end
  790. Main:BreakJoints()
  791. bp.Position = char.Head.Position+Vector3.new(0,2,0)
  792. TextButton14.Text = math.ceil((1-(TextButton13.Position.Y.Offset/50))*10)/10
  793. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement