Advertisement
DeadlyBEarFart

Extreminer

May 16th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 252.89 KB | None | 0 0
  1. warn([[Extermina Loaded.
  2. Made by NoobyGames12
  3.  
  4. One who is based off to someone.
  5. But its different.]])
  6. plr = game.Players.LocalPlayer
  7. char = plr.Character
  8. hum = char.Humanoid
  9. local cam = game.Workspace.CurrentCamera
  10. t = char.Torso
  11. h = char.Head
  12. ra = char["Right Arm"]
  13. la = char["Left Arm"]
  14. rl = char["Right Leg"]
  15. ll = char["Left Leg"]
  16. tors = char.Torso
  17. lleg = char["Left Leg"]
  18. root = char.HumanoidRootPart
  19. hed = char.Head
  20. rleg = char["Right Leg"]
  21. rarm = char["Right Arm"]
  22. larm = char["Left Arm"]
  23. radian = math.rad
  24. random = math.random
  25. Vec3 = Vector3.new
  26. Inst = Instance.new
  27. cFrame = CFrame.new
  28. Euler = CFrame.fromEulerAnglesXYZ
  29. vt = Vector3.new
  30. bc = BrickColor.new
  31. br = BrickColor.random
  32. it = Instance.new
  33. cf = CFrame.new
  34. local killcount = 0
  35.  
  36.  
  37. function CameraEnshaking(Length,Intensity,Parent)
  38. coroutine.resume(coroutine.create(function()
  39. local HumanoidParented = Parent:WaitForChild("Humanoid")
  40. local intensity = 1*Intensity
  41. local rotM = 0.01*Intensity
  42. for i = 0, Length, 0.1 do
  43. swait()
  44. intensity = intensity - 0.05*Intensity/Length
  45. rotM = rotM - 0.0005*Intensity/Length
  46. HumanoidParented.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  47. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  48. end
  49. Humanoid.CameraOffset = Vec3(0, 0, 0)
  50. end))
  51. end
  52.  
  53.  
  54. --[[kan = Instance.new("Sound",char)
  55. kan.Volume = 1.25
  56. kan.TimePosition = 0
  57. kan.PlaybackSpeed = 1
  58. kan.Pitch = 1
  59. kan.SoundId = "rbxassetid://1347011178"
  60. kan.Name = "watisdis"
  61. kan.Looped = true
  62. kan:Play()]]--
  63.  
  64.  
  65. function CameraShake(Times, Power)
  66. coroutine.resume(coroutine.create(function()
  67. FV = Instance.new("BoolValue", Character)
  68. FV.Name = "CameraShake"
  69. for ShakeNum=1,Times do
  70. swait()
  71. local ef=Power
  72. if ef>=1 then
  73. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  74. else
  75. ef=Power*10
  76. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  77. end
  78. end
  79. Humanoid.CameraOffset = Vector3.new(0,0,0)
  80. FV:Destroy()
  81. end))
  82. end
  83.  
  84. CamShake=function(Part,Distan,Power,Times)
  85. local de=Part.Position
  86. for i,v in pairs(workspace:children()) do
  87. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  88. for _,c in pairs(v:children()) do
  89. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  90. local Noob=v.Humanoid
  91. if Noob~=nil then
  92. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  93. --[[local ss=script.CamShake:clone()
  94. ss.Parent=Noob
  95. ss.Power.Value=Power
  96. ss.Times.Value=Times
  97. ss.Disabled=false]]
  98. CameraShake(Times, Power)
  99. end
  100. end
  101. end
  102. end
  103. end
  104. end
  105. end
  106.  
  107. function chatfunc(text,color)
  108. local chat = coroutine.wrap(function()
  109. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  110. Character:FindFirstChild("TalkingBillBoard"):destroy()
  111. end
  112. local naeeym2 = Instance.new("BillboardGui",Character)
  113. naeeym2.Size = UDim2.new(0,100,0,40)
  114. naeeym2.StudsOffset = Vector3.new(0,3,0)
  115. naeeym2.Adornee = Character.Head
  116. naeeym2.Name = "TalkingBillBoard"
  117. local tecks2 = Instance.new("TextLabel",naeeym2)
  118. tecks2.BackgroundTransparency = 1
  119. tecks2.BorderSizePixel = 0
  120. tecks2.Text = ""
  121. tecks2.Font = "SciFi"
  122. tecks2.TextSize = 30
  123. tecks2.TextStrokeTransparency = 0
  124. tecks2.TextColor3 = color
  125. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  126. tecks2.Size = UDim2.new(1,0,0.5,0)
  127. local tecks3 = Instance.new("TextLabel",naeeym2)
  128. tecks3.BackgroundTransparency = 1
  129. tecks3.BorderSizePixel = 0
  130. tecks3.Text = ""
  131. tecks3.Font = "SciFi"
  132. tecks3.TextSize = 30
  133. tecks3.TextStrokeTransparency = 0
  134. tecks3.TextColor3 = Color3.new(0,0,0)
  135. tecks3.TextStrokeColor3 = color
  136. tecks3.Size = UDim2.new(1,0,0.5,0)
  137. coroutine.resume(coroutine.create(function()
  138. while true do
  139. swait(1)
  140. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  141. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  142. tecks2.Rotation = math.random(-5,5)
  143. tecks3.Rotation = math.random(-5,5)
  144. end
  145. end))
  146. for i = 1,string.len(text),1 do
  147. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  148. tecks2.Text = string.sub(text,1,i)
  149. tecks3.Text = string.sub(text,1,i)
  150. swait(1)
  151. end
  152. wait(1)
  153. local randomrot = math.random(1,2)
  154. if randomrot == 1 then
  155. for i = 1, 50 do
  156. swait()
  157. tecks2.Rotation = tecks2.Rotation - .75
  158. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  159. tecks2.TextTransparency = tecks2.TextTransparency + .04
  160. tecks3.Rotation = tecks2.Rotation + .75
  161. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  162. tecks3.TextTransparency = tecks2.TextTransparency + .04
  163. end
  164. elseif randomrot == 2 then
  165. for i = 1, 50 do
  166. swait()
  167. tecks2.Rotation = tecks2.Rotation + .75
  168. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  169. tecks2.TextTransparency = tecks2.TextTransparency + .04
  170. tecks3.Rotation = tecks2.Rotation - .75
  171. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  172. tecks3.TextTransparency = tecks2.TextTransparency + .04
  173. end
  174. end
  175. naeeym2:Destroy()
  176. end)
  177. chat()
  178. end
  179.  
  180.  
  181. local Create = LoadLibrary("RbxUtility").Create
  182.  
  183. CFuncs = {
  184. ["Part"] = {
  185. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  186. local Part = Create("Part"){
  187. Parent = Parent,
  188. Reflectance = Reflectance,
  189. Transparency = Transparency,
  190. CanCollide = false,
  191. Locked = true,
  192. BrickColor = BrickColor.new(tostring(BColor)),
  193. Name = Name,
  194. Size = Size,
  195. Material = Material,
  196. }
  197. RemoveOutlines(Part)
  198. return Part
  199. end;
  200. };
  201.  
  202. ["Mesh"] = {
  203. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  204. local Msh = Create(Mesh){
  205. Parent = Part,
  206. Offset = OffSet,
  207. Scale = Scale,
  208. }
  209. if Mesh == "SpecialMesh" then
  210. Msh.MeshType = MeshType
  211. Msh.MeshId = MeshId
  212. end
  213. return Msh
  214. end;
  215. };
  216.  
  217. ["Mesh"] = {
  218. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  219. local Msh = Create(Mesh){
  220. Parent = Part,
  221. Offset = OffSet,
  222. Scale = Scale,
  223. }
  224. if Mesh == "SpecialMesh" then
  225. Msh.MeshType = MeshType
  226. Msh.MeshId = MeshId
  227. end
  228. return Msh
  229. end;
  230. };
  231.  
  232. ["Weld"] = {
  233. Create = function(Parent, Part0, Part1, C0, C1)
  234. local Weld = Create("Weld"){
  235. Parent = Parent,
  236. Part0 = Part0,
  237. Part1 = Part1,
  238. C0 = C0,
  239. C1 = C1,
  240. }
  241. return Weld
  242. end;
  243. };
  244.  
  245. ["Sound"] = {
  246. Create = function(id, par, vol, pit)
  247. coroutine.resume(coroutine.create(function()
  248. local S = Create("Sound"){
  249. Volume = vol,
  250. Pitch = pit or 1,
  251. SoundId = id,
  252. Parent = par or workspace,
  253. }
  254. wait()
  255. S:play()
  256. game:GetService("Debris"):AddItem(S, 10)
  257. end))
  258. end;
  259. };
  260.  
  261. ["LongSound"] = {
  262. Create = function(id, par, vol, pit)
  263. coroutine.resume(coroutine.create(function()
  264. local S = Create("Sound"){
  265. Volume = vol,
  266. Pitch = pit or 1,
  267. SoundId = id,
  268. Parent = par or workspace,
  269. }
  270. wait()
  271. S:play()
  272. game:GetService("Debris"):AddItem(S, 30)
  273. end))
  274. end;
  275. };
  276.  
  277. ["ParticleEmitter"] = {
  278. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  279. local fp = Create("ParticleEmitter"){
  280. Parent = Parent,
  281. Color = ColorSequence.new(Color1, Color2),
  282. LightEmission = LightEmission,
  283. Size = Size,
  284. Texture = Texture,
  285. Transparency = Transparency,
  286. ZOffset = ZOffset,
  287. Acceleration = Accel,
  288. Drag = Drag,
  289. LockedToPart = LockedToPart,
  290. VelocityInheritance = VelocityInheritance,
  291. EmissionDirection = EmissionDirection,
  292. Enabled = Enabled,
  293. Lifetime = LifeTime,
  294. Rate = Rate,
  295. Rotation = Rotation,
  296. RotSpeed = RotSpeed,
  297. Speed = Speed,
  298. VelocitySpread = VelocitySpread,
  299. }
  300. return fp
  301. end;
  302. };
  303.  
  304. CreateTemplate = {
  305.  
  306. };
  307. }
  308.  
  309.  
  310.  
  311. New = function(Object, Parent, Name, Data)
  312. local Object = Instance.new(Object)
  313. for Index, Value in pairs(Data or {}) do
  314. Object[Index] = Value
  315. end
  316. Object.Parent = Parent
  317. Object.Name = Name
  318. return Object
  319. end
  320. local halocolor = BrickColor.new("White")
  321. local wepcolor = BrickColor.new("Really black")
  322. local m = Instance.new("Model",char)
  323.  
  324. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  325. local p = Instance.new("Part")
  326. p.TopSurface = 0
  327. p.BottomSurface = 0
  328. p.Parent = parent
  329. p.Size = Vector3.new(0.1,0.1,0.1)
  330. p.Transparency = transparency
  331. p.Reflectance = reflectance
  332. p.CanCollide = false
  333. p.Locked = true
  334. p.BrickColor = brickcolor
  335. p.Material = material
  336. return p
  337. end
  338.  
  339. function CreateMesh(parent,meshtype,x1,y1,z1)
  340. local mesh = Instance.new("SpecialMesh",parent)
  341. mesh.MeshType = meshtype
  342. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  343. return mesh
  344. end
  345.  
  346. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  347. local mesh = Instance.new("SpecialMesh",parent)
  348. mesh.MeshType = "FileMesh"
  349. mesh.MeshId = meshid
  350. mesh.Scale = Vector3.new(x1,y1,z1)
  351. return mesh
  352. end
  353.  
  354. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  355. local mesh = Instance.new("SpecialMesh",parent)
  356. mesh.MeshType = "FileMesh"
  357. mesh.MeshId = meshid
  358. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  359. mesh.Scale = Vector3.new(x1,y1,z1)
  360. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  361. return mesh
  362. end
  363.  
  364. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  365. local weld = Instance.new("Weld")
  366. weld.Parent = parent
  367. weld.Part0 = part0
  368. weld.Part1 = part1
  369. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  370. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  371. return weld
  372. end
  373.  
  374. sord = CreateParta(m,0,0,"Granite",wepcolor)
  375. CreateSpecialMesh(sord,"rbxassetid://94840342",0.75,1.25,1.25)
  376. local sordweld = CreateWeld(sord,rarm,sord,0,-3.5,1,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  377.  
  378. at1 = CreateParta(m,1,0,"Neon",halocolor)
  379. CreateMesh(at1,"Sphere",1,1,1)
  380. CreateWeld(at1,sord,at1,0,1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  381. at2 = CreateParta(m,1,0,"Neon",halocolor)
  382. CreateMesh(at2,"Sphere",1,1,1)
  383. CreateWeld(at2,sord,at2,0,-4.3,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  384. A0 = Instance.new('Attachment',at1)
  385. A1 = Instance.new('Attachment',at2)
  386. tl1 = Instance.new('Trail',at1)
  387. tl1.Attachment0 = A0
  388. tl1.Attachment1 = A1
  389. tl1.Texture = "http://www.roblox.com/asset/?id=928134823"
  390. tl1.LightEmission = 0
  391. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  392. tl1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  393. tl1.Lifetime = 0.3
  394.  
  395. hibox = CreateParta(m,1,0,"Granite",BrickColor.random())
  396. hibox.Size = vt(1,2,1)
  397. CreateWeld(hibox,sord,hibox,0,-0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  398.  
  399.  
  400. glow = CreateParta(m,0,0,"Neon",halocolor)
  401. CreateMesh(glow,"Sphere",0.45,1,1)
  402. CreateWeld(glow,sord,glow,0,2.325,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  403.  
  404. local blackem = Instance.new("ParticleEmitter",sord)
  405. blackem.Texture = "rbxassetid://296874871"
  406. blackem.LightEmission = 0.25
  407. blackem.Color = ColorSequence.new(Color3.new(0,0,0))
  408. blackem.Rate = 10
  409. blackem.Lifetime = NumberRange.new(1)
  410. blackem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  411. blackem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.9,0),NumberSequenceKeypoint.new(1,1,0)})
  412. blackem.Speed = NumberRange.new(1,6)
  413. blackem.LockedToPart = true
  414. blackem.Rotation = NumberRange.new(-500,500)
  415. blackem.RotSpeed = NumberRange.new(-500,500)
  416. local blackem2 = blackem:Clone()
  417. blackem2.Parent = sord
  418. blackem2.EmissionDirection = "Bottom"
  419.  
  420. staf = CreateParta(m,0,0,"Granite",wepcolor)
  421. CreateSpecialMesh(staf,"rbxassetid://283705926",1.5,1.5,1.5)
  422. local stafweld = CreateWeld(staf,larm,staf,-0.95,-2,0,math.rad(90),math.rad(0),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  423. glowst = CreateParta(m,0,0,"Neon",halocolor)
  424. CreateMesh(glowst,"Sphere",0.35,0.35,0.35)
  425. CreateWeld(glowst,staf,glowst,0.1,-3.325,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  426.  
  427. --[[extend = CreateParta(Gaunlet,0,0,"Granite",wepcolor)
  428. CreateMesh(extend,"Brick",1.05,1.05,1.05)
  429. CreateWeld(extend,rarm,extend,0,0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  430.  
  431. function RemoveOutlines(part)
  432. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  433. end
  434. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  435. local Part = Create("Part")({
  436. Parent = Parent,
  437. Reflectance = Reflectance,
  438. Transparency = Transparency,
  439. CanCollide = false,
  440. Locked = true,
  441. BrickColor = BrickColor.new(tostring(BColor)),
  442. Name = Name,
  443. Size = Size,
  444. Material = Material
  445. })
  446. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  447. RemoveOutlines(Part)
  448. return Part
  449. end
  450. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  451. local Msh = Create(Mesh)({
  452. Parent = Part,
  453. Offset = OffSet,
  454. Scale = Scale
  455. })
  456. if Mesh == "SpecialMesh" then
  457. Msh.MeshType = MeshType
  458. Msh.MeshId = MeshId
  459. end
  460. return Msh
  461. end
  462. function CreateWeld(Parent, Part0, Part1, C0, C1)
  463. local Weld = Create("Weld")({
  464. Parent = Parent,
  465. Part0 = Part0,
  466. Part1 = Part1,
  467. C0 = C0,
  468. C1 = C1
  469. })
  470. return Weld
  471. end
  472.  
  473. local ff = Instance.new("ForceField",char)
  474. ff.Visible = false
  475.  
  476. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  477. local gui = it(GuiType)
  478. gui.Parent = parent
  479. gui.Text = text
  480. gui.BackgroundTransparency = backtrans
  481. gui.BackgroundColor3 = backcol
  482. gui.SizeConstraint = "RelativeXY"
  483. gui.TextXAlignment = "Center"
  484. gui.TextYAlignment = "Center"
  485. gui.Position = pos
  486. gui.Size = size
  487. gui.Font = "SourceSans"
  488. gui.FontSize = "Size14"
  489. gui.TextWrapped = false
  490. gui.TextStrokeTransparency = 0
  491. gui.TextColor = BrickColor.new("White")
  492. return gui
  493. end
  494.  
  495.  
  496. Player=game:GetService("Players").LocalPlayer
  497. Character=Player.Character
  498. local Mouse = Player:GetMouse()
  499. PlayerGui=Player.PlayerGui
  500. Backpack=Player.Backpack
  501. Torso=Character.Torso
  502. Head=Character.Head
  503. Humanoid=Character.Humanoid
  504. m=Instance.new('Model',Character)
  505. LeftArm=Character["Left Arm"]
  506. LeftLeg=Character["Left Leg"]
  507. RightArm=Character["Right Arm"]
  508. RightLeg=Character["Right Leg"]
  509. LS=Torso["Left Shoulder"]
  510. LH=Torso["Left Hip"]
  511. RS=Torso["Right Shoulder"]
  512. RH=Torso["Right Hip"]
  513. Face = Head.face
  514. Neck=Torso.Neck
  515. it=Instance.new
  516. attacktype=1
  517. vt=Vector3.new
  518. cf=CFrame.new
  519. euler=CFrame.fromEulerAnglesXYZ
  520. angles=CFrame.Angles
  521. cloaked=false
  522. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  523. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  524. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  525. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  526. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  527. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  528. RootPart=Character.HumanoidRootPart
  529. RootJoint=RootPart.RootJoint
  530. RootCF=euler(-1.57,0,3.14)
  531. attack = false
  532. attackdebounce = false
  533. deb=false
  534. equipped=true
  535. hand=false
  536. MMouse=nil
  537. combo=0
  538. mana=0
  539. trispeed=.2
  540. attackmode='none'
  541. local idle=0
  542. local Anim="Idle"
  543. local Effects={}
  544. local gun=false
  545. local shoot=false
  546. local sine = 0
  547. local change = 1
  548. player=nil
  549.  
  550. mouse=Player:GetMouse()
  551. --save shoulders
  552. RSH, LSH=nil, nil
  553. --welds
  554. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  555. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  556. LH=Torso["Left Hip"]
  557. RH=Torso["Right Hip"]
  558. TorsoColor=Torso.BrickColor
  559. function NoOutline(Part)
  560. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  561. end
  562. player=Player
  563. ch=Character
  564. RSH=ch.Torso["Right Shoulder"]
  565. LSH=ch.Torso["Left Shoulder"]
  566. --
  567. RSH.Parent=nil
  568. LSH.Parent=nil
  569. --
  570. RW.Name="Right Shoulder"
  571. RW.Part0=ch.Torso
  572. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  573. RW.C1=cf(0, 0.5, 0)
  574. RW.Part1=ch["Right Arm"]
  575. RW.Parent=ch.Torso
  576. --
  577. LW.Name="Left Shoulder"
  578. LW.Part0=ch.Torso
  579. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  580. LW.C1=cf(0, 0.5, 0)
  581. LW.Part1=ch["Left Arm"]
  582. LW.Parent=ch.Torso
  583.  
  584. local Stats=Instance.new("BoolValue")
  585. Stats.Name="Stats"
  586. Stats.Parent=Character
  587. local Atk=Instance.new("NumberValue")
  588. Atk.Name="Damage"
  589. Atk.Parent=Stats
  590. Atk.Value=1
  591. local Def=Instance.new("NumberValue")
  592. Def.Name="Defense"
  593. Def.Parent=Stats
  594. Def.Value=1
  595. local Speed=Instance.new("NumberValue")
  596. Speed.Name="Speed"
  597. Speed.Parent=Stats
  598. Speed.Value=1
  599. local Mvmt=Instance.new("NumberValue")
  600. Mvmt.Name="Movement"
  601. Mvmt.Parent=Stats
  602. Mvmt.Value=1
  603.  
  604. local donum=0
  605.  
  606.  
  607. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  608. local fp=it("Part")
  609. fp.formFactor=formfactor
  610. fp.Parent=parent
  611. fp.Reflectance=reflectance
  612. fp.Transparency=transparency
  613. fp.CanCollide=false
  614. fp.Locked=true
  615. fp.BrickColor=brickcolor
  616. fp.Name=name
  617. fp.Size=size
  618. fp.Position=Torso.Position
  619. NoOutline(fp)
  620. fp.Material="SmoothPlastic"
  621. fp:BreakJoints()
  622. return fp
  623. end
  624.  
  625. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  626. local mesh=it(Mesh)
  627. mesh.Parent=part
  628. if Mesh=="SpecialMesh" then
  629. mesh.MeshType=meshtype
  630. if meshid~="nil" then
  631. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  632. end
  633. end
  634. mesh.Offset=offset
  635. mesh.Scale=scale
  636. return mesh
  637. end
  638.  
  639. function weld(parent,part0,part1,c0)
  640. local weld=it("Weld")
  641. weld.Parent=parent
  642. weld.Part0=part0
  643. weld.Part1=part1
  644. weld.C0=c0
  645. return weld
  646. end
  647.  
  648. local Color1=Torso.BrickColor
  649.  
  650. local bodvel=Instance.new("BodyVelocity")
  651. local bg=Instance.new("BodyGyro")
  652.  
  653. function swait(num)
  654. if num==0 or num==nil then
  655. game:service'RunService'.Stepped:wait(0)
  656. else
  657. for i=0,num do
  658. game:service'RunService'.Stepped:wait(0)
  659. end
  660. end
  661. end
  662.  
  663.  
  664. so = function(id,par,vol,pit)
  665. coroutine.resume(coroutine.create(function()
  666. local sou = Instance.new("Sound",par or workspace)
  667. sou.Volume=vol
  668. sou.Pitch=pit or 1
  669. sou.SoundId=id
  670. swait()
  671. sou:play()
  672. game:GetService("Debris"):AddItem(sou,6)
  673. end))
  674. end
  675.  
  676. function clerp(a,b,t)
  677. local qa = {QuaternionFromCFrame(a)}
  678. local qb = {QuaternionFromCFrame(b)}
  679. local ax, ay, az = a.x, a.y, a.z
  680. local bx, by, bz = b.x, b.y, b.z
  681. local _t = 1-t
  682. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  683. end
  684.  
  685. function QuaternionFromCFrame(cf)
  686. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  687. local trace = m00 + m11 + m22
  688. if trace > 0 then
  689. local s = math.sqrt(1 + trace)
  690. local recip = 0.5/s
  691. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  692. else
  693. local i = 0
  694. if m11 > m00 then
  695. i = 1
  696. end
  697. if m22 > (i == 0 and m00 or m11) then
  698. i = 2
  699. end
  700. if i == 0 then
  701. local s = math.sqrt(m00-m11-m22+1)
  702. local recip = 0.5/s
  703. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  704. elseif i == 1 then
  705. local s = math.sqrt(m11-m22-m00+1)
  706. local recip = 0.5/s
  707. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  708. elseif i == 2 then
  709. local s = math.sqrt(m22-m00-m11+1)
  710. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  711. end
  712. end
  713. end
  714.  
  715. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  716. local xs, ys, zs = x + x, y + y, z + z
  717. local wx, wy, wz = w*xs, w*ys, w*zs
  718. local xx = x*xs
  719. local xy = x*ys
  720. local xz = x*zs
  721. local yy = y*ys
  722. local yz = y*zs
  723. local zz = z*zs
  724. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  725. end
  726.  
  727. function QuaternionSlerp(a, b, t)
  728. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  729. local startInterp, finishInterp;
  730. if cosTheta >= 0.0001 then
  731. if (1 - cosTheta) > 0.0001 then
  732. local theta = math.acos(cosTheta)
  733. local invSinTheta = 1/math.sin(theta)
  734. startInterp = math.sin((1-t)*theta)*invSinTheta
  735. finishInterp = math.sin(t*theta)*invSinTheta
  736. else
  737. startInterp = 1-t
  738. finishInterp = t
  739. end
  740. else
  741. if (1+cosTheta) > 0.0001 then
  742. local theta = math.acos(-cosTheta)
  743. local invSinTheta = 1/math.sin(theta)
  744. startInterp = math.sin((t-1)*theta)*invSinTheta
  745. finishInterp = math.sin(t*theta)*invSinTheta
  746. else
  747. startInterp = t-1
  748. finishInterp = t
  749. end
  750. end
  751. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  752. end
  753.  
  754. local function CFrameFromTopBack(at, top, back)
  755. local right = top:Cross(back)
  756. return CFrame.new(at.x, at.y, at.z,
  757. right.x, top.x, back.x,
  758. right.y, top.y, back.y,
  759. right.z, top.z, back.z)
  760. end
  761.  
  762. function Triangle(a, b, c)
  763. local edg1 = (c-a):Dot((b-a).unit)
  764. local edg2 = (a-b):Dot((c-b).unit)
  765. local edg3 = (b-c):Dot((a-c).unit)
  766. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  767. a, b, c = a, b, c
  768. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  769. a, b, c = b, c, a
  770. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  771. a, b, c = c, a, b
  772. else
  773. assert(false, "unreachable")
  774. end
  775.  
  776. local len1 = (c-a):Dot((b-a).unit)
  777. local len2 = (b-a).magnitude - len1
  778. local width = (a + (b-a).unit*len1 - c).magnitude
  779.  
  780. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  781.  
  782. local list = {}
  783.  
  784. if len1 > 0.01 then
  785. local w1 = Instance.new('WedgePart', m)
  786. game:GetService("Debris"):AddItem(w1,5)
  787. w1.Material = "SmoothPlastic"
  788. w1.FormFactor = 'Custom'
  789. w1.BrickColor = BrickColor.new("Really red")
  790. w1.Transparency = 0
  791. w1.Reflectance = 0
  792. w1.Material = "SmoothPlastic"
  793. w1.CanCollide = false
  794. local l1 = Instance.new("PointLight",w1)
  795. l1.Color = Color3.new(170,0,0)
  796. NoOutline(w1)
  797. local sz = Vector3.new(0.2, width, len1)
  798. w1.Size = sz
  799. local sp = Instance.new("SpecialMesh",w1)
  800. sp.MeshType = "Wedge"
  801. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  802. w1:BreakJoints()
  803. w1.Anchored = true
  804. w1.Parent = workspace
  805. w1.Transparency = 0.7
  806. table.insert(Effects,{w1,"Disappear",.01})
  807. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  808. table.insert(list,w1)
  809. end
  810.  
  811. if len2 > 0.01 then
  812. local w2 = Instance.new('WedgePart', m)
  813. game:GetService("Debris"):AddItem(w2,5)
  814. w2.Material = "SmoothPlastic"
  815. w2.FormFactor = 'Custom'
  816. w2.BrickColor = BrickColor.new("Really red")
  817. w2.Transparency = 0
  818. w2.Reflectance = 0
  819. w2.Material = "SmoothPlastic"
  820. w2.CanCollide = false
  821. local l2 = Instance.new("PointLight",w2)
  822. l2.Color = Color3.new(170,0,0)
  823. NoOutline(w2)
  824. local sz = Vector3.new(0.2, width, len2)
  825. w2.Size = sz
  826. local sp = Instance.new("SpecialMesh",w2)
  827. sp.MeshType = "Wedge"
  828. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  829. w2:BreakJoints()
  830. w2.Anchored = true
  831. w2.Parent = workspace
  832. w2.Transparency = 0.7
  833. table.insert(Effects,{w2,"Disappear",.01})
  834. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  835. table.insert(list,w2)
  836. end
  837. return unpack(list)
  838. end
  839.  
  840.  
  841. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  842. if hit.Parent == nil then
  843. return
  844. end
  845. local h = hit.Parent:FindFirstChild("Humanoid")
  846. for _, v in pairs(hit.Parent:children()) do
  847. if v:IsA("Humanoid") then
  848. h = v
  849. end
  850. end
  851. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  852. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  853. return
  854. end
  855. local c = Create("ObjectValue")({
  856. Name = "creator",
  857. Value = game:service("Players").LocalPlayer,
  858. Parent = h
  859. })
  860. game:GetService("Debris"):AddItem(c, 0.5)
  861. if HitSound ~= nil and HitPitch ~= nil then
  862. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  863. end
  864. local Damage = math.random(minim, maxim)
  865. local blocked = false
  866. local block = hit.Parent:findFirstChild("Block")
  867. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  868. blocked = true
  869. block.Value = block.Value - 1
  870. print(block.Value)
  871. end
  872. if blocked == false then
  873. HitHealth = h.Health
  874. h.Health = h.Health - Damage
  875. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  876. print("gained kill")
  877. killcount = killcount + 1
  878. end
  879. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  880. else
  881. h.Health = h.Health - Damage / 2
  882. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  883. end
  884. if Type == "Knockdown" then
  885. local hum = hit.Parent.Humanoid
  886. hum.PlatformStand = true
  887. coroutine.resume(coroutine.create(function(HHumanoid)
  888. swait(1)
  889. HHumanoid.PlatformStand = false
  890. end), hum)
  891. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  892. local bodvol = Create("BodyVelocity")({
  893. velocity = angle * knockback,
  894. P = 5000,
  895. maxForce = Vector3.new(8000, 8000, 8000),
  896. Parent = hit
  897. })
  898. local rl = Create("BodyAngularVelocity")({
  899. P = 3000,
  900. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  901. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  902. Parent = hit
  903. })
  904. game:GetService("Debris"):AddItem(bodvol, 0.5)
  905. game:GetService("Debris"):AddItem(rl, 0.5)
  906. elseif Type == "Normal" then
  907. local vp = Create("BodyVelocity")({
  908. P = 500,
  909. maxForce = Vector3.new(math.huge, 0, math.huge),
  910. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  911. })
  912. if knockback > 0 then
  913. vp.Parent = hit.Parent.Torso
  914. end
  915. game:GetService("Debris"):AddItem(vp, 0.5)
  916. elseif Type == "Up" then
  917. local bodyVelocity = Create("BodyVelocity")({
  918. velocity = Vector3.new(0, 20, 0),
  919. P = 5000,
  920. maxForce = Vector3.new(8000, 8000, 8000),
  921. Parent = hit
  922. })
  923. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  924. local bodyVelocity = Create("BodyVelocity")({
  925. velocity = Vector3.new(0, 20, 0),
  926. P = 5000,
  927. maxForce = Vector3.new(8000, 8000, 8000),
  928. Parent = hit
  929. })
  930. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  931. elseif Type == "Leech" then
  932. local hum = hit.Parent.Humanoid
  933. if hum ~= nil then
  934. for i = 0, 2 do
  935. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  936. end
  937. Humanoid.Health = Humanoid.Health + 10
  938. end
  939. elseif Type == "UpKnock" then
  940. local hum = hit.Parent.Humanoid
  941. hum.PlatformStand = true
  942. if hum ~= nil then
  943. hitr = true
  944. end
  945. coroutine.resume(coroutine.create(function(HHumanoid)
  946. swait(5)
  947. HHumanoid.PlatformStand = false
  948. hitr = false
  949. end), hum)
  950. local bodyVelocity = Create("BodyVelocity")({
  951. velocity = Vector3.new(0, 20, 0),
  952. P = 5000,
  953. maxForce = Vector3.new(8000, 8000, 8000),
  954. Parent = hit
  955. })
  956. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  957. local bodyVelocity = Create("BodyVelocity")({
  958. velocity = Vector3.new(0, 20, 0),
  959. P = 5000,
  960. maxForce = Vector3.new(8000, 8000, 8000),
  961. Parent = hit
  962. })
  963. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  964. elseif Type == "Snare" then
  965. local bp = Create("BodyPosition")({
  966. P = 2000,
  967. D = 100,
  968. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  969. position = hit.Parent.Torso.Position,
  970. Parent = hit.Parent.Torso
  971. })
  972. game:GetService("Debris"):AddItem(bp, 1)
  973. elseif Type == "Slashnare" then
  974. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  975. for i = 1, math.random(4, 5) do
  976. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  977. end
  978. local bp = Create("BodyPosition")({
  979. P = 2000,
  980. D = 100,
  981. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  982. position = hit.Parent.Torso.Position,
  983. Parent = hit.Parent.Torso
  984. })
  985. game:GetService("Debris"):AddItem(bp, 1)
  986. elseif Type == "Spike" then
  987. CreateBigIceSword(hit.Parent.Torso.CFrame)
  988. local bp = Create("BodyPosition")({
  989. P = 2000,
  990. D = 100,
  991. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  992. position = hit.Parent.Torso.Position,
  993. Parent = hit.Parent.Torso
  994. })
  995. game:GetService("Debris"):AddItem(bp, 1)
  996. elseif Type == "Freeze" then
  997. local BodPos = Create("BodyPosition")({
  998. P = 50000,
  999. D = 1000,
  1000. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1001. position = hit.Parent.Torso.Position,
  1002. Parent = hit.Parent.Torso
  1003. })
  1004. local BodGy = Create("BodyGyro")({
  1005. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1006. P = 20000,
  1007. Parent = hit.Parent.Torso,
  1008. cframe = hit.Parent.Torso.CFrame
  1009. })
  1010. hit.Parent.Torso.Anchored = true
  1011. coroutine.resume(coroutine.create(function(Part)
  1012. swait(1.5)
  1013. Part.Anchored = false
  1014. end), hit.Parent.Torso)
  1015. game:GetService("Debris"):AddItem(BodPos, 3)
  1016. game:GetService("Debris"):AddItem(BodGy, 3)
  1017. end
  1018. local debounce = Create("BoolValue")({
  1019. Name = "DebounceHit",
  1020. Parent = hit.Parent,
  1021. Value = true
  1022. })
  1023. game:GetService("Debris"):AddItem(debounce, Delay)
  1024. c = Instance.new("ObjectValue")
  1025. c.Name = "creator"
  1026. c.Value = Player
  1027. c.Parent = h
  1028. game:GetService("Debris"):AddItem(c, 0.5)
  1029. end
  1030. end
  1031. function ShowDamage(Pos, Text, Time, Color)
  1032. local Rate = 0.03333333333333333
  1033. local Pos = Pos or Vector3.new(0, 0, 0)
  1034. local Text = Text or ""
  1035. local Time = Time or 2
  1036. local Color = Color or Color3.new(1, 0, 1)
  1037. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1038. EffectPart.Anchored = true
  1039. local BillboardGui = Create("BillboardGui")({
  1040. Size = UDim2.new(3, 0, 3, 0),
  1041. Adornee = EffectPart,
  1042. Parent = EffectPart
  1043. })
  1044. local TextLabel = Create("TextLabel")({
  1045. BackgroundTransparency = 1,
  1046. Size = UDim2.new(1, 0, 1, 0),
  1047. Text = Text,
  1048. TextColor3 = Color,
  1049. TextScaled = true,
  1050. Font = Enum.Font.ArialBold,
  1051. Parent = BillboardGui
  1052. })
  1053. game.Debris:AddItem(EffectPart, Time + 0.1)
  1054. EffectPart.Parent = game:GetService("Workspace")
  1055. delay(0, function()
  1056. local Frames = Time / Rate
  1057. for Frame = 1, Frames do
  1058. wait(Rate)
  1059. local Percent = Frame / Frames
  1060. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1061. TextLabel.TextTransparency = Percent
  1062. end
  1063. if EffectPart and EffectPart.Parent then
  1064. EffectPart:Destroy()
  1065. end
  1066. end)
  1067. end
  1068. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1069. for _, c in pairs(workspace:children()) do
  1070. local hum = c:findFirstChild("Humanoid")
  1071. if hum ~= nil then
  1072. local head = c:findFirstChild("Torso")
  1073. if head ~= nil then
  1074. local targ = head.Position - Part.Position
  1075. local mag = targ.magnitude
  1076. if magni >= mag and c.Name ~= Player.Name then
  1077. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1078. end
  1079. end
  1080. end
  1081. end
  1082. end
  1083.  
  1084. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1085. for _, c in pairs(workspace:children()) do
  1086. local hum = c:findFirstChild("Humanoid")
  1087. if hum ~= nil then
  1088. local head = c:findFirstChild("Torso")
  1089. if head ~= nil then
  1090. local targ = head.Position - Part.Position
  1091. local mag = targ.magnitude
  1092. if magni >= mag and c.Name ~= Player.Name then
  1093. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  1094. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1095. end
  1096. end
  1097. end
  1098. end
  1099. end
  1100.  
  1101. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1102. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1103. end
  1104.  
  1105. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1106. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1107. prt.Anchored=true
  1108. prt.CFrame=cframe
  1109. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1110. --http://www.roblox.com/asset/?id=4770560
  1111. game:GetService("Debris"):AddItem(prt,2)
  1112. CF=prt.CFrame
  1113. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1114. for i=0,1,0.2 do
  1115. wait()
  1116. Part.CFrame=CF*cf(0,0,-0.4)
  1117. end
  1118. for i=0,1,delay do
  1119. wait()
  1120. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1121. Mesh.Scale=Mesh.Scale
  1122. end
  1123. for i=0,1,0.1 do
  1124. wait()
  1125. Part.Transparency=i
  1126. end
  1127. Part.Parent=nil
  1128. end),prt,msh,CF)
  1129. end
  1130.  
  1131. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1132. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1133. prt.Anchored=true
  1134. prt.Material = "Neon"
  1135. prt.CFrame=cframe
  1136. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1137. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1138. game:GetService("Debris"):AddItem(prt,5)
  1139. coroutine.resume(coroutine.create(function(Part,Mesh)
  1140. for i=0,1,delay do
  1141. swait()
  1142. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1143. Part.Transparency=i
  1144. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1145. end
  1146. Part.Parent=nil
  1147. end),prt,msh)
  1148. end
  1149.  
  1150. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1151. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1152. prt.Anchored=true
  1153. prt.Material = "Neon"
  1154. prt.CFrame=cframe
  1155. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1156. game:GetService("Debris"):AddItem(prt,5)
  1157. coroutine.resume(coroutine.create(function(Part,Mesh)
  1158. local rtype = rottype
  1159. for i=0,1,delay do
  1160. swait()
  1161. if rtype == 1 then
  1162. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1163. elseif rtype == 2 then
  1164. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1165. end
  1166. Part.Transparency=i
  1167. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1168. end
  1169. Part.Parent=nil
  1170. end),prt,msh)
  1171. end
  1172.  
  1173. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1174. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1175. prt.Anchored=true
  1176. prt.CFrame=cframe
  1177. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1178. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1179. game:GetService("Debris"):AddItem(prt,5)
  1180. coroutine.resume(coroutine.create(function(Part,Mesh)
  1181. for i=0,1,delay do
  1182. wait()
  1183. Part.Transparency=i
  1184. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1185. end
  1186. Part.Parent=nil
  1187. end),prt,msh)
  1188. end
  1189.  
  1190. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1191. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1192. prt.Anchored=true
  1193. prt.Material = "Neon"
  1194. prt.CFrame=cframe
  1195. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1196. game:GetService("Debris"):AddItem(prt,5)
  1197. coroutine.resume(coroutine.create(function(Part,Mesh)
  1198. local rtype = rottype
  1199. for i=0,1,delay do
  1200. swait()
  1201. if rtype == 1 then
  1202. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1203. elseif rtype == 2 then
  1204. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1205. end
  1206. Part.Transparency=i
  1207. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1208. end
  1209. Part.Parent=nil
  1210. end),prt,msh)
  1211. end
  1212.  
  1213. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1214. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1215. prt.Anchored=true
  1216. prt.Material = "Neon"
  1217. prt.CFrame=cframe
  1218. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1219. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1220. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1221. game:GetService("Debris"):AddItem(prt,5)
  1222. coroutine.resume(coroutine.create(function(Part,Mesh)
  1223. local rtype = rottype
  1224. for i=0,1,delay do
  1225. swait()
  1226. if rtype == 1 then
  1227. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1228. elseif rtype == 2 then
  1229. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1230. end
  1231. dec.Transparency=i
  1232. dec2.Transparency=i
  1233. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1234. end
  1235. Part.Parent=nil
  1236. end),prt,msh)
  1237. end
  1238.  
  1239. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1240. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1241. prt.Anchored=true
  1242. prt.Material = "Neon"
  1243. prt.CFrame=cframe
  1244. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1245. game:GetService("Debris"):AddItem(prt,5)
  1246. coroutine.resume(coroutine.create(function(Part,Mesh)
  1247. local rtype = rottype
  1248. for i=0,1,delay do
  1249. swait()
  1250. if rtype == 1 then
  1251. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1252. elseif rtype == 2 then
  1253. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1254. end
  1255. prt.Transparency=i
  1256. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1257. end
  1258. Part.Parent=nil
  1259. end),prt,msh)
  1260. end
  1261.  
  1262. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1263. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1264. prt.Anchored=true
  1265. prt.Material = "Neon"
  1266. prt.CFrame=cframe
  1267. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1268. game:GetService("Debris"):AddItem(prt,5)
  1269. coroutine.resume(coroutine.create(function(Part,Mesh)
  1270. local rtype = rottype
  1271. for i=0,1,delay do
  1272. swait()
  1273. if rtype == 1 then
  1274. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1275. elseif rtype == 2 then
  1276. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1277. end
  1278. prt.Transparency=i
  1279. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1280. end
  1281. Part.Parent=nil
  1282. end),prt,msh)
  1283. end
  1284.  
  1285. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1286. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1287. prt.Anchored=true
  1288. prt.Material = "Neon"
  1289. prt.CFrame=cframe
  1290. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1291. game:GetService("Debris"):AddItem(prt,5)
  1292. coroutine.resume(coroutine.create(function(Part,Mesh)
  1293. local rtype = rottype
  1294. for i=0,1,delay do
  1295. swait()
  1296. if rtype == 1 then
  1297. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1298. elseif rtype == 2 then
  1299. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1300. end
  1301. prt.Transparency=i
  1302. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1303. end
  1304. Part.Parent=nil
  1305. end),prt,msh)
  1306. end
  1307.  
  1308. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1309. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1310. prt.Anchored=true
  1311. prt.Material = "Neon"
  1312. prt.CFrame=cframe
  1313. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1314. game:GetService("Debris"):AddItem(prt,5)
  1315. coroutine.resume(coroutine.create(function(Part,Mesh)
  1316. local rtype = rottype
  1317. for i=0,1,delay do
  1318. swait()
  1319. if rtype == 1 then
  1320. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1321. elseif rtype == 2 then
  1322. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1323. end
  1324. prt.Transparency=i
  1325. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1326. end
  1327. Part.Parent=nil
  1328. end),prt,msh)
  1329. end
  1330.  
  1331. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1332. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1333. prt.Anchored=false
  1334. prt.CFrame=cframe
  1335. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1336. local wld=weld(prt,prt,Parent,cframe)
  1337. game:GetService("Debris"):AddItem(prt,5)
  1338. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1339. for i=0,1,delay do
  1340. wait()
  1341. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1342. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1343. Part.Transparency=i
  1344. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1345. end
  1346. Part.Parent=nil
  1347. end),prt,msh,wld)
  1348. end
  1349.  
  1350. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1351. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1352. prt.Anchored=false
  1353. prt.CFrame=cframe
  1354. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1355. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1356. game:GetService("Debris"):AddItem(prt,5)
  1357. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1358. for i=0,1,delay do
  1359. wait()
  1360. Weld.C0=euler(i*20,0,0)
  1361. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1362. Part.Transparency=i
  1363. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1364. end
  1365. Part.Parent=nil
  1366. end),prt,msh,wld)
  1367. end
  1368.  
  1369. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1370. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1371. prt.Anchored=true
  1372. prt.CFrame=cframe
  1373. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1374. game:GetService("Debris"):AddItem(prt,2)
  1375. coroutine.resume(coroutine.create(function(Part,Mesh)
  1376. for i=0,1,delay do
  1377. wait()
  1378. Part.CFrame=Part.CFrame
  1379. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1380. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1381. prt2.Anchored=true
  1382. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1383. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1384. game:GetService("Debris"):AddItem(prt2,2)
  1385. coroutine.resume(coroutine.create(function(Part,Mesh)
  1386. for i=0,1,0.1 do
  1387. wait()
  1388. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1389. end
  1390. Part.Parent=nil
  1391. end),prt2,msh2)
  1392. end
  1393. for i=0,1,delay*2 do
  1394. wait()
  1395. Part.CFrame=Part.CFrame
  1396. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1397. end
  1398. Part.Parent=nil
  1399. end),prt,msh)
  1400. end
  1401.  
  1402. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1403. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1404. prt.Anchored=true
  1405. prt.CFrame=cframe
  1406. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1407. game:GetService("Debris"):AddItem(prt,2)
  1408. coroutine.resume(coroutine.create(function(Part,Mesh)
  1409. for i=0,1,delay do
  1410. wait()
  1411. Part.CFrame=Part.CFrame
  1412. Part.Transparency=i
  1413. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1414. end
  1415. Part.Parent=nil
  1416. end),prt,msh)
  1417. end
  1418.  
  1419. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1420. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1421. prt.Anchored=true
  1422. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1423. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1424. game:GetService("Debris"):AddItem(prt,2)
  1425. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1426. CF=Part.CFrame
  1427. Numbb=0
  1428. randnumb=math.random()/10
  1429. rand1=math.random()/10
  1430. for i=0,1,rand1 do
  1431. wait()
  1432. CF=CF*cf(0,math.random()/2,0)
  1433. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1434. Part.CFrame=CF*euler(Numbb,0,0)
  1435. Part.Transparency=i
  1436. Numbb=Numbb+randnumb
  1437. end
  1438. Part.Parent=nil
  1439. end),prt,CF,Numbb,randnumb)
  1440. end
  1441.  
  1442. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1443. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1444. prt.Anchored=true
  1445. prt.CFrame=cframe
  1446. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1447. game:GetService("Debris"):AddItem(prt,5)
  1448. coroutine.resume(coroutine.create(function(Part,Mesh)
  1449. for i=0,1,delay do
  1450. wait()
  1451. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1452. Part.Transparency=i
  1453. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1454. end
  1455. Part.Parent=nil
  1456. end),prt,msh)
  1457. end
  1458.  
  1459. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1460. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1461. prt.Anchored=true
  1462. prt.CFrame=cframe
  1463. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1464. game:GetService("Debris"):AddItem(prt,2)
  1465. coroutine.resume(coroutine.create(function(Part,Mesh)
  1466. for i=0,1,delay do
  1467. wait()
  1468. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1469. Part.Transparency=i
  1470. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1471. end
  1472. Part.Parent=nil
  1473. end),prt,msh)
  1474. end
  1475.  
  1476. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1477. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1478. prt.Anchored=true
  1479. prt.CFrame=cframe*cf(x,y,z)
  1480. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1481. game:GetService("Debris"):AddItem(prt,5)
  1482. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1483. local num=math.random()
  1484. local num2=math.random(-3,2)+math.random()
  1485. local numm=0
  1486. for i=0,1,delay*2 do
  1487. swait()
  1488. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1489. Part.Transparency=i
  1490. numm=numm+0.01
  1491. end
  1492. Part.Parent=nil
  1493. Mesh.Parent=nil
  1494. end),prt,msh,x,y,z)
  1495. end
  1496.  
  1497. function dmgstart(dmg,what)
  1498. hitcon = what.Touched:connect(function(hit)
  1499. local hum = hit.Parent:FindFirstChild("Humanoid")
  1500. if hum and not hum:IsDescendantOf(Character) then
  1501. hum:TakeDamage(dmg)
  1502. end
  1503. end)
  1504. end
  1505.  
  1506. function dmgstop()
  1507. hitcon:disconnect()
  1508. end
  1509.  
  1510. function Cloak()
  1511. Face.Parent=nil
  1512. cloaked=true
  1513. for _,v in pairs(Torso.Parent:children()) do
  1514. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1515. coroutine.resume(coroutine.create(function()
  1516. for i=0,1,0.2 do
  1517. wait()
  1518. v.Transparency=i
  1519. end
  1520. v.Transparency=1
  1521. end))
  1522. end
  1523. if v.className=="Hat" then
  1524. hatp=v.Handle
  1525. coroutine.resume(coroutine.create(function(derp)
  1526. for i=0,1,0.2 do
  1527. wait()
  1528. derp.Transparency=i
  1529. end
  1530. derp.Transparency=1
  1531. end),hatp)
  1532. end
  1533. end
  1534. for _,v in pairs(m:children()) do
  1535. if v.className=="Part" then
  1536. coroutine.resume(coroutine.create(function()
  1537. for i=0,1,0.2 do
  1538. wait()
  1539. v.Transparency=i
  1540. end
  1541. v.Transparency=1
  1542. end))
  1543. end
  1544. end
  1545. end
  1546.  
  1547. function UnCloak()
  1548. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1549. Face.Parent=Head
  1550. cloaked=false
  1551. for _,v in pairs(Torso.Parent:children()) do
  1552. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1553. coroutine.resume(coroutine.create(function()
  1554. for i=0,1,0.1 do
  1555. wait()
  1556. v.Transparency=v.Transparency-0.1
  1557. end
  1558. v.Transparency=0
  1559. end))
  1560. end
  1561. if v.className=="Hat" then
  1562. hatp=v.Handle
  1563. coroutine.resume(coroutine.create(function(derp)
  1564. for i=0,1,0.1 do
  1565. wait()
  1566. derp.Transparency=derp.Transparency-0.1
  1567. end
  1568. derp.Transparency=0
  1569. end),hatp)
  1570. end
  1571. end
  1572. for _,v in pairs(m:children()) do
  1573. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1574. coroutine.resume(coroutine.create(function()
  1575. for i=0,1,0.1 do
  1576. wait()
  1577. v.Transparency=v.Transparency-0.1
  1578. end
  1579. v.Transparency=0
  1580. end))
  1581. v.Transparency=0
  1582. end
  1583. end
  1584. end
  1585.  
  1586. local origcolor = BrickColor.new("Dark indigo")
  1587. ---- This section of explosions.
  1588. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1589. local expart = Instance.new("Part",char)
  1590. local expart2 = Instance.new("Part",char)
  1591. local rin = Instance.new("Part",char)
  1592. local rin2 = Instance.new("Part",char)
  1593. local partMesh = Instance.new("SpecialMesh",expart)
  1594. partMesh.MeshType = "Sphere"
  1595. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1596. partMesh2.MeshType = "Sphere"
  1597. local partMesh3 = Instance.new("SpecialMesh",rin)
  1598. partMesh3.MeshType = "Brick"
  1599. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1600. partMesh4.MeshType = "Brick"
  1601. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1602. partMesh.Scale = vt(rad,rad,rad)
  1603. expart.Size = vt(1,1,1)
  1604. expart.Transparency = 1
  1605. expart.Anchored = true
  1606. expart.Material = "Neon"
  1607. expart.BrickColor = bc("White")
  1608. expart.CFrame = par.CFrame
  1609. partMesh2.Scale = vt(rad,rad,rad)
  1610. expart2.Size = vt(1.15,1.15,1.15)
  1611. expart2.Transparency = 0.75
  1612. expart2.Anchored = true
  1613. expart2.Material = "Glass"
  1614. expart2.BrickColor = par.BrickColor
  1615. expart2.CFrame = par.CFrame
  1616. rin.Size = vt(1.15,1.15,1.15)
  1617. rin.Transparency = 1
  1618. rin.Anchored = true
  1619. rin.Material = "Neon"
  1620. rin.BrickColor = par.BrickColor
  1621. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1622. rin2.Size = vt(1.15,1.15,1.15)
  1623. rin2.Transparency = 1
  1624. rin2.Anchored = true
  1625. rin2.Material = "Neon"
  1626. rin2.BrickColor = par.BrickColor
  1627. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1628. partMesh3.Scale = vt(0,1,0)
  1629. partMesh4.Scale = vt(0,1,0)
  1630. local dec2 = Instance.new("Decal", rin)
  1631. dec2.Face = "Top"
  1632. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1633. dec2.Parent = rin
  1634. local dec2b = dec2:Clone()
  1635. dec2b.Face = "Bottom"
  1636. dec2b.Parent = rin
  1637.  
  1638. local dec2a = Instance.new("Decal", rin2)
  1639. dec2a.Face = "Top"
  1640. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1641. dec2a.Parent = rin2
  1642. local dec2ab = dec2a:Clone()
  1643. dec2ab.Face = "Bottom"
  1644. dec2ab.Parent = rin2
  1645. expart.CanCollide = false
  1646. expart2.CanCollide = false
  1647. rin.CanCollide = false
  1648. rin2.CanCollide = false
  1649. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1650. local value = 1*rad/6.5
  1651. for i = 0, 199 do
  1652. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1653. expart.CFrame = expart.CFrame
  1654. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1655. expart2.CFrame = expart.CFrame
  1656. value = value - 0.035*rad/30
  1657. if value < 7.5 then
  1658. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1659. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1660. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1661. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1662. end
  1663. if value < 0 then
  1664. dec2.Transparency = dec2.Transparency + 0.025
  1665. dec2a.Transparency = dec2a.Transparency + 0.025
  1666. dec2b.Transparency = dec2b.Transparency + 0.025
  1667. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1668. expart.Transparency = expart.Transparency + 0.025
  1669. expart2.Transparency = expart2.Transparency + 0.025
  1670. rin.Transparency = rin.Transparency + 0.025
  1671. rin2.Transparency = rin2.Transparency + 0.025
  1672. end
  1673. swait()
  1674. end
  1675. game:GetService("Debris"):AddItem(expart, 1)
  1676. game:GetService("Debris"):AddItem(expart2, 1)
  1677. game:GetService("Debris"):AddItem(rin, 1)
  1678. game:GetService("Debris"):AddItem(rin2, 1)
  1679. end
  1680.  
  1681. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1682. local expart = Instance.new("Part",char)
  1683. local expart2 = Instance.new("Part",char)
  1684. local partMesh = Instance.new("SpecialMesh",expart)
  1685. partMesh.MeshType = "Sphere"
  1686. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1687. partMesh2.MeshType = "Sphere"
  1688. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1689. partMesh.Scale = vt(rad,rad,rad)
  1690. expart.Size = vt(1,1,1)
  1691. expart.Transparency = 0
  1692. expart.Anchored = true
  1693. expart.Material = "Neon"
  1694. expart.BrickColor = bc("White")
  1695. expart.CFrame = par.CFrame
  1696. partMesh2.Scale = vt(rad,rad,rad)
  1697. expart2.Size = vt(1.15,1.15,1.15)
  1698. expart2.Transparency = 0.5
  1699. expart2.Anchored = true
  1700. expart2.Material = "Neon"
  1701. expart2.BrickColor = par.BrickColor
  1702. expart2.CFrame = par.CFrame
  1703. expart.CanCollide = false
  1704. expart2.CanCollide = false
  1705. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1706. local value = 1*rad/6.5
  1707. for i = 0, 75 do
  1708. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1709. expart.CFrame = expart.CFrame
  1710. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1711. expart2.CFrame = expart.CFrame
  1712. value = value - 0.035*rad/5
  1713. if value < 0 then
  1714. value = 0
  1715. expart.Transparency = expart.Transparency + 0.05
  1716. expart2.Transparency = expart2.Transparency + 0.05
  1717. end
  1718. swait()
  1719. end
  1720. game:GetService("Debris"):AddItem(expart, 1)
  1721. game:GetService("Debris"):AddItem(expart2, 1)
  1722. end
  1723.  
  1724. function AreaDanger(rad,par,mindam,maxdam)
  1725. local expart = Instance.new("Part",char)
  1726. local partMesh = Instance.new("SpecialMesh",expart)
  1727. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1728. partMesh.MeshType = "Sphere"
  1729. partMesh.Scale = vt(rad,rad,rad)
  1730. expart.Size = vt(1,1,1)
  1731. expart.Transparency = 0.5
  1732. expart.Anchored = true
  1733. expart.Material = "Neon"
  1734. expart.CanCollide = false
  1735. expart.BrickColor = par.BrickColor
  1736. expart.CFrame = par.CFrame
  1737. local value = 1*rad/5
  1738. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1739. for i = 0, 14 do
  1740. wait()
  1741. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1742. expart.CFrame = expart.CFrame
  1743. value = value - 0.035*rad
  1744. if value < 0 then
  1745. value = 0
  1746. end
  1747. end
  1748. wait(0.25)
  1749. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1750. wait(0.5)
  1751. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1752. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1753. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1754. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1755. for i = 0, 14 do
  1756. wait()
  1757. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1758. expart.CFrame = expart.CFrame
  1759. value = value - 0.035*rad/2
  1760. end
  1761. expart.Transparency = 1
  1762. game:GetService("Debris"):AddItem(expart, 5)
  1763. end
  1764.  
  1765. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1766. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1767. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1768. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1769. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1770. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1771. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1772. for i = 0, 24 do
  1773. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  1774. end
  1775. for i = 0, 24 do
  1776. local expart = Instance.new("Part",char)
  1777. expart.Transparency = 1
  1778. expart.Anchored = true
  1779. expart.CanCollide = false
  1780. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1781. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1782. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1783. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1784. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1785. for i = 0, 9 do
  1786. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  1787. end
  1788. game:GetService("Debris"):AddItem(expart, 2)
  1789. wait(0.1)
  1790. end
  1791. end
  1792.  
  1793. function EXterPlosion(par)
  1794. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1795. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1796. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1797. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1798. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  1799. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1800. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1801. for i = 0, 24 do
  1802. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  1803. end
  1804. for i = 0, 24 do
  1805. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  1806. end
  1807. end
  1808. ----
  1809.  
  1810. local stackingpower = 1
  1811.  
  1812. function HellsCore()
  1813. attack = true
  1814. --[[for i = 0,1,0.1 do
  1815. swait()
  1816. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  1817. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1818. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1819. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1820. end]]--
  1821.  
  1822. local rng = Instance.new("Part", char)
  1823. CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
  1824. rng.Anchored = true
  1825. rng.BrickColor = origcolor
  1826. rng.CanCollide = false
  1827. rng.FormFactor = 3
  1828. rng.Name = "Ring"
  1829. rng.Material = "Neon"
  1830. rng.Size = Vector3.new(1, 1, 1)
  1831. rng.Transparency = 1
  1832. rng.TopSurface = 0
  1833. rng.BottomSurface = 0
  1834. rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
  1835. local rngm = Instance.new("SpecialMesh", rng)
  1836. rngm.MeshType = "Brick"
  1837. local dec = Instance.new("Decal",rng)
  1838. dec.Texture = "http://www.roblox.com/asset/?id=401466968"
  1839. dec.Face = "Top"
  1840. local dec2 = dec:Clone()
  1841. dec2.Parent = rng
  1842. dec2.Face = "Bottom"
  1843.  
  1844. local scaler2 = 1
  1845. scaler2 = 1*3
  1846. for i = 0,10,0.1 do
  1847. swait()
  1848. scaler2 = scaler2 - 0.01*3
  1849. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  1850. end
  1851. wait(3)
  1852. for i = 0,10,0.1 do
  1853. swait()
  1854. scaler2 = scaler2 - 0.01*3
  1855. dec.Transparency = dec.Transparency + 0.01
  1856. dec2.Transparency = dec2.Transparency + 0.01
  1857. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  1858. end
  1859. rng:Destroy()
  1860. attack = false
  1861. end
  1862.  
  1863.  
  1864. function FaceMouse()
  1865. Cam = workspace.CurrentCamera
  1866. return {
  1867. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1868. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1869. }
  1870. end
  1871.  
  1872. function FaceMouse2()
  1873. Cam = workspace.CurrentCamera
  1874. return {
  1875. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  1876. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1877. }
  1878. end
  1879.  
  1880.  
  1881. local HoldingZ = false
  1882. local HoldingX = false
  1883. local HoldingC = false
  1884. local HoldingV = false
  1885. local HoldingB = false
  1886.  
  1887.  
  1888. function RingEffect(pos,startsize,size,col)
  1889. local lb = Instance.new("Part")
  1890. lb.Parent = char
  1891. lb.BrickColor = col
  1892. lb.CanCollide = false
  1893. lb.Material = "Neon"
  1894. lb.Anchored = true
  1895. lb.TopSurface = 0
  1896. lb.BottomSurface = 0
  1897. lb.Transparency = 1
  1898. lb.Size = vt(1,1,1)
  1899. lb.CFrame = pos
  1900. local thingery = Instance.new("SpecialMesh",lb)
  1901. thingery.MeshType = "Brick"
  1902. thingery.Scale = vt(startsize,0.1,startsize)
  1903. local dec2 = Instance.new("Texture", lb)
  1904. dec2.Face = "Top"
  1905. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1906. dec2.Color3 = lb.Color
  1907. dec2.Parent = lb
  1908. dec2.StudsPerTileU = startsize
  1909. dec2.StudsPerTileV = startsize
  1910. local dec2b = dec2:Clone()
  1911. dec2b.Face = "Bottom"
  1912. dec2b.Parent = lb
  1913. local randomrot = math.random(1,2)
  1914. coroutine.resume(coroutine.create(function()
  1915. for i = 0, 19 do
  1916. swait()
  1917. if randomrot == 1 then
  1918. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1919. elseif randomrot == 2 then
  1920. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1921. end
  1922. dec2.Transparency = dec2.Transparency + 0.05
  1923. dec2b.Transparency = dec2b.Transparency + 0.05
  1924. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  1925. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  1926. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  1927. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  1928. thingery.Scale = thingery.Scale + vt(size,0,size)
  1929. end
  1930. lb:Destroy()
  1931. end))
  1932. end
  1933.  
  1934. function SlowRingEffect(pos,startsize,size,col)
  1935. local lb = Instance.new("Part")
  1936. lb.Parent = char
  1937. lb.BrickColor = col
  1938. lb.CanCollide = false
  1939. lb.Material = "Neon"
  1940. lb.Anchored = true
  1941. lb.TopSurface = 0
  1942. lb.BottomSurface = 0
  1943. lb.Transparency = 1
  1944. lb.Size = vt(1,1,1)
  1945. lb.CFrame = pos
  1946. local thingery = Instance.new("SpecialMesh",lb)
  1947. thingery.MeshType = "Brick"
  1948. thingery.Scale = vt(startsize,0.1,startsize)
  1949. local dec2 = Instance.new("Decal", lb)
  1950. dec2.Face = "Top"
  1951. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1952. dec2.Color3 = lb.Color
  1953. dec2.Parent = lb
  1954. local dec2b = dec2:Clone()
  1955. dec2b.Face = "Bottom"
  1956. dec2b.Parent = lb
  1957. local randomrot = math.random(1,2)
  1958. coroutine.resume(coroutine.create(function()
  1959. for i = 0, 49 do
  1960. swait()
  1961. if randomrot == 1 then
  1962. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1963. elseif randomrot == 2 then
  1964. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1965. end
  1966. dec2.Transparency = dec2.Transparency + 0.02
  1967. dec2b.Transparency = dec2b.Transparency + 0.02
  1968. thingery.Scale = thingery.Scale + vt(size,0,size)
  1969. end
  1970. lb:Destroy()
  1971. end))
  1972. end
  1973.  
  1974.  
  1975. function groundringaa(pos)
  1976. local rng = Instance.new("Part", char)
  1977. rng.Anchored = true
  1978. rng.BrickColor = origcolor
  1979. rng.CanCollide = false
  1980. rng.FormFactor = 3
  1981. rng.Name = "Ring"
  1982. rng.Size = Vector3.new(1, 1, 1)
  1983. rng.Transparency = 1
  1984. rng.TopSurface = 0
  1985. rng.BottomSurface = 0
  1986. rng.CFrame = pos
  1987. local rngm = Instance.new("SpecialMesh", rng)
  1988. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1989. rngm.Scale = Vector3.new(100,100,5)
  1990. local scaler2 = -10/2
  1991. coroutine.resume(coroutine.create(function()
  1992. for i = 0,10,0.1 do
  1993. swait()
  1994. scaler2 = scaler2 + 0.1/2
  1995. rng.Transparency = rng.Transparency - 0.01
  1996. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  1997. end
  1998. rng:Destroy()
  1999. end))
  2000. end
  2001.  
  2002. function groundringbb(pos)
  2003. local rng = Instance.new("Part", char)
  2004. rng.Anchored = true
  2005. rng.BrickColor = origcolor
  2006. rng.CanCollide = false
  2007. rng.FormFactor = 3
  2008. rng.Name = "Ring"
  2009. rng.Size = Vector3.new(1, 1, 1)
  2010. rng.Transparency = 0
  2011. rng.TopSurface = 0
  2012. rng.BottomSurface = 0
  2013. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2014. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2015. local rngm = Instance.new("SpecialMesh", rng)
  2016. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2017. rngm.Scale = Vector3.new(0,0,5)
  2018. local scaler2 = 10
  2019. coroutine.resume(coroutine.create(function()
  2020. for i = 0,10*2,0.1 do
  2021. swait()
  2022. scaler2 = scaler2 - 0.1/2
  2023. rng.Transparency = rng.Transparency + 0.005
  2024. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2025. end
  2026. rng:Destroy()
  2027. end))
  2028. end
  2029.  
  2030. function groundglowaa(pos)
  2031. local rng = Instance.new("Part", char)
  2032. rng.Anchored = true
  2033. rng.BrickColor = origcolor
  2034. rng.CanCollide = false
  2035. rng.FormFactor = 3
  2036. rng.Material = "Neon"
  2037. rng.Name = "Ring"
  2038. rng.Size = Vector3.new(1, 1, 1)
  2039. rng.Transparency = 0
  2040. rng.TopSurface = 0
  2041. rng.BottomSurface = 0
  2042. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2043. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2044. local rngm = Instance.new("SpecialMesh", rng)
  2045. rngm.MeshType = "Sphere"
  2046. rngm.Scale = Vector3.new(0,0,25)
  2047. local scaler2 = 10*2
  2048. coroutine.resume(coroutine.create(function()
  2049. for i = 0,10*2,0.1 do
  2050. swait()
  2051. scaler2 = scaler2 - 0.1*2/2
  2052. rng.Transparency = rng.Transparency + 0.005
  2053. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  2054. end
  2055. rng:Destroy()
  2056. end))
  2057. end
  2058.  
  2059. function bemaa(pos)
  2060. local rng = Instance.new("Part", char)
  2061. rng.Anchored = true
  2062. rng.BrickColor = origcolor
  2063. rng.CanCollide = false
  2064. rng.FormFactor = 3
  2065. rng.Material = "Neon"
  2066. rng.Name = "Ring"
  2067. rng.Size = Vector3.new(1, 1, 1)
  2068. rng.Transparency = 0
  2069. rng.TopSurface = 0
  2070. rng.BottomSurface = 0
  2071. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2072. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2073. local rngm = Instance.new("SpecialMesh", rng)
  2074. rngm.MeshType = "Sphere"
  2075. rngm.Scale = Vector3.new(0,0,10000)
  2076. local scaler2 = 1
  2077. coroutine.resume(coroutine.create(function()
  2078. for i = 0,99,0.1 do
  2079. swait()
  2080. scaler2 = scaler2 - 0.0025
  2081. rng.Transparency = rng.Transparency + 0.0025
  2082. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2083. end
  2084. rng:Destroy()
  2085. end))
  2086. end
  2087.  
  2088. function bemaashake(pos)
  2089. local rng = Instance.new("Part", char)
  2090. rng.Anchored = true
  2091. rng.BrickColor = origcolor
  2092. rng.CanCollide = false
  2093. rng.FormFactor = 3
  2094. rng.Material = "Neon"
  2095. rng.Name = "Ring"
  2096. rng.Size = Vector3.new(1, 1, 1)
  2097. rng.Transparency = 0
  2098. rng.TopSurface = 0
  2099. rng.BottomSurface = 0
  2100. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2101. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2102. local rngm = Instance.new("SpecialMesh", rng)
  2103. rngm.MeshType = "Sphere"
  2104. local oof = Instance.new("Part",char)
  2105. oof.Parent = rng
  2106. oof.CFrame = rng.CFrame
  2107. oof.CanCollide = false
  2108. oof.Anchored = true
  2109. oof.Transparency = 1
  2110. rngm.Scale = Vector3.new(0,0,10000)
  2111. local scaler2 = 1*10
  2112. coroutine.resume(coroutine.create(function()
  2113. for i = 0,99,0.1 do
  2114. swait()
  2115. scaler2 = scaler2 - 0.0025*10
  2116. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  2117. rng.Transparency = rng.Transparency + 0.0025
  2118. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2119. end
  2120. rng:Destroy()
  2121. end))
  2122. end
  2123.  
  2124. function groundringlarge(pos)
  2125. local rng = Instance.new("Part", char)
  2126. rng.Anchored = true
  2127. rng.BrickColor = origcolor
  2128. rng.CanCollide = false
  2129. rng.FormFactor = 3
  2130. rng.Name = "Ring"
  2131. rng.Size = Vector3.new(1, 1, 1)
  2132. rng.Transparency = 0
  2133. rng.TopSurface = 0
  2134. rng.BottomSurface = 0
  2135. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2136. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2137. local rngm = Instance.new("SpecialMesh", rng)
  2138. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2139. rngm.Scale = Vector3.new(0,0,5)
  2140. local scaler2 = 10*10
  2141. coroutine.resume(coroutine.create(function()
  2142. for i = 0,10*2,0.1 do
  2143. swait()
  2144. scaler2 = scaler2 - 0.1*10/2
  2145. rng.Transparency = rng.Transparency + 0.005
  2146. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2147. end
  2148. rng:Destroy()
  2149. end))
  2150. end
  2151.  
  2152. function sphere(bonuspeed,type,pos,scale,value,color)
  2153. local type = type
  2154. local rng = Instance.new("Part", char)
  2155. rng.Anchored = true
  2156. rng.BrickColor = color
  2157. rng.CanCollide = false
  2158. rng.FormFactor = 3
  2159. rng.Name = "Ring"
  2160. rng.Material = "Neon"
  2161. rng.Size = Vector3.new(1, 1, 1)
  2162. rng.Transparency = 0
  2163. rng.TopSurface = 0
  2164. rng.BottomSurface = 0
  2165. rng.CFrame = pos
  2166. local rngm = Instance.new("SpecialMesh", rng)
  2167. rngm.MeshType = "Sphere"
  2168. rngm.Scale = scale
  2169. if rainbowmode == true then
  2170. rng.Color = Color3.new(r/255,g/255,b/255)
  2171. end
  2172. local scaler2 = 1
  2173. if type == "Add" then
  2174. scaler2 = 1*value
  2175. elseif type == "Divide" then
  2176. scaler2 = 1/value
  2177. end
  2178. coroutine.resume(coroutine.create(function()
  2179. for i = 0,10/bonuspeed,0.1 do
  2180. swait()
  2181. if rainbowmode == true then
  2182. rng.Color = Color3.new(r/255,g/255,b/255)
  2183. end
  2184. if type == "Add" then
  2185. scaler2 = scaler2 - 0.01*value/bonuspeed
  2186. elseif type == "Divide" then
  2187. scaler2 = scaler2 - 0.01/value*bonuspeed
  2188. end
  2189. if chaosmode == true then
  2190. rng.BrickColor = BrickColor.random()
  2191. end
  2192. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2193. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2194. end
  2195. rng:Destroy()
  2196. end))
  2197. end
  2198.  
  2199. function sphereouter(bonuspeed,type,pos,scale,value,color)
  2200. local type = type
  2201. local rng = Instance.new("Part", char)
  2202. rng.Anchored = true
  2203. rng.BrickColor = color
  2204. rng.CanCollide = false
  2205. rng.FormFactor = 3
  2206. rng.Name = "Ring"
  2207. rng.Material = "Neon"
  2208. rng.Size = Vector3.new(1, 1, 1)
  2209. rng.Transparency = 0
  2210. rng.TopSurface = 0
  2211. rng.BottomSurface = 0
  2212. rng.CFrame = pos
  2213. local rngm = Instance.new("SpecialMesh", rng)
  2214. rngm.MeshType = "Sphere"
  2215. rngm.Scale = scale
  2216. if rainbowmode == true then
  2217. rng.Color = Color3.new(r/255,g/255,b/255)
  2218. end
  2219. local scaler2 = 1
  2220. if type == "Add" then
  2221. scaler2 = 1*value
  2222. elseif type == "Divide" then
  2223. scaler2 = 1/value
  2224. end
  2225. coroutine.resume(coroutine.create(function()
  2226. for i = 0,10/bonuspeed,0.1 do
  2227. swait()
  2228. if rainbowmode == true then
  2229. rng.Color = Color3.new(r/255,g/255,b/255)
  2230. end
  2231. if type == "Add" then
  2232. scaler2 = scaler2 - 0.01*value/bonuspeed
  2233. elseif type == "Divide" then
  2234. scaler2 = scaler2 - 0.01/value*bonuspeed
  2235. end
  2236. if chaosmode == true then
  2237. rng.BrickColor = BrickColor.random()
  2238. end
  2239. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2240. rngm.Scale = rngm.Scale + Vector3.new(0, scaler2*bonuspeed, 0)
  2241. end
  2242. rng:Destroy()
  2243. end))
  2244. end
  2245.  
  2246. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2247. local type = type
  2248. local rng = Instance.new("Part", char)
  2249. rng.Anchored = true
  2250. rng.BrickColor = color
  2251. rng.CanCollide = false
  2252. rng.FormFactor = 3
  2253. rng.Name = "Ring"
  2254. rng.Material = "Neon"
  2255. rng.Size = Vector3.new(1, 1, 1)
  2256. rng.Transparency = 0
  2257. rng.TopSurface = 0
  2258. rng.BottomSurface = 0
  2259. rng.CFrame = pos
  2260. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2261. local rngm = Instance.new("SpecialMesh", rng)
  2262. rngm.MeshType = "Brick"
  2263. rngm.Scale = vt(x1,y1,z1)
  2264. if rainbowmode == true then
  2265. rng.Color = Color3.new(r/255,g/255,b/255)
  2266. end
  2267. local scaler2 = 1
  2268. local speeder = FastSpeed/10
  2269. if type == "Add" then
  2270. scaler2 = 1*value
  2271. elseif type == "Divide" then
  2272. scaler2 = 1/value
  2273. end
  2274. coroutine.resume(coroutine.create(function()
  2275. for i = 0,10/bonuspeed,0.1 do
  2276. swait()
  2277. if rainbowmode == true then
  2278. rng.Color = Color3.new(r/255,g/255,b/255)
  2279. end
  2280. if type == "Add" then
  2281. scaler2 = scaler2 - 0.01*value/bonuspeed
  2282. elseif type == "Divide" then
  2283. scaler2 = scaler2 - 0.01/value*bonuspeed
  2284. end
  2285. if chaosmode == true then
  2286. rng.BrickColor = BrickColor.random()
  2287. end
  2288. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2289. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2290. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2291. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2292. end
  2293. rng:Destroy()
  2294. end))
  2295. end
  2296.  
  2297. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2298. local type = type
  2299. local rng = Instance.new("Part", char)
  2300. rng.Anchored = true
  2301. rng.BrickColor = color
  2302. rng.CanCollide = false
  2303. rng.FormFactor = 3
  2304. rng.Name = "Ring"
  2305. rng.Material = "Neon"
  2306. rng.Size = Vector3.new(1, 1, 1)
  2307. rng.Transparency = 0
  2308. rng.TopSurface = 0
  2309. rng.BottomSurface = 0
  2310. rng.CFrame = pos
  2311. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2312. local rngm = Instance.new("SpecialMesh", rng)
  2313. rngm.MeshType = "Brick"
  2314. rngm.Scale = vt(x1,y1,z1)
  2315. if rainbowmode == true then
  2316. rng.Color = Color3.new(r/255,g/255,b/255)
  2317. end
  2318. local scaler2 = 0
  2319. local speeder = FastSpeed/10
  2320. if type == "Add" then
  2321. scaler2 = 1*value
  2322. elseif type == "Divide" then
  2323. scaler2 = 1/value
  2324. end
  2325. coroutine.resume(coroutine.create(function()
  2326. for i = 0,10/bonuspeed,0.1 do
  2327. swait()
  2328. if rainbowmode == true then
  2329. rng.Color = Color3.new(r/255,g/255,b/255)
  2330. end
  2331. if type == "Add" then
  2332. scaler2 = scaler2 - 0.01*value/bonuspeed
  2333. elseif type == "Divide" then
  2334. scaler2 = scaler2 - 0.01/value*bonuspeed
  2335. end
  2336. if chaosmode == true then
  2337. rng.BrickColor = BrickColor.random()
  2338. end
  2339. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2340. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2341. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2342. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2343. end
  2344. rng:Destroy()
  2345. end))
  2346. end
  2347.  
  2348.  
  2349. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2350. local type = type
  2351. local rng = Instance.new("Part", char)
  2352. rng.Anchored = true
  2353. rng.BrickColor = color
  2354. rng.CanCollide = false
  2355. rng.FormFactor = 3
  2356. rng.Name = "Ring"
  2357. rng.Material = "Neon"
  2358. rng.Size = Vector3.new(1, 1, 1)
  2359. rng.Transparency = 0
  2360. rng.TopSurface = 0
  2361. rng.BottomSurface = 0
  2362. rng.CFrame = pos
  2363. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2364. local rngm = Instance.new("SpecialMesh", rng)
  2365. rngm.MeshType = "Sphere"
  2366. rngm.Scale = vt(x1,y1,z1)
  2367. if rainbowmode == true then
  2368. rng.Color = Color3.new(r/255,g/255,b/255)
  2369. end
  2370. local scaler2 = 1
  2371. local speeder = FastSpeed
  2372. if type == "Add" then
  2373. scaler2 = 1*value
  2374. elseif type == "Divide" then
  2375. scaler2 = 1/value
  2376. end
  2377. coroutine.resume(coroutine.create(function()
  2378. for i = 0,10/bonuspeed,0.1 do
  2379. swait()
  2380. if rainbowmode == true then
  2381. rng.Color = Color3.new(r/255,g/255,b/255)
  2382. end
  2383. if type == "Add" then
  2384. scaler2 = scaler2 - 0.01*value/bonuspeed
  2385. elseif type == "Divide" then
  2386. scaler2 = scaler2 - 0.01/value*bonuspeed
  2387. end
  2388. if chaosmode == true then
  2389. rng.BrickColor = BrickColor.random()
  2390. end
  2391. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2392. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2393. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2394. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2395. end
  2396. rng:Destroy()
  2397. end))
  2398. end
  2399.  
  2400.  
  2401. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2402. local type = type
  2403. local rng = Instance.new("Part", char)
  2404. rng.Anchored = true
  2405. rng.BrickColor = color
  2406. rng.CanCollide = false
  2407. rng.FormFactor = 3
  2408. rng.Name = "Ring"
  2409. rng.Material = "Neon"
  2410. rng.Size = Vector3.new(1, 1, 1)
  2411. rng.Transparency = 1
  2412. rng.TopSurface = 0
  2413. rng.BottomSurface = 0
  2414. rng.CFrame = pos
  2415. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2416. local rngm = Instance.new("SpecialMesh", rng)
  2417. rngm.MeshType = "Sphere"
  2418. rngm.Scale = vt(x1,y1,z1)
  2419. if rainbowmode == true then
  2420. rng.Color = Color3.new(r/255,g/255,b/255)
  2421. end
  2422. local scaler2 = 1
  2423. local speeder = FastSpeed
  2424. if type == "Add" then
  2425. scaler2 = 1*value
  2426. elseif type == "Divide" then
  2427. scaler2 = 1/value
  2428. end
  2429. coroutine.resume(coroutine.create(function()
  2430. for i = 0,10/bonuspeed,0.1 do
  2431. swait()
  2432. if rainbowmode == true then
  2433. rng.Color = Color3.new(r/255,g/255,b/255)
  2434. end
  2435. if type == "Add" then
  2436. scaler2 = scaler2 - 0.01*value/bonuspeed
  2437. elseif type == "Divide" then
  2438. scaler2 = scaler2 - 0.01/value*bonuspeed
  2439. end
  2440. if chaosmode == true then
  2441. rng.BrickColor = BrickColor.random()
  2442. end
  2443. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2444. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2445. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2446. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2447. end
  2448. rng:Destroy()
  2449. end))
  2450. end
  2451.  
  2452.  
  2453. function TargetSelect(person)
  2454. local dd=coroutine.wrap(function()
  2455. if targetted ~= person then
  2456. targetted = person
  2457. img2.Size = UDim2.new(1,0,1,0)
  2458. img2.ImageTransparency = 0
  2459. img2.Position = UDim2.new(0,0,0,0)
  2460. img2.ImageColor3 = Color3.new(0,0,0)
  2461. for i = 0, 2, 0.1 do
  2462. swait()
  2463. img2.Size = img2.Size + UDim2.new(.05,0,.05,0)
  2464. img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0)
  2465. img2.ImageTransparency = img2.ImageTransparency + 0.05
  2466. end
  2467. end
  2468. end)
  2469. dd()
  2470. end
  2471.  
  2472. function FindNearestTorso(Position, Distance, SinglePlayer)
  2473. if SinglePlayer then
  2474. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2475. end
  2476. local List = {}
  2477. for i, v in pairs(workspace:GetChildren()) do
  2478. if v:IsA("Model") then
  2479. if v:findFirstChild("Torso") then
  2480. if v ~= Character then
  2481. if (v.Torso.Position - Position).magnitude <= Distance then
  2482. table.insert(List, v)
  2483. end
  2484. end
  2485. end
  2486. end
  2487. end
  2488. return List
  2489. end
  2490.  
  2491. function LockOn()
  2492. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2493. TargetSelect(Mouse.Target.Parent)
  2494. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2495. elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
  2496. TargetSelect(Mouse.Target.Parent)
  2497. if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
  2498. targetted = nil
  2499. end
  2500. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2501. end
  2502. end
  2503.  
  2504. function dmg(dude)
  2505. if dude.Name ~= Character then
  2506. local bgf = Instance.new("BodyGyro",dude.Head)
  2507. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2508. local val = Instance.new("BoolValue",dude)
  2509. val.Name = "IsHit"
  2510. local ds = coroutine.wrap(function()
  2511. if dude.Name ~= "koonguy98755" then
  2512. killcount = killcount + 1
  2513. dude:WaitForChild("Torso"):BreakJoints()
  2514. wait(0.5)
  2515. targetted = nil
  2516. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2517. coroutine.resume(coroutine.create(function()
  2518. for i, v in pairs(dude:GetChildren()) do
  2519. if v:IsA("Accessory") then
  2520. v:Destroy()
  2521. end
  2522. if v:IsA("Humanoid") then
  2523. v:Destroy()
  2524. end
  2525. if v:IsA("CharacterMesh") then
  2526. v:Destroy()
  2527. end
  2528. if v:IsA("Model") then
  2529. v:Destroy()
  2530. end
  2531. if v:IsA("Part") then
  2532. for x, o in pairs(v:GetChildren()) do
  2533. if o:IsA("Decal") then
  2534. o:Destroy()
  2535. end
  2536. end
  2537. coroutine.resume(coroutine.create(function()
  2538. v.Material = "Neon"
  2539. v.CanCollide = false
  2540. local bld = Instance.new("ParticleEmitter",v)
  2541. bld.LightEmission = 1
  2542. bld.Texture = "rbxassetid://284205403"
  2543. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2544. bld.Rate = 50
  2545. bld.Lifetime = NumberRange.new(1)
  2546. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2547. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2548. bld.Speed = NumberRange.new(0,0,0)
  2549. bld.Rotation = NumberRange.new(-500,500)
  2550. bld.RotSpeed = NumberRange.new(-500,500)
  2551. local sbs = Instance.new("BodyPosition", v)
  2552. sbs.P = 3000
  2553. sbs.D = 1000
  2554. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2555. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2556. v.Color = Color3.new(1,1,1)
  2557. coroutine.resume(coroutine.create(function()
  2558. for i = 0, 24 do
  2559. swait(1)
  2560. v.Transparency = v.Transparency + 0.02
  2561. end
  2562. bld.Enabled = false
  2563. for i = 0, 24 do
  2564. swait(1)
  2565. v.Transparency = v.Transparency + 0.02
  2566. end
  2567. v:Destroy()
  2568. dude:Destroy()
  2569. end))
  2570. end))
  2571. end
  2572. end
  2573. end))
  2574. else
  2575. bgf:Destroy()
  2576. sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
  2577. end
  2578. end)
  2579. ds()
  2580. end
  2581. end
  2582.  
  2583. function MagniStop(Magnitude,Parent,Duration)
  2584. for i, v in pairs(FindNearestTorso(Parent, Magnitude)) do
  2585. if v:FindFirstChild('Head') then
  2586. --[[local origWalk = v.Humanoid.WalkSpeed
  2587. local origJump = v.Humanoid.JumpPower]]--
  2588. local ActiveStop = true
  2589. --[[v.Humanoid.WalkSpeed = 0
  2590. v.Humanoid.JumpPower = 0]]--
  2591. for x, o in pairs(v:GetChildren()) do
  2592. if o:IsA("Part") then
  2593. o.Anchored = true
  2594. end
  2595. end
  2596. coroutine.resume(coroutine.create(function()
  2597. while true do
  2598. swait()
  2599. if ActiveStop ~= false then
  2600. --[[v.Humanoid.WalkSpeed = 0
  2601. v.Humanoid.JumpPower = 0]]--
  2602. for x, o in pairs(v:GetChildren()) do
  2603. if o:IsA("Part") then
  2604. o.Anchored = true
  2605. end
  2606. end
  2607. else
  2608. break
  2609. end
  2610. end
  2611. end))
  2612. local txt = Instance.new("BillboardGui", v)
  2613. txt.Adornee = v.Head
  2614. txt.Name = "StoppedSTAT"
  2615. txt.AlwaysOnTop = true
  2616. txt.Size = UDim2.new(2, 0, 1.2, 0)
  2617. txt.StudsOffset = Vector3.new(-9, 8, 0)
  2618. local text = Instance.new("TextLabel", txt)
  2619. text.Size = UDim2.new(10, 0, 7, 0)
  2620. text.FontSize = "Size24"
  2621. text.TextScaled = true
  2622. text.TextTransparency = 0
  2623. text.BackgroundTransparency = 1
  2624. text.TextTransparency = 0
  2625. text.TextStrokeTransparency = 0.75
  2626. text.Font = "Cartoon"
  2627. text.TextStrokeColor3 = Color3.new(0,0,0)
  2628. text.TextColor3 = Color3.new(0,1,0)
  2629. text.Text = "STOPPED"
  2630. coroutine.resume(coroutine.create(function()
  2631. wait(Duration)
  2632. ActiveStop = false
  2633. for x, o in pairs(v:GetChildren()) do
  2634. if o:IsA("Part") then
  2635. o.Anchored = false
  2636. end
  2637. end
  2638. --[[v.Humanoid.WalkSpeed = origWalk
  2639. v.Humanoid.JumpPower = origJump]]--
  2640. txt:Destroy()
  2641. end))
  2642. end
  2643. end
  2644. end
  2645.  
  2646. function MakeBullet(Type,Speed,Position,Magni,Minim,Maxim,Color,TrailColor,Size,TrailSize,Delay,VolumeEx)
  2647. local ExplodeType = Type
  2648. local spart = Instance.new("Part",char)
  2649. local msh = Instance.new("SpecialMesh",spart)
  2650. msh.MeshType = "Sphere"
  2651. msh.Scale = Size
  2652. CFuncs["Sound"].Create("rbxassetid://260433768", spart, 2, 1)
  2653. spart.Size = vt(1,1,1)
  2654. spart.BrickColor = Color
  2655. spart.Material = "Neon"
  2656. spart.Transparency = 0
  2657. spart.Anchored = true
  2658. spart.CanCollide = false
  2659. spart.CFrame = Position
  2660. local hitted = false
  2661. spart.Anchored = false
  2662. local bv = Instance.new("BodyVelocity")
  2663. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2664. bv.velocity = spart.CFrame.lookVector *Speed
  2665. bv.Parent = spart
  2666. game:GetService("Debris"):AddItem(spart, Delay)
  2667. --[[coroutine.resume(coroutine.create(function()
  2668. while true do
  2669. swait(1)
  2670. if spart.Parent ~= nil and hitted == false then
  2671. sphere(3,"Add",spart.CFrame*CFrame.new(math.random(-TrailSize,TrailSize),math.random(-TrailSize,TrailSize),0)+ spart.CFrame.lookVector*-TrailSize-3,vt(0,0,0),TrailSize,TrailColor)
  2672. elseif spart.Parent == nil then
  2673. break
  2674. end
  2675. end
  2676. end))]]--
  2677. swait(1)
  2678. if ExplodeType == "Normal" then
  2679. local hit =spart.Touched:connect(function(hit)
  2680. if hitted == false then
  2681. hitted = true
  2682. CFuncs["Sound"].Create("rbxassetid://239000203", spart, VolumeEx, 1)
  2683. MagniDamage(spart, Magni, Minim,Maxim, 0, "Normal")
  2684. sphere(1,"Add",spart.CFrame,Size,Magni/20,spart.BrickColor)
  2685. spart.Anchored = true
  2686. spart.Transparency = 1
  2687. end
  2688. end)
  2689. elseif ExplodeType == "Timefreeze" then
  2690. local hit =spart.Touched:connect(function(hit)
  2691. if hitted == false then
  2692. hitted = true
  2693. MagniStop(Magni/1.75,spart.CFrame.p,1)
  2694. MagniDamage(spart, Magni/1.75, Minim,Maxim, 0, "Normal")
  2695. --CFuncs["Sound"].Create("rbxassetid://239000203", spart, 2, 1)
  2696. CFuncs["Sound"].Create("rbxassetid://1208650519", spart, VolumeEx, 1)
  2697. sphere(1,"Add",spart.CFrame,vt(Magni,Magni,Magni),-Magni/50,spart.BrickColor)
  2698. spart.Anchored = true
  2699. spart.Transparency = 1
  2700. end
  2701. end)
  2702. end
  2703. end
  2704. --[[function UnusedSource()
  2705. MagniStop(12.5,targetted.Torso.CFrame.p,2)
  2706. CFuncs["Sound"].Create("rbxassetid://743521656", targetted.Torso, 5, 0.8)
  2707. --CFuncs["Sound"].Create("rbxassetid://1208650519", targetted.Torso, 5, 1)
  2708. sphere(1,"Add",targetted.Torso.CFrame,vt(25,25,25),-0.5,BrickColor.new("White"))
  2709. end]]--
  2710.  
  2711. -------------
  2712. function FaceMouse()
  2713. Cam = workspace.CurrentCamera
  2714. return {
  2715. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2716. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2717. }
  2718. end
  2719.  
  2720. function FaceMouse2()
  2721. Cam = workspace.CurrentCamera
  2722. return {
  2723. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2724. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2725. }
  2726. end
  2727.  
  2728. ---- main combo attacks
  2729.  
  2730. local r = 255
  2731. local g = 0
  2732. local b = 0
  2733. coroutine.resume(coroutine.create(function()
  2734. while wait() do
  2735. for i = 0, 254/5 do
  2736. swait()
  2737. g = g + 5
  2738. end
  2739. for i = 0, 254/5 do
  2740. swait()
  2741. r = r - 5
  2742. end
  2743. for i = 0, 254/5 do
  2744. swait()
  2745. b = b + 5
  2746. end
  2747. for i = 0, 254/5 do
  2748. swait()
  2749. g = g - 5
  2750. end
  2751. for i = 0, 254/5 do
  2752. swait()
  2753. r = r + 5
  2754. end
  2755. for i = 0, 254/5 do
  2756. swait()
  2757. b = b - 5
  2758. end
  2759. end
  2760. end))
  2761.  
  2762. function attackone()
  2763. attack = true
  2764. for i = 0,1,0.1 do
  2765. swait()
  2766. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(20),math.rad(90)),.3)
  2767. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2768. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2769. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  2770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  2771. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2772. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(110),math.rad(0),math.rad(50)),.3)
  2773. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  2774. end
  2775. local con = hibox.Touched:connect(function(hit)
  2776. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  2777. end)
  2778. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 1)
  2779. for i = 0,1,0.1 do
  2780. swait()
  2781. sordweld.C0=clerp(sordweld.C0,cf(-1,0,0)*angles(math.rad(-90),math.rad(60),math.rad(90)),.3)
  2782. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2783. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2784. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  2785. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  2786. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  2787. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  2788. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  2789. end
  2790. con:disconnect()
  2791. attack = false
  2792. end
  2793.  
  2794. function attacktwo()
  2795. attack = true
  2796. for i = 0,1,0.1 do
  2797. swait()
  2798. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  2799. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2800. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2801. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  2802. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  2803. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  2804. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(50),math.rad(20),math.rad(-30)),.3)
  2805. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  2806. end
  2807. local con = hibox.Touched:connect(function(hit)
  2808. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  2809. end)
  2810. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 0.75)
  2811. for i = 0,1,0.1 do
  2812. swait()
  2813. sordweld.C0=clerp(sordweld.C0,cf(-1,-1,0)*angles(math.rad(-90),math.rad(5),math.rad(90)),.3)
  2814. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2815. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2816. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  2817. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2818. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2819. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  2820. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  2821. end
  2822. con:disconnect()
  2823. attack = false
  2824. end
  2825.  
  2826. function attackthree()
  2827. attack = true
  2828. for i = 0,1,0.1 do
  2829. swait()
  2830. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2831. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2832. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.1)
  2833. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.1)
  2834. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(15)),.3)
  2835. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-15)),.3)
  2836. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5),math.rad(-10),math.rad(10)),.3)
  2837. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(120),math.rad(0),math.rad(-10)),.3)
  2838. end
  2839. for i = 0,2,0.1 do
  2840. swait()
  2841. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2842. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  2843. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.1)
  2844. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.1)
  2845. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2846. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(45)),.3)
  2847. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5),math.rad(-10),math.rad(10)),.3)
  2848. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-55)),.3)
  2849. end
  2850. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  2851. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  2852. MagniDamage(glowst, 7.5, 12,16, 0, "Normal")
  2853. for i = 0, 9 do
  2854. sphereMK(2,0.2,"Add",glowst.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,halocolor,0)
  2855. sphereMK(4,0.4,"Add",glowst.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,halocolor,0)
  2856. end
  2857. CFuncs["Sound"].Create("rbxassetid://183763506", glowst, 1.5, 1)
  2858. attack = false
  2859. end
  2860.  
  2861. function attackorb()
  2862. attack = true
  2863. for i = 0,1,0.1 do
  2864. swait()
  2865. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2866. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2867. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  2868. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  2869. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.3)
  2870. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.3)
  2871. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(30)),.3)
  2872. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-30)),.3)
  2873. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.3)
  2874. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(120),math.rad(0),math.rad(-55)),.3)
  2875. end
  2876. for i = 0,1,0.1 do
  2877. swait()
  2878. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2879. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  2880. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  2881. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  2882. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.3)
  2883. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.3)
  2884. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(-20)),.3)
  2885. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(20)),.3)
  2886. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.3)
  2887. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-35)),.3)
  2888. end
  2889. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  2890. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  2891. local orb = Instance.new("Part", char)
  2892. orb.BrickColor = halocolor
  2893. orb.CanCollide = false
  2894. orb.FormFactor = 3
  2895. orb.Name = "Ring"
  2896. orb.Material = "Neon"
  2897. orb.Size = Vector3.new(1, 1, 1)
  2898. orb.Transparency = 0
  2899. orb.TopSurface = 0
  2900. orb.BottomSurface = 0
  2901. local orbm = Instance.new("SpecialMesh", orb)
  2902. orbm.MeshType = "Sphere"
  2903. orbm.Name = "SizeMesh"
  2904. orbm.Scale = vt(1.5,1.5,1.5)
  2905. local a = Instance.new("Part",workspace)
  2906. a.Name = "Direction"
  2907. a.Anchored = true
  2908. a.BrickColor = bc("Bright red")
  2909. a.Material = "Neon"
  2910. a.Transparency = 1
  2911. a.CanCollide = false
  2912. local ray = Ray.new(
  2913. glowst.CFrame.p, -- origin
  2914. (mouse.Hit.p - glowst.CFrame.p).unit * 500 -- direction
  2915. )
  2916. local ignore = glowst
  2917. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2918. a.BottomSurface = 10
  2919. a.TopSurface = 10
  2920. local distance = (glowst.CFrame.p - position).magnitude
  2921. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2922. a.CFrame = CFrame.new(glowst.CFrame.p, position) * CFrame.new(0, 0, 0)
  2923. orb.CFrame = a.CFrame
  2924. a:Destroy()
  2925. local bv = Instance.new("BodyVelocity")
  2926. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2927. bv.velocity = orb.CFrame.lookVector*100
  2928. bv.Parent = orb
  2929. local hitted = false
  2930. game:GetService("Debris"):AddItem(orb, 10)
  2931. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  2932. coroutine.resume(coroutine.create(function()
  2933. swait(0.1)
  2934. orb.Touched:connect(function(hit)
  2935. if hitted == false then
  2936. hitted = true
  2937. game:GetService("Debris"):AddItem(orb, 5)
  2938. orb.Transparency = 1
  2939. orb.Anchored = true
  2940. for i = 0, 49 do
  2941. PixelBlock(1,math.random(3,10),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  2942. end
  2943. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2944. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2945. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2946. sphere(4,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2947. sphere(5,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2948. CFuncs["Sound"].Create("rbxassetid://468991944", orb, 7.5, 1)
  2949. CFuncs["Sound"].Create("rbxassetid://419447292", orb, 2.5,1)
  2950. MagniDamage(orb, 12.5, 15,22, 0, "Normal")
  2951. end
  2952. end)
  2953. end))
  2954. attack = false
  2955. end
  2956.  
  2957. function Taunt()
  2958. attack = true
  2959. hum.WalkSpeed = 0
  2960. for x = 0, 4 do
  2961. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.75)
  2962. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.6)
  2963. for i = 0,1,0.6 do
  2964. swait()
  2965. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  2966. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  2967. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  2968. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  2969. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  2970. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  2971. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  2972. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  2973. end
  2974. for i = 0,1,0.6 do
  2975. swait()
  2976. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.5)
  2977. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  2978. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  2979. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  2980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  2981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  2982. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  2983. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  2984. end
  2985. for i = 0,1,0.6 do
  2986. swait()
  2987. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(180),math.rad(0)),.5)
  2988. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  2989. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  2990. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  2991. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  2992. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  2993. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  2994. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  2995. end
  2996. for i = 0,1,0.6 do
  2997. swait()
  2998. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(270),math.rad(0)),.5)
  2999. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3000. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3001. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3002. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3003. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3004. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  3005. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3006. end
  3007. end
  3008. local ranod = math.random(1,5)
  3009. if ranod == 1 then
  3010. chatfunc("You're not really at this, arent you.",halocolor.Color)
  3011. elseif ranod == 2 then
  3012. chatfunc("I dont like whoever messes me up.",halocolor.Color)
  3013. elseif ranod == 3 then
  3014. chatfunc("I never expected you to be here.",halocolor.Color)
  3015. elseif ranod == 4 then
  3016. chatfunc("You really messed up.",halocolor.Color)
  3017. elseif ranod == 5 then
  3018. chatfunc("Go away.",halocolor.Color)
  3019. end
  3020. for i = 0,15,0.1 do
  3021. swait()
  3022. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  3023. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3024. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3025. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  3026. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  3027. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  3028. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.3)
  3029. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  3030. end
  3031. hum.WalkSpeed = 16
  3032. attack = false
  3033. end
  3034.  
  3035. function WAT()
  3036. attack = true
  3037. hum.WalkSpeed = 0
  3038. for x = 0, 9 do
  3039. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.7)
  3040. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.55)
  3041. for i = 0,1,0.6 do
  3042. swait()
  3043. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  3044. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3045. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3046. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3047. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3048. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3049. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  3050. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3051. end
  3052. for i = 0,1,0.6 do
  3053. swait()
  3054. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.5)
  3055. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3056. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3057. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3058. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3059. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3060. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  3061. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3062. end
  3063. for i = 0,1,0.6 do
  3064. swait()
  3065. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.5)
  3066. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3067. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3068. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3069. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3070. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3071. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  3072. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3073. end
  3074. for i = 0,1,0.6 do
  3075. swait()
  3076. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-270),math.rad(0),math.rad(0)),.5)
  3077. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3078. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3079. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3080. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3081. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3082. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  3083. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3084. end
  3085. end
  3086. local hittery = false
  3087. local ParentedHit = nil
  3088. local con = hibox.Touched:connect(function(hit)
  3089. if hit.Name == "Torso" and hittery == false then
  3090. hittery = true
  3091. ParentedHit = hit
  3092. for i = 0, 24 do
  3093. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  3094. end
  3095. sphere(2,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3096. sphere(3,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3097. sphere(4,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3098. CFuncs["Sound"].Create("rbxassetid://153092227", hit, 5, 1)
  3099. sbs = Instance.new("BodyPosition", hit)
  3100. sbs.P = 3000
  3101. sbs.D = 1000
  3102. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3103. sbs.position = hit.CFrame.p
  3104. end
  3105. end)
  3106. for i = 0,2,0.1 do
  3107. swait()
  3108. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  3109. PixelBlockNeg(1,1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0)
  3110. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3111. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.6)
  3112. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.6)
  3113. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3114. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(2.5),math.rad(5),math.rad(90)),.6)
  3115. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3116. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3117. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.6)
  3118. end
  3119. con:disconnect()
  3120. if hittery == true then
  3121. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3122. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  3123. for i = 0, 24 do
  3124. PixelBlock(1,math.random(3,6),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  3125. end
  3126. root.CFrame = ParentedHit.CFrame + ParentedHit.CFrame.lookVector*-8
  3127. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  3128. for i = 0, 24 do
  3129. PixelBlock(1,math.random(3,6),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  3130. end
  3131. for x = 0, 9 do
  3132. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  3133. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  3134. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  3135. for i = 0, 2 do
  3136. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  3137. PixelBlock(1,math.random(5,25),"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Really black"),0)
  3138. end
  3139. for i = 0,1,0.6 do
  3140. swait()
  3141. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3142. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3143. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  3144. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3145. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(5),math.rad(90)),.6)
  3146. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3147. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3148. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3149. end
  3150. for i = 0,1,0.6 do
  3151. swait()
  3152. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3153. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3154. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  3155. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3156. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(90),math.rad(5),math.rad(90)),.6)
  3157. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3158. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3159. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3160. end
  3161. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  3162. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  3163. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  3164. for i = 0, 2 do
  3165. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  3166. PixelBlock(1,math.random(5,25),"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Really black"),0)
  3167. end
  3168. for i = 0,1,0.6 do
  3169. swait()
  3170. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3171. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3172. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  3173. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3174. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(180),math.rad(5),math.rad(90)),.6)
  3175. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3176. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3177. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3178. end
  3179. for i = 0,1,0.6 do
  3180. swait()
  3181. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3182. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3183. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  3184. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  3185. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(270),math.rad(5),math.rad(90)),.6)
  3186. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3187. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3188. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3189. end
  3190. end
  3191.  
  3192. local ex = Instance.new("ParticleEmitter",at1)
  3193. ex.Texture = "rbxassetid://296874871"
  3194. ex.LightEmission = 0.25
  3195. ex.Color = ColorSequence.new(Color3.new(0,0,0))
  3196. ex.Rate = 100
  3197. ex.Lifetime = NumberRange.new(2)
  3198. ex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  3199. ex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3200. ex.Speed = NumberRange.new(10)
  3201. ex.LockedToPart = true
  3202. ex.Rotation = NumberRange.new(-500,500)
  3203. ex.RotSpeed = NumberRange.new(-500,500)
  3204. local ex2 = Instance.new("ParticleEmitter",at1)
  3205. ex2.Texture = "rbxassetid://865418009"
  3206. ex2.LightEmission = 1
  3207. ex2.Color = ColorSequence.new(Color3.new(1,1,1))
  3208. ex2.Rate = 50
  3209. ex2.Lifetime = NumberRange.new(0.25)
  3210. ex2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3211. ex2.Speed = NumberRange.new(75)
  3212. ex2.LockedToPart = true
  3213. ex2.Rotation = NumberRange.new(-500,500)
  3214. local ex3 = Instance.new("ParticleEmitter",glow)
  3215. ex3.Texture = "rbxassetid://865418009"
  3216. ex3.LightEmission = 1
  3217. ex3.Color = ColorSequence.new(Color3.new(1,1,1))
  3218. ex3.Rate = 50
  3219. ex3.Lifetime = NumberRange.new(0.5)
  3220. ex3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,3,0)})
  3221. ex3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3222. ex3.Speed = NumberRange.new(0)
  3223. ex3.LockedToPart = true
  3224. ex3.Rotation = NumberRange.new(-500,500)
  3225. CFuncs["Sound"].Create("rbxassetid://1548527129", sord, 4.5, 1)
  3226. CFuncs["Sound"].Create("rbxassetid://1548599511", root, 8, 1)
  3227. for i = 0,10,0.1 do
  3228. swait()
  3229. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3230. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3231. RH.C0=clerp(RH.C0,cf(1,-1,-0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(-20),math.rad(0)),.3)
  3232. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3233. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  3234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  3235. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  3236. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.3)
  3237. end
  3238. for i = 0,5,0.1 do
  3239. swait()
  3240. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  3241. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3242. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(20),math.rad(20)),.3)
  3243. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20)),.3)
  3244. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(70)),.3)
  3245. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  3246. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(50),math.rad(20),math.rad(-30)),.3)
  3247. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.3)
  3248. end
  3249. CameraEnshaking(3,30,char)
  3250. CameraEnshaking(3,30,ParentedHit.Parent)
  3251. CFuncs["Sound"].Create("rbxassetid://1548544673", sord, 1.5, 1)
  3252. CFuncs["Sound"].Create("rbxassetid://1548538202", sord, 2.5, 1)
  3253. CFuncs["Sound"].Create("rbxassetid://1548544673", ParentedHit, 1.5, 1)
  3254. CFuncs["Sound"].Create("rbxassetid://1548538202", ParentedHit, 2.5, 1)
  3255. CFuncs["Sound"].Create("rbxassetid://1548599962", root, 8, 1)
  3256. for i = 0, 9 do
  3257. sphereouter(1,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),5,BrickColor.new("White"))
  3258. end
  3259. dmg(ParentedHit.Parent)
  3260. sbs:Destroy()
  3261. for i = 0,5,0.1 do
  3262. swait()
  3263. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.5)
  3264. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3265. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(20),math.rad(20)),.5)
  3266. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20)),.5)
  3267. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(-70)),.5)
  3268. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(70)),.5)
  3269. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(120),math.rad(20),math.rad(90)),.5)
  3270. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.5)
  3271. end
  3272. ex.Enabled = false
  3273. ex2.Enabled = false
  3274. ex3.Enabled = false
  3275. game:GetService("Debris"):AddItem(ex, 10)
  3276. game:GetService("Debris"):AddItem(ex2, 10)
  3277. game:GetService("Debris"):AddItem(ex3, 10)
  3278. end
  3279. hum.WalkSpeed = 16
  3280. attack = false
  3281. end
  3282.  
  3283. local FloatMode = false
  3284. local attacktype = 1
  3285. mouse.Button1Down:connect(function()
  3286. if FloatMode == false then
  3287. if attack == false and attacktype == 1 then
  3288. attacktype = 2
  3289. attackone()
  3290. elseif attack == false and attacktype == 2 then
  3291. attacktype = 3
  3292. attacktwo()
  3293. elseif attack == false and attacktype == 3 then
  3294. attacktype = 1
  3295. attackthree()
  3296. end
  3297. elseif FloatMode == true then
  3298. if attack == false then
  3299. attackorb()
  3300. end
  3301. end
  3302. end)
  3303.  
  3304. mouse.KeyDown:connect(function(k)
  3305. if k == "q" and attack == false and FloatMode == false then
  3306. FloatMode = true
  3307. hum.WalkSpeed = 32
  3308. elseif k == "q" and attack == false and FloatMode == true then
  3309. FloatMode = false
  3310. hum.WalkSpeed = 16
  3311. end
  3312.  
  3313. if FloatMode == false then
  3314. if k == "t" and attack == false then
  3315. Taunt()
  3316. end
  3317. if k == "m" and attack == false and plr.Name == "IshLink" then
  3318. WAT()
  3319. end
  3320. end
  3321. end)
  3322. idleanim=.4
  3323. hum.Animator.Parent = nil
  3324. swait()
  3325. sine = sine + change
  3326. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3327. local velderp=RootPart.Velocity.y
  3328. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3329. if equipped==true or equipped==false then
  3330. if attack==false then
  3331. idle=idle+1
  3332. else
  3333. idle=0
  3334. end
  3335. if idle>=500 then
  3336. if attack==false then
  3337. --Sheath()
  3338. end
  3339. end
  3340. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3341. Anim="Jump"
  3342. if attack==false then
  3343. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3344. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3345. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3346. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3347. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  3348. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  3349. end
  3350. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3351. Anim="Fall"
  3352. if attack==false then
  3353. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3354. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3355. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3357. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  3358. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  3359. end
  3360. elseif torvel<1 and hitfloor~=nil then
  3361. Anim="Idle"
  3362. if attack==false then
  3363. if FloatMode == false then
  3364. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3365. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3366. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0 + 3 * math.cos(sine / 28))),.1)
  3367. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 - 3 * math.cos(sine / 28))),.1)
  3368. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 + 3 * math.cos(sine / 28)),math.rad(0),math.rad(10)),.1)
  3369. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-10)),.1)
  3370. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-10),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  3371. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  3372. elseif FloatMode == true then
  3373. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3374. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3375. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3376. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3377. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.1)
  3378. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.1)
  3379. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(20)),.1)
  3380. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-20)),.1)
  3381. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  3382. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  3383. end
  3384. end
  3385. elseif torvel>2 and torvel<42 and hitfloor~=nil then
  3386. Anim="Walk"
  3387. if attack==false then
  3388. if FloatMode == false then
  3389. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3390. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3391. RH.C0=clerp(RH.C0,cf(1,-1 - 0.25 * math.cos(sine / 8),-0.1 - 0.25 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 40 * math.cos(sine / 8))),.1)
  3392. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.25 * math.cos(sine / 8),-0.1 + 0.25 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 40 * math.cos(sine / 8))),.1)
  3393. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 8))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 16))),.1)
  3394. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 16))),.1)
  3395. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-30),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  3396. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  3397. elseif FloatMode == true then
  3398. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3399. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3400. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3401. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  3402. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20 + 3 * math.cos(sine / 18))),.1)
  3403. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20 + 5 * math.cos(sine / 24))),.1)
  3404. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(25 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(0)),.1)
  3405. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3406. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(10 + 2.5 * math.cos(sine / 25)),math.rad(-30),math.rad(5 + 2.5 * math.cos(sine / 25))),.1)
  3407. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-20 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.1)
  3408. end
  3409. end
  3410. elseif torvel>=42 and hitfloor~=nil then
  3411. Anim="Run"
  3412. if attack==false then
  3413. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3414. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3415. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  3416. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  3417. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  3418. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  3419. end
  3420. end
  3421. end
  3422. endwarn([[Extermina Loaded.
  3423. Made by NoobyGames12
  3424.  
  3425. One who is based off to someone.
  3426. But its different.]])
  3427. plr = game.Players.LocalPlayer
  3428. char = plr.Character
  3429. hum = char.Humanoid
  3430. local cam = game.Workspace.CurrentCamera
  3431. t = char.Torso
  3432. h = char.Head
  3433. ra = char["Right Arm"]
  3434. la = char["Left Arm"]
  3435. rl = char["Right Leg"]
  3436. ll = char["Left Leg"]
  3437. tors = char.Torso
  3438. lleg = char["Left Leg"]
  3439. root = char.HumanoidRootPart
  3440. hed = char.Head
  3441. rleg = char["Right Leg"]
  3442. rarm = char["Right Arm"]
  3443. larm = char["Left Arm"]
  3444. radian = math.rad
  3445. random = math.random
  3446. Vec3 = Vector3.new
  3447. Inst = Instance.new
  3448. cFrame = CFrame.new
  3449. Euler = CFrame.fromEulerAnglesXYZ
  3450. vt = Vector3.new
  3451. bc = BrickColor.new
  3452. br = BrickColor.random
  3453. it = Instance.new
  3454. cf = CFrame.new
  3455. local killcount = 0
  3456.  
  3457.  
  3458. function CameraEnshaking(Length,Intensity,Parent)
  3459. coroutine.resume(coroutine.create(function()
  3460. local HumanoidParented = Parent:WaitForChild("Humanoid")
  3461. local intensity = 1*Intensity
  3462. local rotM = 0.01*Intensity
  3463. for i = 0, Length, 0.1 do
  3464. swait()
  3465. intensity = intensity - 0.05*Intensity/Length
  3466. rotM = rotM - 0.0005*Intensity/Length
  3467. HumanoidParented.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  3468. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  3469. end
  3470. Humanoid.CameraOffset = Vec3(0, 0, 0)
  3471. end))
  3472. end
  3473.  
  3474.  
  3475. --[[kan = Instance.new("Sound",char)
  3476. kan.Volume = 1.25
  3477. kan.TimePosition = 0
  3478. kan.PlaybackSpeed = 1
  3479. kan.Pitch = 1
  3480. kan.SoundId = "rbxassetid://1347011178"
  3481. kan.Name = "watisdis"
  3482. kan.Looped = true
  3483. kan:Play()]]--
  3484.  
  3485.  
  3486. function CameraShake(Times, Power)
  3487. coroutine.resume(coroutine.create(function()
  3488. FV = Instance.new("BoolValue", Character)
  3489. FV.Name = "CameraShake"
  3490. for ShakeNum=1,Times do
  3491. swait()
  3492. local ef=Power
  3493. if ef>=1 then
  3494. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  3495. else
  3496. ef=Power*10
  3497. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  3498. end
  3499. end
  3500. Humanoid.CameraOffset = Vector3.new(0,0,0)
  3501. FV:Destroy()
  3502. end))
  3503. end
  3504.  
  3505. CamShake=function(Part,Distan,Power,Times)
  3506. local de=Part.Position
  3507. for i,v in pairs(workspace:children()) do
  3508. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  3509. for _,c in pairs(v:children()) do
  3510. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  3511. local Noob=v.Humanoid
  3512. if Noob~=nil then
  3513. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  3514. --[[local ss=script.CamShake:clone()
  3515. ss.Parent=Noob
  3516. ss.Power.Value=Power
  3517. ss.Times.Value=Times
  3518. ss.Disabled=false]]
  3519. CameraShake(Times, Power)
  3520. end
  3521. end
  3522. end
  3523. end
  3524. end
  3525. end
  3526. end
  3527.  
  3528. function chatfunc(text,color)
  3529. local chat = coroutine.wrap(function()
  3530. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  3531. Character:FindFirstChild("TalkingBillBoard"):destroy()
  3532. end
  3533. local naeeym2 = Instance.new("BillboardGui",Character)
  3534. naeeym2.Size = UDim2.new(0,100,0,40)
  3535. naeeym2.StudsOffset = Vector3.new(0,3,0)
  3536. naeeym2.Adornee = Character.Head
  3537. naeeym2.Name = "TalkingBillBoard"
  3538. local tecks2 = Instance.new("TextLabel",naeeym2)
  3539. tecks2.BackgroundTransparency = 1
  3540. tecks2.BorderSizePixel = 0
  3541. tecks2.Text = ""
  3542. tecks2.Font = "SciFi"
  3543. tecks2.TextSize = 30
  3544. tecks2.TextStrokeTransparency = 0
  3545. tecks2.TextColor3 = color
  3546. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  3547. tecks2.Size = UDim2.new(1,0,0.5,0)
  3548. local tecks3 = Instance.new("TextLabel",naeeym2)
  3549. tecks3.BackgroundTransparency = 1
  3550. tecks3.BorderSizePixel = 0
  3551. tecks3.Text = ""
  3552. tecks3.Font = "SciFi"
  3553. tecks3.TextSize = 30
  3554. tecks3.TextStrokeTransparency = 0
  3555. tecks3.TextColor3 = Color3.new(0,0,0)
  3556. tecks3.TextStrokeColor3 = color
  3557. tecks3.Size = UDim2.new(1,0,0.5,0)
  3558. coroutine.resume(coroutine.create(function()
  3559. while true do
  3560. swait(1)
  3561. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  3562. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  3563. tecks2.Rotation = math.random(-5,5)
  3564. tecks3.Rotation = math.random(-5,5)
  3565. end
  3566. end))
  3567. for i = 1,string.len(text),1 do
  3568. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  3569. tecks2.Text = string.sub(text,1,i)
  3570. tecks3.Text = string.sub(text,1,i)
  3571. swait(1)
  3572. end
  3573. wait(1)
  3574. local randomrot = math.random(1,2)
  3575. if randomrot == 1 then
  3576. for i = 1, 50 do
  3577. swait()
  3578. tecks2.Rotation = tecks2.Rotation - .75
  3579. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3580. tecks2.TextTransparency = tecks2.TextTransparency + .04
  3581. tecks3.Rotation = tecks2.Rotation + .75
  3582. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3583. tecks3.TextTransparency = tecks2.TextTransparency + .04
  3584. end
  3585. elseif randomrot == 2 then
  3586. for i = 1, 50 do
  3587. swait()
  3588. tecks2.Rotation = tecks2.Rotation + .75
  3589. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3590. tecks2.TextTransparency = tecks2.TextTransparency + .04
  3591. tecks3.Rotation = tecks2.Rotation - .75
  3592. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3593. tecks3.TextTransparency = tecks2.TextTransparency + .04
  3594. end
  3595. end
  3596. naeeym2:Destroy()
  3597. end)
  3598. chat()
  3599. end
  3600.  
  3601.  
  3602. local Create = LoadLibrary("RbxUtility").Create
  3603.  
  3604. CFuncs = {
  3605. ["Part"] = {
  3606. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3607. local Part = Create("Part"){
  3608. Parent = Parent,
  3609. Reflectance = Reflectance,
  3610. Transparency = Transparency,
  3611. CanCollide = false,
  3612. Locked = true,
  3613. BrickColor = BrickColor.new(tostring(BColor)),
  3614. Name = Name,
  3615. Size = Size,
  3616. Material = Material,
  3617. }
  3618. RemoveOutlines(Part)
  3619. return Part
  3620. end;
  3621. };
  3622.  
  3623. ["Mesh"] = {
  3624. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3625. local Msh = Create(Mesh){
  3626. Parent = Part,
  3627. Offset = OffSet,
  3628. Scale = Scale,
  3629. }
  3630. if Mesh == "SpecialMesh" then
  3631. Msh.MeshType = MeshType
  3632. Msh.MeshId = MeshId
  3633. end
  3634. return Msh
  3635. end;
  3636. };
  3637.  
  3638. ["Mesh"] = {
  3639. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3640. local Msh = Create(Mesh){
  3641. Parent = Part,
  3642. Offset = OffSet,
  3643. Scale = Scale,
  3644. }
  3645. if Mesh == "SpecialMesh" then
  3646. Msh.MeshType = MeshType
  3647. Msh.MeshId = MeshId
  3648. end
  3649. return Msh
  3650. end;
  3651. };
  3652.  
  3653. ["Weld"] = {
  3654. Create = function(Parent, Part0, Part1, C0, C1)
  3655. local Weld = Create("Weld"){
  3656. Parent = Parent,
  3657. Part0 = Part0,
  3658. Part1 = Part1,
  3659. C0 = C0,
  3660. C1 = C1,
  3661. }
  3662. return Weld
  3663. end;
  3664. };
  3665.  
  3666. ["Sound"] = {
  3667. Create = function(id, par, vol, pit)
  3668. coroutine.resume(coroutine.create(function()
  3669. local S = Create("Sound"){
  3670. Volume = vol,
  3671. Pitch = pit or 1,
  3672. SoundId = id,
  3673. Parent = par or workspace,
  3674. }
  3675. wait()
  3676. S:play()
  3677. game:GetService("Debris"):AddItem(S, 10)
  3678. end))
  3679. end;
  3680. };
  3681.  
  3682. ["LongSound"] = {
  3683. Create = function(id, par, vol, pit)
  3684. coroutine.resume(coroutine.create(function()
  3685. local S = Create("Sound"){
  3686. Volume = vol,
  3687. Pitch = pit or 1,
  3688. SoundId = id,
  3689. Parent = par or workspace,
  3690. }
  3691. wait()
  3692. S:play()
  3693. game:GetService("Debris"):AddItem(S, 30)
  3694. end))
  3695. end;
  3696. };
  3697.  
  3698. ["ParticleEmitter"] = {
  3699. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  3700. local fp = Create("ParticleEmitter"){
  3701. Parent = Parent,
  3702. Color = ColorSequence.new(Color1, Color2),
  3703. LightEmission = LightEmission,
  3704. Size = Size,
  3705. Texture = Texture,
  3706. Transparency = Transparency,
  3707. ZOffset = ZOffset,
  3708. Acceleration = Accel,
  3709. Drag = Drag,
  3710. LockedToPart = LockedToPart,
  3711. VelocityInheritance = VelocityInheritance,
  3712. EmissionDirection = EmissionDirection,
  3713. Enabled = Enabled,
  3714. Lifetime = LifeTime,
  3715. Rate = Rate,
  3716. Rotation = Rotation,
  3717. RotSpeed = RotSpeed,
  3718. Speed = Speed,
  3719. VelocitySpread = VelocitySpread,
  3720. }
  3721. return fp
  3722. end;
  3723. };
  3724.  
  3725. CreateTemplate = {
  3726.  
  3727. };
  3728. }
  3729.  
  3730.  
  3731.  
  3732. New = function(Object, Parent, Name, Data)
  3733. local Object = Instance.new(Object)
  3734. for Index, Value in pairs(Data or {}) do
  3735. Object[Index] = Value
  3736. end
  3737. Object.Parent = Parent
  3738. Object.Name = Name
  3739. return Object
  3740. end
  3741. local halocolor = BrickColor.new("White")
  3742. local wepcolor = BrickColor.new("Really black")
  3743. local m = Instance.new("Model",char)
  3744.  
  3745. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  3746. local p = Instance.new("Part")
  3747. p.TopSurface = 0
  3748. p.BottomSurface = 0
  3749. p.Parent = parent
  3750. p.Size = Vector3.new(0.1,0.1,0.1)
  3751. p.Transparency = transparency
  3752. p.Reflectance = reflectance
  3753. p.CanCollide = false
  3754. p.Locked = true
  3755. p.BrickColor = brickcolor
  3756. p.Material = material
  3757. return p
  3758. end
  3759.  
  3760. function CreateMesh(parent,meshtype,x1,y1,z1)
  3761. local mesh = Instance.new("SpecialMesh",parent)
  3762. mesh.MeshType = meshtype
  3763. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  3764. return mesh
  3765. end
  3766.  
  3767. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  3768. local mesh = Instance.new("SpecialMesh",parent)
  3769. mesh.MeshType = "FileMesh"
  3770. mesh.MeshId = meshid
  3771. mesh.Scale = Vector3.new(x1,y1,z1)
  3772. return mesh
  3773. end
  3774.  
  3775. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  3776. local mesh = Instance.new("SpecialMesh",parent)
  3777. mesh.MeshType = "FileMesh"
  3778. mesh.MeshId = meshid
  3779. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  3780. mesh.Scale = Vector3.new(x1,y1,z1)
  3781. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  3782. return mesh
  3783. end
  3784.  
  3785. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  3786. local weld = Instance.new("Weld")
  3787. weld.Parent = parent
  3788. weld.Part0 = part0
  3789. weld.Part1 = part1
  3790. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  3791. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  3792. return weld
  3793. end
  3794.  
  3795. sord = CreateParta(m,0,0,"Granite",wepcolor)
  3796. CreateSpecialMesh(sord,"rbxassetid://94840342",0.75,1.25,1.25)
  3797. local sordweld = CreateWeld(sord,rarm,sord,0,-3.5,1,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3798.  
  3799. at1 = CreateParta(m,1,0,"Neon",halocolor)
  3800. CreateMesh(at1,"Sphere",1,1,1)
  3801. CreateWeld(at1,sord,at1,0,1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3802. at2 = CreateParta(m,1,0,"Neon",halocolor)
  3803. CreateMesh(at2,"Sphere",1,1,1)
  3804. CreateWeld(at2,sord,at2,0,-4.3,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3805. A0 = Instance.new('Attachment',at1)
  3806. A1 = Instance.new('Attachment',at2)
  3807. tl1 = Instance.new('Trail',at1)
  3808. tl1.Attachment0 = A0
  3809. tl1.Attachment1 = A1
  3810. tl1.Texture = "http://www.roblox.com/asset/?id=928134823"
  3811. tl1.LightEmission = 0
  3812. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3813. tl1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  3814. tl1.Lifetime = 0.3
  3815.  
  3816. hibox = CreateParta(m,1,0,"Granite",BrickColor.random())
  3817. hibox.Size = vt(1,2,1)
  3818. CreateWeld(hibox,sord,hibox,0,-0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3819.  
  3820.  
  3821. glow = CreateParta(m,0,0,"Neon",halocolor)
  3822. CreateMesh(glow,"Sphere",0.45,1,1)
  3823. CreateWeld(glow,sord,glow,0,2.325,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3824.  
  3825. local blackem = Instance.new("ParticleEmitter",sord)
  3826. blackem.Texture = "rbxassetid://296874871"
  3827. blackem.LightEmission = 0.25
  3828. blackem.Color = ColorSequence.new(Color3.new(0,0,0))
  3829. blackem.Rate = 10
  3830. blackem.Lifetime = NumberRange.new(1)
  3831. blackem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  3832. blackem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.9,0),NumberSequenceKeypoint.new(1,1,0)})
  3833. blackem.Speed = NumberRange.new(1,6)
  3834. blackem.LockedToPart = true
  3835. blackem.Rotation = NumberRange.new(-500,500)
  3836. blackem.RotSpeed = NumberRange.new(-500,500)
  3837. local blackem2 = blackem:Clone()
  3838. blackem2.Parent = sord
  3839. blackem2.EmissionDirection = "Bottom"
  3840.  
  3841. staf = CreateParta(m,0,0,"Granite",wepcolor)
  3842. CreateSpecialMesh(staf,"rbxassetid://283705926",1.5,1.5,1.5)
  3843. local stafweld = CreateWeld(staf,larm,staf,-0.95,-2,0,math.rad(90),math.rad(0),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3844. glowst = CreateParta(m,0,0,"Neon",halocolor)
  3845. CreateMesh(glowst,"Sphere",0.35,0.35,0.35)
  3846. CreateWeld(glowst,staf,glowst,0.1,-3.325,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3847.  
  3848. --[[extend = CreateParta(Gaunlet,0,0,"Granite",wepcolor)
  3849. CreateMesh(extend,"Brick",1.05,1.05,1.05)
  3850. CreateWeld(extend,rarm,extend,0,0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  3851.  
  3852. function RemoveOutlines(part)
  3853. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  3854. end
  3855. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3856. local Part = Create("Part")({
  3857. Parent = Parent,
  3858. Reflectance = Reflectance,
  3859. Transparency = Transparency,
  3860. CanCollide = false,
  3861. Locked = true,
  3862. BrickColor = BrickColor.new(tostring(BColor)),
  3863. Name = Name,
  3864. Size = Size,
  3865. Material = Material
  3866. })
  3867. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  3868. RemoveOutlines(Part)
  3869. return Part
  3870. end
  3871. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3872. local Msh = Create(Mesh)({
  3873. Parent = Part,
  3874. Offset = OffSet,
  3875. Scale = Scale
  3876. })
  3877. if Mesh == "SpecialMesh" then
  3878. Msh.MeshType = MeshType
  3879. Msh.MeshId = MeshId
  3880. end
  3881. return Msh
  3882. end
  3883. function CreateWeld(Parent, Part0, Part1, C0, C1)
  3884. local Weld = Create("Weld")({
  3885. Parent = Parent,
  3886. Part0 = Part0,
  3887. Part1 = Part1,
  3888. C0 = C0,
  3889. C1 = C1
  3890. })
  3891. return Weld
  3892. end
  3893.  
  3894. local ff = Instance.new("ForceField",char)
  3895. ff.Visible = false
  3896.  
  3897. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  3898. local gui = it(GuiType)
  3899. gui.Parent = parent
  3900. gui.Text = text
  3901. gui.BackgroundTransparency = backtrans
  3902. gui.BackgroundColor3 = backcol
  3903. gui.SizeConstraint = "RelativeXY"
  3904. gui.TextXAlignment = "Center"
  3905. gui.TextYAlignment = "Center"
  3906. gui.Position = pos
  3907. gui.Size = size
  3908. gui.Font = "SourceSans"
  3909. gui.FontSize = "Size14"
  3910. gui.TextWrapped = false
  3911. gui.TextStrokeTransparency = 0
  3912. gui.TextColor = BrickColor.new("White")
  3913. return gui
  3914. end
  3915.  
  3916.  
  3917. Player=game:GetService("Players").LocalPlayer
  3918. Character=Player.Character
  3919. local Mouse = Player:GetMouse()
  3920. PlayerGui=Player.PlayerGui
  3921. Backpack=Player.Backpack
  3922. Torso=Character.Torso
  3923. Head=Character.Head
  3924. Humanoid=Character.Humanoid
  3925. m=Instance.new('Model',Character)
  3926. LeftArm=Character["Left Arm"]
  3927. LeftLeg=Character["Left Leg"]
  3928. RightArm=Character["Right Arm"]
  3929. RightLeg=Character["Right Leg"]
  3930. LS=Torso["Left Shoulder"]
  3931. LH=Torso["Left Hip"]
  3932. RS=Torso["Right Shoulder"]
  3933. RH=Torso["Right Hip"]
  3934. Face = Head.face
  3935. Neck=Torso.Neck
  3936. it=Instance.new
  3937. attacktype=1
  3938. vt=Vector3.new
  3939. cf=CFrame.new
  3940. euler=CFrame.fromEulerAnglesXYZ
  3941. angles=CFrame.Angles
  3942. cloaked=false
  3943. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3944. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3945. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  3946. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  3947. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  3948. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  3949. RootPart=Character.HumanoidRootPart
  3950. RootJoint=RootPart.RootJoint
  3951. RootCF=euler(-1.57,0,3.14)
  3952. attack = false
  3953. attackdebounce = false
  3954. deb=false
  3955. equipped=true
  3956. hand=false
  3957. MMouse=nil
  3958. combo=0
  3959. mana=0
  3960. trispeed=.2
  3961. attackmode='none'
  3962. local idle=0
  3963. local Anim="Idle"
  3964. local Effects={}
  3965. local gun=false
  3966. local shoot=false
  3967. local sine = 0
  3968. local change = 1
  3969. player=nil
  3970.  
  3971. mouse=Player:GetMouse()
  3972. --save shoulders
  3973. RSH, LSH=nil, nil
  3974. --welds
  3975. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  3976. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  3977. LH=Torso["Left Hip"]
  3978. RH=Torso["Right Hip"]
  3979. TorsoColor=Torso.BrickColor
  3980. function NoOutline(Part)
  3981. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  3982. end
  3983. player=Player
  3984. ch=Character
  3985. RSH=ch.Torso["Right Shoulder"]
  3986. LSH=ch.Torso["Left Shoulder"]
  3987. --
  3988. RSH.Parent=nil
  3989. LSH.Parent=nil
  3990. --
  3991. RW.Name="Right Shoulder"
  3992. RW.Part0=ch.Torso
  3993. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3994. RW.C1=cf(0, 0.5, 0)
  3995. RW.Part1=ch["Right Arm"]
  3996. RW.Parent=ch.Torso
  3997. --
  3998. LW.Name="Left Shoulder"
  3999. LW.Part0=ch.Torso
  4000. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  4001. LW.C1=cf(0, 0.5, 0)
  4002. LW.Part1=ch["Left Arm"]
  4003. LW.Parent=ch.Torso
  4004.  
  4005. local Stats=Instance.new("BoolValue")
  4006. Stats.Name="Stats"
  4007. Stats.Parent=Character
  4008. local Atk=Instance.new("NumberValue")
  4009. Atk.Name="Damage"
  4010. Atk.Parent=Stats
  4011. Atk.Value=1
  4012. local Def=Instance.new("NumberValue")
  4013. Def.Name="Defense"
  4014. Def.Parent=Stats
  4015. Def.Value=1
  4016. local Speed=Instance.new("NumberValue")
  4017. Speed.Name="Speed"
  4018. Speed.Parent=Stats
  4019. Speed.Value=1
  4020. local Mvmt=Instance.new("NumberValue")
  4021. Mvmt.Name="Movement"
  4022. Mvmt.Parent=Stats
  4023. Mvmt.Value=1
  4024.  
  4025. local donum=0
  4026.  
  4027.  
  4028. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  4029. local fp=it("Part")
  4030. fp.formFactor=formfactor
  4031. fp.Parent=parent
  4032. fp.Reflectance=reflectance
  4033. fp.Transparency=transparency
  4034. fp.CanCollide=false
  4035. fp.Locked=true
  4036. fp.BrickColor=brickcolor
  4037. fp.Name=name
  4038. fp.Size=size
  4039. fp.Position=Torso.Position
  4040. NoOutline(fp)
  4041. fp.Material="SmoothPlastic"
  4042. fp:BreakJoints()
  4043. return fp
  4044. end
  4045.  
  4046. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  4047. local mesh=it(Mesh)
  4048. mesh.Parent=part
  4049. if Mesh=="SpecialMesh" then
  4050. mesh.MeshType=meshtype
  4051. if meshid~="nil" then
  4052. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  4053. end
  4054. end
  4055. mesh.Offset=offset
  4056. mesh.Scale=scale
  4057. return mesh
  4058. end
  4059.  
  4060. function weld(parent,part0,part1,c0)
  4061. local weld=it("Weld")
  4062. weld.Parent=parent
  4063. weld.Part0=part0
  4064. weld.Part1=part1
  4065. weld.C0=c0
  4066. return weld
  4067. end
  4068.  
  4069. local Color1=Torso.BrickColor
  4070.  
  4071. local bodvel=Instance.new("BodyVelocity")
  4072. local bg=Instance.new("BodyGyro")
  4073.  
  4074. function swait(num)
  4075. if num==0 or num==nil then
  4076. game:service'RunService'.Stepped:wait(0)
  4077. else
  4078. for i=0,num do
  4079. game:service'RunService'.Stepped:wait(0)
  4080. end
  4081. end
  4082. end
  4083.  
  4084.  
  4085. so = function(id,par,vol,pit)
  4086. coroutine.resume(coroutine.create(function()
  4087. local sou = Instance.new("Sound",par or workspace)
  4088. sou.Volume=vol
  4089. sou.Pitch=pit or 1
  4090. sou.SoundId=id
  4091. swait()
  4092. sou:play()
  4093. game:GetService("Debris"):AddItem(sou,6)
  4094. end))
  4095. end
  4096.  
  4097. function clerp(a,b,t)
  4098. local qa = {QuaternionFromCFrame(a)}
  4099. local qb = {QuaternionFromCFrame(b)}
  4100. local ax, ay, az = a.x, a.y, a.z
  4101. local bx, by, bz = b.x, b.y, b.z
  4102. local _t = 1-t
  4103. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  4104. end
  4105.  
  4106. function QuaternionFromCFrame(cf)
  4107. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  4108. local trace = m00 + m11 + m22
  4109. if trace > 0 then
  4110. local s = math.sqrt(1 + trace)
  4111. local recip = 0.5/s
  4112. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  4113. else
  4114. local i = 0
  4115. if m11 > m00 then
  4116. i = 1
  4117. end
  4118. if m22 > (i == 0 and m00 or m11) then
  4119. i = 2
  4120. end
  4121. if i == 0 then
  4122. local s = math.sqrt(m00-m11-m22+1)
  4123. local recip = 0.5/s
  4124. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  4125. elseif i == 1 then
  4126. local s = math.sqrt(m11-m22-m00+1)
  4127. local recip = 0.5/s
  4128. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  4129. elseif i == 2 then
  4130. local s = math.sqrt(m22-m00-m11+1)
  4131. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  4132. end
  4133. end
  4134. end
  4135.  
  4136. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  4137. local xs, ys, zs = x + x, y + y, z + z
  4138. local wx, wy, wz = w*xs, w*ys, w*zs
  4139. local xx = x*xs
  4140. local xy = x*ys
  4141. local xz = x*zs
  4142. local yy = y*ys
  4143. local yz = y*zs
  4144. local zz = z*zs
  4145. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  4146. end
  4147.  
  4148. function QuaternionSlerp(a, b, t)
  4149. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  4150. local startInterp, finishInterp;
  4151. if cosTheta >= 0.0001 then
  4152. if (1 - cosTheta) > 0.0001 then
  4153. local theta = math.acos(cosTheta)
  4154. local invSinTheta = 1/math.sin(theta)
  4155. startInterp = math.sin((1-t)*theta)*invSinTheta
  4156. finishInterp = math.sin(t*theta)*invSinTheta
  4157. else
  4158. startInterp = 1-t
  4159. finishInterp = t
  4160. end
  4161. else
  4162. if (1+cosTheta) > 0.0001 then
  4163. local theta = math.acos(-cosTheta)
  4164. local invSinTheta = 1/math.sin(theta)
  4165. startInterp = math.sin((t-1)*theta)*invSinTheta
  4166. finishInterp = math.sin(t*theta)*invSinTheta
  4167. else
  4168. startInterp = t-1
  4169. finishInterp = t
  4170. end
  4171. end
  4172. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  4173. end
  4174.  
  4175. local function CFrameFromTopBack(at, top, back)
  4176. local right = top:Cross(back)
  4177. return CFrame.new(at.x, at.y, at.z,
  4178. right.x, top.x, back.x,
  4179. right.y, top.y, back.y,
  4180. right.z, top.z, back.z)
  4181. end
  4182.  
  4183. function Triangle(a, b, c)
  4184. local edg1 = (c-a):Dot((b-a).unit)
  4185. local edg2 = (a-b):Dot((c-b).unit)
  4186. local edg3 = (b-c):Dot((a-c).unit)
  4187. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  4188. a, b, c = a, b, c
  4189. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  4190. a, b, c = b, c, a
  4191. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  4192. a, b, c = c, a, b
  4193. else
  4194. assert(false, "unreachable")
  4195. end
  4196.  
  4197. local len1 = (c-a):Dot((b-a).unit)
  4198. local len2 = (b-a).magnitude - len1
  4199. local width = (a + (b-a).unit*len1 - c).magnitude
  4200.  
  4201. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  4202.  
  4203. local list = {}
  4204.  
  4205. if len1 > 0.01 then
  4206. local w1 = Instance.new('WedgePart', m)
  4207. game:GetService("Debris"):AddItem(w1,5)
  4208. w1.Material = "SmoothPlastic"
  4209. w1.FormFactor = 'Custom'
  4210. w1.BrickColor = BrickColor.new("Really red")
  4211. w1.Transparency = 0
  4212. w1.Reflectance = 0
  4213. w1.Material = "SmoothPlastic"
  4214. w1.CanCollide = false
  4215. local l1 = Instance.new("PointLight",w1)
  4216. l1.Color = Color3.new(170,0,0)
  4217. NoOutline(w1)
  4218. local sz = Vector3.new(0.2, width, len1)
  4219. w1.Size = sz
  4220. local sp = Instance.new("SpecialMesh",w1)
  4221. sp.MeshType = "Wedge"
  4222. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  4223. w1:BreakJoints()
  4224. w1.Anchored = true
  4225. w1.Parent = workspace
  4226. w1.Transparency = 0.7
  4227. table.insert(Effects,{w1,"Disappear",.01})
  4228. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  4229. table.insert(list,w1)
  4230. end
  4231.  
  4232. if len2 > 0.01 then
  4233. local w2 = Instance.new('WedgePart', m)
  4234. game:GetService("Debris"):AddItem(w2,5)
  4235. w2.Material = "SmoothPlastic"
  4236. w2.FormFactor = 'Custom'
  4237. w2.BrickColor = BrickColor.new("Really red")
  4238. w2.Transparency = 0
  4239. w2.Reflectance = 0
  4240. w2.Material = "SmoothPlastic"
  4241. w2.CanCollide = false
  4242. local l2 = Instance.new("PointLight",w2)
  4243. l2.Color = Color3.new(170,0,0)
  4244. NoOutline(w2)
  4245. local sz = Vector3.new(0.2, width, len2)
  4246. w2.Size = sz
  4247. local sp = Instance.new("SpecialMesh",w2)
  4248. sp.MeshType = "Wedge"
  4249. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  4250. w2:BreakJoints()
  4251. w2.Anchored = true
  4252. w2.Parent = workspace
  4253. w2.Transparency = 0.7
  4254. table.insert(Effects,{w2,"Disappear",.01})
  4255. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  4256. table.insert(list,w2)
  4257. end
  4258. return unpack(list)
  4259. end
  4260.  
  4261.  
  4262. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  4263. if hit.Parent == nil then
  4264. return
  4265. end
  4266. local h = hit.Parent:FindFirstChild("Humanoid")
  4267. for _, v in pairs(hit.Parent:children()) do
  4268. if v:IsA("Humanoid") then
  4269. h = v
  4270. end
  4271. end
  4272. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  4273. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  4274. return
  4275. end
  4276. local c = Create("ObjectValue")({
  4277. Name = "creator",
  4278. Value = game:service("Players").LocalPlayer,
  4279. Parent = h
  4280. })
  4281. game:GetService("Debris"):AddItem(c, 0.5)
  4282. if HitSound ~= nil and HitPitch ~= nil then
  4283. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  4284. end
  4285. local Damage = math.random(minim, maxim)
  4286. local blocked = false
  4287. local block = hit.Parent:findFirstChild("Block")
  4288. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  4289. blocked = true
  4290. block.Value = block.Value - 1
  4291. print(block.Value)
  4292. end
  4293. if blocked == false then
  4294. HitHealth = h.Health
  4295. h.Health = h.Health - Damage
  4296. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  4297. print("gained kill")
  4298. killcount = killcount + 1
  4299. end
  4300. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  4301. else
  4302. h.Health = h.Health - Damage / 2
  4303. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  4304. end
  4305. if Type == "Knockdown" then
  4306. local hum = hit.Parent.Humanoid
  4307. hum.PlatformStand = true
  4308. coroutine.resume(coroutine.create(function(HHumanoid)
  4309. swait(1)
  4310. HHumanoid.PlatformStand = false
  4311. end), hum)
  4312. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  4313. local bodvol = Create("BodyVelocity")({
  4314. velocity = angle * knockback,
  4315. P = 5000,
  4316. maxForce = Vector3.new(8000, 8000, 8000),
  4317. Parent = hit
  4318. })
  4319. local rl = Create("BodyAngularVelocity")({
  4320. P = 3000,
  4321. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  4322. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  4323. Parent = hit
  4324. })
  4325. game:GetService("Debris"):AddItem(bodvol, 0.5)
  4326. game:GetService("Debris"):AddItem(rl, 0.5)
  4327. elseif Type == "Normal" then
  4328. local vp = Create("BodyVelocity")({
  4329. P = 500,
  4330. maxForce = Vector3.new(math.huge, 0, math.huge),
  4331. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  4332. })
  4333. if knockback > 0 then
  4334. vp.Parent = hit.Parent.Torso
  4335. end
  4336. game:GetService("Debris"):AddItem(vp, 0.5)
  4337. elseif Type == "Up" then
  4338. local bodyVelocity = Create("BodyVelocity")({
  4339. velocity = Vector3.new(0, 20, 0),
  4340. P = 5000,
  4341. maxForce = Vector3.new(8000, 8000, 8000),
  4342. Parent = hit
  4343. })
  4344. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  4345. local bodyVelocity = Create("BodyVelocity")({
  4346. velocity = Vector3.new(0, 20, 0),
  4347. P = 5000,
  4348. maxForce = Vector3.new(8000, 8000, 8000),
  4349. Parent = hit
  4350. })
  4351. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  4352. elseif Type == "Leech" then
  4353. local hum = hit.Parent.Humanoid
  4354. if hum ~= nil then
  4355. for i = 0, 2 do
  4356. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  4357. end
  4358. Humanoid.Health = Humanoid.Health + 10
  4359. end
  4360. elseif Type == "UpKnock" then
  4361. local hum = hit.Parent.Humanoid
  4362. hum.PlatformStand = true
  4363. if hum ~= nil then
  4364. hitr = true
  4365. end
  4366. coroutine.resume(coroutine.create(function(HHumanoid)
  4367. swait(5)
  4368. HHumanoid.PlatformStand = false
  4369. hitr = false
  4370. end), hum)
  4371. local bodyVelocity = Create("BodyVelocity")({
  4372. velocity = Vector3.new(0, 20, 0),
  4373. P = 5000,
  4374. maxForce = Vector3.new(8000, 8000, 8000),
  4375. Parent = hit
  4376. })
  4377. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  4378. local bodyVelocity = Create("BodyVelocity")({
  4379. velocity = Vector3.new(0, 20, 0),
  4380. P = 5000,
  4381. maxForce = Vector3.new(8000, 8000, 8000),
  4382. Parent = hit
  4383. })
  4384. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  4385. elseif Type == "Snare" then
  4386. local bp = Create("BodyPosition")({
  4387. P = 2000,
  4388. D = 100,
  4389. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4390. position = hit.Parent.Torso.Position,
  4391. Parent = hit.Parent.Torso
  4392. })
  4393. game:GetService("Debris"):AddItem(bp, 1)
  4394. elseif Type == "Slashnare" then
  4395. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  4396. for i = 1, math.random(4, 5) do
  4397. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  4398. end
  4399. local bp = Create("BodyPosition")({
  4400. P = 2000,
  4401. D = 100,
  4402. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4403. position = hit.Parent.Torso.Position,
  4404. Parent = hit.Parent.Torso
  4405. })
  4406. game:GetService("Debris"):AddItem(bp, 1)
  4407. elseif Type == "Spike" then
  4408. CreateBigIceSword(hit.Parent.Torso.CFrame)
  4409. local bp = Create("BodyPosition")({
  4410. P = 2000,
  4411. D = 100,
  4412. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4413. position = hit.Parent.Torso.Position,
  4414. Parent = hit.Parent.Torso
  4415. })
  4416. game:GetService("Debris"):AddItem(bp, 1)
  4417. elseif Type == "Freeze" then
  4418. local BodPos = Create("BodyPosition")({
  4419. P = 50000,
  4420. D = 1000,
  4421. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4422. position = hit.Parent.Torso.Position,
  4423. Parent = hit.Parent.Torso
  4424. })
  4425. local BodGy = Create("BodyGyro")({
  4426. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  4427. P = 20000,
  4428. Parent = hit.Parent.Torso,
  4429. cframe = hit.Parent.Torso.CFrame
  4430. })
  4431. hit.Parent.Torso.Anchored = true
  4432. coroutine.resume(coroutine.create(function(Part)
  4433. swait(1.5)
  4434. Part.Anchored = false
  4435. end), hit.Parent.Torso)
  4436. game:GetService("Debris"):AddItem(BodPos, 3)
  4437. game:GetService("Debris"):AddItem(BodGy, 3)
  4438. end
  4439. local debounce = Create("BoolValue")({
  4440. Name = "DebounceHit",
  4441. Parent = hit.Parent,
  4442. Value = true
  4443. })
  4444. game:GetService("Debris"):AddItem(debounce, Delay)
  4445. c = Instance.new("ObjectValue")
  4446. c.Name = "creator"
  4447. c.Value = Player
  4448. c.Parent = h
  4449. game:GetService("Debris"):AddItem(c, 0.5)
  4450. end
  4451. end
  4452. function ShowDamage(Pos, Text, Time, Color)
  4453. local Rate = 0.03333333333333333
  4454. local Pos = Pos or Vector3.new(0, 0, 0)
  4455. local Text = Text or ""
  4456. local Time = Time or 2
  4457. local Color = Color or Color3.new(1, 0, 1)
  4458. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  4459. EffectPart.Anchored = true
  4460. local BillboardGui = Create("BillboardGui")({
  4461. Size = UDim2.new(3, 0, 3, 0),
  4462. Adornee = EffectPart,
  4463. Parent = EffectPart
  4464. })
  4465. local TextLabel = Create("TextLabel")({
  4466. BackgroundTransparency = 1,
  4467. Size = UDim2.new(1, 0, 1, 0),
  4468. Text = Text,
  4469. TextColor3 = Color,
  4470. TextScaled = true,
  4471. Font = Enum.Font.ArialBold,
  4472. Parent = BillboardGui
  4473. })
  4474. game.Debris:AddItem(EffectPart, Time + 0.1)
  4475. EffectPart.Parent = game:GetService("Workspace")
  4476. delay(0, function()
  4477. local Frames = Time / Rate
  4478. for Frame = 1, Frames do
  4479. wait(Rate)
  4480. local Percent = Frame / Frames
  4481. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  4482. TextLabel.TextTransparency = Percent
  4483. end
  4484. if EffectPart and EffectPart.Parent then
  4485. EffectPart:Destroy()
  4486. end
  4487. end)
  4488. end
  4489. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  4490. for _, c in pairs(workspace:children()) do
  4491. local hum = c:findFirstChild("Humanoid")
  4492. if hum ~= nil then
  4493. local head = c:findFirstChild("Torso")
  4494. if head ~= nil then
  4495. local targ = head.Position - Part.Position
  4496. local mag = targ.magnitude
  4497. if magni >= mag and c.Name ~= Player.Name then
  4498. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  4499. end
  4500. end
  4501. end
  4502. end
  4503. end
  4504.  
  4505. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  4506. for _, c in pairs(workspace:children()) do
  4507. local hum = c:findFirstChild("Humanoid")
  4508. if hum ~= nil then
  4509. local head = c:findFirstChild("Torso")
  4510. if head ~= nil then
  4511. local targ = head.Position - Part.Position
  4512. local mag = targ.magnitude
  4513. if magni >= mag and c.Name ~= Player.Name then
  4514. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  4515. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  4516. end
  4517. end
  4518. end
  4519. end
  4520. end
  4521.  
  4522. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  4523. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  4524. end
  4525.  
  4526. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  4527. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4528. prt.Anchored=true
  4529. prt.CFrame=cframe
  4530. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  4531. --http://www.roblox.com/asset/?id=4770560
  4532. game:GetService("Debris"):AddItem(prt,2)
  4533. CF=prt.CFrame
  4534. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  4535. for i=0,1,0.2 do
  4536. wait()
  4537. Part.CFrame=CF*cf(0,0,-0.4)
  4538. end
  4539. for i=0,1,delay do
  4540. wait()
  4541. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  4542. Mesh.Scale=Mesh.Scale
  4543. end
  4544. for i=0,1,0.1 do
  4545. wait()
  4546. Part.Transparency=i
  4547. end
  4548. Part.Parent=nil
  4549. end),prt,msh,CF)
  4550. end
  4551.  
  4552. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4553. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4554. prt.Anchored=true
  4555. prt.Material = "Neon"
  4556. prt.CFrame=cframe
  4557. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4558. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4559. game:GetService("Debris"):AddItem(prt,5)
  4560. coroutine.resume(coroutine.create(function(Part,Mesh)
  4561. for i=0,1,delay do
  4562. swait()
  4563. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4564. Part.Transparency=i
  4565. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4566. end
  4567. Part.Parent=nil
  4568. end),prt,msh)
  4569. end
  4570.  
  4571. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4572. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4573. prt.Anchored=true
  4574. prt.Material = "Neon"
  4575. prt.CFrame=cframe
  4576. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4577. game:GetService("Debris"):AddItem(prt,5)
  4578. coroutine.resume(coroutine.create(function(Part,Mesh)
  4579. local rtype = rottype
  4580. for i=0,1,delay do
  4581. swait()
  4582. if rtype == 1 then
  4583. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4584. elseif rtype == 2 then
  4585. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4586. end
  4587. Part.Transparency=i
  4588. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4589. end
  4590. Part.Parent=nil
  4591. end),prt,msh)
  4592. end
  4593.  
  4594. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4595. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4596. prt.Anchored=true
  4597. prt.CFrame=cframe
  4598. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4599. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  4600. game:GetService("Debris"):AddItem(prt,5)
  4601. coroutine.resume(coroutine.create(function(Part,Mesh)
  4602. for i=0,1,delay do
  4603. wait()
  4604. Part.Transparency=i
  4605. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4606. end
  4607. Part.Parent=nil
  4608. end),prt,msh)
  4609. end
  4610.  
  4611. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4612. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4613. prt.Anchored=true
  4614. prt.Material = "Neon"
  4615. prt.CFrame=cframe
  4616. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4617. game:GetService("Debris"):AddItem(prt,5)
  4618. coroutine.resume(coroutine.create(function(Part,Mesh)
  4619. local rtype = rottype
  4620. for i=0,1,delay do
  4621. swait()
  4622. if rtype == 1 then
  4623. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4624. elseif rtype == 2 then
  4625. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4626. end
  4627. Part.Transparency=i
  4628. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4629. end
  4630. Part.Parent=nil
  4631. end),prt,msh)
  4632. end
  4633.  
  4634. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  4635. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4636. prt.Anchored=true
  4637. prt.Material = "Neon"
  4638. prt.CFrame=cframe
  4639. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  4640. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  4641. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  4642. game:GetService("Debris"):AddItem(prt,5)
  4643. coroutine.resume(coroutine.create(function(Part,Mesh)
  4644. local rtype = rottype
  4645. for i=0,1,delay do
  4646. swait()
  4647. if rtype == 1 then
  4648. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4649. elseif rtype == 2 then
  4650. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4651. end
  4652. dec.Transparency=i
  4653. dec2.Transparency=i
  4654. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4655. end
  4656. Part.Parent=nil
  4657. end),prt,msh)
  4658. end
  4659.  
  4660. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  4661. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4662. prt.Anchored=true
  4663. prt.Material = "Neon"
  4664. prt.CFrame=cframe
  4665. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  4666. game:GetService("Debris"):AddItem(prt,5)
  4667. coroutine.resume(coroutine.create(function(Part,Mesh)
  4668. local rtype = rottype
  4669. for i=0,1,delay do
  4670. swait()
  4671. if rtype == 1 then
  4672. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4673. elseif rtype == 2 then
  4674. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4675. end
  4676. prt.Transparency=i
  4677. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4678. end
  4679. Part.Parent=nil
  4680. end),prt,msh)
  4681. end
  4682.  
  4683. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  4684. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4685. prt.Anchored=true
  4686. prt.Material = "Neon"
  4687. prt.CFrame=cframe
  4688. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  4689. game:GetService("Debris"):AddItem(prt,5)
  4690. coroutine.resume(coroutine.create(function(Part,Mesh)
  4691. local rtype = rottype
  4692. for i=0,1,delay do
  4693. swait()
  4694. if rtype == 1 then
  4695. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  4696. elseif rtype == 2 then
  4697. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  4698. end
  4699. prt.Transparency=i
  4700. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  4701. end
  4702. Part.Parent=nil
  4703. end),prt,msh)
  4704. end
  4705.  
  4706. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  4707. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4708. prt.Anchored=true
  4709. prt.Material = "Neon"
  4710. prt.CFrame=cframe
  4711. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4712. game:GetService("Debris"):AddItem(prt,5)
  4713. coroutine.resume(coroutine.create(function(Part,Mesh)
  4714. local rtype = rottype
  4715. for i=0,1,delay do
  4716. swait()
  4717. if rtype == 1 then
  4718. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4719. elseif rtype == 2 then
  4720. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4721. end
  4722. prt.Transparency=i
  4723. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4724. end
  4725. Part.Parent=nil
  4726. end),prt,msh)
  4727. end
  4728.  
  4729. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4730. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4731. prt.Anchored=true
  4732. prt.Material = "Neon"
  4733. prt.CFrame=cframe
  4734. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4735. game:GetService("Debris"):AddItem(prt,5)
  4736. coroutine.resume(coroutine.create(function(Part,Mesh)
  4737. local rtype = rottype
  4738. for i=0,1,delay do
  4739. swait()
  4740. if rtype == 1 then
  4741. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4742. elseif rtype == 2 then
  4743. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4744. end
  4745. prt.Transparency=i
  4746. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4747. end
  4748. Part.Parent=nil
  4749. end),prt,msh)
  4750. end
  4751.  
  4752. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  4753. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4754. prt.Anchored=false
  4755. prt.CFrame=cframe
  4756. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4757. local wld=weld(prt,prt,Parent,cframe)
  4758. game:GetService("Debris"):AddItem(prt,5)
  4759. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  4760. for i=0,1,delay do
  4761. wait()
  4762. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  4763. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4764. Part.Transparency=i
  4765. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4766. end
  4767. Part.Parent=nil
  4768. end),prt,msh,wld)
  4769. end
  4770.  
  4771. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  4772. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4773. prt.Anchored=false
  4774. prt.CFrame=cframe
  4775. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4776. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  4777. game:GetService("Debris"):AddItem(prt,5)
  4778. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  4779. for i=0,1,delay do
  4780. wait()
  4781. Weld.C0=euler(i*20,0,0)
  4782. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4783. Part.Transparency=i
  4784. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4785. end
  4786. Part.Parent=nil
  4787. end),prt,msh,wld)
  4788. end
  4789.  
  4790. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4791. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4792. prt.Anchored=true
  4793. prt.CFrame=cframe
  4794. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4795. game:GetService("Debris"):AddItem(prt,2)
  4796. coroutine.resume(coroutine.create(function(Part,Mesh)
  4797. for i=0,1,delay do
  4798. wait()
  4799. Part.CFrame=Part.CFrame
  4800. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4801. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4802. prt2.Anchored=true
  4803. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4804. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  4805. game:GetService("Debris"):AddItem(prt2,2)
  4806. coroutine.resume(coroutine.create(function(Part,Mesh)
  4807. for i=0,1,0.1 do
  4808. wait()
  4809. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  4810. end
  4811. Part.Parent=nil
  4812. end),prt2,msh2)
  4813. end
  4814. for i=0,1,delay*2 do
  4815. wait()
  4816. Part.CFrame=Part.CFrame
  4817. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  4818. end
  4819. Part.Parent=nil
  4820. end),prt,msh)
  4821. end
  4822.  
  4823. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4824. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4825. prt.Anchored=true
  4826. prt.CFrame=cframe
  4827. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  4828. game:GetService("Debris"):AddItem(prt,2)
  4829. coroutine.resume(coroutine.create(function(Part,Mesh)
  4830. for i=0,1,delay do
  4831. wait()
  4832. Part.CFrame=Part.CFrame
  4833. Part.Transparency=i
  4834. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4835. end
  4836. Part.Parent=nil
  4837. end),prt,msh)
  4838. end
  4839.  
  4840. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  4841. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4842. prt.Anchored=true
  4843. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4844. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  4845. game:GetService("Debris"):AddItem(prt,2)
  4846. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  4847. CF=Part.CFrame
  4848. Numbb=0
  4849. randnumb=math.random()/10
  4850. rand1=math.random()/10
  4851. for i=0,1,rand1 do
  4852. wait()
  4853. CF=CF*cf(0,math.random()/2,0)
  4854. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  4855. Part.CFrame=CF*euler(Numbb,0,0)
  4856. Part.Transparency=i
  4857. Numbb=Numbb+randnumb
  4858. end
  4859. Part.Parent=nil
  4860. end),prt,CF,Numbb,randnumb)
  4861. end
  4862.  
  4863. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4864. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4865. prt.Anchored=true
  4866. prt.CFrame=cframe
  4867. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  4868. game:GetService("Debris"):AddItem(prt,5)
  4869. coroutine.resume(coroutine.create(function(Part,Mesh)
  4870. for i=0,1,delay do
  4871. wait()
  4872. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  4873. Part.Transparency=i
  4874. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4875. end
  4876. Part.Parent=nil
  4877. end),prt,msh)
  4878. end
  4879.  
  4880. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4881. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4882. prt.Anchored=true
  4883. prt.CFrame=cframe
  4884. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  4885. game:GetService("Debris"):AddItem(prt,2)
  4886. coroutine.resume(coroutine.create(function(Part,Mesh)
  4887. for i=0,1,delay do
  4888. wait()
  4889. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  4890. Part.Transparency=i
  4891. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4892. end
  4893. Part.Parent=nil
  4894. end),prt,msh)
  4895. end
  4896.  
  4897. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  4898. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4899. prt.Anchored=true
  4900. prt.CFrame=cframe*cf(x,y,z)
  4901. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  4902. game:GetService("Debris"):AddItem(prt,5)
  4903. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  4904. local num=math.random()
  4905. local num2=math.random(-3,2)+math.random()
  4906. local numm=0
  4907. for i=0,1,delay*2 do
  4908. swait()
  4909. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  4910. Part.Transparency=i
  4911. numm=numm+0.01
  4912. end
  4913. Part.Parent=nil
  4914. Mesh.Parent=nil
  4915. end),prt,msh,x,y,z)
  4916. end
  4917.  
  4918. function dmgstart(dmg,what)
  4919. hitcon = what.Touched:connect(function(hit)
  4920. local hum = hit.Parent:FindFirstChild("Humanoid")
  4921. if hum and not hum:IsDescendantOf(Character) then
  4922. hum:TakeDamage(dmg)
  4923. end
  4924. end)
  4925. end
  4926.  
  4927. function dmgstop()
  4928. hitcon:disconnect()
  4929. end
  4930.  
  4931. function Cloak()
  4932. Face.Parent=nil
  4933. cloaked=true
  4934. for _,v in pairs(Torso.Parent:children()) do
  4935. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  4936. coroutine.resume(coroutine.create(function()
  4937. for i=0,1,0.2 do
  4938. wait()
  4939. v.Transparency=i
  4940. end
  4941. v.Transparency=1
  4942. end))
  4943. end
  4944. if v.className=="Hat" then
  4945. hatp=v.Handle
  4946. coroutine.resume(coroutine.create(function(derp)
  4947. for i=0,1,0.2 do
  4948. wait()
  4949. derp.Transparency=i
  4950. end
  4951. derp.Transparency=1
  4952. end),hatp)
  4953. end
  4954. end
  4955. for _,v in pairs(m:children()) do
  4956. if v.className=="Part" then
  4957. coroutine.resume(coroutine.create(function()
  4958. for i=0,1,0.2 do
  4959. wait()
  4960. v.Transparency=i
  4961. end
  4962. v.Transparency=1
  4963. end))
  4964. end
  4965. end
  4966. end
  4967.  
  4968. function UnCloak()
  4969. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  4970. Face.Parent=Head
  4971. cloaked=false
  4972. for _,v in pairs(Torso.Parent:children()) do
  4973. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  4974. coroutine.resume(coroutine.create(function()
  4975. for i=0,1,0.1 do
  4976. wait()
  4977. v.Transparency=v.Transparency-0.1
  4978. end
  4979. v.Transparency=0
  4980. end))
  4981. end
  4982. if v.className=="Hat" then
  4983. hatp=v.Handle
  4984. coroutine.resume(coroutine.create(function(derp)
  4985. for i=0,1,0.1 do
  4986. wait()
  4987. derp.Transparency=derp.Transparency-0.1
  4988. end
  4989. derp.Transparency=0
  4990. end),hatp)
  4991. end
  4992. end
  4993. for _,v in pairs(m:children()) do
  4994. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  4995. coroutine.resume(coroutine.create(function()
  4996. for i=0,1,0.1 do
  4997. wait()
  4998. v.Transparency=v.Transparency-0.1
  4999. end
  5000. v.Transparency=0
  5001. end))
  5002. v.Transparency=0
  5003. end
  5004. end
  5005. end
  5006.  
  5007. local origcolor = BrickColor.new("Dark indigo")
  5008. ---- This section of explosions.
  5009. function Explode(rad,par,pitch,vol,mindam,maxdam)
  5010. local expart = Instance.new("Part",char)
  5011. local expart2 = Instance.new("Part",char)
  5012. local rin = Instance.new("Part",char)
  5013. local rin2 = Instance.new("Part",char)
  5014. local partMesh = Instance.new("SpecialMesh",expart)
  5015. partMesh.MeshType = "Sphere"
  5016. local partMesh2 = Instance.new("SpecialMesh",expart2)
  5017. partMesh2.MeshType = "Sphere"
  5018. local partMesh3 = Instance.new("SpecialMesh",rin)
  5019. partMesh3.MeshType = "Brick"
  5020. local partMesh4 = Instance.new("SpecialMesh",rin2)
  5021. partMesh4.MeshType = "Brick"
  5022. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  5023. partMesh.Scale = vt(rad,rad,rad)
  5024. expart.Size = vt(1,1,1)
  5025. expart.Transparency = 1
  5026. expart.Anchored = true
  5027. expart.Material = "Neon"
  5028. expart.BrickColor = bc("White")
  5029. expart.CFrame = par.CFrame
  5030. partMesh2.Scale = vt(rad,rad,rad)
  5031. expart2.Size = vt(1.15,1.15,1.15)
  5032. expart2.Transparency = 0.75
  5033. expart2.Anchored = true
  5034. expart2.Material = "Glass"
  5035. expart2.BrickColor = par.BrickColor
  5036. expart2.CFrame = par.CFrame
  5037. rin.Size = vt(1.15,1.15,1.15)
  5038. rin.Transparency = 1
  5039. rin.Anchored = true
  5040. rin.Material = "Neon"
  5041. rin.BrickColor = par.BrickColor
  5042. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5043. rin2.Size = vt(1.15,1.15,1.15)
  5044. rin2.Transparency = 1
  5045. rin2.Anchored = true
  5046. rin2.Material = "Neon"
  5047. rin2.BrickColor = par.BrickColor
  5048. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5049. partMesh3.Scale = vt(0,1,0)
  5050. partMesh4.Scale = vt(0,1,0)
  5051. local dec2 = Instance.new("Decal", rin)
  5052. dec2.Face = "Top"
  5053. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  5054. dec2.Parent = rin
  5055. local dec2b = dec2:Clone()
  5056. dec2b.Face = "Bottom"
  5057. dec2b.Parent = rin
  5058.  
  5059. local dec2a = Instance.new("Decal", rin2)
  5060. dec2a.Face = "Top"
  5061. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  5062. dec2a.Parent = rin2
  5063. local dec2ab = dec2a:Clone()
  5064. dec2ab.Face = "Bottom"
  5065. dec2ab.Parent = rin2
  5066. expart.CanCollide = false
  5067. expart2.CanCollide = false
  5068. rin.CanCollide = false
  5069. rin2.CanCollide = false
  5070. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  5071. local value = 1*rad/6.5
  5072. for i = 0, 199 do
  5073. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  5074. expart.CFrame = expart.CFrame
  5075. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  5076. expart2.CFrame = expart.CFrame
  5077. value = value - 0.035*rad/30
  5078. if value < 7.5 then
  5079. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  5080. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  5081. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  5082. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  5083. end
  5084. if value < 0 then
  5085. dec2.Transparency = dec2.Transparency + 0.025
  5086. dec2a.Transparency = dec2a.Transparency + 0.025
  5087. dec2b.Transparency = dec2b.Transparency + 0.025
  5088. dec2ab.Transparency = dec2ab.Transparency + 0.025
  5089. expart.Transparency = expart.Transparency + 0.025
  5090. expart2.Transparency = expart2.Transparency + 0.025
  5091. rin.Transparency = rin.Transparency + 0.025
  5092. rin2.Transparency = rin2.Transparency + 0.025
  5093. end
  5094. swait()
  5095. end
  5096. game:GetService("Debris"):AddItem(expart, 1)
  5097. game:GetService("Debris"):AddItem(expart2, 1)
  5098. game:GetService("Debris"):AddItem(rin, 1)
  5099. game:GetService("Debris"):AddItem(rin2, 1)
  5100. end
  5101.  
  5102. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  5103. local expart = Instance.new("Part",char)
  5104. local expart2 = Instance.new("Part",char)
  5105. local partMesh = Instance.new("SpecialMesh",expart)
  5106. partMesh.MeshType = "Sphere"
  5107. local partMesh2 = Instance.new("SpecialMesh",expart2)
  5108. partMesh2.MeshType = "Sphere"
  5109. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  5110. partMesh.Scale = vt(rad,rad,rad)
  5111. expart.Size = vt(1,1,1)
  5112. expart.Transparency = 0
  5113. expart.Anchored = true
  5114. expart.Material = "Neon"
  5115. expart.BrickColor = bc("White")
  5116. expart.CFrame = par.CFrame
  5117. partMesh2.Scale = vt(rad,rad,rad)
  5118. expart2.Size = vt(1.15,1.15,1.15)
  5119. expart2.Transparency = 0.5
  5120. expart2.Anchored = true
  5121. expart2.Material = "Neon"
  5122. expart2.BrickColor = par.BrickColor
  5123. expart2.CFrame = par.CFrame
  5124. expart.CanCollide = false
  5125. expart2.CanCollide = false
  5126. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  5127. local value = 1*rad/6.5
  5128. for i = 0, 75 do
  5129. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  5130. expart.CFrame = expart.CFrame
  5131. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  5132. expart2.CFrame = expart.CFrame
  5133. value = value - 0.035*rad/5
  5134. if value < 0 then
  5135. value = 0
  5136. expart.Transparency = expart.Transparency + 0.05
  5137. expart2.Transparency = expart2.Transparency + 0.05
  5138. end
  5139. swait()
  5140. end
  5141. game:GetService("Debris"):AddItem(expart, 1)
  5142. game:GetService("Debris"):AddItem(expart2, 1)
  5143. end
  5144.  
  5145. function AreaDanger(rad,par,mindam,maxdam)
  5146. local expart = Instance.new("Part",char)
  5147. local partMesh = Instance.new("SpecialMesh",expart)
  5148. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  5149. partMesh.MeshType = "Sphere"
  5150. partMesh.Scale = vt(rad,rad,rad)
  5151. expart.Size = vt(1,1,1)
  5152. expart.Transparency = 0.5
  5153. expart.Anchored = true
  5154. expart.Material = "Neon"
  5155. expart.CanCollide = false
  5156. expart.BrickColor = par.BrickColor
  5157. expart.CFrame = par.CFrame
  5158. local value = 1*rad/5
  5159. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  5160. for i = 0, 14 do
  5161. wait()
  5162. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  5163. expart.CFrame = expart.CFrame
  5164. value = value - 0.035*rad
  5165. if value < 0 then
  5166. value = 0
  5167. end
  5168. end
  5169. wait(0.25)
  5170. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  5171. wait(0.5)
  5172. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  5173. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  5174. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  5175. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  5176. for i = 0, 14 do
  5177. wait()
  5178. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  5179. expart.CFrame = expart.CFrame
  5180. value = value - 0.035*rad/2
  5181. end
  5182. expart.Transparency = 1
  5183. game:GetService("Debris"):AddItem(expart, 5)
  5184. end
  5185.  
  5186. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  5187. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  5188. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  5189. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  5190. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  5191. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  5192. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  5193. for i = 0, 24 do
  5194. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  5195. end
  5196. for i = 0, 24 do
  5197. local expart = Instance.new("Part",char)
  5198. expart.Transparency = 1
  5199. expart.Anchored = true
  5200. expart.CanCollide = false
  5201. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  5202. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  5203. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  5204. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  5205. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  5206. for i = 0, 9 do
  5207. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  5208. end
  5209. game:GetService("Debris"):AddItem(expart, 2)
  5210. wait(0.1)
  5211. end
  5212. end
  5213.  
  5214. function EXterPlosion(par)
  5215. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  5216. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  5217. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  5218. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  5219. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  5220. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  5221. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  5222. for i = 0, 24 do
  5223. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  5224. end
  5225. for i = 0, 24 do
  5226. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  5227. end
  5228. end
  5229. ----
  5230.  
  5231. local stackingpower = 1
  5232.  
  5233. function HellsCore()
  5234. attack = true
  5235. --[[for i = 0,1,0.1 do
  5236. swait()
  5237. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  5238. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  5239. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  5240. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  5241. end]]--
  5242.  
  5243. local rng = Instance.new("Part", char)
  5244. CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
  5245. rng.Anchored = true
  5246. rng.BrickColor = origcolor
  5247. rng.CanCollide = false
  5248. rng.FormFactor = 3
  5249. rng.Name = "Ring"
  5250. rng.Material = "Neon"
  5251. rng.Size = Vector3.new(1, 1, 1)
  5252. rng.Transparency = 1
  5253. rng.TopSurface = 0
  5254. rng.BottomSurface = 0
  5255. rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
  5256. local rngm = Instance.new("SpecialMesh", rng)
  5257. rngm.MeshType = "Brick"
  5258. local dec = Instance.new("Decal",rng)
  5259. dec.Texture = "http://www.roblox.com/asset/?id=401466968"
  5260. dec.Face = "Top"
  5261. local dec2 = dec:Clone()
  5262. dec2.Parent = rng
  5263. dec2.Face = "Bottom"
  5264.  
  5265. local scaler2 = 1
  5266. scaler2 = 1*3
  5267. for i = 0,10,0.1 do
  5268. swait()
  5269. scaler2 = scaler2 - 0.01*3
  5270. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  5271. end
  5272. wait(3)
  5273. for i = 0,10,0.1 do
  5274. swait()
  5275. scaler2 = scaler2 - 0.01*3
  5276. dec.Transparency = dec.Transparency + 0.01
  5277. dec2.Transparency = dec2.Transparency + 0.01
  5278. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  5279. end
  5280. rng:Destroy()
  5281. attack = false
  5282. end
  5283.  
  5284.  
  5285. function FaceMouse()
  5286. Cam = workspace.CurrentCamera
  5287. return {
  5288. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  5289. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  5290. }
  5291. end
  5292.  
  5293. function FaceMouse2()
  5294. Cam = workspace.CurrentCamera
  5295. return {
  5296. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  5297. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  5298. }
  5299. end
  5300.  
  5301.  
  5302. local HoldingZ = false
  5303. local HoldingX = false
  5304. local HoldingC = false
  5305. local HoldingV = false
  5306. local HoldingB = false
  5307.  
  5308.  
  5309. function RingEffect(pos,startsize,size,col)
  5310. local lb = Instance.new("Part")
  5311. lb.Parent = char
  5312. lb.BrickColor = col
  5313. lb.CanCollide = false
  5314. lb.Material = "Neon"
  5315. lb.Anchored = true
  5316. lb.TopSurface = 0
  5317. lb.BottomSurface = 0
  5318. lb.Transparency = 1
  5319. lb.Size = vt(1,1,1)
  5320. lb.CFrame = pos
  5321. local thingery = Instance.new("SpecialMesh",lb)
  5322. thingery.MeshType = "Brick"
  5323. thingery.Scale = vt(startsize,0.1,startsize)
  5324. local dec2 = Instance.new("Texture", lb)
  5325. dec2.Face = "Top"
  5326. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  5327. dec2.Color3 = lb.Color
  5328. dec2.Parent = lb
  5329. dec2.StudsPerTileU = startsize
  5330. dec2.StudsPerTileV = startsize
  5331. local dec2b = dec2:Clone()
  5332. dec2b.Face = "Bottom"
  5333. dec2b.Parent = lb
  5334. local randomrot = math.random(1,2)
  5335. coroutine.resume(coroutine.create(function()
  5336. for i = 0, 19 do
  5337. swait()
  5338. if randomrot == 1 then
  5339. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  5340. elseif randomrot == 2 then
  5341. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  5342. end
  5343. dec2.Transparency = dec2.Transparency + 0.05
  5344. dec2b.Transparency = dec2b.Transparency + 0.05
  5345. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  5346. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  5347. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  5348. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  5349. thingery.Scale = thingery.Scale + vt(size,0,size)
  5350. end
  5351. lb:Destroy()
  5352. end))
  5353. end
  5354.  
  5355. function SlowRingEffect(pos,startsize,size,col)
  5356. local lb = Instance.new("Part")
  5357. lb.Parent = char
  5358. lb.BrickColor = col
  5359. lb.CanCollide = false
  5360. lb.Material = "Neon"
  5361. lb.Anchored = true
  5362. lb.TopSurface = 0
  5363. lb.BottomSurface = 0
  5364. lb.Transparency = 1
  5365. lb.Size = vt(1,1,1)
  5366. lb.CFrame = pos
  5367. local thingery = Instance.new("SpecialMesh",lb)
  5368. thingery.MeshType = "Brick"
  5369. thingery.Scale = vt(startsize,0.1,startsize)
  5370. local dec2 = Instance.new("Decal", lb)
  5371. dec2.Face = "Top"
  5372. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  5373. dec2.Color3 = lb.Color
  5374. dec2.Parent = lb
  5375. local dec2b = dec2:Clone()
  5376. dec2b.Face = "Bottom"
  5377. dec2b.Parent = lb
  5378. local randomrot = math.random(1,2)
  5379. coroutine.resume(coroutine.create(function()
  5380. for i = 0, 49 do
  5381. swait()
  5382. if randomrot == 1 then
  5383. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  5384. elseif randomrot == 2 then
  5385. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  5386. end
  5387. dec2.Transparency = dec2.Transparency + 0.02
  5388. dec2b.Transparency = dec2b.Transparency + 0.02
  5389. thingery.Scale = thingery.Scale + vt(size,0,size)
  5390. end
  5391. lb:Destroy()
  5392. end))
  5393. end
  5394.  
  5395.  
  5396. function groundringaa(pos)
  5397. local rng = Instance.new("Part", char)
  5398. rng.Anchored = true
  5399. rng.BrickColor = origcolor
  5400. rng.CanCollide = false
  5401. rng.FormFactor = 3
  5402. rng.Name = "Ring"
  5403. rng.Size = Vector3.new(1, 1, 1)
  5404. rng.Transparency = 1
  5405. rng.TopSurface = 0
  5406. rng.BottomSurface = 0
  5407. rng.CFrame = pos
  5408. local rngm = Instance.new("SpecialMesh", rng)
  5409. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5410. rngm.Scale = Vector3.new(100,100,5)
  5411. local scaler2 = -10/2
  5412. coroutine.resume(coroutine.create(function()
  5413. for i = 0,10,0.1 do
  5414. swait()
  5415. scaler2 = scaler2 + 0.1/2
  5416. rng.Transparency = rng.Transparency - 0.01
  5417. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  5418. end
  5419. rng:Destroy()
  5420. end))
  5421. end
  5422.  
  5423. function groundringbb(pos)
  5424. local rng = Instance.new("Part", char)
  5425. rng.Anchored = true
  5426. rng.BrickColor = origcolor
  5427. rng.CanCollide = false
  5428. rng.FormFactor = 3
  5429. rng.Name = "Ring"
  5430. rng.Size = Vector3.new(1, 1, 1)
  5431. rng.Transparency = 0
  5432. rng.TopSurface = 0
  5433. rng.BottomSurface = 0
  5434. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  5435. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  5436. local rngm = Instance.new("SpecialMesh", rng)
  5437. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5438. rngm.Scale = Vector3.new(0,0,5)
  5439. local scaler2 = 10
  5440. coroutine.resume(coroutine.create(function()
  5441. for i = 0,10*2,0.1 do
  5442. swait()
  5443. scaler2 = scaler2 - 0.1/2
  5444. rng.Transparency = rng.Transparency + 0.005
  5445. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  5446. end
  5447. rng:Destroy()
  5448. end))
  5449. end
  5450.  
  5451. function groundglowaa(pos)
  5452. local rng = Instance.new("Part", char)
  5453. rng.Anchored = true
  5454. rng.BrickColor = origcolor
  5455. rng.CanCollide = false
  5456. rng.FormFactor = 3
  5457. rng.Material = "Neon"
  5458. rng.Name = "Ring"
  5459. rng.Size = Vector3.new(1, 1, 1)
  5460. rng.Transparency = 0
  5461. rng.TopSurface = 0
  5462. rng.BottomSurface = 0
  5463. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  5464. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  5465. local rngm = Instance.new("SpecialMesh", rng)
  5466. rngm.MeshType = "Sphere"
  5467. rngm.Scale = Vector3.new(0,0,25)
  5468. local scaler2 = 10*2
  5469. coroutine.resume(coroutine.create(function()
  5470. for i = 0,10*2,0.1 do
  5471. swait()
  5472. scaler2 = scaler2 - 0.1*2/2
  5473. rng.Transparency = rng.Transparency + 0.005
  5474. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  5475. end
  5476. rng:Destroy()
  5477. end))
  5478. end
  5479.  
  5480. function bemaa(pos)
  5481. local rng = Instance.new("Part", char)
  5482. rng.Anchored = true
  5483. rng.BrickColor = origcolor
  5484. rng.CanCollide = false
  5485. rng.FormFactor = 3
  5486. rng.Material = "Neon"
  5487. rng.Name = "Ring"
  5488. rng.Size = Vector3.new(1, 1, 1)
  5489. rng.Transparency = 0
  5490. rng.TopSurface = 0
  5491. rng.BottomSurface = 0
  5492. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  5493. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  5494. local rngm = Instance.new("SpecialMesh", rng)
  5495. rngm.MeshType = "Sphere"
  5496. rngm.Scale = Vector3.new(0,0,10000)
  5497. local scaler2 = 1
  5498. coroutine.resume(coroutine.create(function()
  5499. for i = 0,99,0.1 do
  5500. swait()
  5501. scaler2 = scaler2 - 0.0025
  5502. rng.Transparency = rng.Transparency + 0.0025
  5503. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  5504. end
  5505. rng:Destroy()
  5506. end))
  5507. end
  5508.  
  5509. function bemaashake(pos)
  5510. local rng = Instance.new("Part", char)
  5511. rng.Anchored = true
  5512. rng.BrickColor = origcolor
  5513. rng.CanCollide = false
  5514. rng.FormFactor = 3
  5515. rng.Material = "Neon"
  5516. rng.Name = "Ring"
  5517. rng.Size = Vector3.new(1, 1, 1)
  5518. rng.Transparency = 0
  5519. rng.TopSurface = 0
  5520. rng.BottomSurface = 0
  5521. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  5522. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  5523. local rngm = Instance.new("SpecialMesh", rng)
  5524. rngm.MeshType = "Sphere"
  5525. local oof = Instance.new("Part",char)
  5526. oof.Parent = rng
  5527. oof.CFrame = rng.CFrame
  5528. oof.CanCollide = false
  5529. oof.Anchored = true
  5530. oof.Transparency = 1
  5531. rngm.Scale = Vector3.new(0,0,10000)
  5532. local scaler2 = 1*10
  5533. coroutine.resume(coroutine.create(function()
  5534. for i = 0,99,0.1 do
  5535. swait()
  5536. scaler2 = scaler2 - 0.0025*10
  5537. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  5538. rng.Transparency = rng.Transparency + 0.0025
  5539. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  5540. end
  5541. rng:Destroy()
  5542. end))
  5543. end
  5544.  
  5545. function groundringlarge(pos)
  5546. local rng = Instance.new("Part", char)
  5547. rng.Anchored = true
  5548. rng.BrickColor = origcolor
  5549. rng.CanCollide = false
  5550. rng.FormFactor = 3
  5551. rng.Name = "Ring"
  5552. rng.Size = Vector3.new(1, 1, 1)
  5553. rng.Transparency = 0
  5554. rng.TopSurface = 0
  5555. rng.BottomSurface = 0
  5556. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  5557. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  5558. local rngm = Instance.new("SpecialMesh", rng)
  5559. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5560. rngm.Scale = Vector3.new(0,0,5)
  5561. local scaler2 = 10*10
  5562. coroutine.resume(coroutine.create(function()
  5563. for i = 0,10*2,0.1 do
  5564. swait()
  5565. scaler2 = scaler2 - 0.1*10/2
  5566. rng.Transparency = rng.Transparency + 0.005
  5567. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  5568. end
  5569. rng:Destroy()
  5570. end))
  5571. end
  5572.  
  5573. function sphere(bonuspeed,type,pos,scale,value,color)
  5574. local type = type
  5575. local rng = Instance.new("Part", char)
  5576. rng.Anchored = true
  5577. rng.BrickColor = color
  5578. rng.CanCollide = false
  5579. rng.FormFactor = 3
  5580. rng.Name = "Ring"
  5581. rng.Material = "Neon"
  5582. rng.Size = Vector3.new(1, 1, 1)
  5583. rng.Transparency = 0
  5584. rng.TopSurface = 0
  5585. rng.BottomSurface = 0
  5586. rng.CFrame = pos
  5587. local rngm = Instance.new("SpecialMesh", rng)
  5588. rngm.MeshType = "Sphere"
  5589. rngm.Scale = scale
  5590. if rainbowmode == true then
  5591. rng.Color = Color3.new(r/255,g/255,b/255)
  5592. end
  5593. local scaler2 = 1
  5594. if type == "Add" then
  5595. scaler2 = 1*value
  5596. elseif type == "Divide" then
  5597. scaler2 = 1/value
  5598. end
  5599. coroutine.resume(coroutine.create(function()
  5600. for i = 0,10/bonuspeed,0.1 do
  5601. swait()
  5602. if rainbowmode == true then
  5603. rng.Color = Color3.new(r/255,g/255,b/255)
  5604. end
  5605. if type == "Add" then
  5606. scaler2 = scaler2 - 0.01*value/bonuspeed
  5607. elseif type == "Divide" then
  5608. scaler2 = scaler2 - 0.01/value*bonuspeed
  5609. end
  5610. if chaosmode == true then
  5611. rng.BrickColor = BrickColor.random()
  5612. end
  5613. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5614. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  5615. end
  5616. rng:Destroy()
  5617. end))
  5618. end
  5619.  
  5620. function sphereouter(bonuspeed,type,pos,scale,value,color)
  5621. local type = type
  5622. local rng = Instance.new("Part", char)
  5623. rng.Anchored = true
  5624. rng.BrickColor = color
  5625. rng.CanCollide = false
  5626. rng.FormFactor = 3
  5627. rng.Name = "Ring"
  5628. rng.Material = "Neon"
  5629. rng.Size = Vector3.new(1, 1, 1)
  5630. rng.Transparency = 0
  5631. rng.TopSurface = 0
  5632. rng.BottomSurface = 0
  5633. rng.CFrame = pos
  5634. local rngm = Instance.new("SpecialMesh", rng)
  5635. rngm.MeshType = "Sphere"
  5636. rngm.Scale = scale
  5637. if rainbowmode == true then
  5638. rng.Color = Color3.new(r/255,g/255,b/255)
  5639. end
  5640. local scaler2 = 1
  5641. if type == "Add" then
  5642. scaler2 = 1*value
  5643. elseif type == "Divide" then
  5644. scaler2 = 1/value
  5645. end
  5646. coroutine.resume(coroutine.create(function()
  5647. for i = 0,10/bonuspeed,0.1 do
  5648. swait()
  5649. if rainbowmode == true then
  5650. rng.Color = Color3.new(r/255,g/255,b/255)
  5651. end
  5652. if type == "Add" then
  5653. scaler2 = scaler2 - 0.01*value/bonuspeed
  5654. elseif type == "Divide" then
  5655. scaler2 = scaler2 - 0.01/value*bonuspeed
  5656. end
  5657. if chaosmode == true then
  5658. rng.BrickColor = BrickColor.random()
  5659. end
  5660. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5661. rngm.Scale = rngm.Scale + Vector3.new(0, scaler2*bonuspeed, 0)
  5662. end
  5663. rng:Destroy()
  5664. end))
  5665. end
  5666.  
  5667. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  5668. local type = type
  5669. local rng = Instance.new("Part", char)
  5670. rng.Anchored = true
  5671. rng.BrickColor = color
  5672. rng.CanCollide = false
  5673. rng.FormFactor = 3
  5674. rng.Name = "Ring"
  5675. rng.Material = "Neon"
  5676. rng.Size = Vector3.new(1, 1, 1)
  5677. rng.Transparency = 0
  5678. rng.TopSurface = 0
  5679. rng.BottomSurface = 0
  5680. rng.CFrame = pos
  5681. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  5682. local rngm = Instance.new("SpecialMesh", rng)
  5683. rngm.MeshType = "Brick"
  5684. rngm.Scale = vt(x1,y1,z1)
  5685. if rainbowmode == true then
  5686. rng.Color = Color3.new(r/255,g/255,b/255)
  5687. end
  5688. local scaler2 = 1
  5689. local speeder = FastSpeed/10
  5690. if type == "Add" then
  5691. scaler2 = 1*value
  5692. elseif type == "Divide" then
  5693. scaler2 = 1/value
  5694. end
  5695. coroutine.resume(coroutine.create(function()
  5696. for i = 0,10/bonuspeed,0.1 do
  5697. swait()
  5698. if rainbowmode == true then
  5699. rng.Color = Color3.new(r/255,g/255,b/255)
  5700. end
  5701. if type == "Add" then
  5702. scaler2 = scaler2 - 0.01*value/bonuspeed
  5703. elseif type == "Divide" then
  5704. scaler2 = scaler2 - 0.01/value*bonuspeed
  5705. end
  5706. if chaosmode == true then
  5707. rng.BrickColor = BrickColor.random()
  5708. end
  5709. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  5710. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  5711. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5712. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  5713. end
  5714. rng:Destroy()
  5715. end))
  5716. end
  5717.  
  5718. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  5719. local type = type
  5720. local rng = Instance.new("Part", char)
  5721. rng.Anchored = true
  5722. rng.BrickColor = color
  5723. rng.CanCollide = false
  5724. rng.FormFactor = 3
  5725. rng.Name = "Ring"
  5726. rng.Material = "Neon"
  5727. rng.Size = Vector3.new(1, 1, 1)
  5728. rng.Transparency = 0
  5729. rng.TopSurface = 0
  5730. rng.BottomSurface = 0
  5731. rng.CFrame = pos
  5732. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  5733. local rngm = Instance.new("SpecialMesh", rng)
  5734. rngm.MeshType = "Brick"
  5735. rngm.Scale = vt(x1,y1,z1)
  5736. if rainbowmode == true then
  5737. rng.Color = Color3.new(r/255,g/255,b/255)
  5738. end
  5739. local scaler2 = 0
  5740. local speeder = FastSpeed/10
  5741. if type == "Add" then
  5742. scaler2 = 1*value
  5743. elseif type == "Divide" then
  5744. scaler2 = 1/value
  5745. end
  5746. coroutine.resume(coroutine.create(function()
  5747. for i = 0,10/bonuspeed,0.1 do
  5748. swait()
  5749. if rainbowmode == true then
  5750. rng.Color = Color3.new(r/255,g/255,b/255)
  5751. end
  5752. if type == "Add" then
  5753. scaler2 = scaler2 - 0.01*value/bonuspeed
  5754. elseif type == "Divide" then
  5755. scaler2 = scaler2 - 0.01/value*bonuspeed
  5756. end
  5757. if chaosmode == true then
  5758. rng.BrickColor = BrickColor.random()
  5759. end
  5760. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  5761. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  5762. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5763. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  5764. end
  5765. rng:Destroy()
  5766. end))
  5767. end
  5768.  
  5769.  
  5770. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  5771. local type = type
  5772. local rng = Instance.new("Part", char)
  5773. rng.Anchored = true
  5774. rng.BrickColor = color
  5775. rng.CanCollide = false
  5776. rng.FormFactor = 3
  5777. rng.Name = "Ring"
  5778. rng.Material = "Neon"
  5779. rng.Size = Vector3.new(1, 1, 1)
  5780. rng.Transparency = 0
  5781. rng.TopSurface = 0
  5782. rng.BottomSurface = 0
  5783. rng.CFrame = pos
  5784. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  5785. local rngm = Instance.new("SpecialMesh", rng)
  5786. rngm.MeshType = "Sphere"
  5787. rngm.Scale = vt(x1,y1,z1)
  5788. if rainbowmode == true then
  5789. rng.Color = Color3.new(r/255,g/255,b/255)
  5790. end
  5791. local scaler2 = 1
  5792. local speeder = FastSpeed
  5793. if type == "Add" then
  5794. scaler2 = 1*value
  5795. elseif type == "Divide" then
  5796. scaler2 = 1/value
  5797. end
  5798. coroutine.resume(coroutine.create(function()
  5799. for i = 0,10/bonuspeed,0.1 do
  5800. swait()
  5801. if rainbowmode == true then
  5802. rng.Color = Color3.new(r/255,g/255,b/255)
  5803. end
  5804. if type == "Add" then
  5805. scaler2 = scaler2 - 0.01*value/bonuspeed
  5806. elseif type == "Divide" then
  5807. scaler2 = scaler2 - 0.01/value*bonuspeed
  5808. end
  5809. if chaosmode == true then
  5810. rng.BrickColor = BrickColor.random()
  5811. end
  5812. speeder = speeder - 0.01*FastSpeed*bonuspeed
  5813. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  5814. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5815. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  5816. end
  5817. rng:Destroy()
  5818. end))
  5819. end
  5820.  
  5821.  
  5822. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  5823. local type = type
  5824. local rng = Instance.new("Part", char)
  5825. rng.Anchored = true
  5826. rng.BrickColor = color
  5827. rng.CanCollide = false
  5828. rng.FormFactor = 3
  5829. rng.Name = "Ring"
  5830. rng.Material = "Neon"
  5831. rng.Size = Vector3.new(1, 1, 1)
  5832. rng.Transparency = 1
  5833. rng.TopSurface = 0
  5834. rng.BottomSurface = 0
  5835. rng.CFrame = pos
  5836. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  5837. local rngm = Instance.new("SpecialMesh", rng)
  5838. rngm.MeshType = "Sphere"
  5839. rngm.Scale = vt(x1,y1,z1)
  5840. if rainbowmode == true then
  5841. rng.Color = Color3.new(r/255,g/255,b/255)
  5842. end
  5843. local scaler2 = 1
  5844. local speeder = FastSpeed
  5845. if type == "Add" then
  5846. scaler2 = 1*value
  5847. elseif type == "Divide" then
  5848. scaler2 = 1/value
  5849. end
  5850. coroutine.resume(coroutine.create(function()
  5851. for i = 0,10/bonuspeed,0.1 do
  5852. swait()
  5853. if rainbowmode == true then
  5854. rng.Color = Color3.new(r/255,g/255,b/255)
  5855. end
  5856. if type == "Add" then
  5857. scaler2 = scaler2 - 0.01*value/bonuspeed
  5858. elseif type == "Divide" then
  5859. scaler2 = scaler2 - 0.01/value*bonuspeed
  5860. end
  5861. if chaosmode == true then
  5862. rng.BrickColor = BrickColor.random()
  5863. end
  5864. speeder = speeder - 0.01*FastSpeed*bonuspeed
  5865. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  5866. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  5867. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  5868. end
  5869. rng:Destroy()
  5870. end))
  5871. end
  5872.  
  5873.  
  5874. function TargetSelect(person)
  5875. local dd=coroutine.wrap(function()
  5876. if targetted ~= person then
  5877. targetted = person
  5878. img2.Size = UDim2.new(1,0,1,0)
  5879. img2.ImageTransparency = 0
  5880. img2.Position = UDim2.new(0,0,0,0)
  5881. img2.ImageColor3 = Color3.new(0,0,0)
  5882. for i = 0, 2, 0.1 do
  5883. swait()
  5884. img2.Size = img2.Size + UDim2.new(.05,0,.05,0)
  5885. img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0)
  5886. img2.ImageTransparency = img2.ImageTransparency + 0.05
  5887. end
  5888. end
  5889. end)
  5890. dd()
  5891. end
  5892.  
  5893. function FindNearestTorso(Position, Distance, SinglePlayer)
  5894. if SinglePlayer then
  5895. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  5896. end
  5897. local List = {}
  5898. for i, v in pairs(workspace:GetChildren()) do
  5899. if v:IsA("Model") then
  5900. if v:findFirstChild("Torso") then
  5901. if v ~= Character then
  5902. if (v.Torso.Position - Position).magnitude <= Distance then
  5903. table.insert(List, v)
  5904. end
  5905. end
  5906. end
  5907. end
  5908. end
  5909. return List
  5910. end
  5911.  
  5912. function LockOn()
  5913. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5914. TargetSelect(Mouse.Target.Parent)
  5915. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  5916. elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
  5917. TargetSelect(Mouse.Target.Parent)
  5918. if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
  5919. targetted = nil
  5920. end
  5921. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  5922. end
  5923. end
  5924.  
  5925. function dmg(dude)
  5926. if dude.Name ~= Character then
  5927. local bgf = Instance.new("BodyGyro",dude.Head)
  5928. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  5929. local val = Instance.new("BoolValue",dude)
  5930. val.Name = "IsHit"
  5931. local ds = coroutine.wrap(function()
  5932. if dude.Name ~= "koonguy98755" then
  5933. killcount = killcount + 1
  5934. dude:WaitForChild("Torso"):BreakJoints()
  5935. wait(0.5)
  5936. targetted = nil
  5937. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  5938. coroutine.resume(coroutine.create(function()
  5939. for i, v in pairs(dude:GetChildren()) do
  5940. if v:IsA("Accessory") then
  5941. v:Destroy()
  5942. end
  5943. if v:IsA("Humanoid") then
  5944. v:Destroy()
  5945. end
  5946. if v:IsA("CharacterMesh") then
  5947. v:Destroy()
  5948. end
  5949. if v:IsA("Model") then
  5950. v:Destroy()
  5951. end
  5952. if v:IsA("Part") then
  5953. for x, o in pairs(v:GetChildren()) do
  5954. if o:IsA("Decal") then
  5955. o:Destroy()
  5956. end
  5957. end
  5958. coroutine.resume(coroutine.create(function()
  5959. v.Material = "Neon"
  5960. v.CanCollide = false
  5961. local bld = Instance.new("ParticleEmitter",v)
  5962. bld.LightEmission = 1
  5963. bld.Texture = "rbxassetid://284205403"
  5964. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  5965. bld.Rate = 50
  5966. bld.Lifetime = NumberRange.new(1)
  5967. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  5968. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5969. bld.Speed = NumberRange.new(0,0,0)
  5970. bld.Rotation = NumberRange.new(-500,500)
  5971. bld.RotSpeed = NumberRange.new(-500,500)
  5972. local sbs = Instance.new("BodyPosition", v)
  5973. sbs.P = 3000
  5974. sbs.D = 1000
  5975. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  5976. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  5977. v.Color = Color3.new(1,1,1)
  5978. coroutine.resume(coroutine.create(function()
  5979. for i = 0, 24 do
  5980. swait(1)
  5981. v.Transparency = v.Transparency + 0.02
  5982. end
  5983. bld.Enabled = false
  5984. for i = 0, 24 do
  5985. swait(1)
  5986. v.Transparency = v.Transparency + 0.02
  5987. end
  5988. v:Destroy()
  5989. dude:Destroy()
  5990. end))
  5991. end))
  5992. end
  5993. end
  5994. end))
  5995. else
  5996. bgf:Destroy()
  5997. sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
  5998. end
  5999. end)
  6000. ds()
  6001. end
  6002. end
  6003.  
  6004. function MagniStop(Magnitude,Parent,Duration)
  6005. for i, v in pairs(FindNearestTorso(Parent, Magnitude)) do
  6006. if v:FindFirstChild('Head') then
  6007. --[[local origWalk = v.Humanoid.WalkSpeed
  6008. local origJump = v.Humanoid.JumpPower]]--
  6009. local ActiveStop = true
  6010. --[[v.Humanoid.WalkSpeed = 0
  6011. v.Humanoid.JumpPower = 0]]--
  6012. for x, o in pairs(v:GetChildren()) do
  6013. if o:IsA("Part") then
  6014. o.Anchored = true
  6015. end
  6016. end
  6017. coroutine.resume(coroutine.create(function()
  6018. while true do
  6019. swait()
  6020. if ActiveStop ~= false then
  6021. --[[v.Humanoid.WalkSpeed = 0
  6022. v.Humanoid.JumpPower = 0]]--
  6023. for x, o in pairs(v:GetChildren()) do
  6024. if o:IsA("Part") then
  6025. o.Anchored = true
  6026. end
  6027. end
  6028. else
  6029. break
  6030. end
  6031. end
  6032. end))
  6033. local txt = Instance.new("BillboardGui", v)
  6034. txt.Adornee = v.Head
  6035. txt.Name = "StoppedSTAT"
  6036. txt.AlwaysOnTop = true
  6037. txt.Size = UDim2.new(2, 0, 1.2, 0)
  6038. txt.StudsOffset = Vector3.new(-9, 8, 0)
  6039. local text = Instance.new("TextLabel", txt)
  6040. text.Size = UDim2.new(10, 0, 7, 0)
  6041. text.FontSize = "Size24"
  6042. text.TextScaled = true
  6043. text.TextTransparency = 0
  6044. text.BackgroundTransparency = 1
  6045. text.TextTransparency = 0
  6046. text.TextStrokeTransparency = 0.75
  6047. text.Font = "Cartoon"
  6048. text.TextStrokeColor3 = Color3.new(0,0,0)
  6049. text.TextColor3 = Color3.new(0,1,0)
  6050. text.Text = "STOPPED"
  6051. coroutine.resume(coroutine.create(function()
  6052. wait(Duration)
  6053. ActiveStop = false
  6054. for x, o in pairs(v:GetChildren()) do
  6055. if o:IsA("Part") then
  6056. o.Anchored = false
  6057. end
  6058. end
  6059. --[[v.Humanoid.WalkSpeed = origWalk
  6060. v.Humanoid.JumpPower = origJump]]--
  6061. txt:Destroy()
  6062. end))
  6063. end
  6064. end
  6065. end
  6066.  
  6067. function MakeBullet(Type,Speed,Position,Magni,Minim,Maxim,Color,TrailColor,Size,TrailSize,Delay,VolumeEx)
  6068. local ExplodeType = Type
  6069. local spart = Instance.new("Part",char)
  6070. local msh = Instance.new("SpecialMesh",spart)
  6071. msh.MeshType = "Sphere"
  6072. msh.Scale = Size
  6073. CFuncs["Sound"].Create("rbxassetid://260433768", spart, 2, 1)
  6074. spart.Size = vt(1,1,1)
  6075. spart.BrickColor = Color
  6076. spart.Material = "Neon"
  6077. spart.Transparency = 0
  6078. spart.Anchored = true
  6079. spart.CanCollide = false
  6080. spart.CFrame = Position
  6081. local hitted = false
  6082. spart.Anchored = false
  6083. local bv = Instance.new("BodyVelocity")
  6084. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6085. bv.velocity = spart.CFrame.lookVector *Speed
  6086. bv.Parent = spart
  6087. game:GetService("Debris"):AddItem(spart, Delay)
  6088. --[[coroutine.resume(coroutine.create(function()
  6089. while true do
  6090. swait(1)
  6091. if spart.Parent ~= nil and hitted == false then
  6092. sphere(3,"Add",spart.CFrame*CFrame.new(math.random(-TrailSize,TrailSize),math.random(-TrailSize,TrailSize),0)+ spart.CFrame.lookVector*-TrailSize-3,vt(0,0,0),TrailSize,TrailColor)
  6093. elseif spart.Parent == nil then
  6094. break
  6095. end
  6096. end
  6097. end))]]--
  6098. swait(1)
  6099. if ExplodeType == "Normal" then
  6100. local hit =spart.Touched:connect(function(hit)
  6101. if hitted == false then
  6102. hitted = true
  6103. CFuncs["Sound"].Create("rbxassetid://239000203", spart, VolumeEx, 1)
  6104. MagniDamage(spart, Magni, Minim,Maxim, 0, "Normal")
  6105. sphere(1,"Add",spart.CFrame,Size,Magni/20,spart.BrickColor)
  6106. spart.Anchored = true
  6107. spart.Transparency = 1
  6108. end
  6109. end)
  6110. elseif ExplodeType == "Timefreeze" then
  6111. local hit =spart.Touched:connect(function(hit)
  6112. if hitted == false then
  6113. hitted = true
  6114. MagniStop(Magni/1.75,spart.CFrame.p,1)
  6115. MagniDamage(spart, Magni/1.75, Minim,Maxim, 0, "Normal")
  6116. --CFuncs["Sound"].Create("rbxassetid://239000203", spart, 2, 1)
  6117. CFuncs["Sound"].Create("rbxassetid://1208650519", spart, VolumeEx, 1)
  6118. sphere(1,"Add",spart.CFrame,vt(Magni,Magni,Magni),-Magni/50,spart.BrickColor)
  6119. spart.Anchored = true
  6120. spart.Transparency = 1
  6121. end
  6122. end)
  6123. end
  6124. end
  6125. --[[function UnusedSource()
  6126. MagniStop(12.5,targetted.Torso.CFrame.p,2)
  6127. CFuncs["Sound"].Create("rbxassetid://743521656", targetted.Torso, 5, 0.8)
  6128. --CFuncs["Sound"].Create("rbxassetid://1208650519", targetted.Torso, 5, 1)
  6129. sphere(1,"Add",targetted.Torso.CFrame,vt(25,25,25),-0.5,BrickColor.new("White"))
  6130. end]]--
  6131.  
  6132. -------------
  6133. function FaceMouse()
  6134. Cam = workspace.CurrentCamera
  6135. return {
  6136. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  6137. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  6138. }
  6139. end
  6140.  
  6141. function FaceMouse2()
  6142. Cam = workspace.CurrentCamera
  6143. return {
  6144. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  6145. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  6146. }
  6147. end
  6148.  
  6149. ---- main combo attacks
  6150.  
  6151. local r = 255
  6152. local g = 0
  6153. local b = 0
  6154. coroutine.resume(coroutine.create(function()
  6155. while wait() do
  6156. for i = 0, 254/5 do
  6157. swait()
  6158. g = g + 5
  6159. end
  6160. for i = 0, 254/5 do
  6161. swait()
  6162. r = r - 5
  6163. end
  6164. for i = 0, 254/5 do
  6165. swait()
  6166. b = b + 5
  6167. end
  6168. for i = 0, 254/5 do
  6169. swait()
  6170. g = g - 5
  6171. end
  6172. for i = 0, 254/5 do
  6173. swait()
  6174. r = r + 5
  6175. end
  6176. for i = 0, 254/5 do
  6177. swait()
  6178. b = b - 5
  6179. end
  6180. end
  6181. end))
  6182.  
  6183. function attackone()
  6184. attack = true
  6185. for i = 0,1,0.1 do
  6186. swait()
  6187. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(20),math.rad(90)),.3)
  6188. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  6189. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  6190. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  6191. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  6192. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  6193. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(110),math.rad(0),math.rad(50)),.3)
  6194. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  6195. end
  6196. local con = hibox.Touched:connect(function(hit)
  6197. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  6198. end)
  6199. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 1)
  6200. for i = 0,1,0.1 do
  6201. swait()
  6202. sordweld.C0=clerp(sordweld.C0,cf(-1,0,0)*angles(math.rad(-90),math.rad(60),math.rad(90)),.3)
  6203. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  6204. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  6205. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  6206. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  6207. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6208. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  6209. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  6210. end
  6211. con:disconnect()
  6212. attack = false
  6213. end
  6214.  
  6215. function attacktwo()
  6216. attack = true
  6217. for i = 0,1,0.1 do
  6218. swait()
  6219. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  6220. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  6221. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  6222. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  6223. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  6224. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  6225. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(50),math.rad(20),math.rad(-30)),.3)
  6226. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  6227. end
  6228. local con = hibox.Touched:connect(function(hit)
  6229. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  6230. end)
  6231. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 0.75)
  6232. for i = 0,1,0.1 do
  6233. swait()
  6234. sordweld.C0=clerp(sordweld.C0,cf(-1,-1,0)*angles(math.rad(-90),math.rad(5),math.rad(90)),.3)
  6235. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  6236. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  6237. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  6238. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  6239. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  6240. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  6241. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  6242. end
  6243. con:disconnect()
  6244. attack = false
  6245. end
  6246.  
  6247. function attackthree()
  6248. attack = true
  6249. for i = 0,1,0.1 do
  6250. swait()
  6251. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  6252. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  6253. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.1)
  6254. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.1)
  6255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(15)),.3)
  6256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-15)),.3)
  6257. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5),math.rad(-10),math.rad(10)),.3)
  6258. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(120),math.rad(0),math.rad(-10)),.3)
  6259. end
  6260. for i = 0,2,0.1 do
  6261. swait()
  6262. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  6263. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  6264. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.1)
  6265. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.1)
  6266. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  6267. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(45)),.3)
  6268. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5),math.rad(-10),math.rad(10)),.3)
  6269. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-55)),.3)
  6270. end
  6271. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  6272. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  6273. MagniDamage(glowst, 7.5, 12,16, 0, "Normal")
  6274. for i = 0, 9 do
  6275. sphereMK(2,0.2,"Add",glowst.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,halocolor,0)
  6276. sphereMK(4,0.4,"Add",glowst.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,halocolor,0)
  6277. end
  6278. CFuncs["Sound"].Create("rbxassetid://183763506", glowst, 1.5, 1)
  6279. attack = false
  6280. end
  6281.  
  6282. function attackorb()
  6283. attack = true
  6284. for i = 0,1,0.1 do
  6285. swait()
  6286. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  6287. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  6288. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  6289. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  6290. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.3)
  6291. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.3)
  6292. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(30)),.3)
  6293. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-30)),.3)
  6294. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.3)
  6295. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(120),math.rad(0),math.rad(-55)),.3)
  6296. end
  6297. for i = 0,1,0.1 do
  6298. swait()
  6299. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  6300. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  6301. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  6302. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  6303. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.3)
  6304. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.3)
  6305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(-20)),.3)
  6306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(20)),.3)
  6307. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.3)
  6308. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-35)),.3)
  6309. end
  6310. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  6311. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  6312. local orb = Instance.new("Part", char)
  6313. orb.BrickColor = halocolor
  6314. orb.CanCollide = false
  6315. orb.FormFactor = 3
  6316. orb.Name = "Ring"
  6317. orb.Material = "Neon"
  6318. orb.Size = Vector3.new(1, 1, 1)
  6319. orb.Transparency = 0
  6320. orb.TopSurface = 0
  6321. orb.BottomSurface = 0
  6322. local orbm = Instance.new("SpecialMesh", orb)
  6323. orbm.MeshType = "Sphere"
  6324. orbm.Name = "SizeMesh"
  6325. orbm.Scale = vt(1.5,1.5,1.5)
  6326. local a = Instance.new("Part",workspace)
  6327. a.Name = "Direction"
  6328. a.Anchored = true
  6329. a.BrickColor = bc("Bright red")
  6330. a.Material = "Neon"
  6331. a.Transparency = 1
  6332. a.CanCollide = false
  6333. local ray = Ray.new(
  6334. glowst.CFrame.p, -- origin
  6335. (mouse.Hit.p - glowst.CFrame.p).unit * 500 -- direction
  6336. )
  6337. local ignore = glowst
  6338. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6339. a.BottomSurface = 10
  6340. a.TopSurface = 10
  6341. local distance = (glowst.CFrame.p - position).magnitude
  6342. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6343. a.CFrame = CFrame.new(glowst.CFrame.p, position) * CFrame.new(0, 0, 0)
  6344. orb.CFrame = a.CFrame
  6345. a:Destroy()
  6346. local bv = Instance.new("BodyVelocity")
  6347. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6348. bv.velocity = orb.CFrame.lookVector*100
  6349. bv.Parent = orb
  6350. local hitted = false
  6351. game:GetService("Debris"):AddItem(orb, 10)
  6352. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  6353. coroutine.resume(coroutine.create(function()
  6354. swait(0.1)
  6355. orb.Touched:connect(function(hit)
  6356. if hitted == false then
  6357. hitted = true
  6358. game:GetService("Debris"):AddItem(orb, 5)
  6359. orb.Transparency = 1
  6360. orb.Anchored = true
  6361. for i = 0, 49 do
  6362. PixelBlock(1,math.random(3,10),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  6363. end
  6364. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  6365. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  6366. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  6367. sphere(4,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  6368. sphere(5,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  6369. CFuncs["Sound"].Create("rbxassetid://468991944", orb, 7.5, 1)
  6370. CFuncs["Sound"].Create("rbxassetid://419447292", orb, 2.5,1)
  6371. MagniDamage(orb, 12.5, 15,22, 0, "Normal")
  6372. end
  6373. end)
  6374. end))
  6375. attack = false
  6376. end
  6377.  
  6378. function Taunt()
  6379. attack = true
  6380. hum.WalkSpeed = 0
  6381. for x = 0, 4 do
  6382. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.75)
  6383. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.6)
  6384. for i = 0,1,0.6 do
  6385. swait()
  6386. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  6387. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6388. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  6389. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  6390. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  6391. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  6392. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  6393. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  6394. end
  6395. for i = 0,1,0.6 do
  6396. swait()
  6397. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.5)
  6398. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6399. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  6400. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  6401. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  6402. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  6403. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  6404. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  6405. end
  6406. for i = 0,1,0.6 do
  6407. swait()
  6408. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(180),math.rad(0)),.5)
  6409. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6410. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  6411. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  6412. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  6413. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  6414. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  6415. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  6416. end
  6417. for i = 0,1,0.6 do
  6418. swait()
  6419. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(270),math.rad(0)),.5)
  6420. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6421. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  6422. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  6423. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  6424. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  6425. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(160),math.rad(0),math.rad(20)),.5)
  6426. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  6427. end
  6428. end
  6429. local ranod = math.random(1,5)
  6430. if ranod == 1 then
  6431. chatfunc("You're not really at this, arent you.",halocolor.Color)
  6432. elseif ranod == 2 then
  6433. chatfunc("I dont like whoever messes me up.",halocolor.Color)
  6434. elseif ranod == 3 then
  6435. chatfunc("I never expected you to be here.",halocolor.Color)
  6436. elseif ranod == 4 then
  6437. chatfunc("You really messed up.",halocolor.Color)
  6438. elseif ranod == 5 then
  6439. chatfunc("Go away.",halocolor.Color)
  6440. end
  6441. for i = 0,15,0.1 do
  6442. swait()
  6443. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  6444. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  6445. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  6446. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.3)
  6447. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  6448. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  6449. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.3)
  6450. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.3)
  6451. end
  6452. hum.WalkSpeed = 16
  6453. attack = false
  6454. end
  6455.  
  6456. function WAT()
  6457. attack = true
  6458. hum.WalkSpeed = 0
  6459. for x = 0, 9 do
  6460. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.7)
  6461. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.55)
  6462. for i = 0,1,0.6 do
  6463. swait()
  6464. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  6465. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6466. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  6467. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  6468. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  6469. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  6470. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  6471. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  6472. end
  6473. for i = 0,1,0.6 do
  6474. swait()
  6475. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.5)
  6476. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6477. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  6478. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  6479. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  6480. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  6481. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  6482. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  6483. end
  6484. for i = 0,1,0.6 do
  6485. swait()
  6486. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.5)
  6487. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6488. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  6489. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  6490. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  6491. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  6492. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  6493. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  6494. end
  6495. for i = 0,1,0.6 do
  6496. swait()
  6497. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-270),math.rad(0),math.rad(0)),.5)
  6498. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6499. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  6500. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  6501. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  6502. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  6503. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 30),-1)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  6504. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  6505. end
  6506. end
  6507. local hittery = false
  6508. local ParentedHit = nil
  6509. local con = hibox.Touched:connect(function(hit)
  6510. if hit.Name == "Torso" and hittery == false then
  6511. hittery = true
  6512. ParentedHit = hit
  6513. for i = 0, 24 do
  6514. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  6515. end
  6516. sphere(2,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  6517. sphere(3,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  6518. sphere(4,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  6519. CFuncs["Sound"].Create("rbxassetid://153092227", hit, 5, 1)
  6520. sbs = Instance.new("BodyPosition", hit)
  6521. sbs.P = 3000
  6522. sbs.D = 1000
  6523. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  6524. sbs.position = hit.CFrame.p
  6525. end
  6526. end)
  6527. for i = 0,2,0.1 do
  6528. swait()
  6529. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  6530. PixelBlockNeg(1,1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0)
  6531. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  6532. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.6)
  6533. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.6)
  6534. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  6535. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(2.5),math.rad(5),math.rad(90)),.6)
  6536. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  6537. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  6538. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.6)
  6539. end
  6540. con:disconnect()
  6541. if hittery == true then
  6542. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6543. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  6544. for i = 0, 24 do
  6545. PixelBlock(1,math.random(3,6),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  6546. end
  6547. root.CFrame = ParentedHit.CFrame + ParentedHit.CFrame.lookVector*-8
  6548. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  6549. for i = 0, 24 do
  6550. PixelBlock(1,math.random(3,6),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,halocolor,0)
  6551. end
  6552. for x = 0, 9 do
  6553. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  6554. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  6555. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  6556. for i = 0, 2 do
  6557. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  6558. PixelBlock(1,math.random(5,25),"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Really black"),0)
  6559. end
  6560. for i = 0,1,0.6 do
  6561. swait()
  6562. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  6563. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  6564. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  6565. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  6566. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(5),math.rad(90)),.6)
  6567. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6568. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  6569. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  6570. end
  6571. for i = 0,1,0.6 do
  6572. swait()
  6573. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  6574. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  6575. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  6576. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  6577. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(90),math.rad(5),math.rad(90)),.6)
  6578. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6579. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  6580. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  6581. end
  6582. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  6583. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  6584. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  6585. for i = 0, 2 do
  6586. sphereouter(5,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),25,BrickColor.new("White"))
  6587. PixelBlock(1,math.random(5,25),"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new("Really black"),0)
  6588. end
  6589. for i = 0,1,0.6 do
  6590. swait()
  6591. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  6592. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  6593. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  6594. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  6595. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(180),math.rad(5),math.rad(90)),.6)
  6596. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6597. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  6598. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  6599. end
  6600. for i = 0,1,0.6 do
  6601. swait()
  6602. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  6603. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  6604. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5)),.6)
  6605. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.6)
  6606. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(270),math.rad(5),math.rad(90)),.6)
  6607. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6608. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  6609. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  6610. end
  6611. end
  6612.  
  6613. local ex = Instance.new("ParticleEmitter",at1)
  6614. ex.Texture = "rbxassetid://296874871"
  6615. ex.LightEmission = 0.25
  6616. ex.Color = ColorSequence.new(Color3.new(0,0,0))
  6617. ex.Rate = 100
  6618. ex.Lifetime = NumberRange.new(2)
  6619. ex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  6620. ex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6621. ex.Speed = NumberRange.new(10)
  6622. ex.LockedToPart = true
  6623. ex.Rotation = NumberRange.new(-500,500)
  6624. ex.RotSpeed = NumberRange.new(-500,500)
  6625. local ex2 = Instance.new("ParticleEmitter",at1)
  6626. ex2.Texture = "rbxassetid://865418009"
  6627. ex2.LightEmission = 1
  6628. ex2.Color = ColorSequence.new(Color3.new(1,1,1))
  6629. ex2.Rate = 50
  6630. ex2.Lifetime = NumberRange.new(0.25)
  6631. ex2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6632. ex2.Speed = NumberRange.new(75)
  6633. ex2.LockedToPart = true
  6634. ex2.Rotation = NumberRange.new(-500,500)
  6635. local ex3 = Instance.new("ParticleEmitter",glow)
  6636. ex3.Texture = "rbxassetid://865418009"
  6637. ex3.LightEmission = 1
  6638. ex3.Color = ColorSequence.new(Color3.new(1,1,1))
  6639. ex3.Rate = 50
  6640. ex3.Lifetime = NumberRange.new(0.5)
  6641. ex3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,3,0)})
  6642. ex3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6643. ex3.Speed = NumberRange.new(0)
  6644. ex3.LockedToPart = true
  6645. ex3.Rotation = NumberRange.new(-500,500)
  6646. CFuncs["Sound"].Create("rbxassetid://1548527129", sord, 4.5, 1)
  6647. CFuncs["Sound"].Create("rbxassetid://1548599511", root, 8, 1)
  6648. for i = 0,10,0.1 do
  6649. swait()
  6650. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  6651. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  6652. RH.C0=clerp(RH.C0,cf(1,-1,-0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(-20),math.rad(0)),.3)
  6653. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  6654. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  6655. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  6656. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  6657. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.3)
  6658. end
  6659. for i = 0,5,0.1 do
  6660. swait()
  6661. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  6662. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  6663. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(20),math.rad(20)),.3)
  6664. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20)),.3)
  6665. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(70)),.3)
  6666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  6667. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(50),math.rad(20),math.rad(-30)),.3)
  6668. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.3)
  6669. end
  6670. CameraEnshaking(3,30,char)
  6671. CameraEnshaking(3,30,ParentedHit.Parent)
  6672. CFuncs["Sound"].Create("rbxassetid://1548544673", sord, 1.5, 1)
  6673. CFuncs["Sound"].Create("rbxassetid://1548538202", sord, 2.5, 1)
  6674. CFuncs["Sound"].Create("rbxassetid://1548544673", ParentedHit, 1.5, 1)
  6675. CFuncs["Sound"].Create("rbxassetid://1548538202", ParentedHit, 2.5, 1)
  6676. CFuncs["Sound"].Create("rbxassetid://1548599962", root, 8, 1)
  6677. for i = 0, 9 do
  6678. sphereouter(1,"Add",ParentedHit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0,1),5,BrickColor.new("White"))
  6679. end
  6680. dmg(ParentedHit.Parent)
  6681. sbs:Destroy()
  6682. for i = 0,5,0.1 do
  6683. swait()
  6684. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.5)
  6685. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  6686. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(20),math.rad(20)),.5)
  6687. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20)),.5)
  6688. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(-70)),.5)
  6689. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(70)),.5)
  6690. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),-0.5)*angles(math.rad(120),math.rad(20),math.rad(90)),.5)
  6691. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(-20)),.5)
  6692. end
  6693. ex.Enabled = false
  6694. ex2.Enabled = false
  6695. ex3.Enabled = false
  6696. game:GetService("Debris"):AddItem(ex, 10)
  6697. game:GetService("Debris"):AddItem(ex2, 10)
  6698. game:GetService("Debris"):AddItem(ex3, 10)
  6699. end
  6700. hum.WalkSpeed = 16
  6701. attack = false
  6702. end
  6703.  
  6704. local FloatMode = false
  6705. local attacktype = 1
  6706. mouse.Button1Down:connect(function()
  6707. if FloatMode == false then
  6708. if attack == false and attacktype == 1 then
  6709. attacktype = 2
  6710. attackone()
  6711. elseif attack == false and attacktype == 2 then
  6712. attacktype = 3
  6713. attacktwo()
  6714. elseif attack == false and attacktype == 3 then
  6715. attacktype = 1
  6716. attackthree()
  6717. end
  6718. elseif FloatMode == true then
  6719. if attack == false then
  6720. attackorb()
  6721. end
  6722. end
  6723. end)
  6724.  
  6725. mouse.KeyDown:connect(function(k)
  6726. if k == "q" and attack == false and FloatMode == false then
  6727. FloatMode = true
  6728. hum.WalkSpeed = 32
  6729. elseif k == "q" and attack == false and FloatMode == true then
  6730. FloatMode = false
  6731. hum.WalkSpeed = 16
  6732. end
  6733.  
  6734. if FloatMode == false then
  6735. if k == "t" and attack == false then
  6736. Taunt()
  6737. end
  6738. if k == "m" and attack == false and plr.Name == "IshLink" then
  6739. WAT()
  6740. end
  6741. end
  6742. end)
  6743. idleanim=.4
  6744. hum.Animator.Parent = nil
  6745. while true do
  6746. swait()
  6747. sine = sine + change
  6748. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6749. local velderp=RootPart.Velocity.y
  6750. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6751. if equipped==true or equipped==false then
  6752. if attack==false then
  6753. idle=idle+1
  6754. else
  6755. idle=0
  6756. end
  6757. if idle>=500 then
  6758. if attack==false then
  6759. --Sheath()
  6760. end
  6761. end
  6762. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6763. Anim="Jump"
  6764. if attack==false then
  6765. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6766. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6767. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6768. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6769. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  6770. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  6771. end
  6772. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6773. Anim="Fall"
  6774. if attack==false then
  6775. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6776. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6777. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6778. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6779. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  6780. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  6781. end
  6782. elseif torvel<1 and hitfloor~=nil then
  6783. Anim="Idle"
  6784. if attack==false then
  6785. if FloatMode == false then
  6786. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6787. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6788. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0 + 3 * math.cos(sine / 28))),.1)
  6789. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 - 3 * math.cos(sine / 28))),.1)
  6790. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 + 3 * math.cos(sine / 28)),math.rad(0),math.rad(10)),.1)
  6791. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-10)),.1)
  6792. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-10),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  6793. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  6794. elseif FloatMode == true then
  6795. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6796. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  6797. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  6798. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  6799. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-5 + 3 * math.cos(sine / 18))),.1)
  6800. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5 + 5 * math.cos(sine / 24))),.1)
  6801. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(5 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(20)),.1)
  6802. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(-20)),.1)
  6803. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-20),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  6804. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  6805. end
  6806. end
  6807. elseif torvel>2 and torvel<42 and hitfloor~=nil then
  6808. Anim="Walk"
  6809. if attack==false then
  6810. if FloatMode == false then
  6811. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6812. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  6813. RH.C0=clerp(RH.C0,cf(1,-1 - 0.25 * math.cos(sine / 8),-0.1 - 0.25 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 40 * math.cos(sine / 8))),.1)
  6814. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.25 * math.cos(sine / 8),-0.1 + 0.25 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 40 * math.cos(sine / 8))),.1)
  6815. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 8))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 16))),.1)
  6816. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 29.5)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 16))),.1)
  6817. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(-30),math.rad(10 + 2.5 * math.cos(sine / 25))),.1)
  6818. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-5 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-10 - 2.5 * math.cos(sine / 25))),.1)
  6819. elseif FloatMode == true then
  6820. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6821. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  6822. PixelBlock(5,0.25,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  6823. PixelBlock(5,0.25,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,halocolor,0)
  6824. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20 + 3 * math.cos(sine / 18))),.1)
  6825. LH.C0=clerp(LH.C0,cf(-1,-0.5 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(20 + 5 * math.cos(sine / 24))),.1)
  6826. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.25 * math.cos(sine / 28))*angles(math.rad(25 + 3 * math.cos(sine / 27.5)),math.rad(0),math.rad(0)),.1)
  6827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6828. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(10 + 2.5 * math.cos(sine / 25)),math.rad(-30),math.rad(5 + 2.5 * math.cos(sine / 25))),.1)
  6829. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-20 + 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.1)
  6830. end
  6831. end
  6832. elseif torvel>=42 and hitfloor~=nil then
  6833. Anim="Run"
  6834. if attack==false then
  6835. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6836. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6837. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  6838. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  6839. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  6840. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  6841. end
  6842. end
  6843. end
  6844. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement