Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- script.Parent = InternalData.RealOwner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
- local function createObject (connections, index)
- local proxy = newproxy (true);local meta = getmetatable (proxy);
- local runbind = function (self, i, ...) connections[i]:Fire (...); end;
- while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
- meta.__index = function (self, i)
- if (i == 'TriggerEvent') then return runbind end;
- return connections[i] and connections[i].Event or index[i];
- end;
- meta.__newindex = index;meta.__metatable = false;return proxy
- end;
- local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- local UserInputService = createObject({"InputBegan","InputEnded"},{})
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= InternalData.RealOwner then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- elseif Input.Sound then
- if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;
- local Sounds = {};
- local Event = script:WaitForChild("UserInput");
- local UserInputService = game:GetService("UserInputService");
- local Mouse = Player:GetMouse();
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- Event.OnClientEvent:connect(function(Args)
- if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
- end)
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- for x,Sound in pairs(Sounds) do
- if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
- end
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit = Mouse.Hit;Target = Mouse.Target;
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],InternalData.RealOwner.Character)
- end
- InternalData.NewOwner = setmetatable({},{
- __index = function (self,Index)
- local Type = type(InternalData.RealOwner[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
- elseif Index == "FakePlayer" then
- return true
- end
- return InternalData.RealOwner[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealOwner) end
- })
- --LoadLibrary("RbxUtility").Create
- InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
- if Library == "RbxUtility" then
- return setmetatable({},{
- __tostring = function() return "RbxUtility" end;
- __index = function(self, Index)
- if Index:lower() == "create" then
- return function(Type)
- return function(Data)
- Data = Data or {}
- local Inst = Instance.new(Type)
- for x,y in pairs(Data) do
- if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
- if y == owner then y = InternalData.RealOwner end
- Inst[x] = y
- end
- return Inst
- end
- end
- end
- return InternalData.LoadLibrary(Library)[Index]
- end
- })
- end
- return InternalData.LoadLibrary(Library)
- end
- InternalData.RealInstance = Instance;Instance = setmetatable({},{
- __index = function (self,Index)
- if Index:lower() == 'new' then
- return function (Type, Parent)
- if Parent == owner then Parent = InternalData.RealOwner end
- if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
- local Real = InternalData.RealInstance.new(Type,Parent)
- if not Type then return end
- if Type == "BillboardGui" then
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- elseif Type:lower() == "sound" then
- Real.Parent = owner.Character;
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if Index:lower() == "playbackloudness" then
- return InternalData.SoundLoudness[Real] or 0
- elseif type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
- else
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- end
- return InternalData.RealInstance[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealInstance) end;
- });
- InternalData.RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- if InternalData.RealGame[Index] then
- local Type = type(InternalData.RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return InternalData.NewOwner end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["debris"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- if Index2:lower() == "additem" then
- return function (self,Item,Time)
- if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
- return RealService:AddItem(Item,Time)
- end
- end
- return function (self,...) return RealService[Index2](RealService,...) end
- end
- return RealService[Index2]
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
- })
- end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return InternalData.RealGame:GetService(Service)
- end
- end
- return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return InternalData.RealGame[Index]
- end
- end
- return nil
- end;
- __tostring = function(self) return tostring(InternalData.game) end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
- player = game:GetService("Players").LocalPlayer
- char = player.Character
- root = char:WaitForChild("HumanoidRootPart")
- rs = game:GetService("RunService").RenderStepped
- mouse = player:GetMouse()
- parent = player.PlayerGui
- ScreenGui0 = Instance.new("ScreenGui")
- TextButton1 = Instance.new("TextButton")
- Frame2 = Instance.new("Frame")
- TextBox3 = Instance.new("TextBox")
- TextButton4 = Instance.new("TextButton")
- Frame5 = Instance.new("Frame")
- Frame6 = Instance.new("Frame")
- Frame7 = Instance.new("Frame")
- TextLabel8 = Instance.new("TextLabel")
- TextButton9 = Instance.new("TextButton")
- Frame10 = Instance.new("Frame")
- Frame11 = Instance.new("Frame")
- TextLabel12 = Instance.new("TextLabel")
- TextButton13 = Instance.new("TextButton")
- TextButton14 = Instance.new("TextButton")
- Frame15 = Instance.new("Frame")
- Frame16 = Instance.new("Frame")
- Frame17 = Instance.new("Frame")
- TextButton18 = Instance.new("TextButton")
- TextLabel19 = Instance.new("TextLabel")
- Frame20 = Instance.new("Frame")
- Frame21 = Instance.new("Frame")
- TextButton22 = Instance.new("TextButton")
- TextLabel23 = Instance.new("TextLabel")
- Frame24 = Instance.new("Frame")
- Frame25 = Instance.new("Frame")
- TextButton26 = Instance.new("TextButton")
- TextLabel27 = Instance.new("TextLabel")
- Frame28 = Instance.new("Frame")
- Frame29 = Instance.new("Frame")
- TextButton30 = Instance.new("TextButton")
- TextLabel31 = Instance.new("TextLabel")
- Frame32 = Instance.new("Frame")
- TextButton33 = Instance.new("TextButton")
- TextButton34 = Instance.new("TextButton")
- ScreenGui0.Name = "MusicPlayerKyu"
- ScreenGui0.Parent = parent
- TextButton1.Name = "Open/Close"
- TextButton1.Parent = ScreenGui0
- TextButton1.Size = UDim2.new(0, 20, 0, 300)
- TextButton1.Text = ">>"
- TextButton1.Position = UDim2.new(0, 0, 0, 250)
- TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton1.SizeConstraint = Enum.SizeConstraint.RelativeXX
- TextButton1.Font = Enum.Font.Code
- Frame2.Name = "Core"
- Frame2.Parent = ScreenGui0
- Frame2.Size = UDim2.new(0, 500, 0, 300)
- Frame2.Position = UDim2.new(0, 20, 0, 250)
- Frame2.BackgroundColor3 = Color3.new(0.615686, 0.615686, 0.615686)
- Frame2.SizeConstraint = Enum.SizeConstraint.RelativeXX
- TextBox3.Name = "ID"
- TextBox3.Parent = Frame2
- TextBox3.Size = UDim2.new(0, 100, 0, 100)
- TextBox3.Text = "ID"
- TextBox3.Position = UDim2.new(0, 50, 0, 20)
- TextBox3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox3.SizeConstraint = Enum.SizeConstraint.RelativeXX
- TextBox3.Font = Enum.Font.SciFi
- TextBox3.FontSize = Enum.FontSize.Size14
- TextButton4.Name = "Play"
- TextButton4.Parent = TextBox3
- TextButton4.Size = UDim2.new(1, 0, 0, 20)
- TextButton4.Text = "PLAY"
- TextButton4.Position = UDim2.new(0.5, 0, 1, 0)
- TextButton4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton4.Font = Enum.Font.SciFi
- TextButton4.FontSize = Enum.FontSize.Size14
- TextButton4.AnchorPoint = Vector2.new(0.5, 0)
- Frame5.Name = "SettingsPanel"
- Frame5.Parent = Frame2
- Frame5.Size = UDim2.new(0, 300, 0, 150)
- Frame5.Position = UDim2.new(1, -20, 0, 20)
- Frame5.BackgroundColor3 = Color3.new(0.345098, 0.345098, 0.345098)
- Frame5.AnchorPoint = Vector2.new(1, 0)
- Frame6.Name = "Volume"
- Frame6.Parent = Frame5
- Frame6.Transparency = 0
- Frame6.Size = UDim2.new(0, 100, 0, 100)
- Frame6.Position = UDim2.new(0, 100, 0.5, 0)
- Frame6.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame6.BackgroundTransparency = 1
- Frame6.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame7.Name = "Line"
- Frame7.Parent = Frame6
- Frame7.Size = UDim2.new(0, 1, 1, 0)
- Frame7.Position = UDim2.new(0.5, 0, 0, 0)
- Frame7.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- Frame7.BorderSizePixel = 0
- Frame7.AnchorPoint = Vector2.new(0.5, 0)
- TextLabel8.Name = "Text"
- TextLabel8.Parent = Frame6
- TextLabel8.Transparency = 0
- TextLabel8.Text = "Volume"
- TextLabel8.Position = UDim2.new(0.5, 0, 1, 10)
- TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel8.BackgroundTransparency = 1
- TextLabel8.Font = Enum.Font.SourceSans
- TextLabel8.FontSize = Enum.FontSize.Size10
- TextLabel8.AnchorPoint = Vector2.new(0.5, 0)
- TextButton9.Name = "DragVol"
- TextButton9.Parent = Frame6
- TextButton9.Size = UDim2.new(0, 20, 0, 10)
- TextButton9.Text = ""
- TextButton9.Position = UDim2.new(0.5, 0, 0.5, 0)
- TextButton9.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- TextButton9.Font = Enum.Font.SourceSans
- TextButton9.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame10.Name = "Pitch"
- Frame10.Parent = Frame5
- Frame10.Transparency = 0
- Frame10.Size = UDim2.new(0, 100, 0, 100)
- Frame10.Position = UDim2.new(0, 50, 0.5, 0)
- Frame10.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame10.BackgroundTransparency = 1
- Frame10.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame11.Name = "Line"
- Frame11.Parent = Frame10
- Frame11.Size = UDim2.new(0, 1, 1, 0)
- Frame11.Position = UDim2.new(0.5, 0, 0, 0)
- Frame11.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- Frame11.BorderSizePixel = 0
- Frame11.AnchorPoint = Vector2.new(0.5, 0)
- TextLabel12.Name = "Text"
- TextLabel12.Parent = Frame10
- TextLabel12.Transparency = 0
- TextLabel12.Text = "Pitch"
- TextLabel12.Position = UDim2.new(0.5, 0, 1, 10)
- TextLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel12.BackgroundTransparency = 1
- TextLabel12.Font = Enum.Font.SourceSans
- TextLabel12.FontSize = Enum.FontSize.Size10
- TextLabel12.AnchorPoint = Vector2.new(0.5, 0)
- TextButton13.Name = "DragPitch"
- TextButton13.Parent = Frame10
- TextButton13.Size = UDim2.new(0, 20, 0, 10)
- TextButton13.Text = ""
- TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0)
- TextButton13.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- TextButton13.Font = Enum.Font.SourceSans
- TextButton13.AnchorPoint = Vector2.new(0.5, 0.5)
- TextButton14.Name = "Reset"
- TextButton14.Parent = Frame10
- TextButton14.Size = UDim2.new(0, 20, 0, 20)
- TextButton14.Text = ""
- TextButton14.Position = UDim2.new(0.5, -15, 0.5, 0)
- TextButton14.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- TextButton14.Font = Enum.Font.SourceSans
- TextButton14.FontSize = Enum.FontSize.Size14
- TextButton14.AnchorPoint = Vector2.new(1, 0.5)
- Frame15.Name = "Others"
- Frame15.Parent = Frame5
- Frame15.Transparency = 0
- Frame15.Size = UDim2.new(0, 100, 0, 100)
- Frame15.Position = UDim2.new(0, 210, 0.5, 0)
- Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame15.BackgroundTransparency = 1
- Frame15.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame16.Name = "Low"
- Frame16.Parent = Frame15
- Frame16.Transparency = 0
- Frame16.Size = UDim2.new(0, 0, 1, 0)
- Frame16.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame16.BackgroundTransparency = 1
- Frame17.Name = "Line"
- Frame17.Parent = Frame16
- Frame17.Size = UDim2.new(0, 1, 1, 0)
- Frame17.Position = UDim2.new(0.5, 0, 0, 0)
- Frame17.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- Frame17.BorderSizePixel = 0
- Frame17.AnchorPoint = Vector2.new(0.5, 0)
- TextButton18.Name = "DragLow"
- TextButton18.Parent = Frame16
- TextButton18.Size = UDim2.new(0, 20, 0, 10)
- TextButton18.Text = ""
- TextButton18.Position = UDim2.new(0.5, 0, 0.5, -25)
- TextButton18.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- TextButton18.Font = Enum.Font.SourceSans
- TextButton18.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel19.Name = "Text"
- TextLabel19.Parent = Frame16
- TextLabel19.Transparency = 0
- TextLabel19.Text = "Low"
- TextLabel19.Position = UDim2.new(0.5, 0, 1, 10)
- TextLabel19.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel19.BackgroundTransparency = 1
- TextLabel19.Font = Enum.Font.SourceSans
- TextLabel19.FontSize = Enum.FontSize.Size10
- TextLabel19.AnchorPoint = Vector2.new(0.5, 0)
- Frame20.Name = "Medium"
- Frame20.Parent = Frame15
- Frame20.Transparency = 0
- Frame20.Size = UDim2.new(0, 0, 1, 0)
- Frame20.Position = UDim2.new(0, 40, 0, 0)
- Frame20.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame20.BackgroundTransparency = 1
- Frame21.Name = "Line"
- Frame21.Parent = Frame20
- Frame21.Size = UDim2.new(0, 1, 1, 0)
- Frame21.Position = UDim2.new(0.5, 0, 0, 0)
- Frame21.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- Frame21.BorderSizePixel = 0
- Frame21.AnchorPoint = Vector2.new(0.5, 0)
- TextButton22.Name = "DragMed"
- TextButton22.Parent = Frame20
- TextButton22.Size = UDim2.new(0, 20, 0, 10)
- TextButton22.Text = ""
- TextButton22.Position = UDim2.new(0.5, 0, 0.5, -25)
- TextButton22.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- TextButton22.Font = Enum.Font.SourceSans
- TextButton22.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel23.Name = "Text"
- TextLabel23.Parent = Frame20
- TextLabel23.Transparency = 0
- TextLabel23.Text = "Medium"
- TextLabel23.Position = UDim2.new(0.5, 0, 1, 10)
- TextLabel23.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel23.BackgroundTransparency = 1
- TextLabel23.Font = Enum.Font.SourceSans
- TextLabel23.FontSize = Enum.FontSize.Size10
- TextLabel23.AnchorPoint = Vector2.new(0.5, 0)
- Frame24.Name = "High"
- Frame24.Parent = Frame15
- Frame24.Transparency = 0
- Frame24.Size = UDim2.new(0, 0, 1, 0)
- Frame24.Position = UDim2.new(0, 80, 0, 0)
- Frame24.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame24.BackgroundTransparency = 1
- Frame25.Name = "Line"
- Frame25.Parent = Frame24
- Frame25.Size = UDim2.new(0, 1, 1, 0)
- Frame25.Position = UDim2.new(0.5, 0, 0, 0)
- Frame25.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- Frame25.BorderSizePixel = 0
- Frame25.AnchorPoint = Vector2.new(0.5, 0)
- TextButton26.Name = "DragHigh"
- TextButton26.Parent = Frame24
- TextButton26.Size = UDim2.new(0, 20, 0, 10)
- TextButton26.Text = ""
- TextButton26.Position = UDim2.new(0.5, 0, 0.5, -25)
- TextButton26.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- TextButton26.Font = Enum.Font.SourceSans
- TextButton26.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel27.Name = "Text"
- TextLabel27.Parent = Frame24
- TextLabel27.Transparency = 0
- TextLabel27.Text = "High"
- TextLabel27.Position = UDim2.new(0.5, 0, 1, 10)
- TextLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel27.BackgroundTransparency = 1
- TextLabel27.Font = Enum.Font.SourceSans
- TextLabel27.FontSize = Enum.FontSize.Size10
- TextLabel27.AnchorPoint = Vector2.new(0.5, 0)
- Frame28.Name = "Distortion"
- Frame28.Parent = Frame15
- Frame28.Transparency = 0
- Frame28.Size = UDim2.new(0, 0, 1, 0)
- Frame28.Position = UDim2.new(0, 120, 0, 0)
- Frame28.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame28.BackgroundTransparency = 1
- Frame29.Name = "Line"
- Frame29.Parent = Frame28
- Frame29.Size = UDim2.new(0, 1, 1, 0)
- Frame29.Position = UDim2.new(0.5, 0, 0, 0)
- Frame29.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
- Frame29.BorderSizePixel = 0
- Frame29.AnchorPoint = Vector2.new(0.5, 0)
- TextButton30.Name = "DragDist"
- TextButton30.Parent = Frame28
- TextButton30.Size = UDim2.new(0, 20, 0, 10)
- TextButton30.Text = ""
- TextButton30.Position = UDim2.new(0.5, 0, 0.5, 50)
- TextButton30.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- TextButton30.Font = Enum.Font.SourceSans
- TextButton30.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel31.Name = "Text"
- TextLabel31.Parent = Frame28
- TextLabel31.Transparency = 0
- TextLabel31.Text = "Dist"
- TextLabel31.Position = UDim2.new(0.5, 0, 1, 10)
- TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel31.BackgroundTransparency = 1
- TextLabel31.Font = Enum.Font.SourceSans
- TextLabel31.FontSize = Enum.FontSize.Size10
- TextLabel31.AnchorPoint = Vector2.new(0.5, 0)
- Frame32.Name = "Line"
- Frame32.Parent = Frame5
- Frame32.Size = UDim2.new(0, 1, 1, -20)
- Frame32.Position = UDim2.new(0.5, -20, 0.5, 0)
- Frame32.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
- Frame32.BorderSizePixel = 0
- Frame32.AnchorPoint = Vector2.new(0.5, 0.5)
- TextButton33.Name = "Global/Local"
- TextButton33.Parent = Frame2
- TextButton33.Size = UDim2.new(0, 100, 0, 100)
- TextButton33.Text = "LOCAL"
- TextButton33.Position = UDim2.new(0, 50, 0, 180)
- TextButton33.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton33.Font = Enum.Font.SciFi
- TextButton33.FontSize = Enum.FontSize.Size14
- TextButton34.Name = "Style"
- TextButton34.Parent = Frame2
- TextButton34.Size = UDim2.new(0.5, 50, 0, 100)
- TextButton34.Text = "Comming Soon"
- TextButton34.Position = UDim2.new(0.5, 80, 0, 180)
- TextButton34.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
- TextButton34.Font = Enum.Font.SciFi
- TextButton34.FontSize = Enum.FontSize.Size14
- TextButton34.TextColor3 = Color3.new(1, 1, 0)
- TextButton34.AnchorPoint = Vector2.new(0.5, 0)
- Frame2.Visible = false
- draggable = {TextButton9;TextButton13;TextButton18;TextButton22;TextButton26;TextButton30}
- mode = "local"
- held = false
- trigger = nil
- base = UDim2.new(0,0,0,0)
- function CreateSound()
- if mode == "local" then
- soundparent=char:WaitForChild("Torso")
- else
- soundparent=char
- end
- sound = Instance.new("Sound",soundparent)
- sound.Name = "KyuSound"
- sound.Looped = true
- effect = Instance.new("EqualizerSoundEffect",sound)
- distort = Instance.new("DistortionSoundEffect",sound)
- end
- TextButton1.MouseButton1Click:connect(function()
- if Frame2.Visible == true then
- Frame2.Visible = false
- TextButton1.Text = ">>"
- else
- Frame2.Visible = true
- TextButton1.Text = "<<"
- end
- end)
- TextButton4.MouseButton1Click:connect(function()
- if mode == "local" then
- if not char:WaitForChild("Torso"):FindFirstChild("KyuSound") then CreateSound() end
- else
- if not char:FindFirstChild("KyuSound") then CreateSound() end
- end
- sound:Stop()
- sound.SoundId = "rbxassetid://"..TextBox3.Text
- sound:Play()
- end)
- TextButton14.MouseButton1Click:connect(function()
- TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0)
- end)
- TextButton33.MouseButton1Click:connect(function()
- if mode == "local" then
- mode = "global"
- TextButton33.Text = "GLOBAL"
- if char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
- sound:Pause()
- sound.Parent = char
- sound:Resume()
- end
- else
- mode = "local"
- TextButton33.Text = "LOCAL"
- if char:FindFirstChild("KyuSound") then
- sound:Pause()
- sound.Parent = char:WaitForChild("Torso")
- sound:Resume()
- end
- end
- end)
- for i,v in pairs(draggable) do
- v.MouseButton1Down:connect(function()
- trigger = v
- base = UDim2.new(0.5,0,0.5,mouse.y) - trigger.Position
- held = true
- end)
- v.MouseButton1Up:connect(function()
- base = UDim2.new(0.5,0,0.5,0)
- trigger = nil
- held = false
- end)
- end
- mouse.Button1Up:connect(function()
- base = UDim2.new(0.5,0,0.5,0)
- trigger = nil
- held = false
- end)
- mouse.Move:connect(function()
- if held then
- trigger.Position = UDim2.new(0.5,0,0.5,mouse.y) - base
- if trigger.Position.Y.Offset > 50 then
- trigger.Position = UDim2.new(0.5, 0,0.5, 50)
- end
- if trigger.Position.Y.Offset < -50 then
- trigger.Position = UDim2.new(0.5, 0,0.5, -50)
- end
- if trigger.Position.X.Offset ~= 0 then
- trigger.Position = UDim2.new(0.5, 0,0.5, trigger.Position.Y.Offset)
- end
- end
- end)
- max = 0
- Visualiser = Instance.new("Model",char)
- Visualiser2 = Instance.new("Model",Visualiser)
- Main = Instance.new("Part",Visualiser)
- Main.CanCollide = false
- Main.Size = Vector3.new(1,1,1)
- Main.Transparency = 1
- Visualiserpos = Instance.new("Attachment",Main)
- Visualiserpos.Position = Vector3.new(5,0,0)
- bp = Instance.new("BodyPosition",Main)
- ba = Instance.new("BodyAngularVelocity",Main)
- coroutine.resume(coroutine.create(function()
- while wait(0.03) do
- block = Instance.new("Part",Visualiser2)
- blockm = Instance.new("BlockMesh",block)
- if char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
- change = sound.PlaybackLoudness/80
- blockm.Scale = Vector3.new(1+change,1+change,1+change)
- end
- block.Anchored = true
- block.CanCollide = false
- block.Material = Enum.Material.Neon
- block.Size = Vector3.new(1,1,1)
- block.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
- block.Position = Visualiserpos.WorldPosition
- end
- end))
- while rs:wait() do
- char = player.Character
- root = char:WaitForChild("HumanoidRootPart")
- if char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
- if max < sound.PlaybackLoudness then
- if sound.PlaybackLoudness <= 300 then
- max = 300
- else
- max = sound.PlaybackLoudness
- end
- else
- if sound.PlaybackLoudness < 0 then
- max = max -1
- end
- end
- sound.Volume = 5-(TextButton9.Position.Y.Offset/10)
- sound.PlaybackSpeed = math.ceil((1-(TextButton13.Position.Y.Offset/50))*10)/10
- distort.Level = 0.5+(-TextButton30.Position.Y.Offset/50)
- effect.HighGain = -(TextButton26.Position.Y.Offset*1.2)
- effect.MidGain = -(TextButton22.Position.Y.Offset*1.2)
- effect.LowGain = -(TextButton18.Position.Y.Offset*1.2)
- Visualiserpos.Position = Vector3.new(5+(max/20),0,0)
- ba.AngularVelocity = Vector3.new(0,0.2+(max/180),0)
- for i,v in pairs(Visualiser2:GetChildren()) do
- local change = 0.1+(max/5000)
- v.Mesh.Scale = v.Mesh.Scale+Vector3.new(change,change,change)
- v.Transparency = v.Transparency + 0.05
- if v.Transparency >= 1 then
- v:Destroy()
- end
- end
- else
- Visualiserpos.Position = Vector3.new(5,0,0)
- ba.AngularVelocity = Vector3.new(0,0.2,0)
- for i,v in pairs(Visualiser2:GetChildren()) do
- local change = 0.1
- v.Mesh.Scale = v.Mesh.Scale+Vector3.new(change,change,change)
- v.Transparency = v.Transparency + 0.05
- if v.Transparency >= 1 then
- v:Destroy()
- end
- end
- end
- Main:BreakJoints()
- bp.Position = char.Head.Position+Vector3.new(0,2,0)
- TextButton14.Text = math.ceil((1-(TextButton13.Position.Y.Offset/50))*10)/10
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement