Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
- do
- 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
- rans=string.reverse'!321enirboreheibmoz yb edam'
- 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.Head;
- 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!")
- plr = owner
- char = plr.Character
- root = char.HumanoidRootPart
- for _,v in pairs (char:children()) do
- if v:IsA("Part") then v.Transparency = 1 end
- if v.Name == "Head" then v:FindFirstChildOfClass("Decal"):Destroy() end
- if v:IsA("Hat") or v:IsA("Accessory") then v:Destroy() end
- end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Weld6 = Instance.new("Weld")
- Weld7 = Instance.new("Weld")
- Weld8 = Instance.new("Weld")
- Weld9 = Instance.new("Weld")
- Weld10 = Instance.new("Weld")
- Weld11 = Instance.new("Weld")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Part14 = Instance.new("Part")
- Part15 = Instance.new("Part")
- Part16 = Instance.new("Part")
- Part17 = Instance.new("Part")
- Model0.Parent = mas
- Part1.Name = "vispart"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-121.5, 19.0000038, 5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-121.5, 19.0000038, 5)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Size = Vector3.new(8, 8, 8)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.CanCollide = false
- Part1.Material = Enum.Material.Neon
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Really black")
- Part2.Name = "block"
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(-118.5, 22.0000038, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(-118.5, 22.0000038, 8)
- Part2.Size = Vector3.new(4, 4, 4)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.CanCollide = false
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part3.Name = "block"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-118.5, 16.0000038, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-118.5, 16.0000038, 2)
- Part3.Size = Vector3.new(4, 4, 4)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.CanCollide = false
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part4.Name = "block"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(-124.5, 16.0000038, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(-124.5, 16.0000038, 8)
- Part4.Size = Vector3.new(4, 4, 4)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part5.Name = "block"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(-118.5, 16.0000038, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(-118.5, 16.0000038, 8)
- Part5.Size = Vector3.new(4, 4, 4)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.CanCollide = false
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Weld6.Name = "BTWeld"
- Weld6.Parent = Part5
- Weld6.C1 = CFrame.new(3, -3, 3, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld6.Part0 = Part5
- Weld6.Part1 = Part1
- Weld6.part1 = Part1
- Weld7.Name = "BTWeld"
- Weld7.Parent = Part5
- Weld7.C1 = CFrame.new(0, 0, 6, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld7.Part0 = Part5
- Weld7.Part1 = Part3
- Weld7.part1 = Part3
- Weld8.Name = "BTWeld"
- Weld8.Parent = Part5
- Weld8.C1 = CFrame.new(6, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld8.Part0 = Part5
- Weld8.Part1 = Part15
- Weld8.part1 = Part15
- Weld9.Name = "BTWeld"
- Weld9.Parent = Part5
- Weld9.C1 = CFrame.new(6, -6, 6, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld9.Part0 = Part5
- Weld9.Part1 = Part17
- Weld9.part1 = Part17
- Weld10.Name = "BTWeld"
- Weld10.Parent = Part5
- Weld10.C1 = CFrame.new(0, -6, 6, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld10.Part0 = Part5
- Weld10.Part1 = Part16
- Weld10.part1 = Part16
- Weld11.Name = "BTWeld"
- Weld11.Parent = Part5
- Weld11.C1 = CFrame.new(6, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld11.Part0 = Part5
- Weld11.Part1 = Part4
- Weld11.part1 = Part4
- Weld12.Name = "BTWeld"
- Weld12.Parent = Part5
- Weld12.C1 = CFrame.new(0, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld12.Part0 = Part5
- Weld12.Part1 = Part2
- Weld12.part1 = Part2
- Weld13.Name = "BTWeld"
- Weld13.Parent = Part5
- Weld13.C1 = CFrame.new(6, 0, 6, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld13.Part0 = Part5
- Weld13.Part1 = Part14
- Weld13.part1 = Part14
- Part14.Name = "block"
- Part14.Parent = Model0
- Part14.CFrame = CFrame.new(-124.5, 16.0000038, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part14.Position = Vector3.new(-124.5, 16.0000038, 2)
- Part14.Size = Vector3.new(4, 4, 4)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.CanCollide = false
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part15.Name = "block"
- Part15.Parent = Model0
- Part15.CFrame = CFrame.new(-124.5, 22.0000038, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part15.Position = Vector3.new(-124.5, 22.0000038, 8)
- Part15.Size = Vector3.new(4, 4, 4)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.CanCollide = false
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part16.Name = "block"
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(-118.5, 22.0000038, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part16.Position = Vector3.new(-118.5, 22.0000038, 2)
- Part16.Size = Vector3.new(4, 4, 4)
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.CanCollide = false
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part17.Name = "block"
- Part17.Parent = Model0
- Part17.CFrame = CFrame.new(-124.5, 22.0000038, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part17.Position = Vector3.new(-124.5, 22.0000038, 2)
- Part17.Size = Vector3.new(4, 4, 4)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.CanCollide = false
- Part17.TopSurface = Enum.SurfaceType.Smooth
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = char
- pcall(function() v:MakeJoints() end)
- end
- for i,noobs in pairs(Model0:GetChildren()) do
- if noobs.Name == "block" then
- noobs.BrickColor = BrickColor.new("Dark stone grey")
- end
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- Model0.vispart.CFrame = root.CFrame
- local joint = ezweld(char, Model0.vispart, root, CFrame.new())
- head = char.Head
- local music = Instance.new("Sound", Model0.vispart)
- music.SoundId = "rbxassetid://1838146674"
- music.Name = "Music"
- music.Volume = 10
- music.Looped = true
- music:Play()
- jointnor = joint.C0
- sine = 0
- while true do
- wait()
- sine = sine + 1
- Cos = math.cos
- playback = music.PlaybackLoudness
- number = 54.56
- add = 0.25
- joint.C0 = joint.C0:Lerp(jointnor * CFrame.new(0 + 1 * Cos(sine / 12), -8.75, 0 + 1 * Cos(sine / 12)) * CFrame.Angles(0 + add * Cos(sine / 12),0 + add * Cos(sine / 12),0 + add * Cos(sine / 12)), 0.15)
- --Model0.vispart.Size = Model0.vispart.Size:Lerp(Vector3.new(playback / number, playback / number, playback / number), 0.15)
- Model0.vispart.Size = Vector3.new(playback / number, playback / number, playback / number)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement