Advertisement
cubanmixed2

Fe Linked sword

Nov 24th, 2018
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. 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
  7. --{{Linked Sword remake by SezHu. Made for Darkross. Whoever it is that spread this around, I hope you kill yourself.}}--
  8. wait(1 / 60)
  9. Effects = { }
  10. local Player = game.Players.localPlayer
  11. local Mouse = Player:GetMouse()
  12. local Character = Player.Character
  13. local Humanoid = Character.Humanoid
  14. local Head = Character.Head
  15. local RootPart = Character.HumanoidRootPart
  16. local Torso = Character.Torso
  17. local LeftArm = Character["Left Arm"]
  18. local RightArm = Character["Right Arm"]
  19. local LeftLeg = Character["Left Leg"]
  20. local RightLeg = Character["Right Leg"]
  21. local Camera = game.Workspace.CurrentCamera
  22. local RootJoint = RootPart.RootJoint
  23. local Equipped = false
  24. local Attack = false
  25. local Anim = 'Idle'
  26. local Idle = 0
  27. local Combo = 1
  28. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  29. local Velocity = RootPart.Velocity.y
  30. local Sine = 0
  31. local Change = 1
  32. Instance.new("ForceField",Character).Visible = false
  33. Character.Humanoid.Name = "help"
  34. humanoid = Character.help
  35.  
  36. local RbxUtility = LoadLibrary("RbxUtility")
  37. local Create = RbxUtility.Create
  38.  
  39. humanoid.WalkSpeed = 13
  40. humanoid.JumpPower = 60
  41. humanoid.Animator.Parent = nil
  42. Character.Animate.Parent = nil
  43.  
  44. local newMotor = function(part0, part1, c0, c1)
  45. local w = Create('Motor'){
  46. Parent = part0,
  47. Part0 = part0,
  48. Part1 = part1,
  49. C0 = c0,
  50. C1 = c1,
  51. }
  52. return w
  53. end
  54.  
  55. function clerp(a, b, t)
  56. return a:lerp(b, t)
  57. end
  58.  
  59. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  60. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  61.  
  62. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  63. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  64. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  65. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  66. RootJoint.C1 = CFrame.new(0, 0, 0)
  67. RootJoint.C0 = CFrame.new(0, 0, 0)
  68. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  69. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  70.  
  71. local rarmc1 = RW.C1
  72. local larmc1 = LW.C1
  73. local rlegc1 = RH.C1
  74. local llegc1 = LH.C1
  75.  
  76. local resetc1 = false
  77.  
  78. function PlayAnimationFromTable(table, speed, bool)
  79. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  80. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  81. RW.C0 = clerp(RW.C0, table[3], speed)
  82. LW.C0 = clerp(LW.C0, table[4], speed)
  83. RH.C0 = clerp(RH.C0, table[5], speed)
  84. LH.C0 = clerp(LH.C0, table[6], speed)
  85. if bool == true then
  86. if resetc1 == false then
  87. resetc1 = true
  88. RootJoint.C1 = RootJoint.C1
  89. Torso.Neck.C1 = Torso.Neck.C1
  90. RW.C1 = rarmc1
  91. LW.C1 = larmc1
  92. RH.C1 = rlegc1
  93. LH.C1 = llegc1
  94. end
  95. end
  96. end
  97.  
  98. ArtificialHB = Create("BindableEvent"){
  99. Parent = script,
  100. Name = "Heartbeat",
  101. }
  102.  
  103. script:WaitForChild("Heartbeat")
  104.  
  105. frame = 1 / 45
  106. tf = 0
  107. allowframeloss = false
  108. tossremainder = false
  109. lastframe = tick()
  110. script.Heartbeat:Fire()
  111.  
  112. game:GetService("RunService").Heartbeat:connect(function(s, p)
  113. tf = tf + s
  114. if tf >= frame then
  115. if allowframeloss then
  116. script.Heartbeat:Fire()
  117. lastframe = tick()
  118. else
  119. for i = 1, math.floor(tf / frame) do
  120. script.Heartbeat:Fire()
  121. end
  122. lastframe = tick()
  123. end
  124. if tossremainder then
  125. tf = 0
  126. else
  127. tf = tf - frame * math.floor(tf / frame)
  128. end
  129. end
  130. end)
  131.  
  132. function swait(num)
  133. if num == 0 or num == nil then
  134. ArtificialHB.Event:wait()
  135. else
  136. for i = 0, num do
  137. ArtificialHB.Event:wait()
  138. end
  139. end
  140. end
  141.  
  142. local m = Create("Model"){
  143. Parent = Character,
  144. Name = "WeaponModel"
  145. }
  146.  
  147. function RemoveOutlines(part)
  148. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  149. end
  150.  
  151. CFuncs = {
  152. Part = {
  153. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  154. local Part = Create("Part"){
  155. Parent = Parent,
  156. Reflectance = Reflectance,
  157. Transparency = Transparency,
  158. CanCollide = false,
  159. Locked = true,
  160. BrickColor = BrickColor.new(tostring(BColor)),
  161. Name = Name,
  162. Size = Size,
  163. Material = Material,
  164. }
  165. RemoveOutlines(Part)
  166. if Size == Vector3.new() then
  167. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  168. else
  169. Part.Size = Size
  170. end
  171. return Part
  172. end;
  173. };
  174.  
  175. Mesh = {
  176. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  177. local Msh = Create(Mesh){
  178. Parent = Part,
  179. Offset = OffSet,
  180. Scale = Scale,
  181. }
  182. if Mesh == "SpecialMesh" then
  183. Msh.MeshType = MeshType
  184. Msh.MeshId = MeshId
  185. end
  186. return Msh
  187. end;
  188. };
  189.  
  190. Weld = {
  191. Create = function(Parent, Part0, Part1, C0, C1)
  192. local Weld = Create("Weld"){
  193. Parent = Parent,
  194. Part0 = Part0,
  195. Part1 = Part1,
  196. C0 = C0,
  197. C1 = C1,
  198. }
  199. return Weld
  200. end;
  201. };
  202.  
  203. Sound = {
  204. Create = function(id, par, vol, pit)
  205. coroutine.resume(coroutine.create(function()
  206. local S = Create("Sound"){
  207. Volume = vol,
  208. Pitch = pit or 1,
  209. SoundId = "rbxassetid://" .. id,
  210. Parent = par or workspace,
  211. }
  212. wait()
  213. S:play()
  214. game:GetService("Debris"):AddItem(S, 10)
  215. end))
  216. end;
  217. };
  218.  
  219. ParticleEmitter = {
  220. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  221. local Particle = Create("ParticleEmitter"){
  222. Parent = Parent,
  223. Color = ColorSequence.new(Color1, Color2),
  224. LightEmission = LightEmission,
  225. Size = Size,
  226. Texture = Texture,
  227. Transparency = Transparency,
  228. ZOffset = ZOffset,
  229. Acceleration = Accel,
  230. Drag = Drag,
  231. LockedToPart = LockedToPart,
  232. VelocityInheritance = VelocityInheritance,
  233. EmissionDirection = EmissionDirection,
  234. Enabled = Enabled,
  235. Lifetime = LifeTime,
  236. Rate = Rate,
  237. Rotation = Rotation,
  238. RotSpeed = RotSpeed,
  239. Speed = Speed,
  240. VelocitySpread = VelocitySpread,
  241. }
  242. return Particle
  243. end;
  244. };
  245.  
  246. CreateTemplate = {
  247.  
  248. };
  249. }
  250.  
  251.  
  252. SwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325))
  253. SwordHandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],SwordHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.185770988, 0.870510101, 0.408577919, 0.203587696, 0.0859783739, 0.975274265, 0.215029001, 0.967887759, -0.130214334, -0.955151618, 0.236222297, 0.178562179))
  254.  
  255. FSwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325))
  256. FSwordHandleWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.185770988, 0.870510101, 0.408577919, 0.203587696, 0.0859783739, 0.975274265, 0.215029001, 0.967887759, -0.130214334, -0.955151618, 0.236222297, 0.178562179))
  257.  
  258. SwordHitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHitbox",Vector3.new(2.86000085, 0.780000031, 0.490000904))
  259. SwordHitboxWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordHitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.40326214, -0.0246145725, 0.0822520256, 0.996526599, -0.0713239759, 0.0429853499, -0.0685022175, -0.995603502, -0.063884899, 0.04735291, 0.0607184023, -0.997031152))
  260. Sword=CFuncs.Part.Create(m,Enum.Material.Plastic,0.40000000596046,0,"Dark stone grey","Sword",Vector3.new(1, 0.800000012, 4))
  261. SwordWeld=CFuncs.Weld.Create(m,FSwordHandle,Sword,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00868201256, -0.0434961319, -1.57871437, -0.0685393885, -0.995604873, -0.0638238713, -0.0473001003, -0.060659457, 0.997037172, -0.996526659, 0.0713551864, -0.0429345965))
  262. CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  263. SwordTip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordTip",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007))
  264. SwordTipWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordTip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.99350071, 0.0115001202, -0.0282430649, 0.996526718, -0.0713239908, 0.0429855287, 0.0685023069, 0.995603621, 0.0638830736, -0.0473529696, -0.0607165657, 0.997031391))
  265. SwordBase=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordBase",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007))
  266. SwordBaseWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordBase,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.965875626, -0.108898878, -0.0282406807, 0.996527016, -0.0713239983, 0.0429854989, 0.0685023293, 0.995603859, 0.0638830885, -0.0473529994, -0.0607165806, 0.997031689))
  267. sw00ng=CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  268. sw00ng.TextureId = "rbxasset://textures/SwordTexture.png"
  269. Dodgebox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Dodgebox",Vector3.new(0.380000204, 0.440000057, 0.370000631))
  270. DodgeboxWeld=CFuncs.Weld.Create(m,Character["Left Arm"],Dodgebox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19000053, 0.0500006676, 0.00499725342, -5.2829273e-07, -1, 9.87201929e-08, -1.00000012, 5.32949343e-07, -2.98023224e-08, 2.98023224e-08, -9.68575478e-08, -1.00000012))
  271. RHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RHandle",Vector3.new(4.92000628, 0.740000546, 0.839999795))
  272. RHandleWeld=CFuncs.Weld.Create(m,Character["Left Arm"],RHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.891376376, 0.0220794678, -0.335389137, -0.0211870149, 0.999322236, 0.0301050469, 0.985142112, 0.0157343224, 0.171019673, 0.170430094, 0.0332811475, -0.98480773))
  273. kaboomsky=CFuncs.Mesh.Create("SpecialMesh",RHandle,Enum.MeshType.FileMesh,"rbxasset://fonts/rocketlauncher.mesh",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.75, 0.75))
  274. RocketMaker=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RocketMaker",Vector3.new(0.349999934, 0.350000024, 0.369999945))
  275. RocketMakerWeld=CFuncs.Weld.Create(m,RHandle,RocketMaker,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.6350019, 0.17499733, 0.0449929237, 0.999999702, 0, 7.4505806e-09, 0, 1.72555447e-05, -1, 0, 1.00000012, 1.72555447e-05))
  276.  
  277. kaboomsky=CFuncs.Mesh.Create("SpecialMesh",RHandle,Enum.MeshType.FileMesh,"rbxasset://fonts/rocketlauncher.mesh",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.75, 0.75))
  278. kaboomsky.TextureId = "rbxasset://textures/rocketlaunchertex.png"
  279.  
  280.  
  281.  
  282. swordtrail = Instance.new("Trail", SwordHitbox)
  283. A2 = Instance.new('Attachment',SwordBase)
  284. A3 = Instance.new('Attachment',SwordTip)
  285. swordtrail.Lifetime = .1
  286. swordtrail.Enabled = false
  287. swordtrail.Attachment0 = A2
  288. swordtrail.Attachment1 = A3
  289. local startColor = Color3.new(0, 0, 0)
  290. local endColor = Color3.new(200,200, 200)
  291. local startT = .2
  292. local endT = .8
  293.  
  294. local sequence = ColorSequence.new(startColor, endColor)
  295. local sequence2 = NumberSequence.new(startT, endT)
  296.  
  297. swordtrail.Color = sequence
  298. swordtrail.Transparency = sequence2
  299.  
  300.  
  301. function RayCast(Position, Direction, Range, Ignore)
  302. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  303. end
  304.  
  305. FindNearestTorso = function(pos)
  306. local list = (game.Workspace:children())
  307. local torso = nil
  308. local dist = 1000
  309. local temp, human, temp2 = nil, nil, nil
  310. for x = 1, #list do
  311. temp2 = list[x]
  312. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  313. temp = temp2:findFirstChild("Torso")
  314. human = temp2:findFirstChild("Humanoid")
  315. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  316. local dohit = true
  317. if dohit == true then
  318. torso = temp
  319. dist = (temp.Position - pos).magnitude
  320. end
  321. end
  322. end
  323. end
  324. return torso, dist
  325. end
  326.  
  327. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  328. if hit.Parent == nil then
  329. return
  330. end
  331. local h = hit.Parent:FindFirstChild("Humanoid")
  332. for _, v in pairs(hit.Parent:children()) do
  333. if v:IsA("Humanoid") then
  334. h = v
  335. end
  336. end
  337. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  338. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  339. if hit.Parent.DebounceHit.Value == true then
  340. return
  341. end
  342. end
  343. local c = Create("ObjectValue"){
  344. Name = "creator",
  345. Value = game:service("Players").LocalPlayer,
  346. Parent = h,
  347. }
  348. game:GetService("Debris"):AddItem(c, .5)
  349. if HitSound ~= nil and HitPitch ~= nil then
  350. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  351. end
  352. local Damage = math.random(minim, maxim)
  353. local blocked = false
  354. local block = hit.Parent:findFirstChild("Block")
  355. if block ~= nil then
  356. if block.className == "IntValue" then
  357. if block.Value > 0 then
  358. blocked = true
  359. block.Value = block.Value - 1
  360. print(block.Value)
  361. end
  362. end
  363. end
  364. if blocked == false then
  365. h.Health = h.Health - Damage
  366. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Bloxxed!", 1, BrickColor.new(Torso.Color).Color)
  367. else
  368. h.Health = h.Health - (Damage / 2)
  369. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Bloxxed!", 1, BrickColor.new(Torso.Color).Color)
  370. end
  371. if Type == "Knockdown" then
  372. local hum = hit.Parent.Humanoid
  373. hum.PlatformStand = true
  374. coroutine.resume(coroutine.create(function(HHumanoid)
  375. swait(1)
  376. HHumanoid.PlatformStand = false
  377. end), hum)
  378. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  379. local bodvol = Create("BodyVelocity"){
  380. velocity = angle * knockback,
  381. P = 5000,
  382. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  383. Parent = hit,
  384. }
  385. local rl = Create("BodyAngularVelocity"){
  386. P = 3000,
  387. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  388. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  389. Parent = hit,
  390. }
  391. game:GetService("Debris"):AddItem(bodvol, .5)
  392. game:GetService("Debris"):AddItem(rl, .5)
  393. elseif Type == "Normal" then
  394. local vp = Create("BodyVelocity"){
  395. P = 500,
  396. maxForce = Vector3.new(math.huge, 0, math.huge),
  397. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  398. }
  399. hit.Parent.Torso:BreakJoints()
  400. if knockback > 0 then
  401. vp.Parent = hit.Parent.Torso
  402. end
  403. game:GetService("Debris"):AddItem(vp, .5)
  404. elseif Type == "Up" then
  405. local bodyVelocity = Create("BodyVelocity"){
  406. velocity = Vector3.new(0, 20, 0),
  407. P = 5000,
  408. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  409. Parent = hit,
  410. }
  411. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  412. elseif Type == "DarkUp" then
  413. coroutine.resume(coroutine.create(function()
  414. for i = 0, 1, 0.1 do
  415. swait()
  416. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  417. end
  418. end))
  419. local bodyVelocity = Create("BodyVelocity"){
  420. velocity = Vector3.new(0, 20, 0),
  421. P = 5000,
  422. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  423. Parent = hit,
  424. }
  425. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  426. elseif Type == "Snare" then
  427. local bp = Create("BodyPosition"){
  428. P = 2000,
  429. D = 100,
  430. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  431. position = hit.Parent.Torso.Position,
  432. Parent = hit.Parent.Torso,
  433. }
  434. game:GetService("Debris"):AddItem(bp, 1)
  435. elseif Type == "Freeze" then
  436. local BodPos = Create("BodyPosition"){
  437. P = 50000,
  438. D = 1000,
  439. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  440. position = hit.Parent.Torso.Position,
  441. Parent = hit.Parent.Torso,
  442. }
  443. local BodGy = Create("BodyGyro") {
  444. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  445. P = 20e+003,
  446. Parent = hit.Parent.Torso,
  447. cf = hit.Parent.Torso.CFrame,
  448. }
  449. hit.Parent.Torso.Anchored = true
  450. coroutine.resume(coroutine.create(function(Part)
  451. swait(1.5)
  452. Part.Anchored = false
  453. end), hit.Parent.Torso)
  454. game:GetService("Debris"):AddItem(BodPos, 3)
  455. game:GetService("Debris"):AddItem(BodGy, 3)
  456. end
  457. local debounce = Create("BoolValue"){
  458. Name = "DebounceHit",
  459. Parent = hit.Parent,
  460. Value = true,
  461. }
  462. game:GetService("Debris"):AddItem(debounce, Delay)
  463. c = Create("ObjectValue"){
  464. Name = "creator",
  465. Value = Player,
  466. Parent = h,
  467. }
  468. game:GetService("Debris"):AddItem(c, .5)
  469. end
  470. end
  471.  
  472. function ShowDamage(Pos, Text, Time, Color)
  473. local Rate = (1 / 30)
  474. local Pos = (Pos or Vector3.new(0, 0, 0))
  475. local Text = (Text or "")
  476. local Time = (Time or 2)
  477. local Color = (Color or Color3.new(1, 0, 1))
  478. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  479. EffectPart.Anchored = true
  480. local BillboardGui = Create("BillboardGui"){
  481. Size = UDim2.new(3, 0, 3, 0),
  482. Adornee = EffectPart,
  483. Parent = EffectPart,
  484. }
  485. local TextLabel = Create("TextLabel"){
  486. BackgroundTransparency = 1,
  487. Size = UDim2.new(1, 0, 1, 0),
  488. Text = Text,
  489. Font = "SourceSansLight",
  490. TextColor3 = Color,
  491. TextScaled = true,
  492. Parent = BillboardGui,
  493. }
  494. game.Debris:AddItem(EffectPart, (Time))
  495. EffectPart.Parent = game:GetService("Workspace")
  496. delay(0, function()
  497. local Frames = (Time / Rate)
  498. for Frame = 1, Frames do
  499. wait(Rate)
  500. local Percent = (Frame / Frames)
  501. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  502. TextLabel.TextTransparency = Percent
  503. end
  504. if EffectPart and EffectPart.Parent then
  505. EffectPart:Destroy()
  506. end
  507. end)
  508. end
  509.  
  510. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  511. for _, c in pairs(workspace:children()) do
  512. local hum = c:findFirstChild("Humanoid")
  513. if hum ~= nil then
  514. local head = c:findFirstChild("Torso")
  515. if head ~= nil then
  516. local targ = head.Position - Part.Position
  517. local mag = targ.magnitude
  518. if mag <= Magnitude and c.Name ~= Player.Name then
  519. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  520. end
  521. end
  522. end
  523. end
  524. end
  525.  
  526. EffectModel = Create("Model"){
  527. Parent = Character,
  528. Name = "EffectModel",
  529. }
  530.  
  531. Effects = {
  532. Block = {
  533. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
  534. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  535. prt.Anchored = true
  536. prt.CFrame = cframe
  537. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  538. game:GetService("Debris"):AddItem(prt, 10)
  539. if Type == 1 or Type == nil then
  540. table.insert(Effects, {
  541. prt,
  542. "Block1",
  543. delay,
  544. x3,
  545. y3,
  546. z3,
  547. msh
  548. })
  549. elseif Type == 2 then
  550. table.insert(Effects, {
  551. prt,
  552. "Block2",
  553. delay,
  554. x3,
  555. y3,
  556. z3,
  557. msh
  558. })
  559. elseif Type == 3 then
  560. table.insert(Effects, {
  561. prt,
  562. "Block3",
  563. delay,
  564. x3,
  565. y3,
  566. z3,
  567. msh,
  568. Part
  569. })
  570. elseif Type == 4 then
  571. table.insert(Effects, {
  572. prt,
  573. "Block2Fire",
  574. delay,
  575. x3,
  576. y3,
  577. z3,
  578. msh
  579. })
  580. end
  581. end
  582. };
  583.  
  584. Sphere = {
  585. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
  586. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  587. prt.Anchored = true
  588. prt.CFrame = cframe
  589. if parent == nil then
  590. prt.Parent = workspace
  591. else
  592. prt.Parent = parent
  593. end
  594. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  595. game:GetService("Debris"):AddItem(prt, 10)
  596. table.insert(Effects, {
  597. prt,
  598. "Cylinder",
  599. delay,
  600. x3,
  601. y3,
  602. z3,
  603. msh
  604. })
  605. end
  606. };
  607.  
  608. Blood = {
  609. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  610. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  611. prt.Anchored = true
  612. prt.CFrame = cframe
  613. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  614. game:GetService("Debris"):AddItem(prt, 10)
  615. table.insert(Effects, {
  616. prt,
  617. "Blood",
  618. delay,
  619. x3,
  620. y3,
  621. z3,
  622. msh
  623. })
  624. end
  625. };
  626.  
  627. Blast = {
  628. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  629. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  630. prt.Anchored = true
  631. prt.CFrame = cframe
  632. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  633. game:GetService("Debris"):AddItem(prt, 10)
  634. table.insert(Effects, {
  635. prt,
  636. "Block4",
  637. delay,
  638. x3,
  639. y3,
  640. z3,
  641. msh,
  642. Part
  643. })
  644. end
  645. };
  646.  
  647. Ring = {
  648. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  649. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  650. prt.Anchored = true
  651. prt.CFrame = cframe
  652. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  653. game:GetService("Debris"):AddItem(prt, 10)
  654. table.insert(Effects, {
  655. prt,
  656. "Cylinder",
  657. delay,
  658. x3,
  659. y3,
  660. z3,
  661. msh
  662. })
  663. end
  664. };
  665.  
  666. Cylinder = {
  667. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  668. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  669. prt.Anchored = true
  670. prt.CFrame = cframe
  671. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  672. game:GetService("Debris"):AddItem(prt, 10)
  673. table.insert(Effects, {
  674. prt,
  675. "Cylinder",
  676. delay,
  677. x3,
  678. y3,
  679. z3,
  680. msh
  681. })
  682. end
  683. };
  684.  
  685. Head = {
  686. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  687. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  688. prt.Anchored = true
  689. prt.CFrame = cframe
  690. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  691. game:GetService("Debris"):AddItem(prt, 10)
  692. table.insert(Effects, {
  693. prt,
  694. "Cylinder",
  695. delay,
  696. x3,
  697. y3,
  698. z3,
  699. msh
  700. })
  701. end
  702. };
  703.  
  704. Wave = {
  705. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  706. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  707. prt.Anchored = true
  708. prt.CFrame = cframe
  709. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  710. game:GetService("Debris"):AddItem(prt, 10)
  711. table.insert(Effects, {
  712. prt,
  713. "Cylinder",
  714. delay,
  715. x3,
  716. y3,
  717. z3,
  718. msh
  719. })
  720. end
  721. };
  722.  
  723. Break = {
  724. Create = function(brickcolor, cframe, x1, y1, z1)
  725. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  726. prt.Anchored = true
  727. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  728. game:GetService("Debris"):AddItem(prt, 10)
  729. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  730. local num = math.random(10, 50) / 1000
  731. table.insert(Effects, {
  732. prt,
  733. "Shatter",
  734. num,
  735. prt.CFrame,
  736. math.random() - math.random(),
  737. 0,
  738. math.random(50, 100) / 100
  739. })
  740. end
  741. };
  742.  
  743. Elec = {
  744. Create = function(brickcolor, cff, x, y, z)
  745. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  746. prt.Anchored = true
  747. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  748. prt.CFrame = CFrame.new(prt.Position)
  749. game:GetService("Debris"):AddItem(prt, 10)
  750. xval = math.random() / 9
  751. yval = math.random() / 9
  752. zval = math.random() / 9
  753. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  754. eul1 = math.random(-50, 50)
  755. eul2 = math.random(-50, 50)
  756. eul3 = math.random(-50, 50)
  757. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  758. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  759. table.insert(Effects, {
  760. prt,
  761. "Elec",
  762. .05,
  763. x,
  764. y,
  765. z,
  766. xval,
  767. yval,
  768. zval,
  769. msh,
  770. euld,
  771. euld2
  772. })
  773. end
  774. };
  775.  
  776. Elec2 = {
  777. Create = function(brickcolor, cff, x, y, z)
  778. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  779. prt.Anchored = true
  780. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  781. prt.CFrame = CFrame.new(prt.Position)
  782. game:GetService("Debris"):AddItem(prt, 10)
  783. xval = math.random() / 7
  784. yval = math.random() / 7
  785. zval = math.random() / 7
  786. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  787. eul1 = math.random(-50, 50)
  788. eul2 = math.random(-50, 50)
  789. eul3 = math.random(-50, 50)
  790. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  791. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  792. table.insert(Effects, {
  793. prt,
  794. "Elec",
  795. .1,
  796. x,
  797. y,
  798. z,
  799. xval,
  800. yval,
  801. zval,
  802. msh,
  803. euld,
  804. euld2
  805. })
  806. end
  807. };
  808.  
  809. Clone = {
  810. Create = function()
  811. for _, v in pairs(Torso.Parent:children()) do
  812. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  813. local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
  814. c.Anchored = true
  815. c.CFrame = v.CFrame
  816. game:GetService("Debris"):AddItem(c, 5)
  817. local cmsh = nil
  818. if v.Name == "Head" then
  819. cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
  820. else
  821. cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  822. end
  823. table.insert(Effects, {
  824. c,
  825. "Cylinder",
  826. 0.05,
  827. 0.1,
  828. 0.1,
  829. 0.1,
  830. cmsh
  831. })
  832. end
  833. end
  834. end
  835. };
  836.  
  837. EffectTemplate = {
  838.  
  839. };
  840. }
  841.  
  842.  
  843.  
  844. function basicatk3()
  845. Attack = true
  846. for i = 0, 1, 0.1 do
  847. swait()
  848. PlayAnimationFromTable({
  849. CFrame.new(-0.0142343417, 0.0233179983, 0.020687107, 0.573575377, 0, -0.819152832, 0, 1, 0, 0.819152832, 0, 0.573575377) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  850. CFrame.new(2.98023224e-07, 1.49992621, 2.16066837e-07, 0.608099699, -0.0691893846, 0.790839791, 0, 0.99619478, 0.0871555731, -0.793860614, -0.0529992878, 0.605785728) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  851. CFrame.new(2.05688548, 0.769726157, 0.0676793456, -0.311439514, -0.945715487, -0.092885226, 0.945463896, -0.298567384, -0.130214006, 0.09541291, -0.128373384, 0.987125456) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  852. CFrame.new(-0.411215395, 0.158524469, -0.878887057, 0.250847429, -0.870902896, 0.422615528, 0.960933626, 0.276778936, -3.5065608e-07, -0.116970763, 0.406105578, 0.906309128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  853. CFrame.new(0.657444179, -1.99999833, -0.128117085, 0.896965504, -0.0924630314, 0.432323426, 0.14320904, 0.98592627, -0.0862591267, -0.418263227, 0.139284089, 0.897583365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  854. CFrame.new(-0.494430214, -2.06444812, 0.151889086, 0.924378932, -0.0320322104, 0.380128324, -0.00379799958, 0.995646238, 0.093135722, -0.381456703, -0.0875364318, 0.920232713) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  855. }, .3, false)
  856. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  857. end
  858. swordtrail.Enabled = true
  859. local con = SwordHitbox.Touched:connect(function(hit)
  860. Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  861. CFuncs.Sound.Create("12222208", SwordHitbox, 1, 1)
  862. for i = 0, 1, 0.1 do
  863. swait()
  864. PlayAnimationFromTable({
  865. CFrame.new(-0.0142339114, 0.0233179983, 0.0206872839, 0.642787755, 0, 0.766044497, 0, 1, 0, -0.766044497, 0, 0.642787755) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  866. CFrame.new(9.59248496e-07, 1.49992597, 4.65522191e-07, 0.60942173, 0, -0.792846382, 0, 1, 0, 0.792846322, 0, 0.609421849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  867. CFrame.new(1.73596513, 0.521444082, -0.798278034, 0.809956312, -0.584440529, 0.0489933714, 0.032929007, -0.0380880162, -0.998731732, 0.585565269, 0.810542405, -0.0116045829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  868. CFrame.new(-1.85990238, 0.325684935, -0.117992491, 0.89608562, 0.442657262, 0.0329447091, -0.4075903, 0.849945962, -0.333859384, -0.175786465, 0.285738617, 0.942047179) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  869. CFrame.new(0.425910503, -2.07023525, 0.0920312852, 0.940003216, -0.0248685181, 0.340258449, -0.0248680059, 0.98969233, 0.141034499, -0.340258539, -0.141034409, 0.929695547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  870. CFrame.new(-0.614895225, -2, -0.0110759763, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  871. }, .3, false)
  872. Torso.Velocity=RootPart.CFrame.lookVector*50
  873. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), .5)
  874. end
  875. Torso.Velocity=RootPart.CFrame.lookVector*0
  876. con:Disconnect()
  877. swordtrail.Enabled = false
  878. Attack = false
  879. end
  880.  
  881. function basicatk1()
  882. Attack = true
  883. CFuncs.Sound.Create("12222216", SwordHitbox, 1, 1)
  884. local con = SwordHitbox.Touched:connect(function(hit)
  885. Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  886. for i = 0, 1, 0.1 do
  887. swait()
  888. PlayAnimationFromTable({
  889. CFrame.new(-0.0142327882, 0.0233180653, 0.0206850152, 0.342022419, 9.53674316e-07, -0.939693272, -1.97067857e-06, 0.999999821, -2.77161598e-06, 0.939691842, -3.1888485e-06, 0.342018187) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  890. CFrame.new(-3.0002484e-06, 1.49992502, -4.16819603e-06, 0.536599159, 0, 0.843837321, 0, 1, 0, -0.843837321, 0, 0.536599159) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  891. CFrame.new(1.86725414, 0.520918071, 0.271278173, -0.192566082, -0.920491397, -0.340020508, 0.967886448, -0.121106967, -0.220293105, 0.16159907, -0.371522188, 0.914252102) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  892. CFrame.new(-1.63878369, 0.0883156657, 0.277901947, 0.932158768, 0.313689649, 0.180773243, -0.33414492, 0.937619865, 0.0960013121, -0.139381975, -0.149892926, 0.978828311) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  893. CFrame.new(0.631921172, -2.00664234, -0.186664119, 0.932272255, -0.109707505, 0.344721258, 0.134574026, 0.989692569, -0.0489756428, -0.335795075, 0.0920491666, 0.937426567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  894. CFrame.new(-0.51753515, -2, 0.082954295, 0.939693093, 0, 0.342018992, 0, 1, 0, -0.342019022, 0, 0.939693093) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  895. }, .3, false)
  896. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 1)
  897. end
  898. swordtrail.Enabled = true
  899. for i = 0, .5, 0.1 do
  900. swait()
  901. PlayAnimationFromTable({
  902. CFrame.new(-0.0142326681, 0.0233180001, 0.0206871442, 1.78813934e-07, 0, 1.00000203, 0, 1, 0, -1.00000203, 0, 1.49011612e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  903. CFrame.new(0, 1.49992609, 0, 0.462487102, 0, -0.886626124, 0, 1, 0, 0.886626124, 0, 0.462487072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  904. CFrame.new(1.59986377, 0.488647908, -0.460965931, 0.695726395, -0.716896534, 0.0449903496, 0.0475609899, -0.0165210012, -0.998731732, 0.716730595, 0.696983814, 0.0226022154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  905. CFrame.new(-1.80470943, 0.308719665, 0.00611042976, 0.864646077, 0.492070675, 0.1012609, -0.498273998, 0.865697801, 0.0478584878, -0.0641115457, -0.0918363109, 0.993708193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  906. CFrame.new(0.450665146, -1.87432182, 0.242756784, 0.938798666, 0.182527304, -0.29213196, -0.024868004, 0.881770015, 0.471023679, 0.343567908, -0.434931636, 0.832343459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  907. CFrame.new(-0.463921428, -2, -0.403737426, 0.766046047, 0, -0.642788887, 0, 1, 0, 0.642788887, 0, 0.766046047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  908. }, .3, false)
  909. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), 1)
  910. end
  911.  
  912.  
  913. for i = 0, .5, 0.1 do
  914. swait()
  915. PlayAnimationFromTable({
  916. CFrame.new(-0.0142326681, 0.0233180001, 0.0206871442, 1.78813934e-07, 0, 1.00000203, 0, 1, 0, -1.00000203, 0, 1.49011612e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  917. CFrame.new(0, 1.49992609, 0, 0.462487102, 0, -0.886626124, 0, 1, 0, 0.886626124, 0, 0.462487072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  918. CFrame.new(1.59986377, 0.488647908, -0.460965931, 0.695726395, -0.716896534, 0.0449903496, 0.0475609899, -0.0165210012, -0.998731732, 0.716730595, 0.696983814, 0.0226022154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  919. CFrame.new(-1.80470943, 0.308719665, 0.00611042976, 0.864646077, 0.492070675, 0.1012609, -0.498273998, 0.865697801, 0.0478584878, -0.0641115457, -0.0918363109, 0.993708193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  920. CFrame.new(0.450665146, -1.87432182, 0.242756784, 0.938798666, 0.182527304, -0.29213196, -0.024868004, 0.881770015, 0.471023679, 0.343567908, -0.434931636, 0.832343459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  921. CFrame.new(-0.463921428, -2, -0.403737426, 0.766046047, 0, -0.642788887, 0, 1, 0, 0.642788887, 0, 0.766046047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  922. }, .3, false)
  923. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .1)
  924. end
  925. swordtrail.Enabled = false
  926. con:Disconnect()
  927. Attack = false
  928. end
  929.  
  930.  
  931.  
  932.  
  933.  
  934. function basicatk2()
  935. Attack = true
  936. CFuncs.Sound.Create("12222216", SwordHitbox, 1, .8)
  937. local con = SwordHitbox.Touched:connect(function(hit)
  938. Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  939. for i = 0, .5, 0.1 do
  940. PlayAnimationFromTable({
  941. CFrame.new(0.199326009, 0, -0.0621959642, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  942. CFrame.new(0, 1.49999201, 0, 0.866025805, 0, -0.499999762, 0, 1, 0, 0.499999762, 0, 0.866025805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  943. CFrame.new(0.930871904, 0.250794977, -1.28154397, -0.0386770852, 0.569197655, -0.821290731, -0.998659015, 0.00628901878, 0.0513885207, 0.0344153345, 0.822176874, 0.568191111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  944. CFrame.new(-1.60257423, 0.0277413726, -0.076416865, 0.0147553682, 0.129409567, 0.991481602, 0.224142969, 0.965926051, -0.12940973, -0.974444628, 0.224143118, -0.0147536397) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  945. CFrame.new(0.624383092, -1.99999106, -0.0120142996, 0.707107008, 0, -0.707106769, 0, 1, 0, 0.707106769, 0, 0.707107008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  946. CFrame.new(-0.482958466, -1.99999106, -0.129410326, 0.707106769, 0, 0.707107008, 0, 1, 0, -0.707107008, 0, 0.707106769) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  947. }, .3, false)
  948. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  949. end
  950. swordtrail.Enabled = true
  951. for i = 0, .5, 0.1 do
  952. swait()
  953. PlayAnimationFromTable({
  954. CFrame.new(0.366101086, 0, -0.414826214, 0.258818984, 0, 0.965925872, 0, 1, 0, -0.965925872, 0, 0.258818984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  955. CFrame.new(0, 1.49999201, 0, 0.342023224, 0, -0.939691603, 0, 1, 0, 0.939691603, 0, 0.342023224) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  956. CFrame.new(0.0553627312, 1.3573252, -1.17095125, 0.785249949, 0.559134185, 0.265991658, 0.545306027, -0.827990174, 0.130666092, 0.293298304, 0.0424413234, -0.955078542) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  957. CFrame.new(-1.60256672, 0.0277402997, -0.0764263347, 0.0147550702, 0.129409924, 0.991481423, 0.224143073, 0.965925932, -0.129410043, -0.974444628, 0.224143118, -0.0147539973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  958. CFrame.new(0.624385655, -1.99999106, -0.0120021999, 0.707108498, 0, -0.70710516, 0, 1, 0, 0.70710516, 0, 0.707108498) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  959. CFrame.new(-0.48295331, -1.99999106, -0.129420042, 0.70710516, 0, 0.707108498, 0, 1, 0, -0.707108498, 0, 0.70710516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  960. }, .3, false)
  961. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  962. end
  963. for i = 0, .5, 0.1 do
  964. swait()
  965. PlayAnimationFromTable({
  966. CFrame.new(0.366099417, -0.200000986, -0.414823025, 0.582563281, 0.271655113, 0.766044199, -0.42261821, 0.906307876, -1.75809453e-06, -0.694272339, -0.323743135, 0.642787993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  967. CFrame.new(-0.231262937, 1.54721832, -0.0511251986, 0.851651847, -0.42261821, -0.309973061, 0.397132277, 0.906307876, -0.144540951, 0.342016667, -1.75809453e-06, 0.939694047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  968. CFrame.new(-0.0908454061, 1.16592097, -1.08897507, -0.0772816539, 0.583855987, 0.808170736, 0.727612376, -0.521148086, 0.446077228, 0.681621552, 0.622508645, -0.384545565) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  969. CFrame.new(-1.61299813, 0.0366990864, 0.314264029, -0.455841899, 0.169077203, 0.87385428, 0.0347501114, 0.984423816, -0.172343403, -0.889382243, -0.048194766, -0.454617083) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  970. CFrame.new(1.21119905, -1.34869587, -0.183849275, 0.851651549, -0.252021521, -0.459537864, 0.397132158, 0.882479608, 0.252023607, 0.342017442, -0.39713347, 0.851650953) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  971. CFrame.new(0.0580956787, -1.95897889, 0.369651437, 0.640855312, -0.42261821, 0.640857816, 0.298834234, 0.906307876, 0.298838168, -0.707108855, -1.75809453e-06, 0.707104981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  972. }, .3, false)
  973. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  974. end
  975. for i = 0, .5, 0.1 do
  976. swait()
  977. PlayAnimationFromTable({
  978. CFrame.new(0.366085619, -1.19999647, -0.414817601, 0.582568169, -0.412207156, 0.700499654, -0.422613144, 0.582565188, 0.69427377, -0.694271266, -0.700502098, 0.165179759) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  979. CFrame.new(0.112729274, 1.56678414, 0.254275501, 0.577656388, 0.0997146964, -0.810166836, -0.213354647, 0.976452529, -0.0319427848, 0.787904203, 0.191304803, 0.585328698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  980. CFrame.new(1.96889925, 0.746382177, -0.185331225, 0.0769328177, -0.997015715, 0.00641870499, 0.879773498, 0.0648541152, -0.470948815, 0.469127119, 0.0418784246, 0.882137418) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  981. CFrame.new(-1.88176703, 0.136358321, 0.177449048, -0.455846965, 0.778092861, 0.43217504, 0.703643739, 0.612389445, -0.360367835, -0.545058966, 0.139824644, -0.826655984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  982. CFrame.new(0.90178746, -1.14663219, -0.653959215, 0.851655245, 0.190028608, -0.488439023, -0.00672882795, 0.935840786, 0.352359027, 0.524059415, -0.296801776, 0.798292339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  983. CFrame.new(-0.830604553, -2.07172632, -0.233860642, 0.784890771, 0.0754829049, -0.615019679, -0.147760659, 0.986719251, -0.0674703121, 0.601758778, 0.143832445, 0.785620093) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  984. }, .3, false)
  985. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  986. end
  987. swordtrail.Enabled = false
  988. con:Disconnect()
  989. Attack = false
  990. end
  991.  
  992.  
  993. function dodgeball()
  994. Attack = true
  995. humanoid.AutoRotate = false
  996. local spawnPos = Torso.Position
  997. orb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Crimson"), "ref", Vector3.new(2,2,2))
  998. orb1.Anchored=true
  999. orb1.CanCollide=false
  1000.  
  1001. game:GetService("Debris"):AddItem(orb1, 10)
  1002. orb1.Elasticity = 1
  1003. local mbewm2 = Instance.new("SpecialMesh", orb1)
  1004. mbewm2.MeshType = "Sphere"
  1005. mbewm2.Scale = Vector3.new(1,1,1)
  1006. game:GetService("Debris"):AddItem(orb1, 3)
  1007. for i = 0, 2, 0.1 do
  1008. orb1.CFrame = Dodgebox.CFrame
  1009. swait()
  1010. PlayAnimationFromTable({
  1011. CFrame.new(-0.0142339477, 0.0233179312, 0.0206872448, 0.642789185, 7.39382813e-08, 0.766043305, -4.8651782e-07, 1, 3.11712938e-07, -0.766043305, -5.73050784e-07, 0.642789245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1012. CFrame.new(-3.34310243e-06, 1.49992716, -2.40420513e-06, 0.609423697, -6.78923243e-07, -0.792844892, 8.58872227e-08, 1, -7.90281774e-07, 0.792844832, 4.13525413e-07, 0.609423757) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1013. CFrame.new(1.70033991, 0.0784267411, 0.291652292, 0.980928302, -0.190888226, -0.0366283059, 0.192193046, 0.924432218, 0.329373628, -0.0290131569, -0.330131561, 0.943489075) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1014. CFrame.new(-1.9394995, 0.331927955, -0.314799666, 0.117194936, 0.856613636, -0.502472639, -0.987918258, 0.0488963015, -0.14706032, -0.101404801, 0.513636589, 0.851994693) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1015. CFrame.new(0.596234262, -2.04406619, 0.245654553, 0.999976635, 0.00595425069, -0.00338888168, -0.00461965939, 0.95128876, 0.308266908, 0.00505927205, -0.308244109, 0.951293945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1016. CFrame.new(-0.699660361, -2.00000048, 0.0218301564, 0.984807849, -4.44691977e-07, 0.173648536, 4.41870725e-07, 1, 5.48861863e-08, -0.173648536, 2.26791599e-08, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1017. }, .3, false)
  1018. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1019. end
  1020. local con = orb1.Touched:connect(function(hit)
  1021. CFuncs.Sound.Create("112503990", Torso, 1, .8)end)
  1022. orb1.Anchored=false
  1023. orb1.CanCollide=true
  1024.  
  1025. local roketsped = 500
  1026. local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -3)).p
  1027. orb1.CFrame = CFrame.new(spawnPosition, Mouse.hit.p)
  1028. orb1.Velocity = orb1.CFrame.lookVector * roketsped
  1029. local GRAVITY_ACCELERATION = 196.2
  1030. local bodyForce = Instance.new('BodyForce', orb1)
  1031. bodyForce.Name = 'Antigravity'
  1032. bodyForce.force = Vector3.new(0, orb1:GetMass() * GRAVITY_ACCELERATION, 0)
  1033.  
  1034. game:GetService("Debris"):AddItem(orb1, 8)
  1035.  
  1036. for i = 0, 1, 0.1 do
  1037. swait()
  1038. PlayAnimationFromTable({
  1039. CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1040. CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1041. CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1042. CFrame.new(-1.58664989, 0.765351355, -0.846855521, -0.120212317, 0.321875662, -0.939119458, -0.987918437, -0.131986037, 0.0812216997, -0.0978073403, 0.937537193, 0.333853245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1043. CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1044. CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1045. }, .3, false)
  1046. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1047. end
  1048. humanoid.AutoRotate = true
  1049. Attack = false
  1050. while orb1 do
  1051. swait()
  1052. MagnitudeDamage(orb1, 4, 0, 0, 100, "Normal", "112503990", 1)
  1053. end
  1054.  
  1055. end
  1056.  
  1057.  
  1058. function roketlunch()
  1059. Attack = true
  1060. humanoid.WalkSpeed = 0
  1061. humanoid.JumpPower = 0
  1062. RHandle.Transparency = 0
  1063. Sword.Transparency = 1
  1064. for i = 0, 1, 0.1 do
  1065. swait()
  1066. PlayAnimationFromTable({
  1067. CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1068. CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1069. CFrame.new(1.28755724, 0.00418370962, -0.0650342703, 0.890014946, 0.230696142, -0.393259257, -0.298804998, 0.946620405, -0.120936036, 0.344367683, 0.225142673, 0.911439359) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1070. CFrame.new(-1.59552705, 0.053297095, -0.298519343, 0.986049891, 0.15347448, -0.0644321442, -0.162331849, 0.801095366, -0.576103032, -0.036800772, 0.578525543, 0.814833522) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1071. CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1072. CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1073. }, .3, false)
  1074. end
  1075.  
  1076.  
  1077. for i = 0, 3, 0.1 do
  1078. swait()
  1079. PlayAnimationFromTable({
  1080. CFrame.new(-0.0142319426, -1.08839262, 0.0206871927, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1081. CFrame.new(0.0154080922, 1.55223548, -0.0916156173, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1082. CFrame.new(0.428888142, 0.573096275, -1.0865351, 0.629741013, 0.73693651, -0.245664269, -0.133446366, -0.208918005, -0.968785584, -0.765257001, 0.64286691, -0.0332227312) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1083. CFrame.new(-1.24049437, 0.563232303, -0.47247985, 0.974705219, -0.150607079, -0.165128678, -0.176947653, -0.0686892122, -0.981820583, 0.136526525, 0.986204565, -0.0936013013) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1084. CFrame.new(0.542829335, -1.05595815, -0.494429678, 0.999206185, -0.0391747355, 0.00724902749, 0.0392762125, 0.999124289, -0.0144301355, -0.00667738914, 0.0147034377, 0.999869585) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1085. CFrame.new(-0.433013409, -1.47995389, 0.259185165, 1, -2.98023224e-08, 0, 0, 0.17364727, 0.984807968, 2.98023224e-08, -0.984807849, 0.173647255) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1086. }, .3, false)
  1087. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1088. end
  1089.  
  1090. local roket=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Smoky grey"), "ref", Vector3.new(1,1,2))
  1091. roket.Anchored=false
  1092. roket.CanCollide=true
  1093. local roketsped = 100
  1094. local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -6)).p
  1095. roket.CFrame = CFrame.new(spawnPosition, Mouse.hit.p) --NOTE: This must be done before assigning Parent
  1096. roket.Velocity = roket.CFrame.lookVector * roketsped
  1097. CFuncs.Sound.Create("31761785", roket, 3, 1)
  1098. local GRAVITY_ACCELERATION = 196.2
  1099. local bodyForce = Instance.new('BodyForce', roket)
  1100. bodyForce.Name = 'Antigravity'
  1101. bodyForce.force = Vector3.new(0, roket:GetMass() * GRAVITY_ACCELERATION, 0)
  1102.  
  1103. game:GetService("Debris"):AddItem(roket, 8)
  1104. local con = roket.Touched:connect(function(hit)
  1105. MagnitudeDamage(roket, 10, 0, 0, 100, "Normal", "112503990", 1) Effects.Sphere.Create(BrickColor.new(roket.Color), roket.CFrame, 3, 3, 3, 3, 3, 3, 0.03) roket.Transparency = 1 CFuncs.Sound.Create("169628396", Character, .1, 1) local boo = Instance.new("Explosion", roket) boo.Position = roket.Position boo.BlastRadius = 30
  1106. boo.BlastPressure = 500 roket:Destroy() end)
  1107. for i = 0, 2, 0.1 do
  1108. swait()
  1109. PlayAnimationFromTable({
  1110. CFrame.new(-0.0142334783, -1.08840001, 0.0206862688, 1.00000119, 7.67409801e-07, -2.98023224e-08, 6.21078584e-07, 0.984811127, -0.173649758, 2.38418579e-07, 0.173647732, 0.984807074) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1111. CFrame.new(-0.0153429285, 1.61389816, 0.0791989863, 0.999084234, -0.0110745579, -0.0413306355, 0.00743017718, 0.996153533, -0.0873102993, 0.0421385169, 0.0869232267, 0.995323479) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1112. CFrame.new(0.489735812, 0.316905022, -1.24634087, 0.629742265, 0.683080673, -0.369899511, -0.387131512, -0.136858344, -0.911810875, -0.67346406, 0.717405558, 0.178256541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1113. CFrame.new(-1.24049377, 0.367668957, -0.636619806, 0.974705458, -0.198001236, -0.103657492, -0.119579755, -0.0701957047, -0.990339994, 0.188812226, 0.977685094, -0.092097044) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1114. CFrame.new(0.542830348, -1.16139019, -0.103446305, 0.999207258, -0.0391742066, 0.00724938512, 0.0346246623, 0.943902194, 0.328414857, -0.0197079182, -0.327904552, 0.944504917) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1115. CFrame.new(-0.433018923, -1.30207276, 0.749731183, 1.00000107, -2.38418579e-07, 6.00692658e-07, 7.78585672e-07, -0.173647717, 0.984811127, 5.96046448e-08, -0.984807074, -0.173649803) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1116. }, .3, false)
  1117. Torso.Velocity=RootPart.CFrame.lookVector*-20
  1118. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1119. end
  1120. RHandle.Transparency = 1
  1121. Sword.Transparency = 0
  1122.  
  1123. humanoid.WalkSpeed = 13
  1124. humanoid.JumpPower = 60
  1125. Attack = false
  1126. end
  1127.  
  1128.  
  1129.  
  1130. function fireinDhole()
  1131. Attack = true
  1132. local bomb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Crimson"), "ref", Vector3.new(1,1,1))
  1133. bomb1.Anchored=true
  1134. bomb1.CanCollide=true
  1135. game:GetService("Debris"):AddItem(orb1, 10)
  1136. bomb1.Elasticity = .3
  1137. local mbewm2 = Instance.new("SpecialMesh", bomb1)
  1138. mbewm2.MeshId = "rbxasset://fonts/timebomb.mesh"
  1139. mbewm2.TextureId = "rbxasset://textures/bombtex.png"
  1140. mbewm2.Scale = Vector3.new(1,1,1)
  1141.  
  1142. CFuncs.Sound.Create("11565378", bomb1, 1, 1)
  1143. for i = 0, 2, 0.1 do
  1144. swait()
  1145. PlayAnimationFromTable({
  1146. CFrame.new(-0.0142339477, 0.0233179312, 0.0206872448, 0.642789185, 7.39382813e-08, 0.766043305, -4.8651782e-07, 1, 3.11712938e-07, -0.766043305, -5.73050784e-07, 0.642789245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1147. CFrame.new(-3.34310243e-06, 1.49992716, -2.40420513e-06, 0.609423697, -6.78923243e-07, -0.792844892, 8.58872227e-08, 1, -7.90281774e-07, 0.792844832, 4.13525413e-07, 0.609423757) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1148. CFrame.new(1.70033991, 0.0784267411, 0.291652292, 0.980928302, -0.190888226, -0.0366283059, 0.192193046, 0.924432218, 0.329373628, -0.0290131569, -0.330131561, 0.943489075) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1149. CFrame.new(-1.66880238, 0.166423663, -0.183722675, 0.845035851, 0.182852611, -0.502473533, -0.291941375, 0.945062757, -0.147059917, 0.447978795, 0.270963728, 0.851994097) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1150. CFrame.new(0.596234262, -2.04406619, 0.245654553, 0.999976635, 0.00595425069, -0.00338888168, -0.00461965939, 0.95128876, 0.308266908, 0.00505927205, -0.308244109, 0.951293945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1151. CFrame.new(-0.699660361, -2.00000048, 0.0218301564, 0.984807849, -4.44691977e-07, 0.173648536, 4.41870725e-07, 1, 5.48861863e-08, -0.173648536, 2.26791599e-08, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1152. }, .3, false)
  1153. bomb1.CFrame = Dodgebox.CFrame
  1154. end
  1155. for i = 0, .5, 0.1 do
  1156. swait()
  1157. PlayAnimationFromTable({
  1158. CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1159. CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1160. CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1161. CFrame.new(-1.53036773, 0.2318203, -0.558730543, 0.939119756, 0.343578428, -0.00287370384, -0.0812207609, 0.213862434, -0.973481536, -0.333852679, 0.914449036, 0.228748128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1162. CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1163. CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1164. }, .3, false)
  1165. bomb1.CFrame = Dodgebox.CFrame
  1166. end
  1167. bomb1.CFrame = RootPart.CFrame * CFrame.new(0,0,-3)
  1168. bomb1.Anchored=false
  1169. bomb1.Velocity=RootPart.CFrame.lookVector*50
  1170. for i = 0, .5, 0.1 do
  1171. swait()
  1172. PlayAnimationFromTable({
  1173. CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1174. CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1175. CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1176. CFrame.new(-1.53036773, 0.2318203, -0.558730543, 0.939119756, 0.343578428, -0.00287370384, -0.0812207609, 0.213862434, -0.973481536, -0.333852679, 0.914449036, 0.228748128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1177. CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1178. CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1179. }, .3, false)
  1180. end
  1181. Attack = false
  1182. wait(4)
  1183. MagnitudeDamage(bomb1, 30, 0, 0, 400, "Normal", "112503990", 1)
  1184. Effects.Sphere.Create(BrickColor.new(Torso.Color), bomb1.CFrame, 3, 3, 3, 3, 3, 3, 0.03)
  1185. CFuncs.Sound.Create("169628396", bomb1, 3, 1)
  1186. bomb1.Transparency = 1
  1187. bomb1.Anchored=true
  1188. bomb1.CanCollide=false
  1189. local boo = Instance.new("Explosion", bomb1)
  1190. boo.Position = bomb1.Position
  1191. boo.BlastRadius = 30
  1192. boo.BlastPressure = 500
  1193. end
  1194.  
  1195.  
  1196.  
  1197.  
  1198. Mouse.KeyDown:connect(function(Key)
  1199. Key = Key:lower()
  1200. if Attack == false and Key == 'z' then
  1201. dodgeball()
  1202. elseif Attack == false and Key == 'x' then
  1203. roketlunch()
  1204. elseif Attack == false and Key == 'c' then
  1205. fireinDhole()
  1206. end
  1207. end)
  1208.  
  1209.  
  1210.  
  1211. Mouse.Button1Up:connect(function()
  1212. if Attack == false and Combo== 1 then
  1213. basicatk1()
  1214. Combo=2
  1215. elseif Attack == false and Combo== 2 then
  1216. basicatk2()
  1217. Combo=3
  1218. elseif Attack == false and Combo== 3 then
  1219. basicatk3()
  1220. Combo=1
  1221. end
  1222. end)
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228. --{{Linked Sword remake by SezHu. Made for WolfyKi11er.}}--
  1229. while true do
  1230. swait()
  1231. for i, v in pairs(Character:GetChildren()) do
  1232. if v:IsA("Part") then
  1233. v.Material = "SmoothPlastic"
  1234. elseif v:IsA("Accessory") then
  1235. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1236. end
  1237. end
  1238. for i, v in pairs(Character:GetChildren()) do
  1239. if v:IsA'Model' then
  1240. for _, c in pairs(v:GetChildren()) do
  1241. if c:IsA'Part' then
  1242. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1243. end
  1244. end
  1245. end
  1246. end
  1247. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1248. Velocity = RootPart.Velocity.y
  1249. Sine = Sine + Change
  1250. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1251. if RootPart.Velocity.y > 1 and hit == nil then
  1252. Anim = "Jump"
  1253. if Attack == false then
  1254. Change = 1
  1255. PlayAnimationFromTable({
  1256. CFrame.new(-0.0142319221, 0.0233184248, 0.0206878185, 1.00000012, 1.49011612e-08, 0, 2.72463048e-08, 0.965925992, 0.258818656, 2.98023224e-08, -0.258818597, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1257. CFrame.new(0.0172861218, 1.54588914, -0.00366462767, 0.999084175, 0.00742999092, -0.0421376228, -0.011074245, 0.996153653, -0.0869220346, 0.0413297117, 0.0873090774, 0.995323658) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1258. CFrame.new(1.54051697, 0.254249156, -0.521965742, 0.890014946, -0.152965426, -0.429505706, -0.32768172, 0.440404594, -0.835864007, 0.317014515, 0.884672523, 0.341842651) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1259. CFrame.new(-1.55745959, 0.112057857, 0.343250573, 0.986049891, 0.113037676, 0.12218184, -0.158506706, 0.861737013, 0.481959641, -0.050808996, -0.49460274, 0.867632747) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1260. CFrame.new(0.566533923, -1.59700418, -0.481964171, 0.999206185, -0.0385679156, -0.00998616219, 0.0397087261, 0.94381088, 0.328091979, -0.00322881341, -0.328228056, 0.944592893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1261. CFrame.new(-0.433014154, -1.95977831, 0.0051856637, 1, 0, 0, 0, 0.965925813, 0.258819401, -2.98023224e-08, -0.258819431, 0.965925753) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1262. }, .3, false)
  1263. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1264. end
  1265. elseif RootPart.Velocity.y < -1 and hit == nil then
  1266. Anim = "Fall"
  1267. if Attack == false then
  1268. Change = 1
  1269. PlayAnimationFromTable({
  1270. CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1271. CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1272. CFrame.new(1.44003379, 0.0510732532, -0.418421805, 0.890014946, -0.0760585517, -0.449542671, -0.298804998, 0.647417247, -0.701118112, 0.344367683, 0.75833106, 0.553484201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1273. CFrame.new(-1.55745959, 0.141547889, 0.332177758, 0.986049891, 0.113037676, 0.12218184, -0.162331849, 0.815350056, 0.555745184, -0.036800772, -0.567826271, 0.822325349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1274. CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1275. CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1276. }, .3, false)
  1277. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1278. end
  1279. elseif TorsoVelocity < 1 and hit ~= nil then
  1280. Anim = "Idle"
  1281. if Attack == false then
  1282. Change = 1
  1283. PlayAnimationFromTable({
  1284. CFrame.new(-0.014233104, 0.0233179983, 0.020687025, 0.866024911, 0, -0.500000954, 0, 1, 0, 0.500000954, 0, 0.866024852) * CFrame.new(0, 0 + .05 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0),
  1285. CFrame.new(0, 1.49992597, 0, 0.886625588, 0, 0.462487936, 0, 1, 0, -0.462487817, 0, 0.886625707) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .08 * math.cos(Sine/25), 0, 0),
  1286. CFrame.new(1.70001733, 0.169989109, 0.310000241, 0.827918112, -0.251382649, -0.501356483, 0.215029001, 0.967887759, -0.130214334, 0.51799041, 6.03497028e-07, 0.855386436) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0 + 2 * math.cos(Sine/25)), math.rad(0), math.rad(0)),
  1287. CFrame.new(-1.61998975, 0.0599977374, 2.55400209e-06, 0.981399894, 0.191975057, 4.17232513e-07, -0.191975072, 0.981399834, 9.87734779e-07, -2.38418579e-07, -1.05053186e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 - 2 * math.cos(Sine/25))),
  1288. CFrame.new(0.649993002, -1.99999797, 9.67067535e-07, 0.98969245, -0.143209025, 1.16229057e-06, 0.14320904, 0.98969245, -1.03930267e-06, -1.01327896e-06, 1.19954348e-06, 1) * CFrame.new(0, 0 - .08 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0 + .01 * math.cos(Sine/25)),
  1289. CFrame.new(-0.500000954, -2, -9.53674316e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .08 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0),
  1290. }, .3, false)
  1291. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1292. end
  1293. elseif TorsoVelocity > 2 and hit ~= nil then
  1294. Anim = "Walk"
  1295. if Attack == false then
  1296. PlayAnimationFromTable({
  1297. CFrame.new(-0.0142326364, 0.023318341, 0.0206875801, 1.00000012, 1.5803721e-08, 5.96046448e-08, 2.72463048e-08, 1, 5.61747235e-08, 2.98023224e-08, 2.44280045e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(-.2, math.rad(0 - 10 * math.cos(Sine/6)/2), 0),
  1298. CFrame.new(1.03447394e-06, 1.49992573, -8.27737608e-07, 0.999084234, 2.72463048e-08, -0.0427876711, 2.93197502e-08, 1, 2.55612349e-08, 0.0427877009, 5.61747235e-08, 0.999084353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1299. CFrame.new(1.66816366, 0.125450149, 0.167713135, 0.975411952, -0.217704624, -0.0342991352, 0.22028406, 0.9678877, 0.12111339, 0.0068307519, -0.125690982, 0.992045999) * CFrame.new(0, 0, 0 + .2 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 - 30 * math.cos(Sine/6)/2), 0, 0),
  1300. CFrame.new(-1.58983934, 0.0268005617, -0.146883398, 0.986049891, 0.166255936, -0.00805497169, -0.16625604, 0.981399775, -0.0959867239, -0.00805321336, 0.0959868878, 0.995350063) * CFrame.new(0, 0, 0 - .3 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 + 30 * math.cos(Sine/6)/2), 0, 0),
  1301. CFrame.new(.5, -1.64 - 0.8 * math.cos(Sine / 6) / 2, 0 + 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(-50 * math.sin(Sine / 6)), math.rad(-3), math.rad(0)),
  1302. CFrame.new(-.5, -1.64 + 0.8 * math.cos(Sine / 6) / 2, 0 - 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(50 * math.sin(Sine / 6)), math.rad(3), math.rad(0)),}, .3, false)
  1303. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1304. end
  1305. end
  1306.  
  1307. if #Effects > 0 then
  1308. for e = 1, #Effects do
  1309. if Effects[e] ~= nil then
  1310. local Thing = Effects[e]
  1311. if Thing ~= nil then
  1312. local Part = Thing[1]
  1313. local Mode = Thing[2]
  1314. local Delay = Thing[3]
  1315. local IncX = Thing[4]
  1316. local IncY = Thing[5]
  1317. if Thing[1].Transparency <= 1 then
  1318. if Thing[2] == "Block1" then
  1319. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1320. Mesh = Thing[7]
  1321. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1322. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1323. elseif Thing[2] == "Ice" then
  1324. if Thing[6] <= Thing[5] then
  1325. Thing[6] = Thing[6] + .05
  1326. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  1327. else
  1328. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1329. end
  1330. elseif Thing[2] == "Shatter" then
  1331. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1332. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1333. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1334. Thing[6] = Thing[6] + Thing[5]
  1335. elseif Thing[2] == "Block2" then
  1336. Thing[1].CFrame = Thing[1].CFrame
  1337. Mesh = Thing[7]
  1338. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1339. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1340. elseif Thing[2] == "Block3" then
  1341. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1342. Mesh = Thing[7]
  1343. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1344. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1345. elseif Thing[2] == "Block4" then
  1346. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1347. Mesh = Thing[7]
  1348. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1349. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1350. elseif Thing[2] == "Block2Fire" then
  1351. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1352. Mesh = Thing[7]
  1353. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1354. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1355. if Thing[1].Transparency >= .3 then
  1356. Thing[1].BrickColor = BrickColor.new("Bright red")
  1357. else
  1358. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  1359. end
  1360. elseif Thing[2] == "Cylinder" then
  1361. Mesh = Thing[7]
  1362. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1363. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1364. elseif Thing[2] == "Blood" then
  1365. Mesh = Thing[7]
  1366. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  1367. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1368. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1369. elseif Thing[2] == "Elec" then
  1370. Mesh = Thing[10]
  1371. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1372. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1373. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  1374. Thing[1].Rotation = Vector3.new(0, 0, 0)
  1375. elseif Thing[2] == "Disappear" then
  1376. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1377. end
  1378. else
  1379. Part.Parent = nil
  1380. table.remove(Effects, e)
  1381. end
  1382. end
  1383. end
  1384. end
  1385. end
  1386. Humanoid.Health = math.huge
  1387. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement