Advertisement
tntmyles

Extermina

Jun 29th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 130.66 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 FindNearestHead(Position, Distance, SinglePlayer)
  2492. if SinglePlayer then
  2493. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2494. end
  2495. local List = {}
  2496. for i, v in pairs(workspace:GetChildren()) do
  2497. if v:IsA("Model") then
  2498. if v:findFirstChild("Head") then
  2499. if v ~= Character then
  2500. if (v.Head.Position - Position).magnitude <= Distance then
  2501. table.insert(List, v)
  2502. end
  2503. end
  2504. end
  2505. end
  2506. end
  2507. return List
  2508. end
  2509.  
  2510. function LockOn()
  2511. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2512. TargetSelect(Mouse.Target.Parent)
  2513. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2514. elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
  2515. TargetSelect(Mouse.Target.Parent)
  2516. if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
  2517. targetted = nil
  2518. end
  2519. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2520. end
  2521. end
  2522.  
  2523. function dmg(dude)
  2524. if dude.Name ~= Character then
  2525. local bgf = Instance.new("BodyGyro",dude.Head)
  2526. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2527. local val = Instance.new("BoolValue",dude)
  2528. val.Name = "IsHit"
  2529. local ds = coroutine.wrap(function()
  2530. if dude.Name ~= "XXUNORIBOASXX" then
  2531. killcount = killcount + 1
  2532. dude:WaitForChild("Torso"):BreakJoints()
  2533. wait(0.5)
  2534. targetted = nil
  2535. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2536. coroutine.resume(coroutine.create(function()
  2537. for i, v in pairs(dude:GetChildren()) do
  2538. if v:IsA("Accessory") then
  2539. v:Destroy()
  2540. end
  2541. if v:IsA("Humanoid") then
  2542. v:Destroy()
  2543. end
  2544. if v:IsA("CharacterMesh") then
  2545. v:Destroy()
  2546. end
  2547. if v:IsA("Model") then
  2548. v:Destroy()
  2549. end
  2550. if v:IsA("Part") then
  2551. for x, o in pairs(v:GetChildren()) do
  2552. if o:IsA("Decal") then
  2553. o:Destroy()
  2554. end
  2555. end
  2556. coroutine.resume(coroutine.create(function()
  2557. v.Material = "Neon"
  2558. v.CanCollide = false
  2559. local bld = Instance.new("ParticleEmitter",v)
  2560. bld.LightEmission = 1
  2561. bld.Texture = "rbxassetid://284205403"
  2562. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2563. bld.Rate = 50
  2564. bld.Lifetime = NumberRange.new(1)
  2565. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2566. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2567. bld.Speed = NumberRange.new(0,0,0)
  2568. bld.Rotation = NumberRange.new(-500,500)
  2569. bld.RotSpeed = NumberRange.new(-500,500)
  2570. local sbs = Instance.new("BodyPosition", v)
  2571. sbs.P = 3000
  2572. sbs.D = 1000
  2573. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2574. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2575. v.Color = Color3.new(1,1,1)
  2576. coroutine.resume(coroutine.create(function()
  2577. for i = 0, 24 do
  2578. swait(1)
  2579. v.Transparency = v.Transparency + 0.02
  2580. end
  2581. bld.Enabled = false
  2582. for i = 0, 24 do
  2583. swait(1)
  2584. v.Transparency = v.Transparency + 0.02
  2585. end
  2586. v:Destroy()
  2587. dude:Destroy()
  2588. end))
  2589. end))
  2590. end
  2591. end
  2592. end))
  2593. else
  2594. bgf:Destroy()
  2595. sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
  2596. end
  2597. end)
  2598. ds()
  2599. end
  2600. end
  2601.  
  2602. function MagniStop(Magnitude,Parent,Duration)
  2603. for i, v in pairs(FindNearestTorso(Parent, Magnitude)) do
  2604. if v:FindFirstChild('Head') then
  2605. --[[local origWalk = v.Humanoid.WalkSpeed
  2606. local origJump = v.Humanoid.JumpPower]]--
  2607. local ActiveStop = true
  2608. --[[v.Humanoid.WalkSpeed = 0
  2609. v.Humanoid.JumpPower = 0]]--
  2610. for x, o in pairs(v:GetChildren()) do
  2611. if o:IsA("Part") then
  2612. o.Anchored = true
  2613. end
  2614. end
  2615. coroutine.resume(coroutine.create(function()
  2616. while true do
  2617. swait()
  2618. if ActiveStop ~= false then
  2619. --[[v.Humanoid.WalkSpeed = 0
  2620. v.Humanoid.JumpPower = 0]]--
  2621. for x, o in pairs(v:GetChildren()) do
  2622. if o:IsA("Part") then
  2623. o.Anchored = true
  2624. end
  2625. end
  2626. else
  2627. break
  2628. end
  2629. end
  2630. end))
  2631. local txt = Instance.new("BillboardGui", v)
  2632. txt.Adornee = v.Head
  2633. txt.Name = "StoppedSTAT"
  2634. txt.AlwaysOnTop = true
  2635. txt.Size = UDim2.new(2, 0, 1.2, 0)
  2636. txt.StudsOffset = Vector3.new(-9, 8, 0)
  2637. local text = Instance.new("TextLabel", txt)
  2638. text.Size = UDim2.new(10, 0, 7, 0)
  2639. text.FontSize = "Size24"
  2640. text.TextScaled = true
  2641. text.TextTransparency = 0
  2642. text.BackgroundTransparency = 1
  2643. text.TextTransparency = 0
  2644. text.TextStrokeTransparency = 0.75
  2645. text.Font = "Cartoon"
  2646. text.TextStrokeColor3 = Color3.new(0,0,0)
  2647. text.TextColor3 = Color3.new(0,1,0)
  2648. text.Text = "STOPPED"
  2649. coroutine.resume(coroutine.create(function()
  2650. wait(Duration)
  2651. ActiveStop = false
  2652. for x, o in pairs(v:GetChildren()) do
  2653. if o:IsA("Part") then
  2654. o.Anchored = false
  2655. end
  2656. end
  2657. --[[v.Humanoid.WalkSpeed = origWalk
  2658. v.Humanoid.JumpPower = origJump]]--
  2659. txt:Destroy()
  2660. end))
  2661. end
  2662. end
  2663. end
  2664.  
  2665. function MakeBullet(Type,Speed,Position,Magni,Minim,Maxim,Color,TrailColor,Size,TrailSize,Delay,VolumeEx)
  2666. local ExplodeType = Type
  2667. local spart = Instance.new("Part",char)
  2668. local msh = Instance.new("SpecialMesh",spart)
  2669. msh.MeshType = "Sphere"
  2670. msh.Scale = Size
  2671. CFuncs["Sound"].Create("rbxassetid://260433768", spart, 2, 1)
  2672. spart.Size = vt(1,1,1)
  2673. spart.BrickColor = Color
  2674. spart.Material = "Neon"
  2675. spart.Transparency = 0
  2676. spart.Anchored = true
  2677. spart.CanCollide = false
  2678. spart.CFrame = Position
  2679. local hitted = false
  2680. spart.Anchored = false
  2681. local bv = Instance.new("BodyVelocity")
  2682. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2683. bv.velocity = spart.CFrame.lookVector *Speed
  2684. bv.Parent = spart
  2685. game:GetService("Debris"):AddItem(spart, Delay)
  2686. --[[coroutine.resume(coroutine.create(function()
  2687. while true do
  2688. swait(1)
  2689. if spart.Parent ~= nil and hitted == false then
  2690. 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)
  2691. elseif spart.Parent == nil then
  2692. break
  2693. end
  2694. end
  2695. end))]]--
  2696. swait(1)
  2697. if ExplodeType == "Normal" then
  2698. local hit =spart.Touched:connect(function(hit)
  2699. if hitted == false then
  2700. hitted = true
  2701. CFuncs["Sound"].Create("rbxassetid://239000203", spart, VolumeEx, 1)
  2702. MagniDamage(spart, Magni, Minim,Maxim, 0, "Normal")
  2703. sphere(1,"Add",spart.CFrame,Size,Magni/20,spart.BrickColor)
  2704. spart.Anchored = true
  2705. spart.Transparency = 1
  2706. end
  2707. end)
  2708. elseif ExplodeType == "Timefreeze" then
  2709. local hit =spart.Touched:connect(function(hit)
  2710. if hitted == false then
  2711. hitted = true
  2712. MagniStop(Magni/1.75,spart.CFrame.p,1)
  2713. MagniDamage(spart, Magni/1.75, Minim,Maxim, 0, "Normal")
  2714. --CFuncs["Sound"].Create("rbxassetid://239000203", spart, 2, 1)
  2715. CFuncs["Sound"].Create("rbxassetid://1208650519", spart, VolumeEx, 1)
  2716. sphere(1,"Add",spart.CFrame,vt(Magni,Magni,Magni),-Magni/50,spart.BrickColor)
  2717. spart.Anchored = true
  2718. spart.Transparency = 1
  2719. end
  2720. end)
  2721. end
  2722. end
  2723. --[[function UnusedSource()
  2724. MagniStop(12.5,targetted.Torso.CFrame.p,2)
  2725. CFuncs["Sound"].Create("rbxassetid://743521656", targetted.Torso, 5, 0.8)
  2726. --CFuncs["Sound"].Create("rbxassetid://1208650519", targetted.Torso, 5, 1)
  2727. sphere(1,"Add",targetted.Torso.CFrame,vt(25,25,25),-0.5,BrickColor.new("White"))
  2728. end]]--
  2729.  
  2730. -------------
  2731. function FaceMouse()
  2732. Cam = workspace.CurrentCamera
  2733. return {
  2734. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2735. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2736. }
  2737. end
  2738.  
  2739. function FaceMouse2()
  2740. Cam = workspace.CurrentCamera
  2741. return {
  2742. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2743. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2744. }
  2745. end
  2746.  
  2747. ---- main combo attacks
  2748.  
  2749. local r = 255
  2750. local g = 0
  2751. local b = 0
  2752. coroutine.resume(coroutine.create(function()
  2753. while wait() do
  2754. for i = 0, 254/5 do
  2755. swait()
  2756. g = g + 5
  2757. end
  2758. for i = 0, 254/5 do
  2759. swait()
  2760. r = r - 5
  2761. end
  2762. for i = 0, 254/5 do
  2763. swait()
  2764. b = b + 5
  2765. end
  2766. for i = 0, 254/5 do
  2767. swait()
  2768. g = g - 5
  2769. end
  2770. for i = 0, 254/5 do
  2771. swait()
  2772. r = r + 5
  2773. end
  2774. for i = 0, 254/5 do
  2775. swait()
  2776. b = b - 5
  2777. end
  2778. end
  2779. end))
  2780.  
  2781. function attackone()
  2782. attack = true
  2783. for i = 0,1,0.1 do
  2784. swait()
  2785. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(20),math.rad(90)),.3)
  2786. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2787. 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)
  2788. 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)
  2789. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  2790. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2791. 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)
  2792. 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)
  2793. end
  2794. local con = hibox.Touched:connect(function(hit)
  2795. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  2796. end)
  2797. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 1)
  2798. for i = 0,1,0.1 do
  2799. swait()
  2800. sordweld.C0=clerp(sordweld.C0,cf(-1,0,0)*angles(math.rad(-90),math.rad(60),math.rad(90)),.3)
  2801. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2802. 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)
  2803. 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)
  2804. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  2805. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  2806. 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)
  2807. 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)
  2808. end
  2809. con:disconnect()
  2810. attack = false
  2811. end
  2812.  
  2813. function attacktwo()
  2814. attack = true
  2815. for i = 0,1,0.1 do
  2816. swait()
  2817. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  2818. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2819. 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)
  2820. 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)
  2821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  2822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  2823. 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)
  2824. 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)
  2825. end
  2826. local con = hibox.Touched:connect(function(hit)
  2827. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  2828. end)
  2829. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 0.75)
  2830. for i = 0,1,0.1 do
  2831. swait()
  2832. sordweld.C0=clerp(sordweld.C0,cf(-1,-1,0)*angles(math.rad(-90),math.rad(5),math.rad(90)),.3)
  2833. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2834. 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)
  2835. 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)
  2836. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2837. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2838. 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)
  2839. 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)
  2840. end
  2841. con:disconnect()
  2842. attack = false
  2843. end
  2844.  
  2845. function attackthree()
  2846. attack = true
  2847. for i = 0,1,0.1 do
  2848. swait()
  2849. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2850. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2851. 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)
  2852. 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)
  2853. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(15)),.3)
  2854. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-15)),.3)
  2855. 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)
  2856. 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)
  2857. end
  2858. for i = 0,2,0.1 do
  2859. swait()
  2860. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2861. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  2862. 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)
  2863. 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)
  2864. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2865. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(45)),.3)
  2866. 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)
  2867. 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)
  2868. end
  2869. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  2870. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  2871. MagniDamage(glowst, 7.5, 12,16, 0, "Normal")
  2872. for i = 0, 9 do
  2873. 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)
  2874. 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)
  2875. end
  2876. CFuncs["Sound"].Create("rbxassetid://183763506", glowst, 1.5, 1)
  2877. attack = false
  2878. end
  2879.  
  2880. function attackorb()
  2881. attack = true
  2882. for i = 0,1,0.1 do
  2883. swait()
  2884. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2885. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2886. 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)
  2887. 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)
  2888. 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)
  2889. 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)
  2890. 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)
  2891. 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)
  2892. 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)
  2893. 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)
  2894. end
  2895. for i = 0,1,0.1 do
  2896. swait()
  2897. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2898. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  2899. 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)
  2900. 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)
  2901. 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)
  2902. 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)
  2903. 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)
  2904. 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)
  2905. 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)
  2906. 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)
  2907. end
  2908. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  2909. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  2910. local orb = Instance.new("Part", char)
  2911. orb.BrickColor = halocolor
  2912. orb.CanCollide = false
  2913. orb.FormFactor = 3
  2914. orb.Name = "Ring"
  2915. orb.Material = "Neon"
  2916. orb.Size = Vector3.new(1, 1, 1)
  2917. orb.Transparency = 0
  2918. orb.TopSurface = 0
  2919. orb.BottomSurface = 0
  2920. local orbm = Instance.new("SpecialMesh", orb)
  2921. orbm.MeshType = "Sphere"
  2922. orbm.Name = "SizeMesh"
  2923. orbm.Scale = vt(1.5,1.5,1.5)
  2924. local a = Instance.new("Part",workspace)
  2925. a.Name = "Direction"
  2926. a.Anchored = true
  2927. a.BrickColor = bc("Bright red")
  2928. a.Material = "Neon"
  2929. a.Transparency = 1
  2930. a.CanCollide = false
  2931. local ray = Ray.new(
  2932. glowst.CFrame.p, -- origin
  2933. (mouse.Hit.p - glowst.CFrame.p).unit * 500 -- direction
  2934. )
  2935. local ignore = glowst
  2936. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2937. a.BottomSurface = 10
  2938. a.TopSurface = 10
  2939. local distance = (glowst.CFrame.p - position).magnitude
  2940. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2941. a.CFrame = CFrame.new(glowst.CFrame.p, position) * CFrame.new(0, 0, 0)
  2942. orb.CFrame = a.CFrame
  2943. a:Destroy()
  2944. local bv = Instance.new("BodyVelocity")
  2945. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2946. bv.velocity = orb.CFrame.lookVector*100
  2947. bv.Parent = orb
  2948. local hitted = false
  2949. game:GetService("Debris"):AddItem(orb, 10)
  2950. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  2951. coroutine.resume(coroutine.create(function()
  2952. swait(0.1)
  2953. orb.Touched:connect(function(hit)
  2954. if hitted == false then
  2955. hitted = true
  2956. game:GetService("Debris"):AddItem(orb, 5)
  2957. orb.Transparency = 1
  2958. orb.Anchored = true
  2959. for i = 0, 49 do
  2960. 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)
  2961. end
  2962. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2963. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2964. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2965. sphere(4,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2966. sphere(5,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  2967. CFuncs["Sound"].Create("rbxassetid://468991944", orb, 7.5, 1)
  2968. CFuncs["Sound"].Create("rbxassetid://419447292", orb, 2.5,1)
  2969. MagniDamage(orb, 12.5, 15,22, 0, "Normal")
  2970. end
  2971. end)
  2972. end))
  2973. attack = false
  2974. end
  2975.  
  2976. function Taunt()
  2977. attack = true
  2978. hum.WalkSpeed = 0
  2979. for x = 0, 4 do
  2980. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.75)
  2981. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.6)
  2982. for i = 0,1,0.6 do
  2983. swait()
  2984. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  2985. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  2986. 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)
  2987. 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)
  2988. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  2989. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  2990. 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)
  2991. 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)
  2992. end
  2993. for i = 0,1,0.6 do
  2994. swait()
  2995. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.5)
  2996. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  2997. 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)
  2998. 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)
  2999. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3000. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3001. 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)
  3002. 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)
  3003. end
  3004. for i = 0,1,0.6 do
  3005. swait()
  3006. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(180),math.rad(0)),.5)
  3007. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3008. 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)
  3009. 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)
  3010. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3011. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3012. 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)
  3013. 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)
  3014. end
  3015. for i = 0,1,0.6 do
  3016. swait()
  3017. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(270),math.rad(0)),.5)
  3018. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3019. 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)
  3020. 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)
  3021. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3022. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3023. 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)
  3024. 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)
  3025. end
  3026. end
  3027. local ranod = math.random(1,5)
  3028. if ranod == 1 then
  3029. chatfunc("You're not really at this, arent you.",halocolor.Color)
  3030. elseif ranod == 2 then
  3031. chatfunc("I dont like whoever messes me up.",halocolor.Color)
  3032. elseif ranod == 3 then
  3033. chatfunc("I never expected you to be here.",halocolor.Color)
  3034. elseif ranod == 4 then
  3035. chatfunc("You really messed up.",halocolor.Color)
  3036. elseif ranod == 5 then
  3037. chatfunc("Go away.",halocolor.Color)
  3038. end
  3039. for i = 0,15,0.1 do
  3040. swait()
  3041. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  3042. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3043. 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)
  3044. 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)
  3045. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  3046. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  3047. 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)
  3048. 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)
  3049. end
  3050. hum.WalkSpeed = 16
  3051. attack = false
  3052. end
  3053.  
  3054. MAINRUINCOLOR = BrickColor.new("Institutional white")
  3055.  
  3056. function SwordSplosion()
  3057. attack = true
  3058.  
  3059. local orb = Instance.new("Part", char)
  3060. orb.Anchored = true
  3061. orb.BrickColor = MAINRUINCOLOR
  3062. orb.CanCollide = false
  3063. orb.FormFactor = 3
  3064. orb.Name = "Ring"
  3065. orb.Material = "Neon"
  3066. orb.Size = Vector3.new(1, 1, 1)
  3067. orb.Transparency = 1
  3068. orb.TopSurface = 0
  3069. orb.BottomSurface = 0
  3070. local orbm = Instance.new("SpecialMesh", orb)
  3071. orbm.MeshType = "Sphere"
  3072. orbm.Name = "SizeMesh"
  3073. orbm.Scale = vt(0,0,0)
  3074. local scaled = 0.1
  3075. local posid = 0
  3076. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3077. for i = 0, 5, 0.1 do
  3078. swait()
  3079. scaled = scaled - 0.001
  3080. posid = posid - scaled
  3081. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3082. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3083. sphereMKCharge(5,-0.25,"Add",orb.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,MAINRUINCOLOR,10)
  3084. PixelBlockNeg(2,1,"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.01,MAINRUINCOLOR,0)
  3085. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3086. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3087. sordweld.C0=clerp(sordweld.C0,cf(0,-1.75,1)*angles(math.rad(90),math.rad(180),math.rad(0)),.1)
  3088. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3089. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3090. end
  3091. swait(60)
  3092. for i =1,3 do
  3093. swait(30)
  3094. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3095. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3096. end
  3097. swait(30)
  3098. for i = 0, 2, 0.1 do
  3099. swait()
  3100. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3101. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3102. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3103. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3104. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3105. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3106. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3107. end
  3108. swait(60)
  3109. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3110. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3111. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3112. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3113. MagniDamageWithEffect(tors, 999, math.huge, math.huge, 0, "Normal")
  3114. for i = 1,20 do
  3115. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0)
  3116. for i = 0, 45 do
  3117. sphereouter(5,"Add",tors.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"))
  3118. end
  3119. for i = 0, 10 do
  3120. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
  3121. end
  3122. end
  3123. orb:Remove()
  3124. attack = false
  3125. end
  3126.  
  3127. function WAT()
  3128. attack = true
  3129. hum.WalkSpeed = 0
  3130. for x = 0, 9 do
  3131. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.7)
  3132. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.55)
  3133. for i = 0,1,0.6 do
  3134. swait()
  3135. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  3136. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3137. 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)
  3138. 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)
  3139. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3140. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3141. 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)
  3142. 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)
  3143. end
  3144. for i = 0,1,0.6 do
  3145. swait()
  3146. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.5)
  3147. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3148. 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)
  3149. 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)
  3150. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3151. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3152. 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)
  3153. 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)
  3154. end
  3155. for i = 0,1,0.6 do
  3156. swait()
  3157. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.5)
  3158. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3159. 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)
  3160. 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)
  3161. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3162. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3163. 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)
  3164. 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)
  3165. end
  3166. for i = 0,1,0.6 do
  3167. swait()
  3168. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-270),math.rad(0),math.rad(0)),.5)
  3169. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3170. 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)
  3171. 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)
  3172. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3173. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3174. 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)
  3175. 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)
  3176. end
  3177. end
  3178. local hittery = false
  3179. local ParentedHit = nil
  3180. local con = hibox.Touched:connect(function(hit)
  3181. if hit.Name == "Torso" and hittery == false then
  3182. hittery = true
  3183. ParentedHit = hit
  3184. for i = 0, 24 do
  3185. 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"))
  3186. end
  3187. sphere(2,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3188. sphere(3,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3189. sphere(4,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3190. CFuncs["Sound"].Create("rbxassetid://153092227", hit, 5, 1)
  3191. sbs = Instance.new("BodyPosition", hit)
  3192. sbs.P = 3000
  3193. sbs.D = 1000
  3194. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3195. sbs.position = hit.CFrame.p
  3196. end
  3197. end)
  3198. for i = 0,2,0.1 do
  3199. swait()
  3200. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  3201. 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)
  3202. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3203. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.6)
  3204. 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)
  3205. 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)
  3206. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(2.5),math.rad(5),math.rad(90)),.6)
  3207. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3208. 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)
  3209. 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)
  3210. end
  3211. con:disconnect()
  3212. if hittery == true then
  3213. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3214. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  3215. for i = 0, 24 do
  3216. 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)
  3217. end
  3218. root.CFrame = ParentedHit.CFrame + ParentedHit.CFrame.lookVector*-8
  3219. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  3220. for i = 0, 24 do
  3221. 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)
  3222. end
  3223. for x = 0, 9 do
  3224. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  3225. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  3226. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  3227. for i = 0, 2 do
  3228. 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"))
  3229. 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)
  3230. end
  3231. for i = 0,1,0.6 do
  3232. swait()
  3233. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3234. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3235. 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)
  3236. 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)
  3237. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(5),math.rad(90)),.6)
  3238. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3239. 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)
  3240. 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)
  3241. end
  3242. for i = 0,1,0.6 do
  3243. swait()
  3244. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3245. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3246. 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)
  3247. 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)
  3248. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(90),math.rad(5),math.rad(90)),.6)
  3249. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3250. 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)
  3251. 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)
  3252. end
  3253. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  3254. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  3255. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  3256. for i = 0, 2 do
  3257. 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"))
  3258. 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)
  3259. end
  3260. for i = 0,1,0.6 do
  3261. swait()
  3262. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3263. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3264. 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)
  3265. 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)
  3266. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(180),math.rad(5),math.rad(90)),.6)
  3267. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3268. 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)
  3269. 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)
  3270. end
  3271. for i = 0,1,0.6 do
  3272. swait()
  3273. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3274. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3275. 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)
  3276. 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)
  3277. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(270),math.rad(5),math.rad(90)),.6)
  3278. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3279. 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)
  3280. 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)
  3281. end
  3282. end
  3283.  
  3284. local ex = Instance.new("ParticleEmitter",at1)
  3285. ex.Texture = "rbxassetid://296874871"
  3286. ex.LightEmission = 0.25
  3287. ex.Color = ColorSequence.new(Color3.new(0,0,0))
  3288. ex.Rate = 100
  3289. ex.Lifetime = NumberRange.new(2)
  3290. ex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  3291. ex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3292. ex.Speed = NumberRange.new(10)
  3293. ex.LockedToPart = true
  3294. ex.Rotation = NumberRange.new(-500,500)
  3295. ex.RotSpeed = NumberRange.new(-500,500)
  3296. local ex2 = Instance.new("ParticleEmitter",at1)
  3297. ex2.Texture = "rbxassetid://865418009"
  3298. ex2.LightEmission = 1
  3299. ex2.Color = ColorSequence.new(Color3.new(1,1,1))
  3300. ex2.Rate = 50
  3301. ex2.Lifetime = NumberRange.new(0.25)
  3302. ex2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3303. ex2.Speed = NumberRange.new(75)
  3304. ex2.LockedToPart = true
  3305. ex2.Rotation = NumberRange.new(-500,500)
  3306. local ex3 = Instance.new("ParticleEmitter",glow)
  3307. ex3.Texture = "rbxassetid://865418009"
  3308. ex3.LightEmission = 1
  3309. ex3.Color = ColorSequence.new(Color3.new(1,1,1))
  3310. ex3.Rate = 50
  3311. ex3.Lifetime = NumberRange.new(0.5)
  3312. ex3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,3,0)})
  3313. ex3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3314. ex3.Speed = NumberRange.new(0)
  3315. ex3.LockedToPart = true
  3316. ex3.Rotation = NumberRange.new(-500,500)
  3317. CFuncs["Sound"].Create("rbxassetid://1548527129", sord, 4.5, 1)
  3318. CFuncs["Sound"].Create("rbxassetid://1548599511", root, 8, 1)
  3319. for i = 0,10,0.1 do
  3320. swait()
  3321. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3322. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3323. 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)
  3324. 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)
  3325. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  3326. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  3327. 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)
  3328. 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)
  3329. end
  3330. for i = 0,5,0.1 do
  3331. swait()
  3332. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  3333. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3334. 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)
  3335. 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)
  3336. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(70)),.3)
  3337. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  3338. 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)
  3339. 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)
  3340. end
  3341. CameraEnshaking(3,30,char)
  3342. CameraEnshaking(3,30,ParentedHit.Parent)
  3343. CFuncs["Sound"].Create("rbxassetid://1548544673", sord, 1.5, 1)
  3344. CFuncs["Sound"].Create("rbxassetid://1548538202", sord, 2.5, 1)
  3345. CFuncs["Sound"].Create("rbxassetid://1548544673", ParentedHit, 1.5, 1)
  3346. CFuncs["Sound"].Create("rbxassetid://1548538202", ParentedHit, 2.5, 1)
  3347. CFuncs["Sound"].Create("rbxassetid://1548599962", root, 8, 1)
  3348. for i = 0, 9 do
  3349. 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"))
  3350. end
  3351. dmg(ParentedHit.Parent)
  3352. sbs:Destroy()
  3353. for i = 0,5,0.1 do
  3354. swait()
  3355. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.5)
  3356. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3357. 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)
  3358. 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)
  3359. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(-70)),.5)
  3360. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(70)),.5)
  3361. 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)
  3362. 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)
  3363. end
  3364. ex.Enabled = false
  3365. ex2.Enabled = false
  3366. ex3.Enabled = false
  3367. game:GetService("Debris"):AddItem(ex, 10)
  3368. game:GetService("Debris"):AddItem(ex2, 10)
  3369. game:GetService("Debris"):AddItem(ex3, 10)
  3370. end
  3371. hum.WalkSpeed = 16
  3372. attack = false
  3373. end
  3374.  
  3375. local FloatMode = false
  3376. local attacktype = 1
  3377. mouse.Button1Down:connect(function()
  3378. if FloatMode == false then
  3379. if attack == false and attacktype == 1 then
  3380. attacktype = 2
  3381. attackone()
  3382. elseif attack == false and attacktype == 2 then
  3383. attacktype = 3
  3384. attacktwo()
  3385. elseif attack == false and attacktype == 3 then
  3386. attacktype = 1
  3387. attackthree()
  3388. end
  3389. elseif FloatMode == true then
  3390. if attack == false then
  3391. attackorb()
  3392. end
  3393. end
  3394. end)
  3395.  
  3396. mouse.KeyDown:connect(function(k)
  3397. if k == "q" and attack == false and FloatMode == false then
  3398. FloatMode = true
  3399. hum.WalkSpeed = 32
  3400. elseif k == "q" and attack == false and FloatMode == true then
  3401. FloatMode = false
  3402. hum.WalkSpeed = 16
  3403. end
  3404.  
  3405. if FloatMode == false then
  3406. if k == "t" and attack == false then
  3407. Taunt()
  3408. end
  3409. if k == "x" and attack == false then
  3410. SwordSplosion()
  3411. end
  3412. if k == "m" and attack == false then
  3413. DashnSlash()
  3414. end
  3415. end
  3416. end)
  3417. idleanim=.4
  3418. hum.Animator.Parent = nil
  3419. while true do
  3420. swait()
  3421. sine = sine + change
  3422. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3423. local velderp=RootPart.Velocity.y
  3424. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3425. if equipped==true or equipped==false then
  3426. if attack==false then
  3427. idle=idle+1
  3428. else
  3429. idle=0
  3430. end
  3431. if idle>=500 then
  3432. if attack==false then
  3433. --Sheath()
  3434. end
  3435. end
  3436. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3437. Anim="Jump"
  3438. if attack==false then
  3439. 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)
  3440. 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)
  3441. 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)
  3442. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3443. 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)
  3444. 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)
  3445. end
  3446. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3447. Anim="Fall"
  3448. if attack==false then
  3449. 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)
  3450. 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)
  3451. 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)
  3452. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3453. 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)
  3454. 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)
  3455. end
  3456. elseif torvel<1 and hitfloor~=nil then
  3457. Anim="Idle"
  3458. if attack==false then
  3459. if FloatMode == false then
  3460. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3461. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3462. 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)
  3463. 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)
  3464. 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)
  3465. 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)
  3466. 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)
  3467. 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)
  3468. elseif FloatMode == true then
  3469. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3470. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3471. 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)
  3472. 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)
  3473. 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)
  3474. 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)
  3475. 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)
  3476. 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)
  3477. 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)
  3478. 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)
  3479. end
  3480. end
  3481. elseif torvel>2 and torvel<42 and hitfloor~=nil then
  3482. Anim="Walk"
  3483. if attack==false then
  3484. if FloatMode == false then
  3485. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3486. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3487. 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)
  3488. 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)
  3489. 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)
  3490. 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)
  3491. 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)
  3492. 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)
  3493. elseif FloatMode == true then
  3494. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3495. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3496. 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)
  3497. 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)
  3498. 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)
  3499. 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)
  3500. 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)
  3501. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3502. 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)
  3503. 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)
  3504. end
  3505. end
  3506. elseif torvel>=42 and hitfloor~=nil then
  3507. Anim="Run"
  3508. if attack==false then
  3509. 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)
  3510. 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)
  3511. 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)
  3512. 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)
  3513. 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)
  3514. 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)
  3515. end
  3516. end
  3517. end
  3518. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement