Advertisement
pz_java

Sephiroth

Oct 6th, 2017
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.87 KB | None | 0 0
  1. --Script made by Pedrorb03. Enjoy it ;)
  2.  
  3. -- Set Up
  4. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  5. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 100
  6. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 100000
  7. game.Players.LocalPlayer.Character.Humanoid.Health = 100000
  8. local music = nil
  9. while music == nil do
  10. local music = Instance.new("Sound",game.Players.LocalPlayer.Character) music.SoundId = "rbxassetid://186942568" music.Looped = true music:Play()
  11. if music ~= nil then
  12. break
  13. end
  14. end
  15.  
  16. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  17. if part.ClassName == "Accessory" or part.ClassName == "BodyColors" or part.ClassName == "Shirt" or part.ClassName == "Pants" then
  18. part:remove()
  19. end
  20. end
  21.  
  22.  
  23.  
  24. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  25. if part:IsA("BasePart") then
  26. part.BrickColor = BrickColor.new("Pastel brown")
  27. end
  28. end
  29. for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  30. anim:Stop()
  31. end
  32. game.Players.LocalPlayer.Character.Animate:remove()
  33.  
  34. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  35. local joints = {}
  36. for _,join in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
  37. if join.ClassName == "Motor6D" then
  38. table.insert(joints,join:Clone())
  39. end
  40. end
  41.  
  42. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size+Vector3.new(0,0.5,0)
  43. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size+Vector3.new(0,0.5,0)
  44. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size+Vector3.new(0,0.5,0)
  45. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size+Vector3.new(0,0.5,0)
  46. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size+Vector3.new(0,0.5,0)
  47.  
  48. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  49.  
  50. for _,joint in pairs(joints) do
  51. joint.Parent = game.Players.LocalPlayer.Character.Torso
  52. end
  53.  
  54.  
  55. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0-Vector3.new(0,0.5,0)
  56. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0-Vector3.new(0,0.5,0)
  57. game.Players.LocalPlayer.Character.HumanoidRootPart["RootJoint"].C0 = game.Players.LocalPlayer.Character.HumanoidRootPart["RootJoint"].C0+Vector3.new(0,0.5,0)
  58. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0+Vector3.new(0,0.25,0)
  59. game.Players.LocalPlayer.Character.Humanoid.HipHeight = -0.3
  60.  
  61. darknessBalls = {}
  62.  
  63. darknessBall = Instance.new("Part") darknessBall.Size = Vector3.new(0,0,0) darknessBall.Anchored = true darknessBall.CanCollide = false
  64. darknessBall.Transparency = 1
  65. particle = Instance.new("ParticleEmitter",darknessBall) particle.Color = ColorSequence.new(Color3.fromRGB(120,120,120))
  66. particle.LightEmission = 0.65
  67. particle.LightInfluence = 0
  68. particle.Size = NumberSequence.new(5)
  69. particle.Texture = "rbxassetid://1084224253"
  70. particleTrans = {NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0.4),NumberSequenceKeypoint.new(1,1)}
  71. particle.Transparency = NumberSequence.new(particleTrans)
  72. particle.ZOffset = 8
  73. particle.LockedToPart = true
  74. particle.Lifetime = NumberRange.new(5,5)
  75. particle.Rate = 20
  76. particle.Rotation = NumberRange.new(-360,360)
  77. particle.RotSpeed = NumberRange.new(200,200)
  78. particle.Speed = NumberRange.new(0,0)
  79.  
  80.  
  81.  
  82.  
  83. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=1082920525"
  84. hair = Instance.new("Part") hair.Size = Vector3.new(2,1,1) hair.CanCollide = false
  85. mesh = Instance.new("SpecialMesh",hair) mesh.Offset = Vector3.new(-0.15, -3.05, 0.41) mesh.Scale = Vector3.new(11, 8.3, 9) mesh.MeshId = "rbxassetid://1082583627" mesh.TextureId = "rbxassetid://1082570148"
  86. hair.Parent = game.Players.LocalPlayer.Character.Head
  87. weld = Instance.new("Weld",hair) weld.Part0 = hair weld.Part1 = game.Players.LocalPlayer.Character.Head
  88.  
  89. masamune = Instance.new("Part") masamune.Size = Vector3.new(1, 13, 1) masamune.CanCollide = false
  90. mesh = Instance.new("SpecialMesh",masamune) mesh.Offset = Vector3.new(0,0,0) mesh.Scale = Vector3.new(6.5,6.5,6.5) mesh.MeshId = "rbxassetid://1082595355" mesh.TextureId = "rbxassetid://1082570148"
  91. masamune.Parent = game.Players.LocalPlayer.Character
  92. weld = Instance.new("Weld") weld.Part0 = masamune weld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  93. weld.C0 = CFrame.new(0.75,-5.9,0)*CFrame.Angles(math.rad(90),0,math.rad(270))
  94. weld.Parent = masamune
  95. shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) shirt.ShirtTemplate = "rbxassetid://419487588"
  96. pants = Instance.new("Pants",game.Players.LocalPlayer.Character) pants.PantsTemplate = "rbxassetid://419487610"
  97.  
  98. attach0 = Instance.new("Attachment",masamune) attach0.Position = Vector3.new(0.1,6.2,0)
  99. attach1 = Instance.new("Attachment",masamune) attach1.Position = Vector3.new(-0.2,-4.9,0)
  100. trail = Instance.new("Trail",masamune) trail.Attachment0 = attach0 trail.Attachment1 = attach1
  101. trail.Lifetime = 0.2
  102. trail.Transparency = NumberSequence.new(0,1)
  103. trail.LightEmission = 0
  104. trail.Color = ColorSequence.new(Color3.new(0,0,0))
  105.  
  106. wing = Instance.new("Part") wing.Name = "Wing" wing.Anchored = false wing.CanCollide = false wing.Color = Color3.fromRGB(30,30,30) wing.Size = Vector3.new(0,0,0)
  107. mesh = Instance.new("SpecialMesh",wing) mesh.MeshId = "rbxassetid://1090041973" mesh.Scale = Vector3.new(0.01,0.01,0.01)
  108.  
  109.  
  110. flyingCut = Instance.new("Part") flyingCut.Anchored = true flyingCut.Size = Vector3.new(0,13,4) flyingCut.Transparency = 1 flyingCut.CanCollide = false
  111.  
  112.  
  113.  
  114.  
  115. attach0 = Instance.new("Attachment",flyingCut) attach0.Position = Vector3.new(0,6,2)
  116. attach1 = Instance.new("Attachment",flyingCut) attach1.Position = Vector3.new(0,-1,0)
  117. attach2 = Instance.new("Attachment",flyingCut) attach2.Position = Vector3.new(0,-6,2)
  118. trail = Instance.new("Trail",flyingCut) trail.Attachment0 = attach0 trail.Attachment1 = attach1
  119. trail.Lifetime = 0.2
  120. trail.Transparency = NumberSequence.new(0,1)
  121. trail.LightEmission = 0
  122. trail.Color = ColorSequence.new(Color3.new(0,0,0))
  123. trail = Instance.new("Trail",flyingCut) trail.Attachment0 = attach1 trail.Attachment1 = attach2
  124. trail.Lifetime = 0.2
  125. trail.Transparency = NumberSequence.new(0,1)
  126. trail.LightEmission = 0
  127. trail.Color = ColorSequence.new(Color3.new(0,0,0))
  128.  
  129. cuts = {}
  130.  
  131.  
  132. Cutpart = Instance.new("Part") Cutpart.Size = Vector3.new(0,0,0) Cutpart.Color = Color3.fromRGB(255,210,0) Cutpart.Anchored = false
  133. Cutpart.CanCollide = false
  134. Cutpart.Material = Enum.Material.Neon
  135. mesh = Instance.new("SpecialMesh",Cutpart) mesh.MeshType = Enum.MeshType.Sphere
  136. -------------
  137. function swordCut()
  138. local initPos = masamune.CFrame:toWorldSpace(CFrame.new(0,-4.9,0)) -Vector3.new(0,0.1,0)
  139. local initPos2 = masamune.CFrame:toWorldSpace(CFrame.new(0,6.75,0))
  140.  
  141. local ray = Ray.new(initPos.p,-(initPos.p-initPos2.p).Unit*13)
  142.  
  143. local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
  144. if hit then
  145.  
  146. if hit.CanCollide == true then
  147. if hit.Parent:FindFirstChild("Humanoid") then
  148. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-300
  149. end
  150. local parto = Cutpart:Clone()
  151. if hit.Parent:FindFirstChild("Humanoid") then
  152. parto.Material = Enum.Material.SmoothPlastic
  153. parto.Color = Color3.fromRGB(255,0,0)
  154. end
  155. parto.CFrame = CFrame.new(position,position+normal)
  156. parto.Transparency = 1
  157. table.insert(cuttedList,parto)
  158. if #cuttedList > 0 then
  159. for i=1,#cuttedList do
  160. if cuttedList[i+1] == parto then
  161. if cuttedList[i].Material == parto.Material then
  162. if (cuttedList[i].Position-parto.Position).magnitude <= 6 then
  163. parto.Transparency = 0
  164. parto.Size = Vector3.new(0.1,0.1,(cuttedList[i].CFrame.p-parto.Position).magnitude)
  165. parto.CFrame = CFrame.new((cuttedList[i].CFrame.p+parto.Position)/2,parto.Position)
  166. end
  167. end
  168. end
  169. end
  170. end
  171. local weld = Instance.new("Weld") weld.Part0 = parto weld.Part1 = hit
  172. weld.C0 = parto.CFrame:inverse()*hit.CFrame
  173.  
  174. weld.Parent = parto
  175. parto.Parent = game.Workspace
  176.  
  177. game:GetService("Debris"):AddItem(parto,5)
  178. end
  179. end
  180.  
  181. end
  182.  
  183.  
  184. function flyingCut2()
  185. for _,cutt in pairs(cuts) do
  186. local ignore = {}
  187. for _,child in pairs(game.Workspace:GetChildren()) do
  188. if child:FindFirstChild("Humanoid") then
  189. local did = false
  190. for _,ignor in pairs(ignore) do
  191. if ignore == child then
  192. did = true
  193. end
  194. end
  195. if did == false then
  196. for _,part in pairs(child:GetChildren()) do
  197. if part:IsA("BasePart") then
  198. if (part.Position-cutt.Position).magnitude <= 6 then
  199. table.insert(ignore,child)
  200. child.Humanoid.Health = child.Humanoid.Health-50
  201. end
  202. end
  203. end
  204.  
  205. end
  206. end
  207. end
  208. end
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229. end
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. function swordCut2()
  237. local initPos2 = masamune.CFrame:toWorldSpace(CFrame.new(0,-4.9,0)) -Vector3.new(0,0.1,0)
  238. local initPos = masamune.CFrame:toWorldSpace(CFrame.new(0,6.75,0))
  239.  
  240. local ray = Ray.new(initPos.p,-(initPos.p-initPos2.p).Unit*13)
  241.  
  242. local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
  243. if hit then
  244.  
  245. if hit.CanCollide == true then
  246. if hit.Parent:FindFirstChild("Humanoid") then
  247. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-300
  248. end
  249. local parto = Cutpart:Clone()
  250. if hit.Parent:FindFirstChild("Humanoid") then
  251. parto.Material = Enum.Material.SmoothPlastic
  252. parto.Color = Color3.fromRGB(255,0,0)
  253. end
  254. parto.CFrame = CFrame.new(position,position+normal)
  255. parto.Transparency = 1
  256. table.insert(cuttedList2,parto)
  257. if #cuttedList2 > 0 then
  258. for i=1,#cuttedList2 do
  259. if cuttedList2[i+1] == parto then
  260. if cuttedList2[i].Material == parto.Material then
  261. if (cuttedList2[i].Position-parto.Position).magnitude <= 6 then
  262. parto.Transparency = 0
  263. parto.Size = Vector3.new(0.1,0.1,(cuttedList2[i].CFrame.p-parto.Position).magnitude)
  264. parto.CFrame = CFrame.new((cuttedList2[i].CFrame.p+parto.Position)/2,parto.Position)
  265. end
  266. end
  267. end
  268. end
  269. end
  270. local weld = Instance.new("Weld") weld.Part0 = parto weld.Part1 = hit
  271. weld.C0 = parto.CFrame:inverse()*hit.CFrame
  272.  
  273. weld.Parent = parto
  274. parto.Parent = game.Workspace
  275.  
  276. game:GetService("Debris"):AddItem(parto,5)
  277. end
  278. end
  279.  
  280. end
  281. -- Animations
  282. walking = false
  283. usingLegs = false
  284.  
  285. function normalPos()
  286. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(70),math.rad(-10))
  287. end
  288.  
  289.  
  290. function wingPos()
  291. local wingu = wing:Clone()
  292. wingu.Name = "Wing"
  293. wingu.Mesh.Scale = Vector3.new(0,0.04,0.04)
  294. local wingu2 = wingu:Clone()
  295. wingu2.Name = "Main"
  296. wingu2.Parent = wingu
  297. local weld = Instance.new("Weld") weld.Part0 = wingu2 weld.Part1 = wingu weld.C0 = CFrame.new(0,0.5,0)
  298. weld.Parent = wingu2
  299. local weld = Instance.new("Weld") weld.Part0 = wingu weld.Part1 = game.Players.LocalPlayer.Character.Torso
  300. weld.C0 = CFrame.new(0,-1.75,-0.5)*CFrame.Angles(0,math.rad(10),math.rad(-15))
  301. weld.Parent = wingu
  302. wingu.Parent = game.Players.LocalPlayer.Character
  303. for i=1,30,1 do
  304. wait()
  305. wingu.Mesh.Scale = Vector3.new(i/400,0.04,0.04)
  306. wingu.Mesh.Offset = Vector3.new(i/5,0,0)
  307. wingu2.Mesh.Scale = Vector3.new(i/400,0.04,0.04)
  308. wingu2.Mesh.Offset = Vector3.new(i/5,0,0)
  309. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1.4+i/100,0.85,-0.5)*CFrame.Angles(math.rad(0),math.rad(60-i*2),math.rad(90))
  310.  
  311. end
  312. wait(1)
  313. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1.5,0.5,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50))
  314.  
  315.  
  316. end
  317. function wingEnd()
  318. local wingu = game.Players.LocalPlayer.Character.Wing
  319. local wingu2 = game.Players.LocalPlayer.Character.Wing.Main
  320. for i=30,1,-1 do
  321. wait()
  322. wingu.Mesh.Scale = Vector3.new(i/400,0.04,0.04)
  323. wingu.Mesh.Offset = Vector3.new(i/5,0,0)
  324. wingu2.Mesh.Scale = Vector3.new(i/400,0.04,0.04)
  325. wingu2.Mesh.Offset = Vector3.new(i/5,0,0)
  326.  
  327. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1.4+i/100,0.85,-0.5)*CFrame.Angles(math.rad(0),math.rad(30+i*2),math.rad(90))
  328.  
  329. end
  330. wingu:remove()
  331. wingu2:remove()
  332. wait(1)
  333. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  334.  
  335.  
  336. end
  337.  
  338.  
  339. function fly()
  340. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(70),math.rad(180),math.rad(0))
  341. end
  342. function flyEnd()
  343. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(0))
  344. end
  345.  
  346.  
  347. function slice()
  348. for i=1,30,3 do
  349. wait()
  350. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1+i/100,1-i/50,-0.25+i/100)*CFrame.Angles(math.rad(90),math.rad(-70),math.rad(-40+i*6))
  351. end
  352. end
  353.  
  354. function walkStart()
  355. walking = true
  356. for i=-30,30,5 do
  357. wait()
  358. if usingLegs == true then
  359. break
  360. end
  361. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1.5,0)*CFrame.Angles(0,math.rad(90),math.rad(i))
  362. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1.5,0)*CFrame.Angles(math.rad(360),math.rad(270),math.rad(i))
  363. end
  364. for i=30,-30,-5 do
  365. wait()
  366. if usingLegs == true then
  367. break
  368. end
  369. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1.5,0)*CFrame.Angles(0,math.rad(90),math.rad(i))
  370. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1.5,0)*CFrame.Angles(math.rad(360),math.rad(270),math.rad(i))
  371. end
  372. walking = false
  373. end
  374. function walkEnd()
  375. if usingLegs == false then
  376. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1.5,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  377. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1.5,0)*CFrame.Angles(math.rad(360),math.rad(270),math.rad(0))
  378.  
  379. end
  380. end
  381.  
  382. normalPos()
  383. --
  384. BodyPos = Instance.new("BodyPosition")
  385.  
  386. cuttedList = {}
  387. cuttedList2 = {}
  388. cuttedList3 = {}
  389. cuttedList4 = {}
  390.  
  391. flying = false
  392. cooldown = false
  393.  
  394. wingUp = true
  395. wingRot = 15
  396.  
  397. game:GetService("UserInputService").InputBegan:connect(function(key)
  398. if cooldown == false then
  399. if key.KeyCode == Enum.KeyCode.E then
  400.  
  401. slice()
  402.  
  403. normalPos()
  404. end
  405. if key.KeyCode == Enum.KeyCode.Z then
  406. cooldown = true
  407. if not game.Players.LocalPlayer.Character:FindFirstChild("Wing") then
  408. BodyPos.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  409. BodyPos.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  410. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  411.  
  412. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  413. if part:IsA("BasePart") then
  414. local bodyForce = Instance.new("BodyForce",part) bodyForce.Name = "FlyingGravity" bodyForce.Force = Vector3.new(0,part:GetMass()*game.Workspace.Gravity,0)
  415. end
  416. end
  417.  
  418. wingPos()
  419.  
  420. cooldown = false
  421. else
  422. wingEnd()
  423. flyEnd()
  424. BodyPos.Parent = nil
  425. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  426. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  427. if part:FindFirstChild("FlyingGravity") then
  428. part.FlyingGravity:remove()
  429. end
  430. end
  431. cooldown = false
  432. end
  433. end
  434. if key.KeyCode == Enum.KeyCode.R then
  435.  
  436. slice()
  437. local cuttt = flyingCut:Clone()
  438. cuttt.CFrame = CFrame.new(masamune.Position,masamune.Position+game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*10000) + Vector3.new(0,7,0)
  439. cuttt.Parent = game.Workspace
  440. table.insert(cuts,cuttt)
  441. game:GetService("Debris"):AddItem(cuttt,10)
  442.  
  443. normalPos()
  444. end
  445.  
  446. if key.KeyCode == Enum.KeyCode.C then
  447. cooldown = true
  448. for i=1,10 do
  449. wait(0.1)
  450. local ball = darknessBall:Clone()
  451. ball.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  452. ball.Parent = game.Workspace
  453. game:GetService("Debris"):AddItem(ball,4)
  454. table.insert(darknessBalls,ball)
  455. end
  456. cooldown = false
  457. end
  458.  
  459. end
  460. if key.KeyCode == Enum.KeyCode.F then
  461. flying = true
  462. if game.Players.LocalPlayer.Character:FindFirstChild("Wing") then
  463. fly()
  464. end
  465.  
  466. while flying == true do
  467. wait()
  468. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*2
  469. local pos = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p -Vector3.new(0,0.5,0) +game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*10 ,game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p+game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*100000)
  470.  
  471. game.Players.LocalPlayer.Character.Torso.CFrame = pos
  472. BodyPos.Position = pos.p
  473.  
  474.  
  475. end
  476. end
  477. end)
  478. game:GetService("UserInputService").InputEnded:connect(function(key)
  479.  
  480. if key.KeyCode == Enum.KeyCode.F then
  481. flying = false
  482. if game.Players.LocalPlayer.Character:FindFirstChild("Wing") then
  483. flyEnd()
  484. end
  485. end
  486. end)
  487. game:GetService("RunService").RenderStepped:connect(function()
  488.  
  489. if not game.Players.LocalPlayer.Character:FindFirstChild("Wing") then
  490. if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude > 0.5 then
  491. if walking == false then
  492. walkStart()
  493. end
  494. end
  495. if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
  496. walkEnd()
  497. end
  498. else
  499. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p,game.Players.LocalPlayer:GetMouse().Hit.p)
  500. if wingUp == true then
  501. wingRot = wingRot+1
  502. if wingRot >= 15 then
  503. wingUp = false
  504. end
  505. end
  506. if wingUp == false then
  507. wingRot = wingRot-1
  508. if wingRot <= -15 then
  509. wingUp = true
  510. end
  511. end
  512. game.Players.LocalPlayer.Character.Wing.Weld.C0 = CFrame.new(0,-1.75,-0.5)*CFrame.Angles(0,math.rad(10),math.rad(-wingRot/2))
  513. end
  514. for _,cut in pairs(cuts) do
  515. cut.CFrame = cut.CFrame+cut.CFrame.lookVector*3
  516. end
  517. if #darknessBalls > 0 then
  518. local ignoreList = {game.Players.LocalPlayer.Character}
  519. for i=1,#darknessBalls do
  520. darknessBalls[i].CFrame = darknessBalls[i].CFrame+darknessBalls[i].CFrame.lookVector/5
  521. for _,child in pairs(game.Workspace:GetChildren()) do
  522. local did = false
  523. for _,ignored in pairs(ignoreList) do
  524. if ignored == child then
  525. did = true
  526. end
  527. end
  528. if did == false then
  529. if child:FindFirstChild("Humanoid") then
  530. for _,part in pairs(child:GetChildren()) do
  531. if part:IsA("BasePart") then
  532. if (part.Position-darknessBalls[i].Position).magnitude <= 5 then
  533. child.Humanoid.Health = child.Humanoid.Health-50
  534. table.insert(ignoreList,child)
  535. end
  536. end
  537. end
  538. end
  539. end
  540.  
  541. end
  542. end
  543. end
  544. ---SwordCut
  545. swordCut()
  546. swordCut2()
  547. flyingCut2()
  548. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement