Advertisement
lafur

Untitled

Sep 19th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.46 KB | None | 0 0
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end wait(0.6)
  6. --[[
  7. by Yourfirstnightmare-Dre#2941
  8. Created with my animation rig,
  9. Abanonded project got bored not much to do
  10. ]]--
  11. script.Parent=nil
  12. local p = game.Players.LocalPlayer
  13. local char = p.Character
  14. local mouse = p:GetMouse()
  15. local larm = char["Left Arm"]
  16. local rarm = char["Right Arm"]
  17. local lleg = char["Left Leg"]
  18. local rleg = char["Right Leg"]
  19. local euler=CFrame.fromEulerAnglesXYZ
  20. local hed = char.Head
  21. local torso = char.Torso
  22. local hum = char.Humanoid
  23. local root = char.HumanoidRootPart
  24. local walking = true
  25. local idle = true
  26. local rs = game:GetService("RunService").RenderStepped
  27. local new = Instance.new
  28. local v3 = Vector3.new
  29. local ns = NumberSequence.new
  30. local taunting = false
  31. local nr = NumberRange.new
  32. local bc = BrickColor.new
  33. local cf = CFrame.new
  34. local cfa = CFrame.Angles
  35. local rad = math.rad
  36. hum.Name = "1314____"
  37. hum.MaxHealth = math.huge
  38. hum.Health=math.huge
  39. local touchdb=false
  40. sine = 0
  41. for i,v in pairs(char:GetChildren()) do
  42. if v:IsA("BodyColors") then
  43. v.HeadColor = bc("Really black")
  44. v.RightArmColor = bc("Really black")
  45. v.LeftArmColor=bc("Really black")
  46. v.TorsoColor=bc("Really black")
  47. v.RightLegColor = bc("Really black")
  48. v.LeftLegColor=bc("Really black")
  49. end
  50. end
  51. function NoOutline(Part)
  52. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  53. end
  54. db=game:GetService('Debris')
  55. function Debris(item,timer)
  56. db:AddItem(item,timer)
  57. end
  58. for i,v in pairs(char:GetChildren()) do
  59. if v.ClassName == "Accessory" or v:IsA("ShirtGraphic") then
  60. v:Destroy()
  61. end
  62. end
  63. hed.Transparency = 1
  64. function Lerp(a,b,c)
  65. return a:lerp(b,c)
  66. end
  67. if char:findFirstChild("Shirt") and char:findFirstChild("Pants") then
  68. char.Shirt.ShirtTemplate = "rbxassetid://135561529"
  69. char.Pants.PantsTemplate = "rbxassetid://135562232"
  70. end
  71. ----------------------------------------------------Sounds?
  72. local swosh = Instance.new("Sound",torso)
  73. swosh.SoundId= "rbxassetid://877471479"
  74. local slash=Instance.new("Sound",torso)
  75. slash.SoundId= "rbxassetid://153092274"
  76. local exp=Instance.new("Sound",torso)
  77. exp.SoundId= "rbxassetid://142070127"
  78. local squish=Instance.new("Sound",torso)
  79. squish.SoundId= "rbxassetid://935843979"
  80. local summon=Instance.new("Sound",torso)
  81. summon.SoundId= "rbxassetid://429459101"
  82. local theworld=Instance.new("Sound",torso)
  83. theworld.SoundId= "rbxassetid://616576400"
  84. ----------------------------------------------------
  85. New = function(Object, Parent, Name, Data)
  86. local Object = Instance.new(Object)
  87. for Index, Value in pairs(Data or {}) do
  88. Object[Index] = Value
  89. end
  90. Object.Parent = Parent
  91. Object.Name = Name
  92. return Object
  93. end
  94. local Skull = New("Part",hed,"Skull",{BrickColor = BrickColor.new("Brick yellow"),Size = Vector3.new(2, 1.20000005, 2),CFrame = CFrame.new(19.0000038, 4.29999971, -15.0499935, -0.087155804, 0, -0.99619472, 0, 1, 0, 0.99619472, 0, -0.087155804),Color = Color3.new(0.843137, 0.772549, 0.603922),})
  95. local Mesh = New("SpecialMesh",Skull,"Mesh",{Scale = Vector3.new(3.20000005, 3.20000005, 3.20000005),MeshId = "http://www.roblox.com/asset/?id=6552202",TextureId = "http://www.roblox.com/asset/?id=6477494",MeshType = Enum.MeshType.FileMesh,})
  96. local Part = New("Part",Skull,"Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999565, 0.299999923, 0.0999998972),CFrame = CFrame.new(19.7027473, 4.34184599, -15.2829018, 0.0871568993, 0, -0.996194661, 0, 1, 0, 0.996194661, 0, 0.0871568993),})
  97. local Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=1007442229",})
  98. local Joint = New("Weld",Part,"Joint",{Part0 = Part,Part1 = Skull,C0 = CFrame.new(0.170772552, -0.0418462753, 0.720369339, 0.984807551, 0, -0.173649371, 0, 1, 0, 0.173649371, 0, 0.984807551),})
  99. local Part = New("Part",Skull,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1.19999981, 1),CFrame = CFrame.new(19.0784626, 4.20953131, -15.0668001, 0.0565838143, 0.0801356286, 0.995176673, -0.0452655554, 0.995954573, -0.0776245594, -0.997371256, -0.0406549312, 0.0599822886),Anchored = true,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  100. local Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset/?id=1185246",MeshType = Enum.MeshType.FileMesh,})
  101. local Joint = New("Weld",Part,"Joint",{Part0 = Part,Part1 = Skull,C0 = CFrame.new(-0.0252962112, 0.0831313133, -0.0840930939, -0.998507619, -0.0452655554, 0.030558195, -0.0474845134, 0.995954573, -0.0762873814, -0.0269813798, -0.0776245594, -0.996617556),})
  102. local Part = New("Part",Skull,"Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999565, 0.299999923, 0.0999998972),CFrame = CFrame.new(19.6312962, 4.3499999, -14.7103682, -0.342020988, 0, -0.939692318, 0, 1, 0, 0.939692318, 0, -0.342020988),})
  103. local Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=1007442229",})
  104. local Joint = New("Weld",Part,"Joint",{Part0 = Part,Part1 = Skull,C0 = CFrame.new(-0.103227615, -0.0500001907, 0.70938015, 0.965925634, 0, 0.258819848, 0, 1, 0, -0.258819848, 0, 0.965925634),})
  105. local particleemitter = Instance.new("ParticleEmitter",torso)
  106. particleemitter.Texture = "rbxassetid://930754411"
  107. particleemitter.Rate = 1
  108. particleemitter.VelocitySpread = 35
  109. particleemitter.Enabled=false
  110. local headw=Instance.new("Weld",Skull)
  111. local grabpart=Instance.new("Part",char)
  112. grabpart.Size = Vector3.new(1,1,4)
  113. grabpart.Transparency=1
  114. grabpart.CanCollide=false
  115. local wel=Instance.new("Weld",grabpart)
  116. wel.Part0=grabpart
  117. wel.Part1=rarm
  118. local dh=Instance.new("SpecialMesh",grabpart)
  119. dh.MeshId="http://www.roblox.com/asset/?id=12221720"
  120. dh.TextureId="http://www.roblox.com/asset/?id=12224218"
  121. dh.VertexColor=Vector3.new(0,0,0)
  122. wel.C0=CFrame.new(1,0,-1.5)*CFrame.Angles(rad(90),rad(180),rad(90))
  123. for i,v in pairs(Skull:GetChildren()) do
  124. if v:IsA("BasePart") then v.Anchored = false
  125. end
  126. end
  127. headw.Part0=Skull
  128. headw.Part1=hed
  129. local fxFolder={}
  130. local fxtab={
  131. blockeffect={
  132. blockfx = function(cf,tim,s1,s2,s3)
  133. local block=Instance.new("Part",char)
  134. table.insert(fxFolder,block)
  135. NoOutline(block)
  136. block.BrickColor = BrickColor.new("Really black")
  137. block.Transparency = .6
  138. block.Size = Vector3.new(s1,s2,s3)
  139. block.Anchored = true
  140. block.CanCollide = false
  141. block.CFrame = cf
  142. Debris(block,tim)
  143. end}
  144. }
  145. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  146. local wld = Instance.new("Weld", wp1)
  147. wld.Part0 = wp0
  148. wld.Part1 = wp1
  149. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  150. return wld
  151. end
  152. local larmweld=newWeld(torso,larm, -1.5, 0.5, 0)
  153. larmweld.C1 = CFrame.new(0, 0.5, 0)
  154. local rarmweld=newWeld(torso, rarm, 1.5, 0.5, 0)
  155. rarmweld.C1 = CFrame.new(0, 0.5, 0)
  156. local hedweld=newWeld(torso, hed, 0, 1.5, 0)
  157. local llegweld=newWeld(root, lleg, -0.5, -1, 0)
  158. llegweld.C1 = CFrame.new(0, 1, 0)
  159. local rlegweld=newWeld(root, rleg, 0.5, -1, 0)
  160. rlegweld.C1 = CFrame.new(0, 1 ,0)
  161. local torweld=newWeld(root, torso, 0, -1, 0)
  162. torweld.C1 = CFrame.new(0, -1, 0)
  163. function _IterateLerp(matrices,LerpIncrement)
  164. hedweld.C0 = Lerp(hedweld.C0,matrices[1],LerpIncrement);
  165. torweld.C0 = Lerp(torweld.C0,matrices[2],LerpIncrement);
  166. rarmweld.C0 = Lerp(rarmweld.C0,matrices[3],LerpIncrement);
  167. larmweld.C0 = Lerp(larmweld.C0,matrices[4],LerpIncrement);
  168. rlegweld.C0 = Lerp(rlegweld.C0,matrices[5],LerpIncrement);
  169. llegweld.C0 = Lerp(llegweld.C0,matrices[6],LerpIncrement);
  170. end;
  171. local function root0switch()
  172. rlegweld.Part0 = root
  173. llegweld.Part0 = root
  174. end
  175. local function torso0switch()
  176. rlegweld.Part0 = torso
  177. llegweld.Part0 = torso
  178. end
  179. local falling = false
  180. local jmp = false
  181. hum.StateChanged:connect(function(z,state)
  182. if state == Enum.HumanoidStateType.Freefall then
  183. falling = true
  184. taunting=false
  185. else
  186. falling = false
  187. end
  188. end)
  189. function spikefx(pos)
  190. local fxtab={}
  191. local wrap=coroutine.wrap(function()
  192. for i=1,10 do
  193. wait()
  194. local p=Instance.new("Part",workspace)
  195. local m=Instance.new("SpecialMesh",p)
  196. m.MeshType="Sphere"
  197. p.CFrame=pos
  198. m.Scale=v3(1.7,0.3,0.2)
  199. p.Material="Neon"
  200. Debris(p,.5)
  201. table.insert(fxtab,m)
  202. table.insert(fxtab,p)
  203. p.BrickColor=BrickColor.new("Black")
  204. p.CanCollide=false
  205. p.Anchored=true
  206. p.CFrame=p.CFrame*CFrame.new(math.random(-5,5),0,math.random(-5,5))*CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180)))
  207. for _,v in pairs(fxtab) do
  208. if v:IsA("SpecialMesh") then
  209. v.Scale = v.Scale+Vector3.new(.4,0,0)
  210. else
  211. v.Transparency = v.Transparency+.1
  212. end
  213. end
  214. end
  215. end);wrap()
  216. end
  217. rs:connect(function()
  218. sine=sine+1
  219. local movevelocity=(root.Velocity*v3(1,0,1)).Magnitude
  220. if movevelocity <1 and idle and not taunting then
  221. if idle then
  222. _IterateLerp({
  223. CFrame.new( 0.0816268921, 1.59128666, -0.102115631, 0.990605652, 0.133867279, 0.0279282276, -0.136749536, 0.969726801, 0.202310443, 0, -0.204229042, 0.978923142 ),
  224. CFrame.new( 0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 )*CFrame.new(0,.05*math.sin(sine/12),0)*CFrame.Angles(.03*math.sin(sine/12),0,0),
  225. CFrame.new( 1.48942029, 0.564742684+.1*math.sin(sine/12), 0.0792327747, 0.978836656, -0.135966524, -0.152944341, 0.12948513, 0.990236998, -0.0516153388, 0.158469126, 0.0307189636, 0.986885965 ),
  226. CFrame.new( -1.50521326, 0.566599131+.1*math.sin(sine/12), 0.0541087911, 0.99075222, 0.132517859, 0.0291410107, -0.123971015, 0.971393645, -0.202547595, -0.0551485643, 0.197061881, 0.978838801),
  227. CFrame.new( 0.502287865, -1.00783682, -0.047161147, 0.995418072, -0.0143518364, -0.0945355073, 0.0156736188, 0.999789238, 0.0132541945, 0.0943253636, -0.0146751851, 0.995433271 ),
  228. CFrame.new( -0.50474906, -1.02262139, -0.0649240464, 0.990501583, 0.0527384132, 0.126985222, -0.0452422909, 0.997098863, -0.0612106584, -0.129844978, 0.0548841506, 0.990014195 ),
  229. },.1)
  230. end
  231. end
  232. if falling and idle then
  233. _IterateLerp({
  234. CFrame.new( 0, 1.46811366, 0.175658226, 1, 0, 0, 0, 0.936247647, -0.351312846, 0, 0.351316303, 0.936256826 ),
  235. CFrame.new( 0, -0.999990225, 0, 1, 0, 0, 0, 0.999990225, 0, 0, 0, 1 ),
  236. CFrame.new( 1.43505383, 0.746422827, 0, 0.870108187, -0.492860764, 0, 0.492855906, 0.870099664, 0, 0, 0, 1 ),
  237. CFrame.new( -1.46059692, 0.69454664, 0, 0.921192586, 0.389106899, 0, -0.389103055, 0.921183467, 0, 0, 0, 1 ),
  238. CFrame.new( 0.506626964, -1.08112538, 0, 0.986746132, -0.162271619, 0, 0.162270024, 0.986736417, 0, 0, 0, 1 ),
  239. CFrame.new( -0.504866421, -1.06957817, 0, 0.990267456, 0.139177516, 0, -0.13917613, 0.99025774, 0, 0, 0, 1 ),
  240. },.2)
  241. end
  242. if movevelocity >1 and walking and not jmp and not falling then
  243. taunting=false
  244. if walking then
  245. _IterateLerp({
  246. CFrame.new( 0.0209884644, 1.4973774, 0.168071747, 0.999927104, 0.0119819818, -0.00150420656, -0.0120720444, 0.988607109, -0.150034994, -0.000310648698, 0.150042206, 0.988679588 ),
  247. CFrame.new( 0, -1+.1*math.sin(sine/8), 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 )*CFrame.Angles(6,rad(12*math.sin(sine/8)),0),
  248. CFrame.new( 1.48941588, 0.564742506, 0.07923612, 0.978836656, -0.160068884, -0.127502233, 0.12948513, 0.966909289, -0.219817966, 0.158469126, 0.198656261, 0.967172801 )*CFrame.Angles(rad(-45*math.sin(sine/8)),0,0),
  249. CFrame.new( -1.50521326, 0.566599131, 0.0541087911, 0.99075222, 0.132517859, 0.0291410107, -0.123971015, 0.971393645, -0.202547595, -0.0551485643, 0.197061881, 0.978838801)*CFrame.Angles(rad(45*math.sin(sine/8)),0,0),
  250. CFrame.new( 0.499892235, -1.00746632, -0.0195503682, 0.999869168, -0.0143518364, 0.00746365637, 0.0142403366, 0.999789238, 0.0147833973, -0.00767425448, -0.0146751851, 0.99986285 )*CFrame.Angles(rad(45*math.sin(sine/8)),0,0),
  251. CFrame.new( -0.500758886, -1.02675653, 0.00636120141, 0.998486161, 0.0527384132, -0.0156217664, -0.0535120256, 0.997098863, -0.0541301444, 0.0127217174, 0.0548841506, 0.998411775 )*CFrame.Angles(rad(-45*math.sin(sine/8)),0,0)
  252. },.1)
  253. end
  254. end
  255. for _,fx in pairs(fxFolder) do
  256. fx.CFrame = fx.CFrame*CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  257. end
  258. end)
  259. function deathtouch()
  260. torso0switch()
  261. local deathdb=false
  262. local hb=rarm.Touched:connect(function(hit)
  263. if not hit:IsDescendantOf(char) then
  264. if deathdb then return end
  265. deathdb=true
  266. if hit.Parent then
  267. for i,v in pairs(hit.Parent:GetChildren()) do
  268. if v:IsA("BasePart") and v.Name ~= "Handle" and v.Size.x<200 then
  269. v:BreakJoints()
  270. exp:Play()
  271. local bv=Instance.new("BodyVelocity",v)
  272. bv.Velocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  273. bv.MaxForce = Vector3.new(100000,100000,100000)
  274. v.BrickColor = BrickColor.new("Really black")
  275. v.Anchored = false
  276. Debris(v,10)
  277. end
  278. end
  279. end
  280. end
  281. end)
  282. for i=1, 10 do
  283. rs:wait(1)
  284. fxtab.blockeffect.blockfx(rarm.CFrame*CFrame.new(0,-2,0),1,1.5,1.5,1.5)
  285. _IterateLerp({
  286. CFrame.new( -0.009729385738, 1.50443935, -0.0961799622, 0.258767962, 0.0345346108, -0.965322137, -0.0124208545, 0.999397218, 0.0324239396, 0.965859592, 0.00360014848, 0.259040236 ),
  287. CFrame.new( 0.320317775, -1.01938915, 0.0870335773, 0.17364949, -0.00954774767, 0.984761178, 3.65421684e-08, 0.999953091, 0.00969513413, -0.984807611, -0.00168353785, 0.173641086 ),
  288. CFrame.new( 1.3838644, 0.571409225, -0.176830292, -0.0357611366, -0.936706185, 0.348289967, 0.983349204, 0.0291584283, 0.17938672, -0.178188115, 0.348904669, 0.920063972 ),
  289. CFrame.new( -1.50522053, 0.56659919, 0.0541077442, 0.99075222, 0.121532187, 0.0603333004, -0.123971015, 0.991540074, 0.038461592, -0.0551485643, -0.0455854759, 0.99743706 ),
  290. CFrame.new( 0.600003242, -0.984540462, 0.0129966736, 0.984808087, 1.15483999e-07, -0.173646927, 0.013456177, 0.996993124, 0.076315023, 0.173124731, -0.0774922594, 0.98184669 ),
  291. CFrame.new( -0.600003242, -0.984540701, 0.0129947662, 0.98480773, -5.15952706e-07, 0.173649341, -0.0134561537, 0.996993005, 0.076316081, -0.173127204, -0.0774933025, 0.981846154 )
  292. },0.25 )
  293. end
  294. wait(.2)
  295. for i=1,7 do
  296. rs:wait(1)
  297. _IterateLerp({
  298. CFrame.new( 0.0816268921, 1.59128666, -0.102115631, 0.990605652, 0.133867279, 0.0279282276, -0.136749536, 0.969726801, 0.202310443, 0, -0.204229042, 0.978923142 ),
  299. CFrame.new( 0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 )*CFrame.Angles(rad(0),0,0),
  300. CFrame.new( 1.48942029, 0.564742684, 0.0792327747, 0.978836656, -0.135966524, -0.152944341, 0.12948513, 0.990236998, -0.0516153388, 0.158469126, 0.0307189636, 0.986885965 ),
  301. CFrame.new( -1.50522053, 0.56659919, 0.0541077442, 0.99075222, 0.121532187, 0.0603333004, -0.123971015, 0.991540074, 0.038461592, -0.0551485643, -0.0455854759, 0.99743706 ),
  302. CFrame.new( 0.502287865, -1.00783682, -0.047161147, 0.995418072, -0.0143518364, -0.0945355073, 0.0156736188, 0.999789238, 0.0132541945, 0.0943253636, -0.0146751851, 0.995433271 ),
  303. CFrame.new( -0.50474906, -1.02262139, -0.0649240464, 0.990501583, 0.0527384132, 0.126985222, -0.0452422909, 0.997098863, -0.0612106584, -0.129844978, 0.0548841506, 0.990014195 ),
  304. },.25)
  305. end
  306. hb:Disconnect()
  307. root0switch()
  308. end
  309. function chargeslash()
  310. torso0switch()
  311. for i=1,7 do
  312. wait()
  313. _IterateLerp({
  314. CFrame.new( -0.0545110703, 1.56173253, 0, 0.995324731, -0.0965852737, 0, 0.096584335, 0.995314956, 0, 0, 0, 1 ),
  315. CFrame.new( 0, -0.999990225, 0, 1, 0, 0, 0, 0.999990225, 0, 0, 0, 1 ),
  316. CFrame.new( 1.50836289, 0.612062991, 0.137458801, 0.845401824, -0.503801167, 0.177426338, -0.027605487, -0.372942358, -0.927433074, 0.533416927, 0.779163361, -0.329197079 ),
  317. CFrame.new( -1.49072063, 0.595651746, -0.00649094954, 0.98144269, 0.191755578, 0, -0.191313684, 0.979181051, 0.0677044615, 0.0129828351, -0.066448696, 0.9977054 ),
  318. CFrame.new( 0.501660109, -1.04070473, 0, 0.996679068, -0.0814296976, 0, 0.0814289004, 0.996669233, 0, 0, 0, 1 ),
  319. CFrame.new( -0.500845671, -1.0290556, 0, 0.998308957, 0.0581314489, 0, -0.058130879, 0.998299122, 0, 0, 0, 1 ),
  320. },.4)
  321. end
  322. for i=1,10 do
  323. wait()
  324. grabpart.Transparency=grabpart.Transparency-0.1
  325. end
  326. for i=1,7 do
  327. wait()
  328. _IterateLerp({
  329. CFrame.new( -0.0545101166, 1.56173253, 4.76837158e-07, 0.995324731, -0.0965852737, 0, 0.096584335, 0.995314956, 0, 2.98023224e-08, 3.7252903e-09, 1 ),
  330. CFrame.new( 0, -0.999990225, 0, 0.613908231, 0, -0.789377391, 0, 0.999990225, 0, 0.789377391, 0, 0.613908231 ),
  331. CFrame.new( 1.16525662, 0.474341065, 0.340542078, 0.159188718, -0.971173942, 0.177426353, -0.303049803, -0.219109237, -0.927433074, 0.939583898, 0.0938687325, -0.329197049 ),
  332. CFrame.new( -1.49072158, 0.595651746, -0.00649142265, 0.98144269, 0.191755563, 0, -0.191313684, 0.979181051, 0.0677044615, 0.0129828155, -0.0664486885, 0.99770534 ),
  333. CFrame.new( 0.501660109, -1.04070473, 9.57399607e-07, 0.996679008, -0.0814296901, 0, 0.0814289004, 0.996669233, 0, 0, 3.7252903e-09, 1 ),
  334. CFrame.new( -0.500845671, -1.0290556, 4.76837158e-07, 0.998309016, 0.0581314489, 0, -0.058130879, 0.998299122, 0, 0, 0, 1 ),
  335. },.4)
  336. end
  337. swosh:Play()
  338. local bvol=Instance.new("BodyVelocity",torso)
  339. bvol.P = 100000
  340. bvol.MaxForce=Vector3.new(bvol.P,0,bvol.P)
  341. bvol.Velocity = root.CFrame.lookVector*100
  342. Debris(bvol,.2)
  343. local chopdb=false
  344. local hb=grabpart.Touched:connect(function(hit)
  345. if chopdb==true then return end
  346. if hit.Parent:findFirstChild("Head") and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  347. local tors = hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso") if tors then
  348. chopdb=true
  349. local hmu=hit.Parent:FindFirstChildOfClass("Humanoid")
  350. spikefx(tors.CFrame)
  351. slash:Play()
  352. for i,v in pairs(hit.Parent:GetChildren()) do
  353. if v:IsA("BasePart") and v.Name ~= "Handle" and v.Size.x<200 then
  354. v:BreakJoints()
  355. local bv=Instance.new("BodyVelocity",v)
  356. bv.Velocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  357. bv.MaxForce = Vector3.new(100000,100000,100000)
  358. v.BrickColor = BrickColor.new("Really black")
  359. v.Anchored = false
  360. Debris(v,10)
  361. end
  362. end
  363. end
  364. end
  365. end)
  366. for i=1,7 do
  367. wait()
  368. _IterateLerp({
  369. CFrame.new( -0.0102410316, 1.56405377, 0, 0.999967575, -0.00804331806, 0, 0.00804324076, 0.99995786, 0, 0, 0, 0.99999994 ),
  370. CFrame.new( 0, -0.999990225, 0, 0.309218496, 0, 0.950990975, 0, 0.999990225, 0, -0.950990975, 0, 0.309218496 ),
  371. CFrame.new( 1.52410364, 0.600606143, 0.127127171, 0.843653738, -0.536326528, -0.0245404467, -0.0442715883, -0.0239421558, -0.998722672, 0.535059035, 0.843670845, -0.0439433567 ),
  372. CFrame.new( -1.48721159, 0.590926051, -0.0660021305, 0.974422932, 0.191755563, -0.117173016, -0.18186219, 0.979181051, 0.0900608823, 0.132004589, -0.0664486811, 0.989019334 ),
  373. CFrame.new( 0.501660109, -1.04070473, 0, 0.996679008, -0.0814296901, 0, 0.0814289004, 0.996669233, 0, -2.98023224e-08, 0, 0.99999994 ),
  374. CFrame.new( -0.500846148, -1.0290556, 0, 0.998308837, 0.0581314452, 0, -0.058130879, 0.998299122, 0, 0, 0, 0.99999994 ),
  375. },.4)
  376. end
  377. hb:Disconnect()
  378. for i=1,10 do
  379. wait()
  380. grabpart.Transparency=grabpart.Transparency+0.1
  381. end
  382. end
  383. function darkheart()
  384. torso0switch()
  385. summon:Play()
  386. for i=1,25 do
  387. wait()
  388. _IterateLerp({
  389. CFrame.new( 0, 1.48561454, 0.119072914, 1, 0, 0, 0, 0.971229255, -0.238146394, 0, 0.238146394, 0.971229255 ),
  390. CFrame.new( 0, -2.62504315, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 ),
  391. CFrame.new( 1.48118687, 0.432643533, 0.117988974, 0.962375402, -0.270894974, -0.0212016907, -0.134712949, -0.407902002, -0.903032839, 0.235978872, 0.871912777, -0.429047942 ),
  392. CFrame.new( -1.48679996, 0.458605587, 0.106357396, 0.973600924, 0.227957353, 0.0116878562, 0.082788907, -0.304944426, -0.948764861, -0.212713808, 0.924686074, -0.315766543 ),
  393. CFrame.new( 0.5, -0.950745523, -0.529396296, 1, 0, 8.8817842e-16, 0, 0.204137847, 0.978942096, 0, -0.978942156, 0.204137862 ),
  394. CFrame.new( -0.5, -0.341685951, -0.633748055, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1 ),
  395. },.1)
  396. end
  397. wait(.2)
  398. local inc=-3
  399. local swordtab={}
  400. for i=1,45 do
  401. wait()
  402. local dark=Instance.new("Part",char)
  403. dark.Size = Vector3.new(2,2,9)
  404. dark.Transparency=1
  405. dark.CanCollide=false
  406. dark.Anchored = true
  407. table.insert(swordtab,dark)
  408. local dh=Instance.new("SpecialMesh",dark)
  409. dh.MeshId="http://www.roblox.com/asset/?id=12221720"
  410. dh.TextureId="http://www.roblox.com/asset/?id=12224218"
  411. dh.VertexColor=Vector3.new(0,0,0)
  412. dh.Scale=v3(2,2,2)
  413. dark.CFrame=root.CFrame*CFrame.new(0,-4,inc)*CFrame.Angles(rad(-90),rad(math.random(-45,45)),0)
  414. local wrap=coroutine.wrap(function()
  415. for i=1,10 do
  416. wait()
  417. dark.Transparency=dark.Transparency-.1
  418. dark.CFrame=dark.CFrame*CFrame.new(0,0,.45)
  419. end
  420. end);wrap()
  421. local sq=false
  422. dark.Touched:connect(function(hit)
  423. if hit and hit.Parent and hit.Parent:findFirstChildOfClass("Humanoid") and not hit:isDescendantOf(char) then
  424. if sq then return end
  425. local tors = hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso")
  426. if tors then
  427. sq=true
  428. squish:Play()
  429. spikefx(tors.CFrame)
  430. for i,v in pairs(hit.Parent:GetChildren()) do
  431. if v:IsA("BasePart") and v.Name ~= "Handle" and v.Size.x<100 then
  432. v:BreakJoints()
  433. local bv=Instance.new("BodyVelocity",v)
  434. bv.Velocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  435. bv.MaxForce = Vector3.new(100000,100000,100000)
  436. v.BrickColor = BrickColor.new("Really black")
  437. v.Anchored = false
  438. Debris(v,10)
  439. end
  440. end
  441. end
  442. end
  443. end)
  444. inc=inc-1
  445. end
  446. for _,v in pairs(swordtab) do
  447. Debris(v,.4)
  448. local wrap=coroutine.wrap(function()
  449. for i=1,10 do
  450. wait()
  451. v.Transparency = v.Transparency+.1
  452. v.CFrame = v.CFrame*CFrame.new(0,0,-.45)
  453. end
  454. end);wrap()
  455. end
  456. end
  457. function zaworld()
  458. torso0switch()
  459. particleemitter.Enabled=true
  460. taunting = true
  461. theworld:Play()
  462. for i=1,7 do
  463. wait()
  464. _IterateLerp({
  465. CFrame.new( 0, 1.50000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 ),
  466. CFrame.new( 0, -0.948942542, -0.315449059, 1, 0, 0, 0, 0.948942542, -0.315449059, 0, 0.315449059, 0.948942542 ),
  467. CFrame.new( 1.03333831, 0.803000212, 0.328895986, 0.666042447, 0.745147169, 0.0338109061, 0.505401671, -0.484157503, 0.714255333, 0.54859519, -0.458636403, -0.699068129 ),
  468. CFrame.new( -1.0756973, 0.83096379, 0.25872466, 0.65691328, -0.751839459, 0.0565877482, -0.589003384, -0.464883924, 0.661027908, -0.470680177, -0.467568457, -0.748224497 ),
  469. CFrame.new( 0.504901886, -1.06555462, 0.02408427, 0.990197122, -0.139677078, 0, 0.131108776, 0.929454803, 0.344853967, -0.0481681935, -0.341473401, 0.93865639 ),
  470. CFrame.new( -0.513496816, -1.10789347, 0.0409053266, 0.973007023, 0.230775401, 0, -0.215787053, 0.909812391, 0.354510069, 0.0818122104, -0.344940811, 0.935052276 ),
  471. },.35)
  472. end
  473. end
  474. mouse.KeyDown:connect(function(k)
  475. if k=="z" then
  476. if touchdb then return end
  477. touchdb=true
  478. zaworld()
  479. repeat wait(.7)
  480. until not taunting
  481. root0switch()
  482. particleemitter.Enabled=false
  483. touchdb=false
  484. elseif k=="e" then
  485. if touchdb then return end
  486. touchdb=true
  487. walking=false
  488. idle = false
  489. deathtouch()
  490. walking=true
  491. idle=true
  492. touchdb=false
  493. elseif k=="f" then
  494. if touchdb then return end
  495. touchdb=true
  496. walking=false
  497. idle = false
  498. chargeslash()
  499. walking=true
  500. idle=true
  501. wait(.4)
  502. root0switch()
  503. touchdb=false
  504. elseif k=="r" then
  505. if touchdb then return end
  506. touchdb=true
  507. walking=false
  508. idle = false
  509. darkheart()
  510. walking=true
  511. idle=true
  512. wait(.4)
  513. root0switch()
  514. touchdb=false
  515. end
  516. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement