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 = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false end
- end
- return Fake[Index]
- end;
- __tostring = function() return "Connection" end;
- })
- end}
- Fake.connect = Fake.Connect;return Fake;
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- 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
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
- end
- end
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(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:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(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 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
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[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 RealPlayer[Index](RealPlayer,...) end
- end
- return RealPlayer[Index]
- end;
- __tostring = function(self) return RealPlayer.Name end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(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 = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return Sandbox(owner) end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return RealGame:GetService(Service).Name end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(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 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
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return RealGame:GetService(Service)
- end
- end
- return function (self,...) return RealGame[Index](RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return RealGame[Index]
- end
- end
- return nil
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
- kelvar = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
- kelvar.Size = game.Players.LocalPlayer.Character.Torso.Size
- kelvar.CanCollide = false
- kelvar.Position = Vector3.new(0,10,0)
- weld = Instance.new("Weld", kelvar)
- weld.Part0 = kelvar
- weld.Part1 = game.Players.LocalPlayer.Character.Torso
- mesh = Instance.new("SpecialMesh", kelvar)
- mesh.MeshId = "http://www.roblox.com/asset/?id=108788572"
- mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
- mesh.TextureId = "http://www.roblox.com/asset/?id=290267501"
- allahuakbar1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
- allahuakbar1.Volume = 50
- allahuakbar1.PlaybackSpeed = 2.8
- allahuakbar1.SoundId = "http://www.roblox.com/asset/?id=243053454"
- allahuakbar2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
- allahuakbar2.Volume = 200
- allahuakbar2.SoundId = "rbxassetid://258057783"
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Head
- game.Workspace.CurrentCamera.CameraType = "Custom"
- print(game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0)
- mouse = game.Players.LocalPlayer:GetMouse()
- bam = false
- crash = false
- function boom(key)
- key = key:lower()
- if not bam then
- if key == "q" then
- bam = true
- allahuakbar1:Play()
- local ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
- for i = 1,10 do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,0,1)
- end
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,0,0.5) * CFrame.Angles(0.6,0,0)
- end
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,0,0.5)
- end
- for i = 1,10 do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,0,1)
- end
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local exp = Instance.new("Explosion", game.Players.LocalPlayer.Character)
- exp.Position = kelvar.Position
- exp.BlastRadius = 50
- exp.BlastPressure = 600000
- wait(2)
- ff:destroy()
- bam = false
- end
- end
- if not crash then
- if key == "e" then
- crash = true
- --local ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
- local plane = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
- game.Workspace.CurrentCamera.CameraSubject = plane
- game.Workspace.CurrentCamera.CameraType = "Watch"
- local allahuakbar3 = Instance.new("Sound", plane)
- allahuakbar3.Volume = 150
- allahuakbar3.SoundId = "rbxassetid://172992561"
- allahuakbar3:Play()
- mesh = Instance.new("SpecialMesh", plane)
- mesh.MeshId = "rbxassetid://469688087"
- mesh.TextureId = "rbxassetid://469688092"
- mesh.Scale = Vector3.new(0.4,0.4,0.6)
- plane.CanCollide = false
- plane.Anchored = true
- local tower = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
- tower.CanCollide = false
- tower.Anchored = true
- tower.Position = game.Players.LocalPlayer.Character.Torso.Position
- tower.Position = tower.Position + Vector3.new(100,0,0)
- tower.Size = Vector3.new(70,450,70)
- plane.Position = tower.Position
- plane.Position = plane.Position + Vector3.new(0,250,1000)
- tower.Position = tower.Position + Vector3.new(0,200,0)
- for i = 1,180 do
- wait()
- plane.Rotation = plane.Rotation + Vector3.new(0,0,0.2)
- plane.Position = plane.Position + Vector3.new(0,0,-4)
- end
- allahuakbar1:Play()
- for i = 1,30 do
- wait()
- plane.Rotation = plane.Rotation + Vector3.new(0,0,0.2)
- plane.Position = plane.Position + Vector3.new(0,0,-4)
- end
- allahuakbar3:destroy()
- allahuakbar2:Play()
- local bom = Instance.new("Explosion", plane)
- bom.Position = plane.Position
- bom.BlastRadius = 450
- bom.BlastPressure = 30000
- wait(1.5)
- for i = 1,120 do
- wait()
- plane.Position = plane.Position + Vector3.new(0,-2,0)
- plane.Rotation = plane.Rotation + Vector3.new(0,0,-0.2)
- end
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Head
- game.Workspace.CurrentCamera.CameraType = "Custom"
- wait()
- allahuakbar2:Play()
- local bom = Instance.new("Explosion", plane)
- bom.Position = plane.Position
- bom.BlastRadius = 450
- bom.BlastPressure = 200000
- wait(2)
- --ff:destroy()
- wait(10)
- tower:destroy()
- plane:destroy()
- crash = false
- end
- end
- end
- plr = game.Players.LocalPlayer
- rig = plr.Character.Torso
- char = plr.Character
- mouse = plr:GetMouse()
- wait(2)
- local rekt = false
- print(rig["Left Shoulder"].C0)
- sound2 = Instance.new("Sound", rig)
- sound2.SoundId = "rbxassetid://186311262"
- sound2.Volume = 10
- sound2.Looped = false
- sound3 = Instance.new("Sound", rig)
- sound3.SoundId = "rbxassetid://162194532"
- sound3.Volume = 10
- sound3.Looped = false
- sword = Instance.new("Part", char["Right Arm"])
- sword.Position = sword.Position + Vector3.new(0,10,0)
- sword.Size = Vector3.new(1, 11, 1)
- mesh = Instance.new("SpecialMesh", sword)
- mesh.MeshId = "http://www.roblox.com/asset/?id=12591873"
- mesh.TextureId = "http://www.roblox.com/asset/?id=12591860"
- weld = Instance.new("Weld", sword)
- weld.Part0 = char["Left Arm"]
- weld.Part1 = sword
- weld.C0 = weld.C0 * CFrame.Angles(0,3.3,-4.7) * CFrame.new(-1.1,0,2.1)
- sword.CanCollide = false
- mouse.KeyDown:connect(boom)
- wait(1)
- cut = false
- function headoff(machette)
- if not cut then
- cut = true
- local Head = machette.Parent:FindFirstChild("Head")
- print(Head)
- local hum = machette.Parent:FindFirstChild("Humanoid")
- hum.JumpPower = 0
- hum.WalkSpeed = 0
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- for i = 1,7 do
- wait()
- rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,0.2)
- end
- wait(1)
- for i = 1,7 do
- wait()
- rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.4)
- end
- sound2:Play()
- local w3ld = Instance.new("Weld", sword)
- w3ld.Part0 = Head
- w3ld.Part1 = sword
- wait()
- for i = 1,7 do
- wait()
- rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,0.2)
- end
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- wait(1)
- hum:destroy()
- wait(5)
- w3ld:destroy()
- wait(3)
- cut = false
- end
- end
- char["Left Arm"].Touched:connect(headoff)
- --[[
- ROOTJOINT: 0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement