Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end name = "timetodie23232223"
- player = game.Players:findFirstChild(name)
- char = player.Character
- local tor = char:FindFirstChild("Torso")
- local ra = char:FindFirstChild("Right Arm")
- local la = char:FindFirstChild("Left Arm")
- local rl = char:FindFirstChild("Right Leg")
- local ll = char:FindFirstChild("Left Leg")
- local h = char:FindFirstChild("Head")
- ToolName = "EnderAttack"
- b = Instance.new("BlockMesh")
- motor = "Motor6D"
- char.Torso.CFrame = char.Torso.CFrame + Vector3.new(0, 10, 0)
- bm = Instance.new("BlockMesh")
- for _,v in pairs(char:children()) do
- if v:IsA("Hat") then
- v:remove()
- end
- end
- h.Transparency = 1
- allchar = char:GetChildren()
- for i = 1, #allchar do
- if allchar[i]:IsA("Shirt") then
- allchar[i]:Remove()
- end
- end
- allchar = char:GetChildren()
- for i = 1, #allchar do
- if allchar[i]:IsA("Pants") then
- allchar[i]:Remove()
- end
- end
- ----------------------------------Head
- if char:findFirstChild("EnderHead") then
- char:findFirstChild("EnderHead"):Remove()
- end
- local enderm = Instance.new("Model", char)
- enderm.Name = "EnderHead"
- head2 = Instance.new("Part",enderm)
- head2.formFactor = "Custom"
- head2.CFrame = h.CFrame
- head2.Size = Vector3.new(2.5,2.1,2.5)
- head2.TopSurface = 0
- head2.BottomSurface = 0
- head2.BrickColor = BrickColor.new("Really black")
- head2.Anchored = false
- head2.CanCollide = false
- local cbm = bm:Clone()
- cbm.Parent = head2
- headweld = Instance.new("Weld",h)
- headweld.Part0 = h
- headweld.Part1 = head2
- headweld.C0 = CFrame.new(0, 0.25, 0)
- eye1 = Instance.new("Part",enderm)
- eye1.formFactor = "Custom"
- eye1.CFrame = h.CFrame
- eye1.Size = Vector3.new(.75,.2,.3)
- eye1.TopSurface = 0
- eye1.BottomSurface = 0
- eye1.BrickColor = BrickColor.new("Lavender")
- eye1.Anchored = false
- eye1.CanCollide = false
- local cbm = bm:Clone()
- cbm.Parent = eye1
- eye1weld = Instance.new("Weld",h)
- eye1weld.Part0 = h
- eye1weld.Part1 = eye1
- eye1weld.C0 = CFrame.new(-0.6,0.45,-1.2)
- eye2 = Instance.new("Part",enderm)
- eye2.formFactor = "Custom"
- eye2.CFrame = h.CFrame
- eye2.Size = Vector3.new(.75,0.2,0.3)
- eye2.TopSurface = 0
- eye2.BottomSurface = 0
- eye2.BrickColor = BrickColor.new("Lavender")
- eye2.Anchored = false
- eye2.CanCollide = false
- local cbm = bm:Clone()
- cbm.Parent = eye2
- eye2weld = Instance.new("Weld",h)
- eye2weld.Part0 = h
- eye2weld.Part1 = eye2
- eye2weld.C0 = CFrame.new(0.6,0.45,-1.2)
- eye3 = Instance.new("Part",enderm)
- eye3.formFactor = "Custom"
- eye3.CFrame = h.CFrame
- eye3.Size = Vector3.new(.25,0.21,0)
- eye3.TopSurface = 0
- eye3.BottomSurface = 0
- eye3.BrickColor = BrickColor.new("Bright violet")
- eye3.Anchored = false
- eye3.CanCollide = false
- local cbm = bm:Clone()
- cbm.Parent = eye3
- eye3weld = Instance.new("Weld",h)
- eye3weld.Part0 = h
- eye3weld.Part1 = eye3
- eye3weld.C0 = CFrame.new(0.6,0.45,-1.3)
- eye4 = Instance.new("Part",enderm)
- eye4.formFactor = "Custom"
- eye4.CFrame = h.CFrame
- eye4.Size = Vector3.new(.25,0.21,0)
- eye4.TopSurface = 0
- eye4.BottomSurface = 0
- eye4.BrickColor = BrickColor.new("Bright violet")
- eye4.Anchored = false
- eye4.CanCollide = false
- local cbm = bm:Clone()
- cbm.Parent = eye4
- eye4weld = Instance.new("Weld",h)
- eye4weld.Part0 = h
- eye4weld.Part1 = eye4
- eye4weld.C0 = CFrame.new(-0.6,0.45,-1.3)
- ------------------End Of Head, Start Of Body
- scale = 2
- if ll then
- ll.formFactor = 3
- ll.Size = Vector3.new(0.5,2*scale,0.5)
- ll.CFrame = ll.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
- local bc = b:Clone()
- bc.Parent = ll
- end
- if ra then
- ra.formFactor = 3
- ra.Size = Vector3.new(0.5,1.75*scale,0.5)
- local bc = b:Clone()
- bc.Parent = ra
- end
- if la then
- la.formFactor = 3
- la.Size = Vector3.new(0.5,1.75*scale,0.5)
- local bc = b:Clone()
- bc.Parent = la
- end
- if tor then
- local bc = b:Clone()
- bc.Parent = tor
- bc.Scale = Vector3.new(1.05, 1.25, 1.2)
- end
- if rl then
- rl.formFactor = 3
- rl.Size = Vector3.new(0.5,2*scale,0.5)
- local bc = b:Clone()
- bc.Parent = rl
- end
- local rh = Instance.new(motor)
- rh.Name = "Right Hip"
- rh.MaxVelocity = 0.1
- rh.Part0 = tor
- rh.Part1 = rl
- rh.C0 = CFrame.new(0.75*scale, -1*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rh.C1 = CFrame.new(0.55*scale, 1*1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rh.Parent = tor
- local lh = Instance.new(motor)
- lh.Name = "Left Hip"
- lh.MaxVelocity = 0.1
- lh.Part0 = tor
- lh.Part1 = ll
- lh.C0 = CFrame.new(-0.75*scale, -1*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- lh.C1 = CFrame.new(-0.55*scale, 1*1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- lh.Parent = tor
- local rs = Instance.new(motor)
- rs.Name = "Right Shoulder"
- rs.MaxVelocity = 0.1
- rs.Part0 = tor
- rs.Part1 = ra
- rs.C0 = CFrame.new(1*scale, 0.5*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(0.35*scale, 1*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.Parent = tor
- local ls = Instance.new(motor)
- ls.Name = "Left Shoulder"
- ls.MaxVelocity = 0.1
- ls.Part0 = tor
- ls.Part1 = la
- ls.C0 = CFrame.new(1*scale, 0.5*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- ls.C1 = CFrame.new(1.65*scale, 1*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- ls.Parent = tor
- local anim = char:FindFirstChild("Animate")
- if anim then
- local new = anim:clone()
- anim:Remove()
- new.Parent = char
- end
- -----------End
- while true do
- wait()
- local allchar = char:GetChildren()
- for i = 1, #allchar do
- if allchar[i]:IsA("Part") then
- allchar[i].BrickColor = BrickColor.new("Really black")
- end
- end
- end
- mouse = game.Players.LocalPlayer:GetMouse()
- used = false
- attacking = false
- smashing = false
- kick = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
- kick.SoundId = "rbxassetid://507150998"
- kick.Volume = 6
- kick1 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
- kick1.SoundId = "rbxassetid://169380525"
- kick1.Volume = 6
- kick11 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
- kick11.SoundId = "rbxassetid://165969964"
- kick11.Volume = 50
- function sensor(key)
- key = key:lower()
- if key == "e" then
- if not used then
- used = true
- local detect = Instance.new("Part", game.Players.LocalPlayer.Character)
- detect.Size = Vector3.new(1,1,4)
- detect:BreakJoints()
- detect.CanCollide = false
- detect.Transparency = 0.9
- detect.BrickColor = BrickColor.new("Really red")
- local weld = Instance.new("Weld", detect)
- weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.Part1 = detect
- weld.C0 = weld.C0 * CFrame.new(0,-1,0)
- local function attack(part)
- if not attacking then
- attacking = true
- local torso = part.Parent:findFirstChild("Torso")
- if torso ~= nil then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil then
- local weld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- humanoid.WalkSpeed = 0
- humanoid.JumpPower = 0
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.2,0,0)
- end
- kick:Play()
- used = true
- local bodyvelocity = Instance.new("BodyVelocity", torso)
- bodyvelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 67
- bodyvelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(1.4)
- local bodyposition = Instance.new("BodyPosition", torso)
- bodyposition.Position = torso.Position
- bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bodyvelocity:destroy()
- wait(1)
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
- end
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
- end
- wait(1)
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.1)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.1,0,0)
- end
- local bodypositionme = Instance.new("BodyPosition", game.Players.LocalPlayer.Character.Torso)
- bodypositionme.Position = torso.Position
- bodypositionme.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(1.1)
- for i = 1,5 do
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- end
- kick1:Play()
- bodypositionme:destroy()
- local torsowelding = Instance.new("Weld", torso)
- torsowelding.Part0 = torso
- torsowelding.Part1 = game.Players.LocalPlayer.Character.Torso
- torsowelding.C0 = torsowelding.C0 * CFrame.new(0,0,-2)
- torsowelding.C0 = torsowelding.C0 * CFrame.Angles(0,3.08,0)
- wait(1.3)
- torsowelding:destroy()
- bodyposition:destroy()
- local mybodyvel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
- mybodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -90
- mybodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local bodyvel = Instance.new("BodyVelocity", torso)
- bodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 80
- bodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- humanoid.PlatformStand = true
- wait(0.3)
- bodyvel:destroy()
- mybodyvel:destroy()
- wait(0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
- wait(2.5)
- local block = Instance.new("Part", workspace)
- block.Position = torso.Position + Vector3.new(0,500,0)
- block.Size = Vector3.new(50,70,50)
- local function smash()
- if not smashing then
- smashing = true
- local explosion = Instance.new("Explosion", block)
- explosion.BlastRadius = 45
- humanoid.Health = 0
- kick11:Play()
- explosion.Position = torso.Position
- wait(6)
- smashing = false
- end
- end
- block.Touched:connect(smash)
- used = false
- attacking = false
- wait(7)
- block:destroy()
- end
- end
- wait(1)
- attacking = false
- end
- end
- detect.Touched:connect(attack)
- wait(0.1)
- detect:destroy()
- used = false
- end
- end
- end
- mouse.KeyDown:connect(sensor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement