Dark_EccentricYT

Untitled

Mar 21st, 2018
3,584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.01 KB | None | 0 0
  1. wait(1)
  2.  
  3. player = game.Players.LocalPlayer
  4. char = player.Character
  5. head = char.Head
  6. torso = char.Torso
  7. t = torso
  8. hum = char.Humanoid
  9.  
  10. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  11. local wld = Instance.new("Weld", wp0)
  12. wld.Part0 = wp0
  13. wld.Part1 = wp1
  14. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  15. if wp1.Name == "Head" then
  16. wld.Name="Neck"
  17. end
  18. return wld
  19. end
  20.  
  21. for i,v in pairs (char:GetChildren()) do
  22. if v:IsA("Hat") or v:IsA("Accessory") then
  23. v:Destroy()
  24. end
  25. end
  26. Horn = Instance.new("Part")
  27. ParticleEmitter1 = Instance.new("ParticleEmitter")
  28. ParticleEmitter2 = Instance.new("ParticleEmitter")
  29. Horn.Name = "Horns"
  30. Horn.Parent = char
  31. Horn.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  32. Horn.BottomSurface = Enum.SurfaceType.Smooth
  33. Horn.TopSurface = Enum.SurfaceType.Smooth
  34. Horn.CFrame = head.CFrame
  35. ParticleEmitter1.Parent = Horn
  36. ParticleEmitter1.Transparency = NumberSequence.new(1,0.75,1)
  37. ParticleEmitter1.Rotation = NumberRange.new(-180, 180)
  38. ParticleEmitter1.Size = NumberSequence.new(0.8,0)
  39. ParticleEmitter1.LockedToPart=true
  40. ParticleEmitter2.LockedToPart=true
  41. ParticleEmitter1.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  42. ParticleEmitter1.LightEmission = 0.69999998807907
  43. ParticleEmitter1.Texture = "rbxassetid://170257522"
  44. ParticleEmitter1.EmissionDirection = Enum.NormalId.Left
  45. ParticleEmitter1.ZOffset = 0.5
  46. ParticleEmitter1.Acceleration = Vector3.new(0, 4, 0)
  47. ParticleEmitter1.Lifetime = NumberRange.new(1.1)
  48. ParticleEmitter1.Rate = 100
  49. ParticleEmitter1.RotSpeed = NumberRange.new(-18, 18)
  50. ParticleEmitter1.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  51.  
  52. ParticleEmitter2.Parent = Horn
  53. ParticleEmitter2.Transparency = NumberSequence.new(1,0.75,1)
  54. ParticleEmitter2.Rotation = NumberRange.new(-180, 180)
  55. ParticleEmitter2.Size = NumberSequence.new(0.8,0)
  56. ParticleEmitter2.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  57. ParticleEmitter2.LightEmission = 0.69999998807907
  58. ParticleEmitter2.Texture = "rbxassetid://170257522"
  59. ParticleEmitter2.EmissionDirection = Enum.NormalId.Right
  60. ParticleEmitter2.ZOffset = 0.5
  61. ParticleEmitter2.Acceleration = Vector3.new(0, 4, 0)
  62. ParticleEmitter2.Lifetime = NumberRange.new(1.1)
  63. ParticleEmitter2.Rate = 100
  64. ParticleEmitter2.RotSpeed = NumberRange.new(-18, 18)
  65. ParticleEmitter2.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  66.  
  67.  
  68.  
  69. Hat0 = Instance.new("Accessory")
  70. Handle = Instance.new("Part")
  71. SpecialMesh2 = Instance.new("SpecialMesh")
  72. Hat0.Name = "DarkKnightHood"
  73. Hat0.AttachmentPos = Vector3.new(0, 1.63999999, -0.00999999978)
  74. Handle.Name = "Handle"
  75. Handle.Parent = Hat0
  76. Handle.Rotation = Vector3.new(-13.3299999, -0.25999999, -0.0799999982)
  77. Handle.CanCollide = false
  78. Handle.FormFactor = Enum.FormFactor.Custom
  79. Handle.Size = Vector3.new(2.20000029, 3.80000067, 1.36999905)
  80. Handle.CFrame = CFrame.new(-34.6326752, 7.71574116, 8.64290714, 0.999988198, 0.00145675475, -0.00462479144, -0.000351635739, 0.973076522, 0.23047556, 0.0048360303, -0.230471551, 0.973067045)
  81. Handle.BottomSurface = Enum.SurfaceType.Smooth
  82. Handle.TopSurface = Enum.SurfaceType.Smooth
  83. Handle.Position = Vector3.new(-34.6326752, 7.71574116, 8.64290714)
  84. Handle.Orientation = Vector3.new(-13.3299999, -0.269999981, -0.0199999996)
  85. SpecialMesh0 = Instance.new("SpecialMesh")
  86. SpecialMesh0.Parent = Handle
  87. SpecialMesh0.MeshId = "rbxassetid://391929045"
  88. SpecialMesh0.Offset = Vector3.new(0, 1, 0.25)
  89. SpecialMesh0.Scale = Vector3.new(2.0999999, 2.0999999, 2.0999999)
  90. SpecialMesh0.TextureId = "rbxassetid://391929221"
  91. SpecialMesh0.MeshType = Enum.MeshType.FileMesh
  92. SpecialMesh0.Scale = Vector3.new(2.0999999, 2.0999999, 2.0999999)
  93.  
  94. Accessory0 = Instance.new("Accessory")
  95. Part1 = Instance.new("Part")
  96. SpecialMesh2 = Instance.new("SpecialMesh")
  97. Attachment3 = Instance.new("Attachment")
  98. Vector3Value4 = Instance.new("Vector3Value")
  99. Weld5 = Instance.new("Weld")
  100. Accessory0.Name = "SilverthornAntlers"
  101. Accessory0.AttachmentPos = Vector3.new(0, -0.75, 0.200000003)
  102. H2 = Part1
  103. Part1.Name = "Handle"
  104. Part1.Parent = Accessory0
  105. Part1.Rotation = Vector3.new(-13.3299999, -0.25999999, -0.0799999982)
  106. Part1.CanCollide = false
  107. Part1.Locked = true
  108. Part1.FormFactor = Enum.FormFactor.Plate
  109. Part1.Size = Vector3.new(1, 2, 1)
  110. Part1.CFrame = CFrame.new(-34.6282234, 10.763752, 7.88773584, 0.999988198, 0.00145675475, -0.00462479144, -0.000351635739, 0.973076522, 0.23047556, 0.0048360303, -0.230471551, 0.973067045)
  111. Part1.BottomSurface = Enum.SurfaceType.Smooth
  112. Part1.TopSurface = Enum.SurfaceType.Smooth
  113. Part1.Position = Vector3.new(-34.6282234, 10.763752, 7.88773584)
  114. Part1.Orientation = Vector3.new(-13.3299999, -0.269999981, -0.0199999996)
  115. SpecialMesh2.Parent = Part1
  116. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1271547"
  117. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  118. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=9254947"
  119. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  120. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  121. Attachment3.Name = "HatAttachment"
  122. Attachment3.Parent = Part1
  123. Attachment3.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  124. Attachment3.CFrame = CFrame.new(8.65838956e-09, -0.650000095, 0.199727759, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  125. Attachment3.Position = Vector3.new(8.65838956e-09, -0.650000095, 0.199727759)
  126. Attachment3.Axis = Vector3.new(1, -7.87137555e-09, 0)
  127. Attachment3.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  128. Vector3Value4.Name = "OriginalSize"
  129. Vector3Value4.Parent = Part1
  130. Vector3Value4.Value = Vector3.new(1, 2, 1)
  131.  
  132.  
  133.  
  134. spawn(function()
  135. wait(0.2)
  136. Hat0.Parent=char
  137. -- newWeld(head,Handle,0,0,0)
  138. Accessory0.Parent=char
  139. -- newWeld(head,H2,0,0,0)
  140. end)
  141.  
  142.  
  143.  
  144.  
  145.  
  146. shirt = char:FindFirstChild("Shirt")
  147. pants = char:FindFirstChild("Pants")
  148. sg = char:FindFirstChild("Shirt Graphic")
  149. if shirt then shirt:Destroy() end
  150. if pants then pants:Destroy() end
  151. if sg then sg:Destroy() end
  152.  
  153. shirt = Instance.new("Shirt",char)
  154. pants = Instance.new("Pants",char)
  155.  
  156. shirt.ShirtTemplate = "rbxassetid://767426316"
  157. pants.PantsTemplate = "rbxassetid://201888161"
  158.  
  159. char['Torso'].Size = Vector3.new(4,4,2)
  160.  
  161. char['Right Arm'].Size = Vector3.new(2,4,2)
  162. char['Left Arm'].Size = Vector3.new(2,4,2)
  163. char['Right Leg'].Size = Vector3.new(2,4,2)
  164. char['Left Leg'].Size = Vector3.new(2,4,2)
  165.  
  166. char['Head'].Size = Vector3.new(4,2,2)
  167. local we = Instance.new("Weld",Horn)
  168. we.Part0 = head
  169. we.Part1 = Horn
  170. spawn(function()
  171. local Ang = CFrame.Angles --[Storing these as variables so I dont have to type them out.]
  172. local aSin = math.asin
  173. local aTan = math.atan
  174.  
  175. --[Constants]:
  176.  
  177. local Cam = game.Workspace.CurrentCamera
  178.  
  179. local Plr = game.Players.LocalPlayer
  180. local Mouse = Plr:GetMouse()
  181. local Body = Plr.Character or Plr.CharacterAdded:wait()
  182. local Head = Body:WaitForChild("Head")
  183. local Hum = Body:WaitForChild("Humanoid")
  184. local Core = Body:WaitForChild("HumanoidRootPart")
  185. local IsR6 = (Hum.RigType.Value==0) --[Checking if the player is using R15 or R6.]
  186. local Trso = (IsR6 and Body:WaitForChild("Torso")) or Body:WaitForChild("UpperTorso")
  187. local Neck = (IsR6 and Trso:WaitForChild("Neck")) or Head:WaitForChild("Neck") --[Once we know the Rig, we know what to find.]
  188. local Waist = (not IsR6 and Trso:WaitForChild("Waist")) --[R6 doesn't have a waist joint, unfortunately.]
  189.  
  190. local MseGuide = false
  191.  
  192. local TurnCharacterToMouse = false
  193.  
  194. local HeadHorFactor = 1
  195. local HeadVertFactor = 0.6
  196. local BodyHorFactor = 0.5
  197. local BodyVertFactor = 0.4
  198.  
  199. local UpdateSpeed = 0.5
  200.  
  201. local NeckOrgnC0 = Neck.C0 --[Get the base C0 to manipulate off of.]
  202. local WaistOrgnC0 = (not IsR6 and Waist.C0) --[Get the base C0 to manipulate off of.]
  203.  
  204. --[Setup]:
  205.  
  206.  
  207. -- Activation]:
  208. if TurnCharacterToMouse == true then
  209. MseGuide = true
  210. HeadHorFactor = 0
  211. BodyHorFactor = 0
  212. end
  213.  
  214. game:GetService("RunService").RenderStepped:Connect(function()
  215. local CamCF = Cam.CoordinateFrame
  216. if ((IsR6 and Body["Torso"]) or Body["UpperTorso"])~=nil and Body["Head"]~=nil then --[Check for the Torso and Head...]
  217. local TrsoLV = Trso.CFrame.lookVector
  218. local HdPos = Head.CFrame.p
  219. if IsR6 and Neck or Neck and Waist then --[Make sure the Neck still exists.]
  220. if Cam.CameraSubject:IsDescendantOf(Body) or Cam.CameraSubject:IsDescendantOf(Plr) then
  221. local Dist = nil;
  222. local Diff = nil;
  223. if not MseGuide then --[If not tracking the Mouse then get the Camera.]
  224. Dist = (Head.CFrame.p-CamCF.p).magnitude
  225. Diff = Head.CFrame.Y-CamCF.Y
  226. if not IsR6 then --[R6 and R15 Neck rotation C0s are different; R15: X axis inverted and Z is now the Y.]
  227. Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang((aSin(Diff/Dist)*HeadVertFactor), -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*HeadHorFactor, 0), UpdateSpeed/2)
  228. Waist.C0 = Waist.C0:lerp(WaistOrgnC0*Ang((aSin(Diff/Dist)*BodyVertFactor), -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*BodyHorFactor, 0), UpdateSpeed/2)
  229. else --[R15s actually have the properly oriented Neck CFrame.]
  230. Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang(-(aSin(Diff/Dist)*HeadVertFactor), 0, -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*HeadHorFactor),UpdateSpeed/2)
  231. end
  232. else
  233. local Point = Mouse.Hit.p
  234. Dist = (Head.CFrame.p-Point).magnitude
  235. Diff = Head.CFrame.Y-Point.Y
  236. if not IsR6 then
  237. Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang(-(aTan(Diff/Dist)*HeadVertFactor), (((HdPos-Point).Unit):Cross(TrsoLV)).Y*HeadHorFactor, 0), UpdateSpeed/2)
  238. Waist.C0 = Waist.C0:lerp(WaistOrgnC0*Ang(-(aTan(Diff/Dist)*BodyVertFactor), (((HdPos-Point).Unit):Cross(TrsoLV)).Y*BodyHorFactor, 0), UpdateSpeed/2)
  239. else
  240. Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang((aTan(Diff/Dist)*HeadVertFactor), 0, (((HdPos-Point).Unit):Cross(TrsoLV)).Y*HeadHorFactor), UpdateSpeed/2)
  241. end
  242. end
  243. end
  244. end
  245. end
  246. if TurnCharacterToMouse == true then
  247. Hum.AutoRotate = false
  248. Core.CFrame = Core.CFrame:lerp(CFrame.new(Core.Position, Vector3.new(Mouse.Hit.p.x, Core.Position.Y, Mouse.Hit.p.z)), UpdateSpeed / 2)
  249. else
  250. Hum.AutoRotate = true
  251. end
  252. end)
  253. end)
  254.  
  255.  
  256. larm = char['Left Arm']
  257. rarm = char['Right Arm']
  258. lleg = char['Left Leg']
  259. rleg = char['Right Leg']
  260. hed = char['Head']
  261. root = char['HumanoidRootPart']
  262.  
  263. LeftArm = newWeld(torso, larm, -1.5, 1, 0)
  264.  
  265. RightArm = newWeld(torso, rarm, 1.5, 1, 0)
  266.  
  267. Head = newWeld(torso, hed, 0, 3, 0)
  268.  
  269. LeftLeg = newWeld(torso, lleg, -1, -2, 0)
  270.  
  271. RightLeg = newWeld(torso, rleg, 1, -2, 0)
  272.  
  273. Torso = newWeld(root, torso, 0, -2, 0)
  274.  
  275. Torso.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  276. Torso.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  277. LeftLeg.C0 = CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  278. LeftLeg.C1 = CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  279. RightLeg.C0 = CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  280. RightLeg.C1 = CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  281. LeftArm.C0 = CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  282. LeftArm.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  283. RightArm.C0 = CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  284. RightArm.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  285. Head.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  286. Head.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  287.  
  288. function createSound(id,speed,vol,looped,parent)
  289. local sound = Instance.new("Sound",head)
  290. sound.SoundId = id
  291. sound.PlaybackSpeed = speed
  292. if parent then sound.Parent = parent end
  293. if vol then sound.Volume = vol end
  294. if looped then sound.Looped = looped end
  295. sound:Play()
  296. spawn(function()
  297. if looped == false then
  298. wait(sound.TimeLength)
  299. sound:Destroy()
  300. end
  301. end)
  302. end
  303. --BGM
  304. createSound('rbxassetid://1337508713',1,1,true)
  305.  
  306. --Delete the animator
  307. humanoid = char:FindFirstChildOfClass("Humanoid")
  308.  
  309. do
  310. char:WaitForChild("Animate"):Destroy()
  311. humanoid:WaitForChild("Animator"):Destroy()
  312. end
  313.  
  314. pose = "Idle"
  315.  
  316. --Pose updater
  317. spawn(function()
  318. while wait() do
  319. local velocity = char.HumanoidRootPart.Velocity
  320. local X = (char.HumanoidRootPart.Velocity).magnitude
  321. local vY = velocity.Y
  322. if vY > 0.8 then
  323. pose = "Jumping"
  324. elseif vY<-0.8 then
  325. pose = "Falling"
  326. end
  327. if X > 0.8 then
  328. pose = "Running"
  329. end
  330. if humanoid.MoveDirection == Vector3.new(0,0,0) then
  331. pose = "Idle"
  332. end
  333. if X < 0.3 and vY < 0.3 and X > -0.3 and vY > -0.3 then
  334. pose = "Idle"
  335. end
  336. end
  337. end)
  338.  
  339. --Spell hand
  340. Spells = Instance.new("Model")
  341. Part1 = Instance.new("Part")
  342. SurfaceGui2 = Instance.new("SurfaceGui")
  343. ImageLabel3 = Instance.new("ImageLabel")
  344. SurfaceGui4 = Instance.new("SurfaceGui")
  345. ImageLabel5 = Instance.new("ImageLabel")
  346. SurfaceGui6 = Instance.new("SurfaceGui")
  347. ImageLabel7 = Instance.new("ImageLabel")
  348. SurfaceGui8 = Instance.new("SurfaceGui")
  349. ImageLabel9 = Instance.new("ImageLabel")
  350. Weld10 = Instance.new("Weld")
  351. Part11 = Instance.new("Part")
  352. SurfaceGui12 = Instance.new("SurfaceGui")
  353. ImageLabel13 = Instance.new("ImageLabel")
  354. SurfaceGui14 = Instance.new("SurfaceGui")
  355. ImageLabel15 = Instance.new("ImageLabel")
  356. SurfaceGui16 = Instance.new("SurfaceGui")
  357. ImageLabel17 = Instance.new("ImageLabel")
  358. SurfaceGui18 = Instance.new("SurfaceGui")
  359. ImageLabel19 = Instance.new("ImageLabel")
  360. Weld20 = Instance.new("Weld")
  361. Part21 = Instance.new("Part")
  362. SurfaceGui22 = Instance.new("SurfaceGui")
  363. ImageLabel23 = Instance.new("ImageLabel")
  364. SurfaceGui24 = Instance.new("SurfaceGui")
  365. ImageLabel25 = Instance.new("ImageLabel")
  366. SurfaceGui26 = Instance.new("SurfaceGui")
  367. ImageLabel27 = Instance.new("ImageLabel")
  368. SurfaceGui28 = Instance.new("SurfaceGui")
  369. ImageLabel29 = Instance.new("ImageLabel")
  370. Weld30 = Instance.new("Weld")
  371. Part31 = Instance.new("Part")
  372. Weld32 = Instance.new("Weld")
  373. Spells.Name = "Spells"
  374. Spells.Parent = mas
  375. Spells.PrimaryPart = Part31
  376. Part1.Name = "Spell3"
  377. Part1.Parent = Spells
  378. Part1.Transparency = 1
  379. Part1.Size = Vector3.new(3, 0.0500000007, 3)
  380. Part1.CFrame = CFrame.new(-2.00700021, 1.75291348, 1.921, 1, 0, 0, 0, 0.999999642, 0, 0, 0, 1)
  381. Part1.BottomSurface = Enum.SurfaceType.Smooth
  382. Part1.TopSurface = Enum.SurfaceType.Smooth
  383. Part1.Position = Vector3.new(-2.00700021, 1.75291348, 1.921)
  384. SurfaceGui2.Parent = Part1
  385. SurfaceGui2.Face = Enum.NormalId.Top
  386. ImageLabel3.Parent = SurfaceGui2
  387. ImageLabel3.Transparency = 1
  388. ImageLabel3.Size = UDim2.new(1, 0, 1, 0)
  389. ImageLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  390. ImageLabel3.BackgroundTransparency = 1
  391. ImageLabel3.Image = "rbxassetid://3337202"
  392. SurfaceGui4.Parent = Part1
  393. SurfaceGui4.Face = Enum.NormalId.Top
  394. ImageLabel5.Parent = SurfaceGui4
  395. ImageLabel5.Transparency = 1
  396. ImageLabel5.Size = UDim2.new(1, 0, 1, 0)
  397. ImageLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
  398. ImageLabel5.BackgroundTransparency = 1
  399. ImageLabel5.Image = "rbxassetid://3337202"
  400. SurfaceGui6.Parent = Part1
  401. SurfaceGui6.Face = Enum.NormalId.Bottom
  402. ImageLabel7.Parent = SurfaceGui6
  403. ImageLabel7.Transparency = 1
  404. ImageLabel7.Size = UDim2.new(1, 0, 1, 0)
  405. ImageLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
  406. ImageLabel7.BackgroundTransparency = 1
  407. ImageLabel7.Image = "rbxassetid://3337202"
  408. SurfaceGui8.Parent = Part1
  409. SurfaceGui8.Face = Enum.NormalId.Bottom
  410. ImageLabel9.Parent = SurfaceGui8
  411. ImageLabel9.Transparency = 1
  412. ImageLabel9.Size = UDim2.new(1, 0, 1, 0)
  413. ImageLabel9.BackgroundColor3 = Color3.new(1, 1, 1)
  414. ImageLabel9.BackgroundTransparency = 1
  415. ImageLabel9.Image = "rbxassetid://3337202"
  416. Weld10.Name = "SpellWeld"
  417. Weld10.Parent = Part1
  418. Weld10.C1 = CFrame.new(0.000245000236, 1.24710596, -0.00010599941, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  419. Weld10.Part0 = Part31
  420. Weld10.Part1 = Part1
  421. Part11.Name = "Spell1"
  422. Part11.Parent = Spells
  423. Part11.Transparency = 1
  424. Part11.Shape = Enum.PartType.Cylinder
  425. Part11.Size = Vector3.new(3.5, 0.0500000007, 3.5)
  426. Part11.CFrame = CFrame.new(-2.00700021, 3.00000024, 1.921, 1, 0, 0, 0, 0.999999404, 0, 0, 0, 1)
  427. Part11.BottomSurface = Enum.SurfaceType.Smooth
  428. Part11.TopSurface = Enum.SurfaceType.Smooth
  429. Part11.Position = Vector3.new(-2.00700021, 3.00000024, 1.921)
  430. SurfaceGui12.Parent = Part11
  431. SurfaceGui12.Face = Enum.NormalId.Top
  432. ImageLabel13.Parent = SurfaceGui12
  433. ImageLabel13.Transparency = 1
  434. ImageLabel13.Size = UDim2.new(1, 0, 1, 0)
  435. ImageLabel13.BackgroundColor3 = Color3.new(1, 1, 1)
  436. ImageLabel13.BackgroundTransparency = 1
  437. ImageLabel13.Image = "rbxassetid://3337202"
  438. SurfaceGui14.Parent = Part11
  439. SurfaceGui14.Face = Enum.NormalId.Top
  440. ImageLabel15.Parent = SurfaceGui14
  441. ImageLabel15.Transparency = 1
  442. ImageLabel15.Size = UDim2.new(1, 0, 1, 0)
  443. ImageLabel15.BackgroundColor3 = Color3.new(1, 1, 1)
  444. ImageLabel15.BackgroundTransparency = 1
  445. ImageLabel15.Image = "rbxassetid://3337202"
  446. SurfaceGui16.Parent = Part11
  447. SurfaceGui16.Face = Enum.NormalId.Bottom
  448. ImageLabel17.Parent = SurfaceGui16
  449. ImageLabel17.Transparency = 1
  450. ImageLabel17.Size = UDim2.new(1, 0, 1, 0)
  451. ImageLabel17.BackgroundColor3 = Color3.new(1, 1, 1)
  452. ImageLabel17.BackgroundTransparency = 1
  453. ImageLabel17.Image = "rbxassetid://3337202"
  454. SurfaceGui18.Parent = Part11
  455. SurfaceGui18.Face = Enum.NormalId.Bottom
  456. ImageLabel19.Parent = SurfaceGui18
  457. ImageLabel19.Transparency = 1
  458. ImageLabel19.Size = UDim2.new(1, 0, 1, 0)
  459. ImageLabel19.BackgroundColor3 = Color3.new(1, 1, 1)
  460. ImageLabel19.BackgroundTransparency = 1
  461. ImageLabel19.Image = "rbxassetid://3337202"
  462. Weld20.Name = "SpellWeld"
  463. Weld20.Parent = Part11
  464. Weld20.C1 = CFrame.new(0.000245000236, 1.88350677e-05, -0.00010599941, 1, 0, 0, 0, 0.999999523, 0, 0, 0, 1)
  465. Weld20.Part0 = Part31
  466. Weld20.Part1 = Part11
  467. Part21.Name = "Spell2"
  468. Part21.Parent = Spells
  469. Part21.Transparency = 1
  470. Part21.Size = Vector3.new(3.25, 0.0500000007, 3.25)
  471. Part21.CFrame = CFrame.new(-2.00700021, 2.32607484, 1.921, 1, 0, 0, 0, 0.999999166, 0, 0, 0, 1)
  472. Part21.BottomSurface = Enum.SurfaceType.Smooth
  473. Part21.TopSurface = Enum.SurfaceType.Smooth
  474. Part21.Position = Vector3.new(-2.00700021, 2.32607484, 1.921)
  475. SurfaceGui22.Parent = Part21
  476. SurfaceGui22.Face = Enum.NormalId.Top
  477. ImageLabel23.Parent = SurfaceGui22
  478. ImageLabel23.Transparency = 1
  479. ImageLabel23.Size = UDim2.new(1, 0, 1, 0)
  480. ImageLabel23.BackgroundColor3 = Color3.new(1, 1, 1)
  481. ImageLabel23.BackgroundTransparency = 1
  482. ImageLabel23.Image = "rbxassetid://3337202"
  483. SurfaceGui24.Parent = Part21
  484. SurfaceGui24.Face = Enum.NormalId.Top
  485. ImageLabel25.Parent = SurfaceGui24
  486. ImageLabel25.Transparency = 1
  487. ImageLabel25.Size = UDim2.new(1, 0, 1, 0)
  488. ImageLabel25.BackgroundColor3 = Color3.new(1, 1, 1)
  489. ImageLabel25.BackgroundTransparency = 1
  490. ImageLabel25.Image = "rbxassetid://3337202"
  491. SurfaceGui26.Parent = Part21
  492. SurfaceGui26.Face = Enum.NormalId.Bottom
  493. ImageLabel27.Parent = SurfaceGui26
  494. ImageLabel27.Transparency = 1
  495. ImageLabel27.Size = UDim2.new(1, 0, 1, 0)
  496. ImageLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
  497. ImageLabel27.BackgroundTransparency = 1
  498. ImageLabel27.Image = "rbxassetid://3337202"
  499. SurfaceGui28.Parent = Part21
  500. SurfaceGui28.Face = Enum.NormalId.Bottom
  501. ImageLabel29.Parent = SurfaceGui28
  502. ImageLabel29.Transparency = 1
  503. ImageLabel29.Size = UDim2.new(1, 0, 1, 0)
  504. ImageLabel29.BackgroundColor3 = Color3.new(1, 1, 1)
  505. ImageLabel29.BackgroundTransparency = 1
  506. ImageLabel29.Image = "rbxassetid://3337202"
  507. Weld30.Name = "SpellWeld"
  508. Weld30.Parent = Part21
  509. Weld30.C1 = CFrame.new(0.000245000236, 0.673944712, -0.00010599941, 1, 0, 0, 0, 0.999999285, 0, 0, 0, 1)
  510. Weld30.Part0 = Part31
  511. Weld30.Part1 = Part21
  512. Part31.Name = "Handle"
  513. Part31.Parent = Spells
  514. Part31.Transparency = 1
  515. Part31.Size = Vector3.new(2, 4, 2)
  516. Part31.CFrame = CFrame.new(-2.00675511, 3.00001907, 1.92089403, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  517. Part31.BottomSurface = Enum.SurfaceType.Smooth
  518. Part31.TopSurface = Enum.SurfaceType.Smooth
  519. Part31.Position = Vector3.new(-2.00675511, 3.00001907, 1.92089403)
  520. Weld32.Parent = Part31
  521. Weld32.Part0 = Part31
  522. Weld32.Part1 = char['Right Arm']
  523.  
  524. Spells.Parent = char
  525.  
  526. spawn(function()
  527. while wait() do
  528. Spells.Spell1.SpellWeld.C0 = Spells.Spell1.SpellWeld.C0*CFrame.Angles(0,math.rad(2),0)
  529. Spells.Spell2.SpellWeld.C0 = Spells.Spell2.SpellWeld.C0*CFrame.Angles(0,math.rad(-1.5),0)
  530. Spells.Spell3.SpellWeld.C0 = Spells.Spell3.SpellWeld.C0*CFrame.Angles(0,math.rad(1),0)
  531. end
  532. end)
  533.  
  534. for i,v in pairs (Spells:GetChildren()) do
  535. v.Anchored=false
  536. end
  537.  
  538. function swait()
  539. game:GetService("RunService").RenderStepped:Wait(0)
  540. end
  541.  
  542. --Animator
  543. movearms = true
  544. movebody = true
  545. movelegs = true
  546. spawn(function()
  547. --Other
  548. while wait() do
  549. if pose == "Idle" and movebody==true and movearms==true then
  550. for i=0,0.1, 0.001333 do
  551. if pose~="Idle" or movebody~=true or movearms~=true then break end
  552. swait()
  553. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.92139721, 0.609127104, 0.197871476, -0.13787961, -0.0786464438, -0.987321615, -3.47089579e-09, 0.996842444, -0.0794048384, 0.990449011, -0.010948305, -0.137444243),i)
  554. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-2.20093918, 0.755841017, -0.380287111, 0.168671146, 0.18313548, 0.968509912, 0.148882583, 0.966580868, -0.20869942, -0.974363387, 0.179395825, 0.135768622),i)
  555. end
  556. for i=0,0.1, 0.001333 do
  557. if pose~="Idle" or movebody~=true or movearms~=true then break end
  558. swait()
  559. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.93793058, 0.525867939, 0.0558444038, -0.0389509574, -0.0212362912, -0.99901545, 0.00805827603, 0.999734938, -0.0215657726, 0.999208629, -0.00889034942, -0.0387694985),i)
  560. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-2.12205648, 0.581189692, -0.428195477, 0.182427317, 0.100968368, 0.978021324, 0.136899486, 0.982415557, -0.126957461, -0.973642051, 0.157051116, 0.165396914),i)
  561. end
  562. end
  563. if pose == "Running" and movebody==true and movelegs==true then
  564. for i=0,0.07, 0.0006 do
  565. if pose~="Running" or movebody~=true or movelegs~=true then break end
  566. swait()
  567. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.15999198, 2.24705672, 0.864792287, -0.025055496, -0.0938593671, -0.995270133, -0.146920413, 0.985117793, -0.0892032757, 0.988830924, 0.143990457, -0.0384724736),i)
  568. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.113590628, 2.78344774, 0.198696569, -4.3675584e-08, 0.0404659845, 0.999180913, 0.199607119, 0.979073405, -0.0396516435, -0.979876041, 0.199443609, -0.00807734113),i)
  569. end
  570. for i=0,0.07, 0.0006 do
  571. if pose~="Running" or movebody~=true or movelegs~=true then break end
  572. swait()
  573. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.217573136, 2.06966305, 0.864792287, -0.0282963123, -0.0720653757, -0.996998429, -0.146330804, 0.98695153, -0.067186065, 0.988830924, 0.143990457, -0.0384724736),i)
  574. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.113590628, 2.79427099, 0.02752655, -4.3675584e-08, 0.0404659845, 0.999180913, 0.105148442, 0.993641973, -0.0402416587, -0.99445653, 0.105062313, -0.00425497862),i)
  575. end
  576. end
  577. end
  578.  
  579.  
  580. end)
  581.  
  582. spawn(function()
  583. --Other
  584. while wait() do
  585. if pose == "Idle" and movebody==true and movelegs==true then
  586. for i=0,0.08, 0.0005677 do
  587. if pose~="Idle" or movebody~=true or movelegs~=true then break end
  588. swait()
  589. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.208144277, 1.99190795, 0.413949221, -0.0282963067, -0.0720653683, -0.996998429, 0.117742933, 0.990214169, -0.0749167055, 0.992640853, -0.119509391, -0.0195342172),i)
  590. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.0902807415, 2.19053221, 0.0564393736, 0.00101210177, 0.0393193997, 0.999226153, 0.116191842, 0.992454112, -0.0391706079, -0.99322629, 0.116141573, -0.00356412865),i)
  591. end
  592. for i=0,0.08, 0.0005677 do
  593. if pose~="Idle" or movebody~=true or movelegs~=true then break end
  594. swait()
  595. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.208144277, 2.21289301, 0.413949221, -0.0282963067, -0.0720653683, -0.996998429, 0.117742933, 0.990214169, -0.0749167055, 0.992640853, -0.119509391, -0.0195342172),i)
  596. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.0902807415, 2.26938629, 0.0564393736, 0.00101210177, 0.0393193997, 0.999226153, 0.116191842, 0.992454112, -0.0391706079, -0.99322629, 0.116141573, -0.00356412865),i)
  597. end
  598. end
  599.  
  600. if pose == "Running" and movearms==true and movebody==true then
  601. for i=0,0.063, 0.0006 do
  602. if pose~="Running" or movebody~=true or movearms~=true then break end
  603. swait()
  604. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.9257164, 0.677200794, -0.159240723, -0.144065306, -0.151931494, -0.977835357, -0.256799757, 0.960030913, -0.111330599, 0.95566684, 0.235069022, -0.177323118),i)
  605. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-2.01159811, 0.541409969, -0.189548492, -0.114454262, 0.11331255, 0.986945033, 0.151508436, 0.98384279, -0.0953862146, -0.981807232, 0.138613135, -0.129772812),i)
  606. end
  607. for i=0,0.063, 0.0006 do
  608. if pose~="Running" or movebody~=true or movearms~=true then break end
  609. swait()
  610. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.92266786, 0.692670405, -0.0514299348, -0.133117691, -0.157718673, -0.978470564, -0.06509877, 0.986516297, -0.150159091, 0.988959908, 0.0437084138, -0.141590059),i)
  611. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-2.01004601, 0.580142736, 0.045785062, -0.10774301, 0.123860687, 0.986433089, 0.0519879125, 0.991553247, -0.118825234, -0.992818654, 0.0384800434, -0.113272227),i)
  612. end
  613. end
  614. end
  615. end)
  616.  
  617. spawn(function()
  618. while wait() do
  619. --MAINBODY
  620. if pose == "Idle" and movebody==true then
  621. for i=0,0.08, 0.0008 do
  622. if pose~="Idle" or movebody~=true then break end
  623. swait()
  624. Torso.C1 = Torso.C1:lerp(CFrame.new(-0.0568120815, -1.76807761, -0.325204164, -0.993514419, -0.109230503, 0.0315862447, 0.0506483465, -0.176418021, 0.983011425, -0.101802446, 0.978235841, 0.180806205),i)
  625. Head.C1 = Head.C1:lerp(CFrame.new(0.0760571063, -1.96275795, -0.0808709711, -0.992963433, 0.106468454, -0.0518465824, -0.0573577061, -0.0493686944, 0.997132301, 0.103603534, 0.993089736, 0.0551280938),i)
  626. end
  627. for i=0,0.08, 0.0008 do
  628. if pose~="Idle" or movebody~=true then break end
  629. swait()
  630. Torso.C1 = Torso.C1:lerp(CFrame.new(-0.050637722, -1.57592607, -0.289861679, -0.993514478, -0.109230503, 0.0315862447, 0.0506483503, -0.176418021, 0.983011425, -0.101802453, 0.978235841, 0.180806205),i)
  631. Head.C1 = Head.C1:lerp(CFrame.new(0.0760571063, -1.96275795, -0.0808709711, -0.992963433, 0.106468454, -0.0518465824, -0.0573577061, -0.0493686944, 0.997132301, 0.103603534, 0.993089736, 0.0551280938),i)
  632. end
  633. end
  634. if pose == "Running" and movebody == true then
  635. for i=0,0.08, 0.0008 do
  636. if pose~="Running" or movebody~=true then break end
  637. swait()
  638. Torso.C1 = Torso.C1:lerp(CFrame.new(-0.00214004517, -1.89437246, -0.72511673, -0.998660922, 0.0516983718, 0.0019045159, -0.0175054725, -0.372338474, 0.927931905, 0.0486816913, 0.926656008, 0.372744888),i)
  639. Head.C1 = Head.C1:lerp(CFrame.new(-0.0691558272, -1.96407938, 0.0606224984, -0.99810046, -0.0396612808, 0.0471421182, 0.0454219505, 0.043208681, 0.998033047, -0.0416202173, 0.998278499, -0.0413251184),i)
  640. end
  641. for i=0,0.08, 0.0008 do
  642. if pose~="Running" or movebody~=true then break end
  643. swait()
  644. Torso.C1 = Torso.C1:lerp(CFrame.new(-0.00342551619, -1.66900969, -0.670431733, -0.998660862, 0.0516983755, 0.00190451648, -0.0175054707, -0.372338533, 0.927931905, 0.0486816876, 0.926655948, 0.372744948),i)
  645. Head.C1 = Head.C1:lerp(CFrame.new(-0.0691558272, -1.96407938, 0.0606224984, -0.99810046, -0.0396612808, 0.0471421182, 0.0454219505, 0.043208681, 0.998033047, -0.0416202173, 0.998278499, -0.0413251184),i)
  646. end
  647. end
  648. end
  649. end)
  650.  
  651. --Attack
  652. mouse = player:GetMouse()
  653. attacking = false
  654. righthand = false
  655. righting = false
  656. lefting = false
  657.  
  658.  
  659.  
  660. function lazor()
  661. attacking = true
  662. movebody = false
  663. for i=0,0.13, 0.0013 do
  664. Torso.C1 = Torso.C1:lerp(CFrame.new(0.15688242, -1.76807761, -0.290470749, -0.716801167, -0.691800654, -0.0872230977, 0.0506483465, -0.176418021, 0.983011425, -0.695435643, 0.700206041, 0.161495224),i)
  665. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.0380690396, 2.68862104, 0.427225471, -0.0158015247, 0.0321018472, -0.999359608, 0.120059952, 0.992313921, 0.029977167, 0.992640913, -0.119509406, -0.0195342209),i)
  666. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.113590628, 2.79427099, 0.02752655, -4.3675584e-08, 0.0404659845, 0.999180913, 0.105148442, 0.993641973, -0.0402416587, -0.99445653, 0.105062313, -0.00425497862),i)
  667. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.92139709, 0.609127104, 0.197871447, -0.13787961, -0.0786464438, -0.987321615, -3.47089579e-09, 0.996842444, -0.0794048384, 0.990449011, -0.010948305, -0.137444243),i)
  668. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-1.06380701, 2.25257301, 0.536181211, -0.580544651, -0.0107682496, 0.814157248, -0.806997001, -0.125359416, -0.577096999, 0.108276591, -0.992052972, 0.0640868023),i)
  669. Head.C1 = Head.C1:lerp(CFrame.new(0.0249363557, -1.96275795, -0.108180299, -0.805434704, 0.592440784, -0.0169986095, -0.0573577061, -0.0493686944, 0.997132301, 0.589902639, 0.804099858, 0.0737443045),i)
  670. swait()
  671. end
  672. createSound("rbxassetid://1354419179",0.7,8)
  673. for i=1,30 do
  674. wait()
  675. pcall(function() createSound("rbxassetid://1354419179",0.8,5) end)
  676. local beam = Instance.new("Part",char)
  677. beam.Size = Vector3.new(6,6,100)
  678. beam.BrickColor = BrickColor.new("Really red")
  679. beam.Material = "Neon"
  680. beam.CanCollide=false
  681. beam.Transparency = 1
  682. beam.Anchored=true
  683. local position = mouse.Hit.p
  684. local distance = (rarm.CFrame.p - position).magnitude
  685. beam.Size = Vector3.new(6, 6, distance)
  686. beam.CFrame = CFrame.new(rarm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2 + -2)
  687.  
  688. if mouse.Target then
  689. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  690. local h = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  691. if h ~= hum then
  692. h.Health = h.Health - h.MaxHealth / 6
  693. end
  694. end
  695. end
  696. if mouse.Target then
  697. if mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  698. local h = mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
  699. if h ~= hum then
  700. h.Health = h.Health - h.MaxHealth / 6
  701. end
  702. end
  703. end
  704. spawn(function()
  705. for i=1,10, 0.4 do
  706. swait()
  707. beam.Size = Vector3.new(i,i,beam.Size.Z)
  708. beam.Transparency = i/10
  709. end
  710. beam:Destroy()
  711. end)
  712. end
  713. wait(0.1)
  714. attacking=false
  715. movebody = true
  716. end
  717. pressingF = false
  718.  
  719. mouse.KeyDown:connect(function(key)
  720. local k = key:lower()
  721. if k == "f" then
  722. pressingF = true
  723. whip()
  724. end
  725. end)
  726.  
  727. mouse.KeyUp:connect(function(key)
  728. local k = key:lower()
  729. if k == "f" then
  730. pressingF = false
  731. end
  732. end)
  733.  
  734. function whip()
  735. attacking = true
  736. movebody = false
  737. local punched=false
  738. spawn(function()
  739. for i=0,0.13, 0.0013 do
  740. if movebody == true or attacking == false or punched == true then break end
  741. Torso.C1 = Torso.C1:lerp(CFrame.new(-0.0127004497, -1.79210389, 0.152598143, -0.9826141, 0.18552509, 0.00706116855, 0.0226545036, 0.0820649117, 0.996369541, 0.184272051, 0.979206741, -0.0848411322),i)
  742. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.217573136, 1.44256806, 0.982333004, -0.0282963123, -0.0720653757, -0.996998429, -0.413804471, 0.90876627, -0.0539433509, 0.909925938, 0.411036015, -0.0555357076),i)
  743. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.113590628, 2.79427099, 0.02752655, -4.3675584e-08, 0.0404659845, 0.999180913, 0.105148442, 0.993641973, -0.0402416587, -0.99445653, 0.105062313, -0.00425497862),i)
  744. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.06116152, 0.197792649, 0.554134071, 0.283914477, 0.347440004, -0.893687844, 0.914802015, 0.181097761, 0.361027747, 0.287280321, -0.920048416, -0.26642254),i)
  745. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-1.77309728, 0.576332927, 0.445536077, -0.348231971, -0.0812811628, 0.933877885, -0.936926842, 0.062104363, -0.343963623, -0.030040117, -0.994754493, -0.097781226),i)
  746. Head.C1 = Head.C1:lerp(CFrame.new(-0.0374811105, -1.96583605, -0.0436500385, -0.952512562, -0.303425491, 0.0255501121, 0.0333683975, -0.0206092, 0.999230623, -0.302665472, 0.952632308, 0.0297553428),i)
  747. swait()
  748. end
  749. end)
  750. createSound("rbxassetid://876800936",0.7,8)
  751. wait(0.1)
  752. local power = 3
  753. repeat
  754. wait()
  755. Spells.Spell3.Size = Vector3.new(power,0.05,power)
  756. Spells.Spell3.CanCollide=false
  757. Weld10 = Instance.new("Weld")
  758. Weld10.Name = "SpellWeld"
  759. Weld10.Parent = Part1
  760. Weld10.C1 = CFrame.new(0.000245000236, 1.24710596, -0.00010599941, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  761. Weld10.Part0 = Part31
  762. Weld10.Part1 = Part1
  763. power = power + 0.05
  764. until pressingF == false or power > 7.5
  765. punched = true
  766. Spells.Spell3.Size = Vector3.new(3,0.05,3)
  767. Spells.Spell3.CanCollide=false
  768. Weld10 = Instance.new("Weld")
  769. Weld10.Name = "SpellWeld"
  770. Weld10.Parent = Part1
  771. Weld10.C1 = CFrame.new(0.000245000236, 1.24710596, -0.00010599941, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  772. Weld10.Part0 = Part31
  773. Weld10.Part1 = Part1
  774.  
  775. for i=0.1,0.2, 0.0013 do
  776. Torso.C1 = Torso.C1:lerp(CFrame.new(-0.050637722, -1.57592618, -0.289861709, -0.993514478, -0.109230503, 0.0315862447, 0.0506483503, -0.176418021, 0.983011425, -0.101802453, 0.978235841, 0.180806205),i)
  777. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.208144277, 2.86795282, 0.434457392, -0.0282963067, -0.0720653683, -0.996998429, 0.117742933, 0.990214169, -0.0749167055, 0.992640853, -0.119509391, -0.0195342172),i)
  778. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.0902807415, 2.59190893, 0.0564393736, 0.00101210177, 0.0393193997, 0.999226153, 0.116191842, 0.992454112, -0.0391706079, -0.99322629, 0.116141573, -0.00356412865),i)
  779. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.93793046, 0.514535785, -0.13876757, -0.0389509574, -0.0212362912, -0.99901545, -0.186055884, 0.982444644, -0.0136298463, 0.98176682, 0.185341805, -0.0422182903),i)
  780. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-1.68404174, 1.85182118, 0.334121138, 0.163626835, -0.0516487658, 0.985169411, -0.984848678, -0.0666964352, 0.160076901, 0.0574395247, -0.996435642, -0.0617795624),i)
  781. Head.C1 = Head.C1:lerp(CFrame.new(-0.0374811105, -1.92743921, -0.336152017, -0.952512562, -0.303425491, 0.0255501121, 0.0932713151, -0.210860342, 0.973056197, -0.289862543, 0.929231405, 0.229148),i)
  782. swait()
  783. end
  784. wait(1)
  785. attacking=false
  786. movebody = true
  787. end
  788.  
  789. function throwsmallball()
  790. print'domini'
  791. movearms = false
  792. attacking = true
  793. righthand = not righthand
  794. if righting == true then return end
  795. if lefting == true then return end
  796. if righthand == true then
  797. if righting == true then return end
  798. righting=true
  799. else
  800. if lefting == true then return end
  801. lefting=true
  802. end
  803. local Ball = Instance.new("Part")
  804. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  805. local BodyThrust2 = Instance.new("BodyThrust")
  806. local Attachment3 = Instance.new("Attachment")
  807. local Attachment4 = Instance.new("Attachment")
  808. Ball.Name = "Ball"
  809. Ball.Parent = nil
  810. Ball.Material = Enum.Material.Neon
  811. Ball.BrickColor = BrickColor.new("Lime green")
  812. Ball.Transparency = 0.6
  813. Ball.Anchored = false
  814. Ball.CanCollide = false
  815. Ball.Shape = Enum.PartType.Ball
  816. Ball.Size = Vector3.new(2,2,2)
  817. Ball.CFrame = CFrame.new(-14.2000122, 1.5, -29.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  818. Ball.BottomSurface = Enum.SurfaceType.Smooth
  819. Ball.TopSurface = Enum.SurfaceType.Smooth
  820. Ball.Position = Vector3.new(0,1000,0)
  821. local t = Instance.new("Trail",Ball)
  822. t.Attachment0 = Attachment3
  823. t.Attachment1 = Attachment4
  824. t.Texture = 'http://www.roblox.com/asset/?id=55054494'
  825. t.Color = ColorSequence.new(Color3.new(0,255,0))
  826. t.LightEmission=1
  827. t.LightInfluence=0
  828. t.FaceCamera=false
  829. t.Lifetime = 0.5
  830. t.Enabled=false
  831. ParticleEmitter1.Parent = Ball
  832. ParticleEmitter1.Transparency = NumberSequence.new(0.5,0.45625001192093,0.0625,1)
  833. ParticleEmitter1.Size = NumberSequence.new(1.2021857500076,0)
  834. ParticleEmitter1.LightEmission = 1
  835. ParticleEmitter1.Lifetime = NumberRange.new(1, 1)
  836. ParticleEmitter1.Rate = 100
  837. ParticleEmitter1.LockedToPart=true
  838. ParticleEmitter1.Speed = NumberRange.new(0, 0)
  839. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0,255,0))
  840. BodyThrust2.Parent = Ball
  841. Attachment3.Parent = Ball
  842. Attachment3.CFrame = CFrame.new(0, 0.8, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  843. Attachment3.Position = Vector3.new(0, 0.8, 0)
  844. Attachment4.Parent = Ball
  845. Attachment4.CFrame = CFrame.new(0, -0.8, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  846. Attachment4.Position = Vector3.new(0, -0.8, 0)
  847. local ball = Ball
  848.  
  849. local w = nil
  850.  
  851. ball.Parent=char
  852. ball.Anchored=false
  853. if righthand == true then
  854. w = Instance.new("Weld")
  855. w.Parent = ball
  856. w.Part0 = ball
  857. w.Part1 = rarm
  858. w.C0 = CFrame.new(0,4,0)
  859. else
  860. w = Instance.new("Weld")
  861. w.Parent = ball
  862. w.Part0 = ball
  863. w.Part1 = larm
  864. w.C0 = CFrame.new(0,4,0)
  865. end
  866. --createSound("rbxassetid://360129736",0.1,2,false,ball)
  867. if righthand == true then
  868. for i=0.1,0.13, 0.0013 do
  869. swait()
  870. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.92139721, 0.609127104, 0.197871476, -0.13787961, -0.0786464438, -0.987321615, -3.47089579e-09, 0.996842444, -0.0794048384, 0.990449011, -0.010948305, -0.137444243),i)
  871. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-1.68974829, 2.40598106, 0.472159296, 0.0454996675, -0.116993919, 0.992089808, -0.292355925, -0.951196074, -0.0987632796, 0.955226541, -0.285549641, -0.0774829611),i)
  872. end
  873. elseif righthand == false then
  874. for i=0.1,0.13, 0.0013 do
  875. swait()
  876. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-2.12205648, 0.581189692, -0.428195477, 0.182427317, 0.100968368, 0.978021324, 0.136899486, 0.982415557, -0.126957461, -0.973642051, 0.157051116, 0.165396914),i)
  877. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.93507421, 2.44304132, 0.185819805, 0.00639864849, -0.0794032067, -0.996822, 0.13311252, -0.987903535, 0.0795472413, -0.991080344, -0.1331985, 0.00424831593),i)
  878. end
  879. end
  880. wait(0.01)
  881. local point = mouse.Hit.p
  882. w:Destroy()
  883. ball.CFrame = CFrame.new(ball.CFrame.p,point)
  884. ball.Anchored=true
  885. local hit=false
  886. spawn(function()
  887. repeat
  888. if w then w:Destroy() end
  889. swait()
  890. ball.CFrame = ball.CFrame*CFrame.new(0,0,-2)
  891. until ball == nil or hit == true
  892. end)
  893. createSound("rbxassetid://551051176",1,4,false,ball)
  894. createSound("rbxassetid://679372486",1,2,false,ball)
  895. t.Enabled = true
  896. spawn(function()
  897. local numb = 0
  898. while wait(0.03) do
  899. numb = numb + 1
  900. if w then w:Destroy() end
  901. for i,c in pairs (workspace:GetChildren()) do
  902. if c:IsA("Model") and c:FindFirstChildOfClass("Humanoid") then
  903. local v = c:FindFirstChild("Torso")
  904. if v == nil then v = c:FindFirstChild("HumanoidRootPart") end
  905. if v and v ~= char.HumanoidRootPart and v ~= torso then
  906. if (v.Position-ball.Position).magnitude < (v.Size).magnitude*2 then
  907. if hit == false then
  908. hit=true
  909. createSound("rbxassetid://142070127",1,4,false,v)
  910. local h = c:FindFirstChildOfClass("Humanoid")
  911. if h then
  912. h.Health = h.Health - math.random(h.MaxHealth/10,h.MaxHealth/3)
  913. end
  914. for i=1,5, 0.25 do
  915. swait()
  916. ball.Size = ball.Size+Vector3.new(i/5,i/5,i/5)
  917. ball.Transparency = i/5
  918. end
  919. ball:Destroy()
  920. break
  921. else
  922. break
  923. end
  924. end
  925. end
  926. end
  927. end
  928. if ball == nil then break end
  929. if ball.Parent == nil then break end
  930. if hit == true then break end
  931. if numb > 40 then ball:Destroy() break end
  932. end
  933. end)
  934. if righthand == true then
  935. for i=0.1,0.13, 0.001 do
  936. swait()
  937. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.92139721, 0.609127104, 0.197871476, -0.13787961, -0.0786464438, -0.987321615, -3.47089579e-09, 0.996842444, -0.0794048384, 0.990449011, -0.010948305, -0.137444243),i)
  938. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-1.80503547, 1.5968492, 0.649080038, 0.0553190857, -0.0553134792, 0.996935487, -0.992296994, 0.107798807, 0.0610427633, -0.11084494, -0.992632806, -0.0489240773),i)
  939. end
  940. elseif righthand == false then
  941. for i=0.1,0.13, 0.001 do
  942. swait()
  943. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-2.12205648, 0.581189692, -0.428195477, 0.182427317, 0.100968368, 0.978021324, 0.136899486, 0.982415557, -0.126957461, -0.973642051, 0.157051116, 0.165396914),i)
  944. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(2.04465604, 1.06834006, 0.579983354, 0.115892708, -0.00910150446, -0.993220031, 0.990238369, 0.0790203959, 0.114820689, 0.0774396211, -0.996831417, 0.0181705467),i)
  945. end
  946. end
  947. movearms = true
  948. attacking=false
  949. if righthand == true then
  950. righting=false
  951. else
  952. lefting=false
  953. end
  954. end
  955.  
  956.  
  957. function throwball()
  958. print'do'
  959. movearms = false
  960. attacking = true
  961. local Ball = Instance.new("Part")
  962. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  963. local BodyThrust2 = Instance.new("BodyThrust")
  964. local Attachment3 = Instance.new("Attachment")
  965. local Attachment4 = Instance.new("Attachment")
  966. Ball.Name = "Ball"
  967. Ball.Parent = nil
  968. Ball.Material = Enum.Material.Neon
  969. Ball.Color = Color3.new(1, 81/255, 0)
  970. print(Ball.Color)
  971. Ball.Transparency = 0.5
  972. Ball.Anchored = true
  973. Ball.CanCollide = false
  974. Ball.Shape = Enum.PartType.Ball
  975. Ball.Size = Vector3.new(3, 3, 3)
  976. Ball.CFrame = CFrame.new(-14.2000122, 1.5, -29.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  977. Ball.BottomSurface = Enum.SurfaceType.Smooth
  978. Ball.TopSurface = Enum.SurfaceType.Smooth
  979. Ball.Position = Vector3.new(-14.2000122, 1.5, -29.5)
  980. local t = Instance.new("Trail",Ball)
  981. t.Attachment0 = Attachment3
  982. t.Attachment1 = Attachment4
  983. t.Texture = 'http://www.roblox.com/asset/?id=55054494'
  984. t.Color = ColorSequence.new(Color3.new(255,51,0))
  985. t.LightEmission=1
  986. t.LightInfluence=0
  987. t.FaceCamera=false
  988. t.Lifetime = 0.5
  989. ParticleEmitter1.Parent = Ball
  990. ParticleEmitter1.Transparency = NumberSequence.new(0.5,0.45625001192093,0.0625,1)
  991. ParticleEmitter1.Size = NumberSequence.new(1.2021857500076,0)
  992. ParticleEmitter1.Color = ColorSequence.new(Color3.new(1, 0.14902, 0),Color3.new(1, 0.14902, 0))
  993. ParticleEmitter1.LightEmission = 1
  994. ParticleEmitter1.Lifetime = NumberRange.new(1, 1)
  995. ParticleEmitter1.Rate = 100
  996. ParticleEmitter1.LockedToPart=true
  997. ParticleEmitter1.Speed = NumberRange.new(0, 0)
  998. ParticleEmitter1.Color = ColorSequence.new(Color3.new(1, 0.14902, 0),Color3.new(1, 0.14902, 0))
  999. BodyThrust2.Parent = Ball
  1000. Attachment3.Parent = Ball
  1001. Attachment3.CFrame = CFrame.new(0, 1.29023409, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1002. Attachment3.Position = Vector3.new(0, 1.29023409, 0)
  1003. Attachment4.Parent = Ball
  1004. Attachment4.CFrame = CFrame.new(0, -1.24282432, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1005. Attachment4.Position = Vector3.new(0, -1.24282432, 0)
  1006. local ball = Ball
  1007.  
  1008. local w = Instance.new("Weld")
  1009. w.Parent = ball
  1010. w.Part0 = ball
  1011. w.Part1 = rarm
  1012. w.C0 = CFrame.new(0,4,0)
  1013.  
  1014. ball.Parent=char
  1015. ball.Anchored=false
  1016. spawn(function()
  1017. for i=0,5, 0.05 do
  1018. ball.Size = Vector3.new(i,i,i)
  1019. if w ~= nil then w:Destroy() end
  1020. w = Instance.new("Weld")
  1021. w.Parent = ball
  1022. w.Part0 = ball
  1023. w.Part1 = rarm
  1024. w.C0 = CFrame.new(0,4,0)
  1025. swait()
  1026. end
  1027. end)
  1028. createSound("rbxassetid://876800936",0.3,4,false,ball)
  1029. for i=0,0.13, 0.0013 do
  1030. swait()
  1031. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.92139709, 0.609127164, 0.197871447, -0.13787961, -0.0786464438, -0.987321615, -3.47089579e-09, 0.996842444, -0.0794048384, 0.990449011, -0.0109483041, -0.137444243),i)
  1032. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-1.93205297, 1.92837679, -0.249813452, -0.0421406105, 0.0412775576, 0.99825865, 0.24969551, -0.967005312, 0.0505259223, 0.967406988, 0.251389891, 0.0304433741),i)
  1033. end
  1034. wait(0.01)
  1035. local point = mouse.Hit.p
  1036. w:Destroy()
  1037. ball.CFrame = CFrame.new(ball.CFrame.p,point)
  1038. ball.Anchored=true
  1039. local hit=false
  1040. spawn(function()
  1041. repeat
  1042. if w then w:Destroy() end
  1043. swait()
  1044. ball.CFrame = ball.CFrame*CFrame.new(0,0,-2)
  1045. until ball == nil or hit == true
  1046. end)
  1047. createSound("rbxassetid://551051176",1,4,false,ball)
  1048. createSound("rbxassetid://679372486",0.5,4,false,ball)
  1049.  
  1050. spawn(function()
  1051. local numb = 0
  1052. while wait(0.03) do
  1053. numb = numb + 0.1
  1054. if w then w:Destroy() end
  1055. for i,c in pairs (workspace:GetChildren()) do
  1056. if c:IsA("Model") and c:FindFirstChildOfClass("Humanoid") then
  1057. local v = c:FindFirstChild("Torso")
  1058. if v == nil then v = c:FindFirstChild("HumanoidRootPart") end
  1059. if v and v ~= char.HumanoidRootPart and v ~= torso then
  1060. if (v.Position-ball.Position).magnitude < (v.Size).magnitude*2 then
  1061. if hit == false then
  1062. hit=true
  1063. createSound("rbxassetid://142070127",0.8,4,false,v)
  1064. local h = c:FindFirstChildOfClass("Humanoid")
  1065. if h then
  1066. h.Health = h.Health - math.random(h.MaxHealth/3,h.MaxHealth/1.5)
  1067. end
  1068. for i=1,10, 0.25 do
  1069. swait()
  1070. ball.Size = ball.Size+Vector3.new(i/5,i/5,i/5)
  1071. ball.Transparency = i/10
  1072. end
  1073. ball:Destroy()
  1074. break
  1075. else
  1076. break
  1077. end
  1078. end
  1079. end
  1080. end
  1081. end
  1082. if ball == nil then break end
  1083. if ball.Parent == nil then break end
  1084. if hit == true then break end
  1085. if numb > 100 then ball:Destroy() break end
  1086. end
  1087. end)
  1088. for i=0.1,0.13, 0.001 do
  1089. swait()
  1090. local point = mouse.Hit.p
  1091. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(1.93793035, 0.525868058, 0.0558443964, -0.0389509574, -0.0212362912, -0.99901545, 0.00805827603, 0.999734938, -0.0215657726, 0.999208629, -0.00889034942, -0.0387694985),i)
  1092. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-2.12205672, 1.05030358, 0.322834671, 0.182427317, 0.100968368, 0.978021324, -0.969601631, 0.183454365, 0.161917478, -0.163073719, -0.977829218, 0.131366178),i)
  1093.  
  1094. end
  1095. movearms = true
  1096. attacking=false
  1097. wait(10)
  1098. ball:Destroy()
  1099. end
  1100.  
  1101. mouse.KeyDown:connect(function(k)
  1102. local key = k:lower()
  1103. if attacking == true then return end
  1104. if key == "q" then
  1105. throwball()
  1106. end
  1107. if key == "e" then
  1108. throwsmallball()
  1109. end
  1110. if key == "g" then
  1111. lazor()
  1112. end
  1113. end)
  1114.  
  1115. local mouse = game.Players.LocalPlayer:GetMouse()
  1116. repeat wait() until mouse
  1117. local plr = game.Players.LocalPlayer
  1118. local torso = plr.Character.Torso
  1119. local flying = true
  1120. local deb = true
  1121. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  1122. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  1123. local maxspeed = 90
  1124. local speed = 0
  1125. function Fly()
  1126. local bg = Instance.new("BodyGyro", torso)
  1127. bg.P = 9e4
  1128. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  1129. bg.cframe = torso.CFrame
  1130. local bv = Instance.new("BodyVelocity", torso)
  1131. bv.velocity = Vector3.new(0,0.1,0)
  1132. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  1133. repeat wait()
  1134. plr.Character.Humanoid.PlatformStand = true
  1135. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  1136. speed = speed+.5+(speed/maxspeed)
  1137. if speed > maxspeed then
  1138. speed = maxspeed
  1139. end
  1140. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  1141. speed = speed-1
  1142. if speed < 0 then
  1143. speed = 0
  1144. end
  1145. end
  1146. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  1147. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  1148. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  1149. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  1150. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  1151. else
  1152. bv.velocity = Vector3.new(0,0.1,0)
  1153. end
  1154. bg.cframe = bg.cframe:lerp(game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0), 0.2)
  1155. until not flying
  1156. ctrl = {f = 0, b = 0, l = 0, r = 0}
  1157. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  1158. speed = 0
  1159. bg:Destroy()
  1160. bv:Destroy()
  1161. plr.Character.Humanoid.PlatformStand = false
  1162. end
  1163. mouse.KeyDown:connect(function(key)
  1164. if key:lower() == "e" then
  1165. elseif key:lower() == "w" then
  1166. ctrl.f = 1
  1167. elseif key:lower() == "s" then
  1168. ctrl.b = -1
  1169. elseif key:lower() == "a" then
  1170. ctrl.l = -1
  1171. elseif key:lower() == "d" then
  1172. ctrl.r = 1
  1173. end
  1174. end)
  1175. mouse.KeyUp:connect(function(key)
  1176. if key:lower() == "w" then
  1177. ctrl.f = 0
  1178. elseif key:lower() == "s" then
  1179. ctrl.b = 0
  1180. elseif key:lower() == "a" then
  1181. ctrl.l = 0
  1182. elseif key:lower() == "d" then
  1183. ctrl.r = 0
  1184. end
  1185. end)
  1186.  
  1187. UIS = game:GetService("UserInputService")
  1188. UIS.InputBegan:connect(function(keyCode,Should)
  1189. if Should == false then
  1190. local KC = keyCode.KeyCode
  1191. if KC == Enum.KeyCode.LeftShift then
  1192. flying = true
  1193. Fly()
  1194. end
  1195. end
  1196. end)
  1197.  
  1198. UIS.InputEnded:connect(function(keyCode,Should)
  1199. if Should == false then
  1200. local KC = keyCode.KeyCode
  1201. if KC == Enum.KeyCode.LeftShift then
  1202. flying = false
  1203. end
  1204. end
  1205. end)
Add Comment
Please, Sign In to add comment