Advertisement
lafur

Untitled

Mar 24th, 2019
193
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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement