Advertisement
lafur

Untitled

Mar 24th, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. 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"
  6. player = game.Players:findFirstChild(name)
  7. char = player.Character
  8. local tor = char:FindFirstChild("Torso")
  9. local ra = char:FindFirstChild("Right Arm")
  10. local la = char:FindFirstChild("Left Arm")
  11. local rl = char:FindFirstChild("Right Leg")
  12. local ll = char:FindFirstChild("Left Leg")
  13. local h = char:FindFirstChild("Head")
  14. ToolName = "EnderAttack"
  15. b = Instance.new("BlockMesh")
  16. motor = "Motor6D"
  17. char.Torso.CFrame = char.Torso.CFrame + Vector3.new(0, 10, 0)
  18. bm = Instance.new("BlockMesh")
  19. for _,v in pairs(char:children()) do
  20. if v:IsA("Hat") then
  21. v:remove()
  22. end
  23. end
  24. h.Transparency = 1
  25. allchar = char:GetChildren()
  26. for i = 1, #allchar do
  27. if allchar[i]:IsA("Shirt") then
  28. allchar[i]:Remove()
  29. end
  30. end
  31. allchar = char:GetChildren()
  32. for i = 1, #allchar do
  33. if allchar[i]:IsA("Pants") then
  34. allchar[i]:Remove()
  35. end
  36. end
  37. ----------------------------------Head
  38. if char:findFirstChild("EnderHead") then
  39. char:findFirstChild("EnderHead"):Remove()
  40. end
  41.  
  42. local enderm = Instance.new("Model", char)
  43. enderm.Name = "EnderHead"
  44.  
  45. head2 = Instance.new("Part",enderm)
  46. head2.formFactor = "Custom"
  47. head2.CFrame = h.CFrame
  48. head2.Size = Vector3.new(2.5,2.1,2.5)
  49. head2.TopSurface = 0
  50. head2.BottomSurface = 0
  51. head2.BrickColor = BrickColor.new("Really black")
  52. head2.Anchored = false
  53. head2.CanCollide = false
  54. local cbm = bm:Clone()
  55. cbm.Parent = head2
  56. headweld = Instance.new("Weld",h)
  57. headweld.Part0 = h
  58. headweld.Part1 = head2
  59. headweld.C0 = CFrame.new(0, 0.25, 0)
  60. eye1 = Instance.new("Part",enderm)
  61. eye1.formFactor = "Custom"
  62. eye1.CFrame = h.CFrame
  63. eye1.Size = Vector3.new(.75,.2,.3)
  64. eye1.TopSurface = 0
  65. eye1.BottomSurface = 0
  66. eye1.BrickColor = BrickColor.new("Lavender")
  67. eye1.Anchored = false
  68. eye1.CanCollide = false
  69. local cbm = bm:Clone()
  70. cbm.Parent = eye1
  71. eye1weld = Instance.new("Weld",h)
  72. eye1weld.Part0 = h
  73. eye1weld.Part1 = eye1
  74. eye1weld.C0 = CFrame.new(-0.6,0.45,-1.2)
  75. eye2 = Instance.new("Part",enderm)
  76. eye2.formFactor = "Custom"
  77. eye2.CFrame = h.CFrame
  78. eye2.Size = Vector3.new(.75,0.2,0.3)
  79. eye2.TopSurface = 0
  80. eye2.BottomSurface = 0
  81. eye2.BrickColor = BrickColor.new("Lavender")
  82. eye2.Anchored = false
  83. eye2.CanCollide = false
  84. local cbm = bm:Clone()
  85. cbm.Parent = eye2
  86. eye2weld = Instance.new("Weld",h)
  87. eye2weld.Part0 = h
  88. eye2weld.Part1 = eye2
  89. eye2weld.C0 = CFrame.new(0.6,0.45,-1.2)
  90. eye3 = Instance.new("Part",enderm)
  91. eye3.formFactor = "Custom"
  92. eye3.CFrame = h.CFrame
  93. eye3.Size = Vector3.new(.25,0.21,0)
  94. eye3.TopSurface = 0
  95. eye3.BottomSurface = 0
  96. eye3.BrickColor = BrickColor.new("Bright violet")
  97. eye3.Anchored = false
  98. eye3.CanCollide = false
  99. local cbm = bm:Clone()
  100. cbm.Parent = eye3
  101. eye3weld = Instance.new("Weld",h)
  102. eye3weld.Part0 = h
  103. eye3weld.Part1 = eye3
  104. eye3weld.C0 = CFrame.new(0.6,0.45,-1.3)
  105. eye4 = Instance.new("Part",enderm)
  106. eye4.formFactor = "Custom"
  107. eye4.CFrame = h.CFrame
  108. eye4.Size = Vector3.new(.25,0.21,0)
  109. eye4.TopSurface = 0
  110. eye4.BottomSurface = 0
  111. eye4.BrickColor = BrickColor.new("Bright violet")
  112. eye4.Anchored = false
  113. eye4.CanCollide = false
  114. local cbm = bm:Clone()
  115. cbm.Parent = eye4
  116. eye4weld = Instance.new("Weld",h)
  117. eye4weld.Part0 = h
  118. eye4weld.Part1 = eye4
  119. eye4weld.C0 = CFrame.new(-0.6,0.45,-1.3)
  120. ------------------End Of Head, Start Of Body
  121. scale = 2
  122.  
  123. if ll then
  124. ll.formFactor = 3
  125. ll.Size = Vector3.new(0.5,2*scale,0.5)
  126. ll.CFrame = ll.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  127. local bc = b:Clone()
  128. bc.Parent = ll
  129. end
  130. if ra then
  131. ra.formFactor = 3
  132. ra.Size = Vector3.new(0.5,1.75*scale,0.5)
  133. local bc = b:Clone()
  134. bc.Parent = ra
  135. end
  136. if la then
  137. la.formFactor = 3
  138. la.Size = Vector3.new(0.5,1.75*scale,0.5)
  139. local bc = b:Clone()
  140. bc.Parent = la
  141. end
  142. if tor then
  143. local bc = b:Clone()
  144. bc.Parent = tor
  145. bc.Scale = Vector3.new(1.05, 1.25, 1.2)
  146. end
  147. if rl then
  148. rl.formFactor = 3
  149. rl.Size = Vector3.new(0.5,2*scale,0.5)
  150. local bc = b:Clone()
  151. bc.Parent = rl
  152. end
  153. local rh = Instance.new(motor)
  154. rh.Name = "Right Hip"
  155. rh.MaxVelocity = 0.1
  156. rh.Part0 = tor
  157. rh.Part1 = rl
  158. rh.C0 = CFrame.new(0.75*scale, -1*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  159. rh.C1 = CFrame.new(0.55*scale, 1*1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  160. rh.Parent = tor
  161. local lh = Instance.new(motor)
  162. lh.Name = "Left Hip"
  163. lh.MaxVelocity = 0.1
  164. lh.Part0 = tor
  165. lh.Part1 = ll
  166. lh.C0 = CFrame.new(-0.75*scale, -1*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  167. lh.C1 = CFrame.new(-0.55*scale, 1*1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  168. lh.Parent = tor
  169. local rs = Instance.new(motor)
  170. rs.Name = "Right Shoulder"
  171. rs.MaxVelocity = 0.1
  172. rs.Part0 = tor
  173. rs.Part1 = ra
  174. rs.C0 = CFrame.new(1*scale, 0.5*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  175. rs.C1 = CFrame.new(0.35*scale, 1*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  176. rs.Parent = tor
  177. local ls = Instance.new(motor)
  178. ls.Name = "Left Shoulder"
  179. ls.MaxVelocity = 0.1
  180. ls.Part0 = tor
  181. ls.Part1 = la
  182. ls.C0 = CFrame.new(1*scale, 0.5*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  183. ls.C1 = CFrame.new(1.65*scale, 1*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  184. ls.Parent = tor
  185. local anim = char:FindFirstChild("Animate")
  186. if anim then
  187. local new = anim:clone()
  188. anim:Remove()
  189. new.Parent = char
  190. end
  191. -----------End
  192. while true do
  193. wait()
  194. local allchar = char:GetChildren()
  195. for i = 1, #allchar do
  196. if allchar[i]:IsA("Part") then
  197. allchar[i].BrickColor = BrickColor.new("Really black")
  198. end
  199. end
  200. end
  201.  
  202. mouse = game.Players.LocalPlayer:GetMouse()
  203. used = false
  204. attacking = false
  205. smashing = false
  206. kick = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  207. kick.SoundId = "rbxassetid://507150998"
  208. kick.Volume = 6
  209. kick1 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  210. kick1.SoundId = "rbxassetid://169380525"
  211. kick1.Volume = 6
  212. kick11 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  213. kick11.SoundId = "rbxassetid://165969964"
  214. kick11.Volume = 50
  215. function sensor(key)
  216. key = key:lower()
  217. if key == "e" then
  218. if not used then
  219. used = true
  220. local detect = Instance.new("Part", game.Players.LocalPlayer.Character)
  221. detect.Size = Vector3.new(1,1,4)
  222. detect:BreakJoints()
  223. detect.CanCollide = false
  224. detect.Transparency = 0.9
  225. detect.BrickColor = BrickColor.new("Really red")
  226. local weld = Instance.new("Weld", detect)
  227. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  228. weld.Part1 = detect
  229. weld.C0 = weld.C0 * CFrame.new(0,-1,0)
  230. local function attack(part)
  231. if not attacking then
  232. attacking = true
  233. local torso = part.Parent:findFirstChild("Torso")
  234. if torso ~= nil then
  235. local humanoid = part.Parent:findFirstChild("Humanoid")
  236. if humanoid ~= nil then
  237. local weld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  238. humanoid.WalkSpeed = 0
  239. humanoid.JumpPower = 0
  240. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  241. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  242. for i = 1,5 do
  243. wait()
  244. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  245. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  246. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
  247. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.2)
  248. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.2,0,0)
  249. end
  250. kick:Play()
  251. used = true
  252. local bodyvelocity = Instance.new("BodyVelocity", torso)
  253. bodyvelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 67
  254. bodyvelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  255. wait(1.4)
  256. local bodyposition = Instance.new("BodyPosition", torso)
  257. bodyposition.Position = torso.Position
  258. bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  259. bodyvelocity:destroy()
  260. wait(1)
  261. for i = 1,5 do
  262. wait()
  263. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  264. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  265. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  266. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  267. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
  268. end
  269. for i = 1,5 do
  270. wait()
  271. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  272. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  273. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
  274. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  275. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
  276. end
  277. wait(1)
  278. for i = 1,5 do
  279. wait()
  280. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  281. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  282. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.1)
  283. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.1)
  284. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.1,0,0)
  285. end
  286. local bodypositionme = Instance.new("BodyPosition", game.Players.LocalPlayer.Character.Torso)
  287. bodypositionme.Position = torso.Position
  288. bodypositionme.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  289. wait(1.1)
  290. for i = 1,5 do
  291. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  292. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  293. end
  294. kick1:Play()
  295. bodypositionme:destroy()
  296. local torsowelding = Instance.new("Weld", torso)
  297. torsowelding.Part0 = torso
  298. torsowelding.Part1 = game.Players.LocalPlayer.Character.Torso
  299. torsowelding.C0 = torsowelding.C0 * CFrame.new(0,0,-2)
  300. torsowelding.C0 = torsowelding.C0 * CFrame.Angles(0,3.08,0)
  301. wait(1.3)
  302. torsowelding:destroy()
  303. bodyposition:destroy()
  304. local mybodyvel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  305. mybodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -90
  306. mybodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  307. local bodyvel = Instance.new("BodyVelocity", torso)
  308. bodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 80
  309. bodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  310. humanoid.PlatformStand = true
  311. wait(0.3)
  312. bodyvel:destroy()
  313. mybodyvel:destroy()
  314. wait(0.25)
  315. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  316. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  317. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  318. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  319. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  320. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  321. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  322. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  323. wait(2.5)
  324. local block = Instance.new("Part", workspace)
  325. block.Position = torso.Position + Vector3.new(0,500,0)
  326. block.Size = Vector3.new(50,70,50)
  327. local function smash()
  328. if not smashing then
  329. smashing = true
  330. local explosion = Instance.new("Explosion", block)
  331. explosion.BlastRadius = 45
  332. humanoid.Health = 0
  333. kick11:Play()
  334. explosion.Position = torso.Position
  335. wait(6)
  336. smashing = false
  337. end
  338. end
  339. block.Touched:connect(smash)
  340. used = false
  341. attacking = false
  342. wait(7)
  343. block:destroy()
  344. end
  345. end
  346. wait(1)
  347. attacking = false
  348. end
  349. end
  350. detect.Touched:connect(attack)
  351. wait(0.1)
  352. detect:destroy()
  353. used = false
  354. end
  355. end
  356. end
  357. mouse.KeyDown:connect(sensor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement