Advertisement
memberhero

Sword And Staff

May 17th, 2018
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 131.70 KB | None | 0 0
  1. wait(0.2)
  2. owner = game.Players.LocalPlayer
  3. plr = owner
  4. char = plr.Character
  5. hum = char.Humanoid
  6. local cam = game.Workspace.CurrentCamera
  7. t = char.Torso
  8. h = char.Head
  9. ra = char["Right Arm"]
  10. la = char["Left Arm"]
  11. rl = char["Right Leg"]
  12. ll = char["Left Leg"]
  13. tors = char.Torso
  14. lleg = char["Left Leg"]
  15. root = char.HumanoidRootPart
  16. hed = char.Head
  17. rleg = char["Right Leg"]
  18. rarm = char["Right Arm"]
  19. larm = char["Left Arm"]
  20. radian = math.rad
  21. random = math.random
  22. Vec3 = Vector3.new
  23. Inst = Instance.new
  24. cFrame = CFrame.new
  25. Euler = CFrame.fromEulerAnglesXYZ
  26. vt = Vector3.new
  27. bc = BrickColor.new
  28. br = BrickColor.random
  29. it = Instance.new
  30. cf = CFrame.new
  31. local killcount = 0
  32.  
  33. ArtificialHB = Instance.new("BindableEvent", script)
  34. ArtificialHB.Name = "Heartbeat"
  35. script:WaitForChild("Heartbeat")
  36. frame = 1 / 30
  37. tf = 0
  38. allowframeloss = true
  39. tossremainder = false
  40. lastframe = tick()
  41. script.Heartbeat:Fire()
  42. game:GetService("RunService").Heartbeat:connect(function(s, p)
  43.  
  44. tf = tf + s
  45. if frame <= tf then
  46. if allowframeloss then
  47. script.Heartbeat:Fire()
  48. lastframe = tick()
  49. else
  50. for i = 1, math.floor(tf / frame) do
  51. script.Heartbeat:Fire()
  52. end
  53. lastframe = tick()
  54. end
  55. if tossremainder then
  56. tf = 0
  57. else
  58. tf = tf - frame * math.floor(tf / frame)
  59. end
  60. end
  61. end
  62. )
  63. swait = function(num)
  64.  
  65. if num == 0 or num == nil then
  66. ArtificialHB.Event:wait()
  67. else
  68. for i = 0, num do
  69. ArtificialHB.Event:wait()
  70. end
  71. end
  72. end
  73.  
  74.  
  75. function CameraEnshaking(Length,Intensity,Parent)
  76. coroutine.resume(coroutine.create(function()
  77. local HumanoidParented = Parent:WaitForChild("Humanoid")
  78. local intensity = 1*Intensity
  79. local rotM = 0.01*Intensity
  80. for i = 0, Length, 0.1 do
  81. swait()
  82. intensity = intensity - 0.05*Intensity/Length
  83. rotM = rotM - 0.0005*Intensity/Length
  84. HumanoidParented.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  85. 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)
  86. end
  87. Humanoid.CameraOffset = Vec3(0, 0, 0)
  88. end))
  89. end
  90.  
  91.  
  92. --[[kan = Instance.new("Sound",char)
  93. kan.Volume = 1.25
  94. kan.TimePosition = 0
  95. kan.PlaybackSpeed = 1
  96. kan.Pitch = 1
  97. kan.SoundId = "rbxassetid://1347011178"
  98. kan.Name = "watisdis"
  99. kan.Looped = true
  100. kan:Play()]]--
  101.  
  102.  
  103. function CameraShake(Times, Power)
  104. coroutine.resume(coroutine.create(function()
  105. FV = Instance.new("BoolValue", Character)
  106. FV.Name = "CameraShake"
  107. for ShakeNum=1,Times do
  108. swait()
  109. local ef=Power
  110. if ef>=1 then
  111. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  112. else
  113. ef=Power*10
  114. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  115. end
  116. end
  117. Humanoid.CameraOffset = Vector3.new(0,0,0)
  118. FV:Destroy()
  119. end))
  120. end
  121.  
  122. CamShake=function(Part,Distan,Power,Times)
  123. local de=Part.Position
  124. for i,v in pairs(workspace:children()) do
  125. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  126. for _,c in pairs(v:children()) do
  127. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  128. local Noob=v.Humanoid
  129. if Noob~=nil then
  130. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  131. --[[local ss=script.CamShake:clone()
  132. ss.Parent=Noob
  133. ss.Power.Value=Power
  134. ss.Times.Value=Times
  135. ss.Disabled=false]]
  136. CameraShake(Times, Power)
  137. end
  138. end
  139. end
  140. end
  141. end
  142. end
  143. end
  144.  
  145. function chatfunc(text,color)
  146. local chat = coroutine.wrap(function()
  147. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  148. Character:FindFirstChild("TalkingBillBoard"):destroy()
  149. end
  150. local naeeym2 = Instance.new("BillboardGui",Character)
  151. naeeym2.Size = UDim2.new(0,100,0,40)
  152. naeeym2.StudsOffset = Vector3.new(0,3,0)
  153. naeeym2.Adornee = Character.Head
  154. naeeym2.Name = "TalkingBillBoard"
  155. local tecks2 = Instance.new("TextLabel",naeeym2)
  156. tecks2.BackgroundTransparency = 1
  157. tecks2.BorderSizePixel = 0
  158. tecks2.Text = ""
  159. tecks2.Font = "SciFi"
  160. tecks2.TextSize = 30
  161. tecks2.TextStrokeTransparency = 0
  162. tecks2.TextColor3 = color
  163. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  164. tecks2.Size = UDim2.new(1,0,0.5,0)
  165. local tecks3 = Instance.new("TextLabel",naeeym2)
  166. tecks3.BackgroundTransparency = 1
  167. tecks3.BorderSizePixel = 0
  168. tecks3.Text = ""
  169. tecks3.Font = "SciFi"
  170. tecks3.TextSize = 30
  171. tecks3.TextStrokeTransparency = 0
  172. tecks3.TextColor3 = Color3.new(0,0,0)
  173. tecks3.TextStrokeColor3 = color
  174. tecks3.Size = UDim2.new(1,0,0.5,0)
  175. coroutine.resume(coroutine.create(function()
  176. while true do
  177. swait(1)
  178. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  179. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  180. tecks2.Rotation = math.random(-5,5)
  181. tecks3.Rotation = math.random(-5,5)
  182. end
  183. end))
  184. for i = 1,string.len(text),1 do
  185. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  186. tecks2.Text = string.sub(text,1,i)
  187. tecks3.Text = string.sub(text,1,i)
  188. swait(1)
  189. end
  190. wait(1)
  191. local randomrot = math.random(1,2)
  192. if randomrot == 1 then
  193. for i = 1, 50 do
  194. swait()
  195. tecks2.Rotation = tecks2.Rotation - .75
  196. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  197. tecks2.TextTransparency = tecks2.TextTransparency + .04
  198. tecks3.Rotation = tecks2.Rotation + .75
  199. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  200. tecks3.TextTransparency = tecks2.TextTransparency + .04
  201. end
  202. elseif randomrot == 2 then
  203. for i = 1, 50 do
  204. swait()
  205. tecks2.Rotation = tecks2.Rotation + .75
  206. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  207. tecks2.TextTransparency = tecks2.TextTransparency + .04
  208. tecks3.Rotation = tecks2.Rotation - .75
  209. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  210. tecks3.TextTransparency = tecks2.TextTransparency + .04
  211. end
  212. end
  213. naeeym2:Destroy()
  214. end)
  215. chat()
  216. end
  217.  
  218.  
  219. local Create = LoadLibrary("RbxUtility").Create
  220.  
  221. CFuncs = {
  222. ["Part"] = {
  223. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  224. local Part = Create("Part"){
  225. Parent = Parent,
  226. Reflectance = Reflectance,
  227. Transparency = Transparency,
  228. CanCollide = false,
  229. Locked = true,
  230. BrickColor = BrickColor.new(tostring(BColor)),
  231. Name = Name,
  232. Size = Size,
  233. Material = Material,
  234. }
  235. RemoveOutlines(Part)
  236. return Part
  237. end;
  238. };
  239.  
  240. ["Mesh"] = {
  241. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  242. local Msh = Create(Mesh){
  243. Parent = Part,
  244. Offset = OffSet,
  245. Scale = Scale,
  246. }
  247. if Mesh == "SpecialMesh" then
  248. Msh.MeshType = MeshType
  249. Msh.MeshId = MeshId
  250. end
  251. return Msh
  252. end;
  253. };
  254.  
  255. ["Mesh"] = {
  256. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  257. local Msh = Create(Mesh){
  258. Parent = Part,
  259. Offset = OffSet,
  260. Scale = Scale,
  261. }
  262. if Mesh == "SpecialMesh" then
  263. Msh.MeshType = MeshType
  264. Msh.MeshId = MeshId
  265. end
  266. return Msh
  267. end;
  268. };
  269.  
  270. ["Weld"] = {
  271. Create = function(Parent, Part0, Part1, C0, C1)
  272. local Weld = Create("Weld"){
  273. Parent = Parent,
  274. Part0 = Part0,
  275. Part1 = Part1,
  276. C0 = C0,
  277. C1 = C1,
  278. }
  279. return Weld
  280. end;
  281. };
  282.  
  283. ["Sound"] = {
  284. Create = function(id, par, vol, pit)
  285. coroutine.resume(coroutine.create(function()
  286. local S = Create("Sound"){
  287. Volume = vol,
  288. Pitch = pit or 1,
  289. SoundId = id,
  290. Parent = par or workspace,
  291. }
  292. wait()
  293. S:play()
  294. game:GetService("Debris"):AddItem(S, 10)
  295. end))
  296. end;
  297. };
  298.  
  299. ["LongSound"] = {
  300. Create = function(id, par, vol, pit)
  301. coroutine.resume(coroutine.create(function()
  302. local S = Create("Sound"){
  303. Volume = vol,
  304. Pitch = pit or 1,
  305. SoundId = id,
  306. Parent = par or workspace,
  307. }
  308. wait()
  309. S:play()
  310. game:GetService("Debris"):AddItem(S, 30)
  311. end))
  312. end;
  313. };
  314.  
  315. ["ParticleEmitter"] = {
  316. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  317. local fp = Create("ParticleEmitter"){
  318. Parent = Parent,
  319. Color = ColorSequence.new(Color1, Color2),
  320. LightEmission = LightEmission,
  321. Size = Size,
  322. Texture = Texture,
  323. Transparency = Transparency,
  324. ZOffset = ZOffset,
  325. Acceleration = Accel,
  326. Drag = Drag,
  327. LockedToPart = LockedToPart,
  328. VelocityInheritance = VelocityInheritance,
  329. EmissionDirection = EmissionDirection,
  330. Enabled = Enabled,
  331. Lifetime = LifeTime,
  332. Rate = Rate,
  333. Rotation = Rotation,
  334. RotSpeed = RotSpeed,
  335. Speed = Speed,
  336. VelocitySpread = VelocitySpread,
  337. }
  338. return fp
  339. end;
  340. };
  341.  
  342. CreateTemplate = {
  343.  
  344. };
  345. }
  346.  
  347.  
  348.  
  349. New = function(Object, Parent, Name, Data)
  350. local Object = Instance.new(Object)
  351. for Index, Value in pairs(Data or {}) do
  352. Object[Index] = Value
  353. end
  354. Object.Parent = Parent
  355. Object.Name = Name
  356. return Object
  357. end
  358. local halocolor = BrickColor.new("White")
  359. local wepcolor = BrickColor.new("Really black")
  360. local m = Instance.new("Model",char)
  361.  
  362. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  363. local p = Instance.new("Part")
  364. p.TopSurface = 0
  365. p.BottomSurface = 0
  366. p.Parent = parent
  367. p.Size = Vector3.new(0.1,0.1,0.1)
  368. p.Transparency = transparency
  369. p.Reflectance = reflectance
  370. p.CanCollide = false
  371. p.Locked = true
  372. p.BrickColor = brickcolor
  373. p.Material = material
  374. return p
  375. end
  376.  
  377. function CreateMesh(parent,meshtype,x1,y1,z1)
  378. local mesh = Instance.new("SpecialMesh",parent)
  379. mesh.MeshType = meshtype
  380. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  381. return mesh
  382. end
  383.  
  384. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  385. local mesh = Instance.new("SpecialMesh",parent)
  386. mesh.MeshType = "FileMesh"
  387. mesh.MeshId = meshid
  388. mesh.Scale = Vector3.new(x1,y1,z1)
  389. return mesh
  390. end
  391.  
  392. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  393. local mesh = Instance.new("SpecialMesh",parent)
  394. mesh.MeshType = "FileMesh"
  395. mesh.MeshId = meshid
  396. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  397. mesh.Scale = Vector3.new(x1,y1,z1)
  398. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  399. return mesh
  400. end
  401.  
  402. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  403. local weld = Instance.new("Weld")
  404. weld.Parent = parent
  405. weld.Part0 = part0
  406. weld.Part1 = part1
  407. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  408. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  409. return weld
  410. end
  411.  
  412. sord = CreateParta(m,0,0,"Granite",wepcolor)
  413. CreateSpecialMesh(sord,"rbxassetid://94840342",0.75,1.25,1.25)
  414. 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))
  415.  
  416. at1 = CreateParta(m,1,0,"Neon",halocolor)
  417. CreateMesh(at1,"Sphere",1,1,1)
  418. 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))
  419. at2 = CreateParta(m,1,0,"Neon",halocolor)
  420. CreateMesh(at2,"Sphere",1,1,1)
  421. 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))
  422. A0 = Instance.new('Attachment',at1)
  423. A1 = Instance.new('Attachment',at2)
  424. tl1 = Instance.new('Trail',at1)
  425. tl1.Attachment0 = A0
  426. tl1.Attachment1 = A1
  427. tl1.Texture = "http://www.roblox.com/asset/?id=928134823"
  428. tl1.LightEmission = 0
  429. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  430. tl1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  431. tl1.Lifetime = 0.3
  432.  
  433. hibox = CreateParta(m,1,0,"Granite",BrickColor.random())
  434. hibox.Size = vt(1,2,1)
  435. 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))
  436.  
  437.  
  438. glow = CreateParta(m,0,0,"Neon",halocolor)
  439. CreateMesh(glow,"Sphere",0.45,1,1)
  440. 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))
  441.  
  442. local blackem = Instance.new("ParticleEmitter",sord)
  443. blackem.Texture = "rbxassetid://296874871"
  444. blackem.LightEmission = 0.25
  445. blackem.Color = ColorSequence.new(Color3.new(0,0,0))
  446. blackem.Rate = 10
  447. blackem.Lifetime = NumberRange.new(1)
  448. blackem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  449. blackem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.9,0),NumberSequenceKeypoint.new(1,1,0)})
  450. blackem.Speed = NumberRange.new(1,6)
  451. blackem.LockedToPart = true
  452. blackem.Rotation = NumberRange.new(-500,500)
  453. blackem.RotSpeed = NumberRange.new(-500,500)
  454. local blackem2 = blackem:Clone()
  455. blackem2.Parent = sord
  456. blackem2.EmissionDirection = "Bottom"
  457.  
  458. staf = CreateParta(m,0,0,"Granite",wepcolor)
  459. CreateSpecialMesh(staf,"rbxassetid://283705926",1.5,1.5,1.5)
  460. 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))
  461. glowst = CreateParta(m,0,0,"Neon",halocolor)
  462. CreateMesh(glowst,"Sphere",0.35,0.35,0.35)
  463. 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))
  464.  
  465. --[[extend = CreateParta(Gaunlet,0,0,"Granite",wepcolor)
  466. CreateMesh(extend,"Brick",1.05,1.05,1.05)
  467. 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))]]--
  468.  
  469. function RemoveOutlines(part)
  470. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  471. end
  472. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  473. local Part = Create("Part")({
  474. Parent = Parent,
  475. Reflectance = Reflectance,
  476. Transparency = Transparency,
  477. CanCollide = false,
  478. Locked = true,
  479. BrickColor = BrickColor.new(tostring(BColor)),
  480. Name = Name,
  481. Size = Size,
  482. Material = Material
  483. })
  484. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  485. RemoveOutlines(Part)
  486. return Part
  487. end
  488. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  489. local Msh = Create(Mesh)({
  490. Parent = Part,
  491. Offset = OffSet,
  492. Scale = Scale
  493. })
  494. if Mesh == "SpecialMesh" then
  495. Msh.MeshType = MeshType
  496. Msh.MeshId = MeshId
  497. end
  498. return Msh
  499. end
  500. function CreateWeld(Parent, Part0, Part1, C0, C1)
  501. local Weld = Create("Weld")({
  502. Parent = Parent,
  503. Part0 = Part0,
  504. Part1 = Part1,
  505. C0 = C0,
  506. C1 = C1
  507. })
  508. return Weld
  509. end
  510.  
  511. local ff = Instance.new("ForceField",char)
  512. ff.Visible = false
  513.  
  514. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  515. local gui = it(GuiType)
  516. gui.Parent = parent
  517. gui.Text = text
  518. gui.BackgroundTransparency = backtrans
  519. gui.BackgroundColor3 = backcol
  520. gui.SizeConstraint = "RelativeXY"
  521. gui.TextXAlignment = "Center"
  522. gui.TextYAlignment = "Center"
  523. gui.Position = pos
  524. gui.Size = size
  525. gui.Font = "SourceSans"
  526. gui.FontSize = "Size14"
  527. gui.TextWrapped = false
  528. gui.TextStrokeTransparency = 0
  529. gui.TextColor = BrickColor.new("White")
  530. return gui
  531. end
  532.  
  533.  
  534. Player=owner
  535. Character=Player.Character
  536. mouse = Player:GetMouse()
  537. PlayerGui=Player.PlayerGui
  538. Backpack=Player.Backpack
  539. Torso=Character.Torso
  540. Head=Character.Head
  541. Humanoid=Character.Humanoid
  542. m=Instance.new('Model',Character)
  543. LeftArm=Character["Left Arm"]
  544. LeftLeg=Character["Left Leg"]
  545. RightArm=Character["Right Arm"]
  546. RightLeg=Character["Right Leg"]
  547. LS=Torso["Left Shoulder"]
  548. LH=Torso["Left Hip"]
  549. RS=Torso["Right Shoulder"]
  550. RH=Torso["Right Hip"]
  551. Face = Head.face
  552. Neck=Torso.Neck
  553. it=Instance.new
  554. attacktype=1
  555. vt=Vector3.new
  556. cf=CFrame.new
  557. euler=CFrame.fromEulerAnglesXYZ
  558. angles=CFrame.Angles
  559. cloaked=false
  560. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  561. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  562. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  563. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  564. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  565. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  566. RootPart=Character.HumanoidRootPart
  567. RootJoint=RootPart.RootJoint
  568. RootCF=euler(-1.57,0,3.14)
  569. attack = false
  570. attackdebounce = false
  571. deb=false
  572. equipped=true
  573. hand=false
  574. MMouse=nil
  575. combo=0
  576. mana=0
  577. trispeed=.2
  578. attackmode='none'
  579. local idle=0
  580. local Anim="Idle"
  581. local Effects={}
  582. local gun=false
  583. local shoot=false
  584. local sine = 0
  585. local change = 1
  586. player=nil
  587.  
  588. --save shoulders
  589. RSH, LSH=nil, nil
  590. --welds
  591. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  592. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  593. LH=Torso["Left Hip"]
  594. RH=Torso["Right Hip"]
  595. TorsoColor=Torso.BrickColor
  596. function NoOutline(Part)
  597. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  598. end
  599. player=Player
  600. ch=Character
  601. RSH=ch.Torso["Right Shoulder"]
  602. LSH=ch.Torso["Left Shoulder"]
  603. --
  604. RSH.Parent=nil
  605. LSH.Parent=nil
  606. --
  607. RW.Name="Right Shoulder"
  608. RW.Part0=ch.Torso
  609. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  610. RW.C1=cf(0, 0.5, 0)
  611. RW.Part1=ch["Right Arm"]
  612. RW.Parent=ch.Torso
  613. --
  614. LW.Name="Left Shoulder"
  615. LW.Part0=ch.Torso
  616. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  617. LW.C1=cf(0, 0.5, 0)
  618. LW.Part1=ch["Left Arm"]
  619. LW.Parent=ch.Torso
  620.  
  621. local Stats=Instance.new("BoolValue")
  622. Stats.Name="Stats"
  623. Stats.Parent=Character
  624. local Atk=Instance.new("NumberValue")
  625. Atk.Name="Damage"
  626. Atk.Parent=Stats
  627. Atk.Value=1
  628. local Def=Instance.new("NumberValue")
  629. Def.Name="Defense"
  630. Def.Parent=Stats
  631. Def.Value=1
  632. local Speed=Instance.new("NumberValue")
  633. Speed.Name="Speed"
  634. Speed.Parent=Stats
  635. Speed.Value=1
  636. local Mvmt=Instance.new("NumberValue")
  637. Mvmt.Name="Movement"
  638. Mvmt.Parent=Stats
  639. Mvmt.Value=1
  640.  
  641. local donum=0
  642.  
  643.  
  644. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  645. local fp=it("Part")
  646. fp.formFactor=formfactor
  647. fp.Parent=parent
  648. fp.Reflectance=reflectance
  649. fp.Transparency=transparency
  650. fp.CanCollide=false
  651. fp.Locked=true
  652. fp.BrickColor=brickcolor
  653. fp.Name=name
  654. fp.Size=size
  655. fp.Position=Torso.Position
  656. NoOutline(fp)
  657. fp.Material="SmoothPlastic"
  658. fp:BreakJoints()
  659. return fp
  660. end
  661.  
  662. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  663. local mesh=it(Mesh)
  664. mesh.Parent=part
  665. if Mesh=="SpecialMesh" then
  666. mesh.MeshType=meshtype
  667. if meshid~="nil" then
  668. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  669. end
  670. end
  671. mesh.Offset=offset
  672. mesh.Scale=scale
  673. return mesh
  674. end
  675.  
  676. function weld(parent,part0,part1,c0)
  677. local weld=it("Weld")
  678. weld.Parent=parent
  679. weld.Part0=part0
  680. weld.Part1=part1
  681. weld.C0=c0
  682. return weld
  683. end
  684.  
  685. local Color1=Torso.BrickColor
  686.  
  687. local bodvel=Instance.new("BodyVelocity")
  688. local bg=Instance.new("BodyGyro")
  689.  
  690. function swait(num)
  691. if num==0 or num==nil then
  692. game:service'RunService'.Stepped:wait(0)
  693. else
  694. for i=0,num do
  695. game:service'RunService'.Stepped:wait(0)
  696. end
  697. end
  698. end
  699.  
  700.  
  701. so = function(id,par,vol,pit)
  702. coroutine.resume(coroutine.create(function()
  703. local sou = Instance.new("Sound",par or workspace)
  704. sou.Volume=vol
  705. sou.Pitch=pit or 1
  706. sou.SoundId=id
  707. swait()
  708. sou:play()
  709. game:GetService("Debris"):AddItem(sou,6)
  710. end))
  711. end
  712.  
  713. function clerp(a,b,t)
  714. local qa = {QuaternionFromCFrame(a)}
  715. local qb = {QuaternionFromCFrame(b)}
  716. local ax, ay, az = a.x, a.y, a.z
  717. local bx, by, bz = b.x, b.y, b.z
  718. local _t = 1-t
  719. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  720. end
  721.  
  722. function QuaternionFromCFrame(cf)
  723. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  724. local trace = m00 + m11 + m22
  725. if trace > 0 then
  726. local s = math.sqrt(1 + trace)
  727. local recip = 0.5/s
  728. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  729. else
  730. local i = 0
  731. if m11 > m00 then
  732. i = 1
  733. end
  734. if m22 > (i == 0 and m00 or m11) then
  735. i = 2
  736. end
  737. if i == 0 then
  738. local s = math.sqrt(m00-m11-m22+1)
  739. local recip = 0.5/s
  740. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  741. elseif i == 1 then
  742. local s = math.sqrt(m11-m22-m00+1)
  743. local recip = 0.5/s
  744. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  745. elseif i == 2 then
  746. local s = math.sqrt(m22-m00-m11+1)
  747. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  748. end
  749. end
  750. end
  751.  
  752. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  753. local xs, ys, zs = x + x, y + y, z + z
  754. local wx, wy, wz = w*xs, w*ys, w*zs
  755. local xx = x*xs
  756. local xy = x*ys
  757. local xz = x*zs
  758. local yy = y*ys
  759. local yz = y*zs
  760. local zz = z*zs
  761. 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))
  762. end
  763.  
  764. function QuaternionSlerp(a, b, t)
  765. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  766. local startInterp, finishInterp;
  767. if cosTheta >= 0.0001 then
  768. if (1 - cosTheta) > 0.0001 then
  769. local theta = math.acos(cosTheta)
  770. local invSinTheta = 1/math.sin(theta)
  771. startInterp = math.sin((1-t)*theta)*invSinTheta
  772. finishInterp = math.sin(t*theta)*invSinTheta
  773. else
  774. startInterp = 1-t
  775. finishInterp = t
  776. end
  777. else
  778. if (1+cosTheta) > 0.0001 then
  779. local theta = math.acos(-cosTheta)
  780. local invSinTheta = 1/math.sin(theta)
  781. startInterp = math.sin((t-1)*theta)*invSinTheta
  782. finishInterp = math.sin(t*theta)*invSinTheta
  783. else
  784. startInterp = t-1
  785. finishInterp = t
  786. end
  787. end
  788. 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
  789. end
  790.  
  791. local function CFrameFromTopBack(at, top, back)
  792. local right = top:Cross(back)
  793. return CFrame.new(at.x, at.y, at.z,
  794. right.x, top.x, back.x,
  795. right.y, top.y, back.y,
  796. right.z, top.z, back.z)
  797. end
  798.  
  799. function Triangle(a, b, c)
  800. local edg1 = (c-a):Dot((b-a).unit)
  801. local edg2 = (a-b):Dot((c-b).unit)
  802. local edg3 = (b-c):Dot((a-c).unit)
  803. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  804. a, b, c = a, b, c
  805. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  806. a, b, c = b, c, a
  807. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  808. a, b, c = c, a, b
  809. else
  810. assert(false, "unreachable")
  811. end
  812.  
  813. local len1 = (c-a):Dot((b-a).unit)
  814. local len2 = (b-a).magnitude - len1
  815. local width = (a + (b-a).unit*len1 - c).magnitude
  816.  
  817. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  818.  
  819. local list = {}
  820.  
  821. if len1 > 0.01 then
  822. local w1 = Instance.new('WedgePart', m)
  823. game:GetService("Debris"):AddItem(w1,5)
  824. w1.Material = "SmoothPlastic"
  825. w1.FormFactor = 'Custom'
  826. w1.BrickColor = BrickColor.new("Really red")
  827. w1.Transparency = 0
  828. w1.Reflectance = 0
  829. w1.Material = "SmoothPlastic"
  830. w1.CanCollide = false
  831. local l1 = Instance.new("PointLight",w1)
  832. l1.Color = Color3.new(170,0,0)
  833. NoOutline(w1)
  834. local sz = Vector3.new(0.2, width, len1)
  835. w1.Size = sz
  836. local sp = Instance.new("SpecialMesh",w1)
  837. sp.MeshType = "Wedge"
  838. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  839. w1:BreakJoints()
  840. w1.Anchored = true
  841. w1.Parent = workspace
  842. w1.Transparency = 0.7
  843. table.insert(Effects,{w1,"Disappear",.01})
  844. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  845. table.insert(list,w1)
  846. end
  847.  
  848. if len2 > 0.01 then
  849. local w2 = Instance.new('WedgePart', m)
  850. game:GetService("Debris"):AddItem(w2,5)
  851. w2.Material = "SmoothPlastic"
  852. w2.FormFactor = 'Custom'
  853. w2.BrickColor = BrickColor.new("Really red")
  854. w2.Transparency = 0
  855. w2.Reflectance = 0
  856. w2.Material = "SmoothPlastic"
  857. w2.CanCollide = false
  858. local l2 = Instance.new("PointLight",w2)
  859. l2.Color = Color3.new(170,0,0)
  860. NoOutline(w2)
  861. local sz = Vector3.new(0.2, width, len2)
  862. w2.Size = sz
  863. local sp = Instance.new("SpecialMesh",w2)
  864. sp.MeshType = "Wedge"
  865. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  866. w2:BreakJoints()
  867. w2.Anchored = true
  868. w2.Parent = workspace
  869. w2.Transparency = 0.7
  870. table.insert(Effects,{w2,"Disappear",.01})
  871. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  872. table.insert(list,w2)
  873. end
  874. return unpack(list)
  875. end
  876.  
  877.  
  878. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  879. if hit.Parent == nil then
  880. return
  881. end
  882. local h = hit.Parent:FindFirstChild("Humanoid")
  883. for _, v in pairs(hit.Parent:children()) do
  884. if v:IsA("Humanoid") then
  885. h = v
  886. end
  887. end
  888. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  889. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  890. return
  891. end
  892. local c = Create("ObjectValue")({
  893. Name = "creator",
  894. Value = owner,
  895. Parent = h
  896. })
  897. game:GetService("Debris"):AddItem(c, 0.5)
  898. if HitSound ~= nil and HitPitch ~= nil then
  899. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  900. end
  901. local Damage = math.random(minim, maxim)
  902. local blocked = false
  903. local block = hit.Parent:findFirstChild("Block")
  904. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  905. blocked = true
  906. block.Value = block.Value - 1
  907. print(block.Value)
  908. end
  909. if blocked == false then
  910. HitHealth = h.Health
  911. h.Health = h.Health - Damage
  912. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  913. print("gained kill")
  914. killcount = killcount + 1
  915. end
  916. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  917. else
  918. h.Health = h.Health - Damage / 2
  919. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  920. end
  921. if Type == "Knockdown" then
  922. local hum = hit.Parent.Humanoid
  923. hum.PlatformStand = true
  924. coroutine.resume(coroutine.create(function(HHumanoid)
  925. swait(1)
  926. HHumanoid.PlatformStand = false
  927. end), hum)
  928. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  929. local bodvol = Create("BodyVelocity")({
  930. velocity = angle * knockback,
  931. P = 5000,
  932. maxForce = Vector3.new(8000, 8000, 8000),
  933. Parent = hit
  934. })
  935. local rl = Create("BodyAngularVelocity")({
  936. P = 3000,
  937. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  938. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  939. Parent = hit
  940. })
  941. game:GetService("Debris"):AddItem(bodvol, 0.5)
  942. game:GetService("Debris"):AddItem(rl, 0.5)
  943. elseif Type == "Normal" then
  944. local vp = Create("BodyVelocity")({
  945. P = 500,
  946. maxForce = Vector3.new(math.huge, 0, math.huge),
  947. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  948. })
  949. if knockback > 0 then
  950. vp.Parent = hit.Parent.Torso
  951. end
  952. game:GetService("Debris"):AddItem(vp, 0.5)
  953. elseif Type == "Up" then
  954. local bodyVelocity = Create("BodyVelocity")({
  955. velocity = Vector3.new(0, 20, 0),
  956. P = 5000,
  957. maxForce = Vector3.new(8000, 8000, 8000),
  958. Parent = hit
  959. })
  960. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  961. local bodyVelocity = Create("BodyVelocity")({
  962. velocity = Vector3.new(0, 20, 0),
  963. P = 5000,
  964. maxForce = Vector3.new(8000, 8000, 8000),
  965. Parent = hit
  966. })
  967. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  968. elseif Type == "Leech" then
  969. local hum = hit.Parent.Humanoid
  970. if hum ~= nil then
  971. for i = 0, 2 do
  972. 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)
  973. end
  974. Humanoid.Health = Humanoid.Health + 10
  975. end
  976. elseif Type == "UpKnock" then
  977. local hum = hit.Parent.Humanoid
  978. hum.PlatformStand = true
  979. if hum ~= nil then
  980. hitr = true
  981. end
  982. coroutine.resume(coroutine.create(function(HHumanoid)
  983. swait(5)
  984. HHumanoid.PlatformStand = false
  985. hitr = false
  986. end), hum)
  987. local bodyVelocity = Create("BodyVelocity")({
  988. velocity = Vector3.new(0, 20, 0),
  989. P = 5000,
  990. maxForce = Vector3.new(8000, 8000, 8000),
  991. Parent = hit
  992. })
  993. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  994. local bodyVelocity = Create("BodyVelocity")({
  995. velocity = Vector3.new(0, 20, 0),
  996. P = 5000,
  997. maxForce = Vector3.new(8000, 8000, 8000),
  998. Parent = hit
  999. })
  1000. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1001. elseif Type == "Snare" then
  1002. local bp = Create("BodyPosition")({
  1003. P = 2000,
  1004. D = 100,
  1005. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1006. position = hit.Parent.Torso.Position,
  1007. Parent = hit.Parent.Torso
  1008. })
  1009. game:GetService("Debris"):AddItem(bp, 1)
  1010. elseif Type == "Slashnare" then
  1011. 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)
  1012. for i = 1, math.random(4, 5) do
  1013. 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)
  1014. end
  1015. local bp = Create("BodyPosition")({
  1016. P = 2000,
  1017. D = 100,
  1018. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1019. position = hit.Parent.Torso.Position,
  1020. Parent = hit.Parent.Torso
  1021. })
  1022. game:GetService("Debris"):AddItem(bp, 1)
  1023. elseif Type == "Spike" then
  1024. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1025. local bp = Create("BodyPosition")({
  1026. P = 2000,
  1027. D = 100,
  1028. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1029. position = hit.Parent.Torso.Position,
  1030. Parent = hit.Parent.Torso
  1031. })
  1032. game:GetService("Debris"):AddItem(bp, 1)
  1033. elseif Type == "Freeze" then
  1034. local BodPos = Create("BodyPosition")({
  1035. P = 50000,
  1036. D = 1000,
  1037. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1038. position = hit.Parent.Torso.Position,
  1039. Parent = hit.Parent.Torso
  1040. })
  1041. local BodGy = Create("BodyGyro")({
  1042. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1043. P = 20000,
  1044. Parent = hit.Parent.Torso,
  1045. cframe = hit.Parent.Torso.CFrame
  1046. })
  1047. hit.Parent.Torso.Anchored = true
  1048. coroutine.resume(coroutine.create(function(Part)
  1049. swait(1.5)
  1050. Part.Anchored = false
  1051. end), hit.Parent.Torso)
  1052. game:GetService("Debris"):AddItem(BodPos, 3)
  1053. game:GetService("Debris"):AddItem(BodGy, 3)
  1054. end
  1055. local debounce = Create("BoolValue")({
  1056. Name = "DebounceHit",
  1057. Parent = hit.Parent,
  1058. Value = true
  1059. })
  1060. game:GetService("Debris"):AddItem(debounce, Delay)
  1061. c = Instance.new("ObjectValue")
  1062. c.Name = "creator"
  1063. c.Value = Player
  1064. c.Parent = h
  1065. game:GetService("Debris"):AddItem(c, 0.5)
  1066. end
  1067. end
  1068. function ShowDamage(Pos, Text, Time, Color)
  1069. local Rate = 0.03333333333333333
  1070. local Pos = Pos or Vector3.new(0, 0, 0)
  1071. local Text = Text or ""
  1072. local Time = Time or 2
  1073. local Color = Color or Color3.new(1, 0, 1)
  1074. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1075. EffectPart.Anchored = true
  1076. local BillboardGui = Create("BillboardGui")({
  1077. Size = UDim2.new(3, 0, 3, 0),
  1078. Adornee = EffectPart,
  1079. Parent = EffectPart
  1080. })
  1081. local TextLabel = Create("TextLabel")({
  1082. BackgroundTransparency = 1,
  1083. Size = UDim2.new(1, 0, 1, 0),
  1084. Text = Text,
  1085. TextColor3 = Color,
  1086. TextScaled = true,
  1087. Font = Enum.Font.ArialBold,
  1088. Parent = BillboardGui
  1089. })
  1090. game.Debris:AddItem(EffectPart, Time + 0.1)
  1091. EffectPart.Parent = game:GetService("Workspace")
  1092. delay(0, function()
  1093. local Frames = Time / Rate
  1094. for Frame = 1, Frames do
  1095. wait(Rate)
  1096. local Percent = Frame / Frames
  1097. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1098. TextLabel.TextTransparency = Percent
  1099. end
  1100. if EffectPart and EffectPart.Parent then
  1101. EffectPart:Destroy()
  1102. end
  1103. end)
  1104. end
  1105. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1106. for _, c in pairs(workspace:children()) do
  1107. local hum = c:findFirstChild("Humanoid")
  1108. if hum ~= nil then
  1109. local head = c:findFirstChild("Torso")
  1110. if head ~= nil then
  1111. local targ = head.Position - Part.Position
  1112. local mag = targ.magnitude
  1113. if magni >= mag and c.Name ~= Player.Name then
  1114. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1115. end
  1116. end
  1117. end
  1118. end
  1119. end
  1120.  
  1121. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1122. for _, c in pairs(workspace:children()) do
  1123. local hum = c:findFirstChild("Humanoid")
  1124. if hum ~= nil then
  1125. local head = c:findFirstChild("Torso")
  1126. if head ~= nil then
  1127. local targ = head.Position - Part.Position
  1128. local mag = targ.magnitude
  1129. if magni >= mag and c.Name ~= Player.Name then
  1130. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  1131. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1132. end
  1133. end
  1134. end
  1135. end
  1136. end
  1137.  
  1138. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1139. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1140. end
  1141.  
  1142. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1143. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1144. prt.Anchored=true
  1145. prt.CFrame=cframe
  1146. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1147. --http://www.roblox.com/asset/?id=4770560
  1148. game:GetService("Debris"):AddItem(prt,2)
  1149. CF=prt.CFrame
  1150. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1151. for i=0,1,0.2 do
  1152. wait()
  1153. Part.CFrame=CF*cf(0,0,-0.4)
  1154. end
  1155. for i=0,1,delay do
  1156. wait()
  1157. --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)
  1158. Mesh.Scale=Mesh.Scale
  1159. end
  1160. for i=0,1,0.1 do
  1161. wait()
  1162. Part.Transparency=i
  1163. end
  1164. Part.Parent=nil
  1165. end),prt,msh,CF)
  1166. end
  1167.  
  1168. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1169. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1170. prt.Anchored=true
  1171. prt.Material = "Neon"
  1172. prt.CFrame=cframe
  1173. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1174. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1175. game:GetService("Debris"):AddItem(prt,5)
  1176. coroutine.resume(coroutine.create(function(Part,Mesh)
  1177. for i=0,1,delay do
  1178. swait()
  1179. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1180. Part.Transparency=i
  1181. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1182. end
  1183. Part.Parent=nil
  1184. end),prt,msh)
  1185. end
  1186.  
  1187. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1188. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1189. prt.Anchored=true
  1190. prt.Material = "Neon"
  1191. prt.CFrame=cframe
  1192. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1193. game:GetService("Debris"):AddItem(prt,5)
  1194. coroutine.resume(coroutine.create(function(Part,Mesh)
  1195. local rtype = rottype
  1196. for i=0,1,delay do
  1197. swait()
  1198. if rtype == 1 then
  1199. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1200. elseif rtype == 2 then
  1201. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1202. end
  1203. Part.Transparency=i
  1204. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1205. end
  1206. Part.Parent=nil
  1207. end),prt,msh)
  1208. end
  1209.  
  1210. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1211. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1212. prt.Anchored=true
  1213. prt.CFrame=cframe
  1214. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1215. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1216. game:GetService("Debris"):AddItem(prt,5)
  1217. coroutine.resume(coroutine.create(function(Part,Mesh)
  1218. for i=0,1,delay do
  1219. wait()
  1220. Part.Transparency=i
  1221. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1222. end
  1223. Part.Parent=nil
  1224. end),prt,msh)
  1225. end
  1226.  
  1227. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1228. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1229. prt.Anchored=true
  1230. prt.Material = "Neon"
  1231. prt.CFrame=cframe
  1232. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1233. game:GetService("Debris"):AddItem(prt,5)
  1234. coroutine.resume(coroutine.create(function(Part,Mesh)
  1235. local rtype = rottype
  1236. for i=0,1,delay do
  1237. swait()
  1238. if rtype == 1 then
  1239. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1240. elseif rtype == 2 then
  1241. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1242. end
  1243. Part.Transparency=i
  1244. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1245. end
  1246. Part.Parent=nil
  1247. end),prt,msh)
  1248. end
  1249.  
  1250. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1251. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1252. prt.Anchored=true
  1253. prt.Material = "Neon"
  1254. prt.CFrame=cframe
  1255. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1256. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1257. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1258. game:GetService("Debris"):AddItem(prt,5)
  1259. coroutine.resume(coroutine.create(function(Part,Mesh)
  1260. local rtype = rottype
  1261. for i=0,1,delay do
  1262. swait()
  1263. if rtype == 1 then
  1264. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1265. elseif rtype == 2 then
  1266. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1267. end
  1268. dec.Transparency=i
  1269. dec2.Transparency=i
  1270. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1271. end
  1272. Part.Parent=nil
  1273. end),prt,msh)
  1274. end
  1275.  
  1276. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1277. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1278. prt.Anchored=true
  1279. prt.Material = "Neon"
  1280. prt.CFrame=cframe
  1281. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1282. game:GetService("Debris"):AddItem(prt,5)
  1283. coroutine.resume(coroutine.create(function(Part,Mesh)
  1284. local rtype = rottype
  1285. for i=0,1,delay do
  1286. swait()
  1287. if rtype == 1 then
  1288. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1289. elseif rtype == 2 then
  1290. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1291. end
  1292. prt.Transparency=i
  1293. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1294. end
  1295. Part.Parent=nil
  1296. end),prt,msh)
  1297. end
  1298.  
  1299. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1300. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1301. prt.Anchored=true
  1302. prt.Material = "Neon"
  1303. prt.CFrame=cframe
  1304. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1305. game:GetService("Debris"):AddItem(prt,5)
  1306. coroutine.resume(coroutine.create(function(Part,Mesh)
  1307. local rtype = rottype
  1308. for i=0,1,delay do
  1309. swait()
  1310. if rtype == 1 then
  1311. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1312. elseif rtype == 2 then
  1313. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1314. end
  1315. prt.Transparency=i
  1316. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1317. end
  1318. Part.Parent=nil
  1319. end),prt,msh)
  1320. end
  1321.  
  1322. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1323. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1324. prt.Anchored=true
  1325. prt.Material = "Neon"
  1326. prt.CFrame=cframe
  1327. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1328. game:GetService("Debris"):AddItem(prt,5)
  1329. coroutine.resume(coroutine.create(function(Part,Mesh)
  1330. local rtype = rottype
  1331. for i=0,1,delay do
  1332. swait()
  1333. if rtype == 1 then
  1334. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1335. elseif rtype == 2 then
  1336. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1337. end
  1338. prt.Transparency=i
  1339. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1340. end
  1341. Part.Parent=nil
  1342. end),prt,msh)
  1343. end
  1344.  
  1345. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1346. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1347. prt.Anchored=true
  1348. prt.Material = "Neon"
  1349. prt.CFrame=cframe
  1350. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1351. game:GetService("Debris"):AddItem(prt,5)
  1352. coroutine.resume(coroutine.create(function(Part,Mesh)
  1353. local rtype = rottype
  1354. for i=0,1,delay do
  1355. swait()
  1356. if rtype == 1 then
  1357. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1358. elseif rtype == 2 then
  1359. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1360. end
  1361. prt.Transparency=i
  1362. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1363. end
  1364. Part.Parent=nil
  1365. end),prt,msh)
  1366. end
  1367.  
  1368. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1369. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1370. prt.Anchored=false
  1371. prt.CFrame=cframe
  1372. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1373. local wld=weld(prt,prt,Parent,cframe)
  1374. game:GetService("Debris"):AddItem(prt,5)
  1375. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1376. for i=0,1,delay do
  1377. wait()
  1378. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1379. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1380. Part.Transparency=i
  1381. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1382. end
  1383. Part.Parent=nil
  1384. end),prt,msh,wld)
  1385. end
  1386.  
  1387. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1388. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1389. prt.Anchored=false
  1390. prt.CFrame=cframe
  1391. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1392. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1393. game:GetService("Debris"):AddItem(prt,5)
  1394. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1395. for i=0,1,delay do
  1396. wait()
  1397. Weld.C0=euler(i*20,0,0)
  1398. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1399. Part.Transparency=i
  1400. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1401. end
  1402. Part.Parent=nil
  1403. end),prt,msh,wld)
  1404. end
  1405.  
  1406. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1407. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1408. prt.Anchored=true
  1409. prt.CFrame=cframe
  1410. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1411. game:GetService("Debris"):AddItem(prt,2)
  1412. coroutine.resume(coroutine.create(function(Part,Mesh)
  1413. for i=0,1,delay do
  1414. wait()
  1415. Part.CFrame=Part.CFrame
  1416. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1417. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1418. prt2.Anchored=true
  1419. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1420. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1421. game:GetService("Debris"):AddItem(prt2,2)
  1422. coroutine.resume(coroutine.create(function(Part,Mesh)
  1423. for i=0,1,0.1 do
  1424. wait()
  1425. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1426. end
  1427. Part.Parent=nil
  1428. end),prt2,msh2)
  1429. end
  1430. for i=0,1,delay*2 do
  1431. wait()
  1432. Part.CFrame=Part.CFrame
  1433. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1434. end
  1435. Part.Parent=nil
  1436. end),prt,msh)
  1437. end
  1438.  
  1439. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1440. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1441. prt.Anchored=true
  1442. prt.CFrame=cframe
  1443. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1444. game:GetService("Debris"):AddItem(prt,2)
  1445. coroutine.resume(coroutine.create(function(Part,Mesh)
  1446. for i=0,1,delay do
  1447. wait()
  1448. Part.CFrame=Part.CFrame
  1449. Part.Transparency=i
  1450. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1451. end
  1452. Part.Parent=nil
  1453. end),prt,msh)
  1454. end
  1455.  
  1456. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1457. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1458. prt.Anchored=true
  1459. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1460. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1461. game:GetService("Debris"):AddItem(prt,2)
  1462. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1463. CF=Part.CFrame
  1464. Numbb=0
  1465. randnumb=math.random()/10
  1466. rand1=math.random()/10
  1467. for i=0,1,rand1 do
  1468. wait()
  1469. CF=CF*cf(0,math.random()/2,0)
  1470. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1471. Part.CFrame=CF*euler(Numbb,0,0)
  1472. Part.Transparency=i
  1473. Numbb=Numbb+randnumb
  1474. end
  1475. Part.Parent=nil
  1476. end),prt,CF,Numbb,randnumb)
  1477. end
  1478.  
  1479. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1480. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1481. prt.Anchored=true
  1482. prt.CFrame=cframe
  1483. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1484. game:GetService("Debris"):AddItem(prt,5)
  1485. coroutine.resume(coroutine.create(function(Part,Mesh)
  1486. for i=0,1,delay do
  1487. wait()
  1488. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1489. Part.Transparency=i
  1490. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1491. end
  1492. Part.Parent=nil
  1493. end),prt,msh)
  1494. end
  1495.  
  1496. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1497. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1498. prt.Anchored=true
  1499. prt.CFrame=cframe
  1500. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1501. game:GetService("Debris"):AddItem(prt,2)
  1502. coroutine.resume(coroutine.create(function(Part,Mesh)
  1503. for i=0,1,delay do
  1504. wait()
  1505. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1506. Part.Transparency=i
  1507. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1508. end
  1509. Part.Parent=nil
  1510. end),prt,msh)
  1511. end
  1512.  
  1513. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1514. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1515. prt.Anchored=true
  1516. prt.CFrame=cframe*cf(x,y,z)
  1517. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1518. game:GetService("Debris"):AddItem(prt,5)
  1519. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1520. local num=math.random()
  1521. local num2=math.random(-3,2)+math.random()
  1522. local numm=0
  1523. for i=0,1,delay*2 do
  1524. swait()
  1525. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1526. Part.Transparency=i
  1527. numm=numm+0.01
  1528. end
  1529. Part.Parent=nil
  1530. Mesh.Parent=nil
  1531. end),prt,msh,x,y,z)
  1532. end
  1533.  
  1534. function dmgstart(dmg,what)
  1535. hitcon = what.Touched:connect(function(hit)
  1536. local hum = hit.Parent:FindFirstChild("Humanoid")
  1537. if hum and not hum:IsDescendantOf(Character) then
  1538. hum:TakeDamage(dmg)
  1539. end
  1540. end)
  1541. end
  1542.  
  1543. function dmgstop()
  1544. hitcon:disconnect()
  1545. end
  1546.  
  1547. function Cloak()
  1548. Face.Parent=nil
  1549. cloaked=true
  1550. for _,v in pairs(Torso.Parent:children()) do
  1551. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1552. coroutine.resume(coroutine.create(function()
  1553. for i=0,1,0.2 do
  1554. wait()
  1555. v.Transparency=i
  1556. end
  1557. v.Transparency=1
  1558. end))
  1559. end
  1560. if v.className=="Hat" then
  1561. hatp=v.Handle
  1562. coroutine.resume(coroutine.create(function(derp)
  1563. for i=0,1,0.2 do
  1564. wait()
  1565. derp.Transparency=i
  1566. end
  1567. derp.Transparency=1
  1568. end),hatp)
  1569. end
  1570. end
  1571. for _,v in pairs(m:children()) do
  1572. if v.className=="Part" then
  1573. coroutine.resume(coroutine.create(function()
  1574. for i=0,1,0.2 do
  1575. wait()
  1576. v.Transparency=i
  1577. end
  1578. v.Transparency=1
  1579. end))
  1580. end
  1581. end
  1582. end
  1583.  
  1584. function UnCloak()
  1585. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1586. Face.Parent=Head
  1587. cloaked=false
  1588. for _,v in pairs(Torso.Parent:children()) do
  1589. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1590. coroutine.resume(coroutine.create(function()
  1591. for i=0,1,0.1 do
  1592. wait()
  1593. v.Transparency=v.Transparency-0.1
  1594. end
  1595. v.Transparency=0
  1596. end))
  1597. end
  1598. if v.className=="Hat" then
  1599. hatp=v.Handle
  1600. coroutine.resume(coroutine.create(function(derp)
  1601. for i=0,1,0.1 do
  1602. wait()
  1603. derp.Transparency=derp.Transparency-0.1
  1604. end
  1605. derp.Transparency=0
  1606. end),hatp)
  1607. end
  1608. end
  1609. for _,v in pairs(m:children()) do
  1610. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1611. coroutine.resume(coroutine.create(function()
  1612. for i=0,1,0.1 do
  1613. wait()
  1614. v.Transparency=v.Transparency-0.1
  1615. end
  1616. v.Transparency=0
  1617. end))
  1618. v.Transparency=0
  1619. end
  1620. end
  1621. end
  1622.  
  1623. local origcolor = BrickColor.new("Dark indigo")
  1624. ---- This section of explosions.
  1625. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1626. local expart = Instance.new("Part",char)
  1627. local expart2 = Instance.new("Part",char)
  1628. local rin = Instance.new("Part",char)
  1629. local rin2 = Instance.new("Part",char)
  1630. local partMesh = Instance.new("SpecialMesh",expart)
  1631. partMesh.MeshType = "Sphere"
  1632. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1633. partMesh2.MeshType = "Sphere"
  1634. local partMesh3 = Instance.new("SpecialMesh",rin)
  1635. partMesh3.MeshType = "Brick"
  1636. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1637. partMesh4.MeshType = "Brick"
  1638. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1639. partMesh.Scale = vt(rad,rad,rad)
  1640. expart.Size = vt(1,1,1)
  1641. expart.Transparency = 1
  1642. expart.Anchored = true
  1643. expart.Material = "Neon"
  1644. expart.BrickColor = bc("White")
  1645. expart.CFrame = par.CFrame
  1646. partMesh2.Scale = vt(rad,rad,rad)
  1647. expart2.Size = vt(1.15,1.15,1.15)
  1648. expart2.Transparency = 0.75
  1649. expart2.Anchored = true
  1650. expart2.Material = "Glass"
  1651. expart2.BrickColor = par.BrickColor
  1652. expart2.CFrame = par.CFrame
  1653. rin.Size = vt(1.15,1.15,1.15)
  1654. rin.Transparency = 1
  1655. rin.Anchored = true
  1656. rin.Material = "Neon"
  1657. rin.BrickColor = par.BrickColor
  1658. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1659. rin2.Size = vt(1.15,1.15,1.15)
  1660. rin2.Transparency = 1
  1661. rin2.Anchored = true
  1662. rin2.Material = "Neon"
  1663. rin2.BrickColor = par.BrickColor
  1664. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1665. partMesh3.Scale = vt(0,1,0)
  1666. partMesh4.Scale = vt(0,1,0)
  1667. local dec2 = Instance.new("Decal", rin)
  1668. dec2.Face = "Top"
  1669. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1670. dec2.Parent = rin
  1671. local dec2b = dec2:Clone()
  1672. dec2b.Face = "Bottom"
  1673. dec2b.Parent = rin
  1674.  
  1675. local dec2a = Instance.new("Decal", rin2)
  1676. dec2a.Face = "Top"
  1677. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1678. dec2a.Parent = rin2
  1679. local dec2ab = dec2a:Clone()
  1680. dec2ab.Face = "Bottom"
  1681. dec2ab.Parent = rin2
  1682. expart.CanCollide = false
  1683. expart2.CanCollide = false
  1684. rin.CanCollide = false
  1685. rin2.CanCollide = false
  1686. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1687. local value = 1*rad/6.5
  1688. for i = 0, 199 do
  1689. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1690. expart.CFrame = expart.CFrame
  1691. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1692. expart2.CFrame = expart.CFrame
  1693. value = value - 0.035*rad/30
  1694. if value < 7.5 then
  1695. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1696. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1697. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1698. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1699. end
  1700. if value < 0 then
  1701. dec2.Transparency = dec2.Transparency + 0.025
  1702. dec2a.Transparency = dec2a.Transparency + 0.025
  1703. dec2b.Transparency = dec2b.Transparency + 0.025
  1704. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1705. expart.Transparency = expart.Transparency + 0.025
  1706. expart2.Transparency = expart2.Transparency + 0.025
  1707. rin.Transparency = rin.Transparency + 0.025
  1708. rin2.Transparency = rin2.Transparency + 0.025
  1709. end
  1710. swait()
  1711. end
  1712. game:GetService("Debris"):AddItem(expart, 1)
  1713. game:GetService("Debris"):AddItem(expart2, 1)
  1714. game:GetService("Debris"):AddItem(rin, 1)
  1715. game:GetService("Debris"):AddItem(rin2, 1)
  1716. end
  1717.  
  1718. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1719. local expart = Instance.new("Part",char)
  1720. local expart2 = Instance.new("Part",char)
  1721. local partMesh = Instance.new("SpecialMesh",expart)
  1722. partMesh.MeshType = "Sphere"
  1723. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1724. partMesh2.MeshType = "Sphere"
  1725. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1726. partMesh.Scale = vt(rad,rad,rad)
  1727. expart.Size = vt(1,1,1)
  1728. expart.Transparency = 0
  1729. expart.Anchored = true
  1730. expart.Material = "Neon"
  1731. expart.BrickColor = bc("White")
  1732. expart.CFrame = par.CFrame
  1733. partMesh2.Scale = vt(rad,rad,rad)
  1734. expart2.Size = vt(1.15,1.15,1.15)
  1735. expart2.Transparency = 0.5
  1736. expart2.Anchored = true
  1737. expart2.Material = "Neon"
  1738. expart2.BrickColor = par.BrickColor
  1739. expart2.CFrame = par.CFrame
  1740. expart.CanCollide = false
  1741. expart2.CanCollide = false
  1742. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1743. local value = 1*rad/6.5
  1744. for i = 0, 75 do
  1745. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1746. expart.CFrame = expart.CFrame
  1747. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1748. expart2.CFrame = expart.CFrame
  1749. value = value - 0.035*rad/5
  1750. if value < 0 then
  1751. value = 0
  1752. expart.Transparency = expart.Transparency + 0.05
  1753. expart2.Transparency = expart2.Transparency + 0.05
  1754. end
  1755. swait()
  1756. end
  1757. game:GetService("Debris"):AddItem(expart, 1)
  1758. game:GetService("Debris"):AddItem(expart2, 1)
  1759. end
  1760.  
  1761. function AreaDanger(rad,par,mindam,maxdam)
  1762. local expart = Instance.new("Part",char)
  1763. local partMesh = Instance.new("SpecialMesh",expart)
  1764. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1765. partMesh.MeshType = "Sphere"
  1766. partMesh.Scale = vt(rad,rad,rad)
  1767. expart.Size = vt(1,1,1)
  1768. expart.Transparency = 0.5
  1769. expart.Anchored = true
  1770. expart.Material = "Neon"
  1771. expart.CanCollide = false
  1772. expart.BrickColor = par.BrickColor
  1773. expart.CFrame = par.CFrame
  1774. local value = 1*rad/5
  1775. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1776. for i = 0, 14 do
  1777. wait()
  1778. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1779. expart.CFrame = expart.CFrame
  1780. value = value - 0.035*rad
  1781. if value < 0 then
  1782. value = 0
  1783. end
  1784. end
  1785. wait(0.25)
  1786. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1787. wait(0.5)
  1788. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1789. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1790. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1791. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1792. for i = 0, 14 do
  1793. wait()
  1794. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1795. expart.CFrame = expart.CFrame
  1796. value = value - 0.035*rad/2
  1797. end
  1798. expart.Transparency = 1
  1799. game:GetService("Debris"):AddItem(expart, 5)
  1800. end
  1801.  
  1802. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1803. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1804. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1805. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1806. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1807. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1808. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1809. for i = 0, 24 do
  1810. 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))
  1811. end
  1812. for i = 0, 24 do
  1813. local expart = Instance.new("Part",char)
  1814. expart.Transparency = 1
  1815. expart.Anchored = true
  1816. expart.CanCollide = false
  1817. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1818. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1819. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1820. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1821. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1822. for i = 0, 9 do
  1823. 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))
  1824. end
  1825. game:GetService("Debris"):AddItem(expart, 2)
  1826. wait(0.1)
  1827. end
  1828. end
  1829.  
  1830. function EXterPlosion(par)
  1831. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1832. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1833. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1834. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1835. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  1836. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1837. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1838. for i = 0, 24 do
  1839. 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))
  1840. end
  1841. for i = 0, 24 do
  1842. 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))
  1843. end
  1844. end
  1845. ----
  1846.  
  1847. local stackingpower = 1
  1848.  
  1849. function HellsCore()
  1850. attack = true
  1851. --[[for i = 0,1,0.1 do
  1852. swait()
  1853. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  1854. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1855. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1856. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1857. end]]--
  1858.  
  1859. local rng = Instance.new("Part", char)
  1860. CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
  1861. rng.Anchored = true
  1862. rng.BrickColor = origcolor
  1863. rng.CanCollide = false
  1864. rng.FormFactor = 3
  1865. rng.Name = "Ring"
  1866. rng.Material = "Neon"
  1867. rng.Size = Vector3.new(1, 1, 1)
  1868. rng.Transparency = 1
  1869. rng.TopSurface = 0
  1870. rng.BottomSurface = 0
  1871. rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
  1872. local rngm = Instance.new("SpecialMesh", rng)
  1873. rngm.MeshType = "Brick"
  1874. local dec = Instance.new("Decal",rng)
  1875. dec.Texture = "http://www.roblox.com/asset/?id=401466968"
  1876. dec.Face = "Top"
  1877. local dec2 = dec:Clone()
  1878. dec2.Parent = rng
  1879. dec2.Face = "Bottom"
  1880.  
  1881. local scaler2 = 1
  1882. scaler2 = 1*3
  1883. for i = 0,10,0.1 do
  1884. swait()
  1885. scaler2 = scaler2 - 0.01*3
  1886. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  1887. end
  1888. wait(3)
  1889. for i = 0,10,0.1 do
  1890. swait()
  1891. scaler2 = scaler2 - 0.01*3
  1892. dec.Transparency = dec.Transparency + 0.01
  1893. dec2.Transparency = dec2.Transparency + 0.01
  1894. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  1895. end
  1896. rng:Destroy()
  1897. attack = false
  1898. end
  1899.  
  1900.  
  1901. function FaceMouse()
  1902. Cam = workspace.CurrentCamera
  1903. return {
  1904. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1905. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1906. }
  1907. end
  1908.  
  1909. function FaceMouse2()
  1910. Cam = workspace.CurrentCamera
  1911. return {
  1912. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  1913. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1914. }
  1915. end
  1916.  
  1917.  
  1918. local HoldingZ = false
  1919. local HoldingX = false
  1920. local HoldingC = false
  1921. local HoldingV = false
  1922. local HoldingB = false
  1923.  
  1924.  
  1925. function RingEffect(pos,startsize,size,col)
  1926. local lb = Instance.new("Part")
  1927. lb.Parent = char
  1928. lb.BrickColor = col
  1929. lb.CanCollide = false
  1930. lb.Material = "Neon"
  1931. lb.Anchored = true
  1932. lb.TopSurface = 0
  1933. lb.BottomSurface = 0
  1934. lb.Transparency = 1
  1935. lb.Size = vt(1,1,1)
  1936. lb.CFrame = pos
  1937. local thingery = Instance.new("SpecialMesh",lb)
  1938. thingery.MeshType = "Brick"
  1939. thingery.Scale = vt(startsize,0.1,startsize)
  1940. local dec2 = Instance.new("Texture", lb)
  1941. dec2.Face = "Top"
  1942. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1943. dec2.Color3 = lb.Color
  1944. dec2.Parent = lb
  1945. dec2.StudsPerTileU = startsize
  1946. dec2.StudsPerTileV = startsize
  1947. local dec2b = dec2:Clone()
  1948. dec2b.Face = "Bottom"
  1949. dec2b.Parent = lb
  1950. local randomrot = math.random(1,2)
  1951. coroutine.resume(coroutine.create(function()
  1952. for i = 0, 19 do
  1953. swait()
  1954. if randomrot == 1 then
  1955. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1956. elseif randomrot == 2 then
  1957. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1958. end
  1959. dec2.Transparency = dec2.Transparency + 0.05
  1960. dec2b.Transparency = dec2b.Transparency + 0.05
  1961. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  1962. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  1963. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  1964. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  1965. thingery.Scale = thingery.Scale + vt(size,0,size)
  1966. end
  1967. lb:Destroy()
  1968. end))
  1969. end
  1970.  
  1971. function SlowRingEffect(pos,startsize,size,col)
  1972. local lb = Instance.new("Part")
  1973. lb.Parent = char
  1974. lb.BrickColor = col
  1975. lb.CanCollide = false
  1976. lb.Material = "Neon"
  1977. lb.Anchored = true
  1978. lb.TopSurface = 0
  1979. lb.BottomSurface = 0
  1980. lb.Transparency = 1
  1981. lb.Size = vt(1,1,1)
  1982. lb.CFrame = pos
  1983. local thingery = Instance.new("SpecialMesh",lb)
  1984. thingery.MeshType = "Brick"
  1985. thingery.Scale = vt(startsize,0.1,startsize)
  1986. local dec2 = Instance.new("Decal", lb)
  1987. dec2.Face = "Top"
  1988. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1989. dec2.Color3 = lb.Color
  1990. dec2.Parent = lb
  1991. local dec2b = dec2:Clone()
  1992. dec2b.Face = "Bottom"
  1993. dec2b.Parent = lb
  1994. local randomrot = math.random(1,2)
  1995. coroutine.resume(coroutine.create(function()
  1996. for i = 0, 49 do
  1997. swait()
  1998. if randomrot == 1 then
  1999. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  2000. elseif randomrot == 2 then
  2001. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  2002. end
  2003. dec2.Transparency = dec2.Transparency + 0.02
  2004. dec2b.Transparency = dec2b.Transparency + 0.02
  2005. thingery.Scale = thingery.Scale + vt(size,0,size)
  2006. end
  2007. lb:Destroy()
  2008. end))
  2009. end
  2010.  
  2011.  
  2012. function groundringaa(pos)
  2013. local rng = Instance.new("Part", char)
  2014. rng.Anchored = true
  2015. rng.BrickColor = origcolor
  2016. rng.CanCollide = false
  2017. rng.FormFactor = 3
  2018. rng.Name = "Ring"
  2019. rng.Size = Vector3.new(1, 1, 1)
  2020. rng.Transparency = 1
  2021. rng.TopSurface = 0
  2022. rng.BottomSurface = 0
  2023. rng.CFrame = pos
  2024. local rngm = Instance.new("SpecialMesh", rng)
  2025. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2026. rngm.Scale = Vector3.new(100,100,5)
  2027. local scaler2 = -10/2
  2028. coroutine.resume(coroutine.create(function()
  2029. for i = 0,10,0.1 do
  2030. swait()
  2031. scaler2 = scaler2 + 0.1/2
  2032. rng.Transparency = rng.Transparency - 0.01
  2033. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  2034. end
  2035. rng:Destroy()
  2036. end))
  2037. end
  2038.  
  2039. function groundringbb(pos)
  2040. local rng = Instance.new("Part", char)
  2041. rng.Anchored = true
  2042. rng.BrickColor = origcolor
  2043. rng.CanCollide = false
  2044. rng.FormFactor = 3
  2045. rng.Name = "Ring"
  2046. rng.Size = Vector3.new(1, 1, 1)
  2047. rng.Transparency = 0
  2048. rng.TopSurface = 0
  2049. rng.BottomSurface = 0
  2050. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2051. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2052. local rngm = Instance.new("SpecialMesh", rng)
  2053. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2054. rngm.Scale = Vector3.new(0,0,5)
  2055. local scaler2 = 10
  2056. coroutine.resume(coroutine.create(function()
  2057. for i = 0,10*2,0.1 do
  2058. swait()
  2059. scaler2 = scaler2 - 0.1/2
  2060. rng.Transparency = rng.Transparency + 0.005
  2061. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2062. end
  2063. rng:Destroy()
  2064. end))
  2065. end
  2066.  
  2067. function groundglowaa(pos)
  2068. local rng = Instance.new("Part", char)
  2069. rng.Anchored = true
  2070. rng.BrickColor = origcolor
  2071. rng.CanCollide = false
  2072. rng.FormFactor = 3
  2073. rng.Material = "Neon"
  2074. rng.Name = "Ring"
  2075. rng.Size = Vector3.new(1, 1, 1)
  2076. rng.Transparency = 0
  2077. rng.TopSurface = 0
  2078. rng.BottomSurface = 0
  2079. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2080. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2081. local rngm = Instance.new("SpecialMesh", rng)
  2082. rngm.MeshType = "Sphere"
  2083. rngm.Scale = Vector3.new(0,0,25)
  2084. local scaler2 = 10*2
  2085. coroutine.resume(coroutine.create(function()
  2086. for i = 0,10*2,0.1 do
  2087. swait()
  2088. scaler2 = scaler2 - 0.1*2/2
  2089. rng.Transparency = rng.Transparency + 0.005
  2090. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  2091. end
  2092. rng:Destroy()
  2093. end))
  2094. end
  2095.  
  2096. function bemaa(pos)
  2097. local rng = Instance.new("Part", char)
  2098. rng.Anchored = true
  2099. rng.BrickColor = origcolor
  2100. rng.CanCollide = false
  2101. rng.FormFactor = 3
  2102. rng.Material = "Neon"
  2103. rng.Name = "Ring"
  2104. rng.Size = Vector3.new(1, 1, 1)
  2105. rng.Transparency = 0
  2106. rng.TopSurface = 0
  2107. rng.BottomSurface = 0
  2108. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2109. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2110. local rngm = Instance.new("SpecialMesh", rng)
  2111. rngm.MeshType = "Sphere"
  2112. rngm.Scale = Vector3.new(0,0,10000)
  2113. local scaler2 = 1
  2114. coroutine.resume(coroutine.create(function()
  2115. for i = 0,99,0.1 do
  2116. swait()
  2117. scaler2 = scaler2 - 0.0025
  2118. rng.Transparency = rng.Transparency + 0.0025
  2119. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2120. end
  2121. rng:Destroy()
  2122. end))
  2123. end
  2124.  
  2125. function bemaashake(pos)
  2126. local rng = Instance.new("Part", char)
  2127. rng.Anchored = true
  2128. rng.BrickColor = origcolor
  2129. rng.CanCollide = false
  2130. rng.FormFactor = 3
  2131. rng.Material = "Neon"
  2132. rng.Name = "Ring"
  2133. rng.Size = Vector3.new(1, 1, 1)
  2134. rng.Transparency = 0
  2135. rng.TopSurface = 0
  2136. rng.BottomSurface = 0
  2137. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2138. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2139. local rngm = Instance.new("SpecialMesh", rng)
  2140. rngm.MeshType = "Sphere"
  2141. local oof = Instance.new("Part",char)
  2142. oof.Parent = rng
  2143. oof.CFrame = rng.CFrame
  2144. oof.CanCollide = false
  2145. oof.Anchored = true
  2146. oof.Transparency = 1
  2147. rngm.Scale = Vector3.new(0,0,10000)
  2148. local scaler2 = 1*10
  2149. coroutine.resume(coroutine.create(function()
  2150. for i = 0,99,0.1 do
  2151. swait()
  2152. scaler2 = scaler2 - 0.0025*10
  2153. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  2154. rng.Transparency = rng.Transparency + 0.0025
  2155. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2156. end
  2157. rng:Destroy()
  2158. end))
  2159. end
  2160.  
  2161. function groundringlarge(pos)
  2162. local rng = Instance.new("Part", char)
  2163. rng.Anchored = true
  2164. rng.BrickColor = origcolor
  2165. rng.CanCollide = false
  2166. rng.FormFactor = 3
  2167. rng.Name = "Ring"
  2168. rng.Size = Vector3.new(1, 1, 1)
  2169. rng.Transparency = 0
  2170. rng.TopSurface = 0
  2171. rng.BottomSurface = 0
  2172. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2173. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2174. local rngm = Instance.new("SpecialMesh", rng)
  2175. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2176. rngm.Scale = Vector3.new(0,0,5)
  2177. local scaler2 = 10*10
  2178. coroutine.resume(coroutine.create(function()
  2179. for i = 0,10*2,0.1 do
  2180. swait()
  2181. scaler2 = scaler2 - 0.1*10/2
  2182. rng.Transparency = rng.Transparency + 0.005
  2183. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2184. end
  2185. rng:Destroy()
  2186. end))
  2187. end
  2188.  
  2189. function sphere(bonuspeed,type,pos,scale,value,color)
  2190. local type = type
  2191. local rng = Instance.new("Part", char)
  2192. rng.Anchored = true
  2193. rng.BrickColor = color
  2194. rng.CanCollide = false
  2195. rng.FormFactor = 3
  2196. rng.Name = "Ring"
  2197. rng.Material = "Neon"
  2198. rng.Size = Vector3.new(1, 1, 1)
  2199. rng.Transparency = 0
  2200. rng.TopSurface = 0
  2201. rng.BottomSurface = 0
  2202. rng.CFrame = pos
  2203. local rngm = Instance.new("SpecialMesh", rng)
  2204. rngm.MeshType = "Sphere"
  2205. rngm.Scale = scale
  2206. if rainbowmode == true then
  2207. rng.Color = Color3.new(r/255,g/255,b/255)
  2208. end
  2209. local scaler2 = 1
  2210. if type == "Add" then
  2211. scaler2 = 1*value
  2212. elseif type == "Divide" then
  2213. scaler2 = 1/value
  2214. end
  2215. coroutine.resume(coroutine.create(function()
  2216. for i = 0,10/bonuspeed,0.1 do
  2217. swait()
  2218. if rainbowmode == true then
  2219. rng.Color = Color3.new(r/255,g/255,b/255)
  2220. end
  2221. if type == "Add" then
  2222. scaler2 = scaler2 - 0.01*value/bonuspeed
  2223. elseif type == "Divide" then
  2224. scaler2 = scaler2 - 0.01/value*bonuspeed
  2225. end
  2226. if chaosmode == true then
  2227. rng.BrickColor = BrickColor.random()
  2228. end
  2229. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2230. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2231. end
  2232. rng:Destroy()
  2233. end))
  2234. end
  2235.  
  2236. function sphereouter(bonuspeed,type,pos,scale,value,color)
  2237. local type = type
  2238. local rng = Instance.new("Part", char)
  2239. rng.Anchored = true
  2240. rng.BrickColor = color
  2241. rng.CanCollide = false
  2242. rng.FormFactor = 3
  2243. rng.Name = "Ring"
  2244. rng.Material = "Neon"
  2245. rng.Size = Vector3.new(1, 1, 1)
  2246. rng.Transparency = 0
  2247. rng.TopSurface = 0
  2248. rng.BottomSurface = 0
  2249. rng.CFrame = pos
  2250. local rngm = Instance.new("SpecialMesh", rng)
  2251. rngm.MeshType = "Sphere"
  2252. rngm.Scale = scale
  2253. if rainbowmode == true then
  2254. rng.Color = Color3.new(r/255,g/255,b/255)
  2255. end
  2256. local scaler2 = 1
  2257. if type == "Add" then
  2258. scaler2 = 1*value
  2259. elseif type == "Divide" then
  2260. scaler2 = 1/value
  2261. end
  2262. coroutine.resume(coroutine.create(function()
  2263. for i = 0,10/bonuspeed,0.1 do
  2264. swait()
  2265. if rainbowmode == true then
  2266. rng.Color = Color3.new(r/255,g/255,b/255)
  2267. end
  2268. if type == "Add" then
  2269. scaler2 = scaler2 - 0.01*value/bonuspeed
  2270. elseif type == "Divide" then
  2271. scaler2 = scaler2 - 0.01/value*bonuspeed
  2272. end
  2273. if chaosmode == true then
  2274. rng.BrickColor = BrickColor.random()
  2275. end
  2276. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2277. rngm.Scale = rngm.Scale + Vector3.new(0, scaler2*bonuspeed, 0)
  2278. end
  2279. rng:Destroy()
  2280. end))
  2281. end
  2282.  
  2283. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2284. local type = type
  2285. local rng = Instance.new("Part", char)
  2286. rng.Anchored = true
  2287. rng.BrickColor = color
  2288. rng.CanCollide = false
  2289. rng.FormFactor = 3
  2290. rng.Name = "Ring"
  2291. rng.Material = "Neon"
  2292. rng.Size = Vector3.new(1, 1, 1)
  2293. rng.Transparency = 0
  2294. rng.TopSurface = 0
  2295. rng.BottomSurface = 0
  2296. rng.CFrame = pos
  2297. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2298. local rngm = Instance.new("SpecialMesh", rng)
  2299. rngm.MeshType = "Brick"
  2300. rngm.Scale = vt(x1,y1,z1)
  2301. if rainbowmode == true then
  2302. rng.Color = Color3.new(r/255,g/255,b/255)
  2303. end
  2304. local scaler2 = 1
  2305. local speeder = FastSpeed/10
  2306. if type == "Add" then
  2307. scaler2 = 1*value
  2308. elseif type == "Divide" then
  2309. scaler2 = 1/value
  2310. end
  2311. coroutine.resume(coroutine.create(function()
  2312. for i = 0,10/bonuspeed,0.1 do
  2313. swait()
  2314. if rainbowmode == true then
  2315. rng.Color = Color3.new(r/255,g/255,b/255)
  2316. end
  2317. if type == "Add" then
  2318. scaler2 = scaler2 - 0.01*value/bonuspeed
  2319. elseif type == "Divide" then
  2320. scaler2 = scaler2 - 0.01/value*bonuspeed
  2321. end
  2322. if chaosmode == true then
  2323. rng.BrickColor = BrickColor.random()
  2324. end
  2325. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2326. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2327. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2328. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2329. end
  2330. rng:Destroy()
  2331. end))
  2332. end
  2333.  
  2334. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2335. local type = type
  2336. local rng = Instance.new("Part", char)
  2337. rng.Anchored = true
  2338. rng.BrickColor = color
  2339. rng.CanCollide = false
  2340. rng.FormFactor = 3
  2341. rng.Name = "Ring"
  2342. rng.Material = "Neon"
  2343. rng.Size = Vector3.new(1, 1, 1)
  2344. rng.Transparency = 0
  2345. rng.TopSurface = 0
  2346. rng.BottomSurface = 0
  2347. rng.CFrame = pos
  2348. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2349. local rngm = Instance.new("SpecialMesh", rng)
  2350. rngm.MeshType = "Brick"
  2351. rngm.Scale = vt(x1,y1,z1)
  2352. if rainbowmode == true then
  2353. rng.Color = Color3.new(r/255,g/255,b/255)
  2354. end
  2355. local scaler2 = 0
  2356. local speeder = FastSpeed/10
  2357. if type == "Add" then
  2358. scaler2 = 1*value
  2359. elseif type == "Divide" then
  2360. scaler2 = 1/value
  2361. end
  2362. coroutine.resume(coroutine.create(function()
  2363. for i = 0,10/bonuspeed,0.1 do
  2364. swait()
  2365. if rainbowmode == true then
  2366. rng.Color = Color3.new(r/255,g/255,b/255)
  2367. end
  2368. if type == "Add" then
  2369. scaler2 = scaler2 - 0.01*value/bonuspeed
  2370. elseif type == "Divide" then
  2371. scaler2 = scaler2 - 0.01/value*bonuspeed
  2372. end
  2373. if chaosmode == true then
  2374. rng.BrickColor = BrickColor.random()
  2375. end
  2376. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2377. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2378. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2379. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2380. end
  2381. rng:Destroy()
  2382. end))
  2383. end
  2384.  
  2385.  
  2386. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2387. local type = type
  2388. local rng = Instance.new("Part", char)
  2389. rng.Anchored = true
  2390. rng.BrickColor = color
  2391. rng.CanCollide = false
  2392. rng.FormFactor = 3
  2393. rng.Name = "Ring"
  2394. rng.Material = "Neon"
  2395. rng.Size = Vector3.new(1, 1, 1)
  2396. rng.Transparency = 0
  2397. rng.TopSurface = 0
  2398. rng.BottomSurface = 0
  2399. rng.CFrame = pos
  2400. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2401. local rngm = Instance.new("SpecialMesh", rng)
  2402. rngm.MeshType = "Sphere"
  2403. rngm.Scale = vt(x1,y1,z1)
  2404. if rainbowmode == true then
  2405. rng.Color = Color3.new(r/255,g/255,b/255)
  2406. end
  2407. local scaler2 = 1
  2408. local speeder = FastSpeed
  2409. if type == "Add" then
  2410. scaler2 = 1*value
  2411. elseif type == "Divide" then
  2412. scaler2 = 1/value
  2413. end
  2414. coroutine.resume(coroutine.create(function()
  2415. for i = 0,10/bonuspeed,0.1 do
  2416. swait()
  2417. if rainbowmode == true then
  2418. rng.Color = Color3.new(r/255,g/255,b/255)
  2419. end
  2420. if type == "Add" then
  2421. scaler2 = scaler2 - 0.01*value/bonuspeed
  2422. elseif type == "Divide" then
  2423. scaler2 = scaler2 - 0.01/value*bonuspeed
  2424. end
  2425. if chaosmode == true then
  2426. rng.BrickColor = BrickColor.random()
  2427. end
  2428. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2429. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2430. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2431. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2432. end
  2433. rng:Destroy()
  2434. end))
  2435. end
  2436.  
  2437.  
  2438. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2439. local type = type
  2440. local rng = Instance.new("Part", char)
  2441. rng.Anchored = true
  2442. rng.BrickColor = color
  2443. rng.CanCollide = false
  2444. rng.FormFactor = 3
  2445. rng.Name = "Ring"
  2446. rng.Material = "Neon"
  2447. rng.Size = Vector3.new(1, 1, 1)
  2448. rng.Transparency = 1
  2449. rng.TopSurface = 0
  2450. rng.BottomSurface = 0
  2451. rng.CFrame = pos
  2452. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2453. local rngm = Instance.new("SpecialMesh", rng)
  2454. rngm.MeshType = "Sphere"
  2455. rngm.Scale = vt(x1,y1,z1)
  2456. if rainbowmode == true then
  2457. rng.Color = Color3.new(r/255,g/255,b/255)
  2458. end
  2459. local scaler2 = 1
  2460. local speeder = FastSpeed
  2461. if type == "Add" then
  2462. scaler2 = 1*value
  2463. elseif type == "Divide" then
  2464. scaler2 = 1/value
  2465. end
  2466. coroutine.resume(coroutine.create(function()
  2467. for i = 0,10/bonuspeed,0.1 do
  2468. swait()
  2469. if rainbowmode == true then
  2470. rng.Color = Color3.new(r/255,g/255,b/255)
  2471. end
  2472. if type == "Add" then
  2473. scaler2 = scaler2 - 0.01*value/bonuspeed
  2474. elseif type == "Divide" then
  2475. scaler2 = scaler2 - 0.01/value*bonuspeed
  2476. end
  2477. if chaosmode == true then
  2478. rng.BrickColor = BrickColor.random()
  2479. end
  2480. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2481. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2482. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2483. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2484. end
  2485. rng:Destroy()
  2486. end))
  2487. end
  2488.  
  2489.  
  2490. function TargetSelect(person)
  2491. local dd=coroutine.wrap(function()
  2492. if targetted ~= person then
  2493. targetted = person
  2494. img2.Size = UDim2.new(1,0,1,0)
  2495. img2.ImageTransparency = 0
  2496. img2.Position = UDim2.new(0,0,0,0)
  2497. img2.ImageColor3 = Color3.new(0,0,0)
  2498. for i = 0, 2, 0.1 do
  2499. swait()
  2500. img2.Size = img2.Size + UDim2.new(.05,0,.05,0)
  2501. img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0)
  2502. img2.ImageTransparency = img2.ImageTransparency + 0.05
  2503. end
  2504. end
  2505. end)
  2506. dd()
  2507. end
  2508.  
  2509. function FindNearestTorso(Position, Distance, SinglePlayer)
  2510. if SinglePlayer then
  2511. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2512. end
  2513. local List = {}
  2514. for i, v in pairs(workspace:GetChildren()) do
  2515. if v:IsA("Model") then
  2516. if v:findFirstChild("Torso") then
  2517. if v ~= Character then
  2518. if (v.Torso.Position - Position).magnitude <= Distance then
  2519. table.insert(List, v)
  2520. end
  2521. end
  2522. end
  2523. end
  2524. end
  2525. return List
  2526. end
  2527.  
  2528. function FindNearestHead(Position, Distance, SinglePlayer)
  2529. if SinglePlayer then
  2530. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2531. end
  2532. local List = {}
  2533. for i, v in pairs(workspace:GetChildren()) do
  2534. if v:IsA("Model") then
  2535. if v:findFirstChild("Head") then
  2536. if v ~= Character then
  2537. if (v.Head.Position - Position).magnitude <= Distance then
  2538. table.insert(List, v)
  2539. end
  2540. end
  2541. end
  2542. end
  2543. end
  2544. return List
  2545. end
  2546.  
  2547. function LockOn()
  2548. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2549. TargetSelect(Mouse.Target.Parent)
  2550. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2551. elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
  2552. TargetSelect(Mouse.Target.Parent)
  2553. if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
  2554. targetted = nil
  2555. end
  2556. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2557. end
  2558. end
  2559.  
  2560. function dmg(dude)
  2561. if dude.Name ~= Character then
  2562. local bgf = Instance.new("BodyGyro",dude.Head)
  2563. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2564. local val = Instance.new("BoolValue",dude)
  2565. val.Name = "IsHit"
  2566. local ds = coroutine.wrap(function()
  2567. if dude.Name ~= "XXUNORIBOASXX" then
  2568. killcount = killcount + 1
  2569. dude:WaitForChild("Torso"):BreakJoints()
  2570. wait(0.5)
  2571. targetted = nil
  2572. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2573. coroutine.resume(coroutine.create(function()
  2574. for i, v in pairs(dude:GetChildren()) do
  2575. if v:IsA("Accessory") then
  2576. v:Destroy()
  2577. end
  2578. if v:IsA("Humanoid") then
  2579. v:Destroy()
  2580. end
  2581. if v:IsA("CharacterMesh") then
  2582. v:Destroy()
  2583. end
  2584. if v:IsA("Model") then
  2585. v:Destroy()
  2586. end
  2587. if v:IsA("Part") then
  2588. for x, o in pairs(v:GetChildren()) do
  2589. if o:IsA("Decal") then
  2590. o:Destroy()
  2591. end
  2592. end
  2593. coroutine.resume(coroutine.create(function()
  2594. v.Material = "Neon"
  2595. v.CanCollide = false
  2596. local bld = Instance.new("ParticleEmitter",v)
  2597. bld.LightEmission = 1
  2598. bld.Texture = "rbxassetid://284205403"
  2599. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2600. bld.Rate = 50
  2601. bld.Lifetime = NumberRange.new(1)
  2602. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2603. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2604. bld.Speed = NumberRange.new(0,0,0)
  2605. bld.Rotation = NumberRange.new(-500,500)
  2606. bld.RotSpeed = NumberRange.new(-500,500)
  2607. local sbs = Instance.new("BodyPosition", v)
  2608. sbs.P = 3000
  2609. sbs.D = 1000
  2610. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2611. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2612. v.Color = Color3.new(1,1,1)
  2613. coroutine.resume(coroutine.create(function()
  2614. for i = 0, 24 do
  2615. swait(1)
  2616. v.Transparency = v.Transparency + 0.02
  2617. end
  2618. bld.Enabled = false
  2619. for i = 0, 24 do
  2620. swait(1)
  2621. v.Transparency = v.Transparency + 0.02
  2622. end
  2623. v:Destroy()
  2624. dude:Destroy()
  2625. end))
  2626. end))
  2627. end
  2628. end
  2629. end))
  2630. else
  2631. bgf:Destroy()
  2632. sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
  2633. end
  2634. end)
  2635. ds()
  2636. end
  2637. end
  2638.  
  2639. function MagniStop(Magnitude,Parent,Duration)
  2640. for i, v in pairs(FindNearestTorso(Parent, Magnitude)) do
  2641. if v:FindFirstChild('Head') then
  2642. --[[local origWalk = v.Humanoid.WalkSpeed
  2643. local origJump = v.Humanoid.JumpPower]]--
  2644. local ActiveStop = true
  2645. --[[v.Humanoid.WalkSpeed = 0
  2646. v.Humanoid.JumpPower = 0]]--
  2647. for x, o in pairs(v:GetChildren()) do
  2648. if o:IsA("Part") then
  2649. o.Anchored = true
  2650. end
  2651. end
  2652. coroutine.resume(coroutine.create(function()
  2653. while true do
  2654. swait()
  2655. if ActiveStop ~= false then
  2656. --[[v.Humanoid.WalkSpeed = 0
  2657. v.Humanoid.JumpPower = 0]]--
  2658. for x, o in pairs(v:GetChildren()) do
  2659. if o:IsA("Part") then
  2660. o.Anchored = true
  2661. end
  2662. end
  2663. else
  2664. break
  2665. end
  2666. end
  2667. end))
  2668. local txt = Instance.new("BillboardGui", v)
  2669. txt.Adornee = v.Head
  2670. txt.Name = "StoppedSTAT"
  2671. txt.AlwaysOnTop = true
  2672. txt.Size = UDim2.new(2, 0, 1.2, 0)
  2673. txt.StudsOffset = Vector3.new(-9, 8, 0)
  2674. local text = Instance.new("TextLabel", txt)
  2675. text.Size = UDim2.new(10, 0, 7, 0)
  2676. text.FontSize = "Size24"
  2677. text.TextScaled = true
  2678. text.TextTransparency = 0
  2679. text.BackgroundTransparency = 1
  2680. text.TextTransparency = 0
  2681. text.TextStrokeTransparency = 0.75
  2682. text.Font = "Cartoon"
  2683. text.TextStrokeColor3 = Color3.new(0,0,0)
  2684. text.TextColor3 = Color3.new(0,1,0)
  2685. text.Text = "STOPPED"
  2686. coroutine.resume(coroutine.create(function()
  2687. wait(Duration)
  2688. ActiveStop = false
  2689. for x, o in pairs(v:GetChildren()) do
  2690. if o:IsA("Part") then
  2691. o.Anchored = false
  2692. end
  2693. end
  2694. --[[v.Humanoid.WalkSpeed = origWalk
  2695. v.Humanoid.JumpPower = origJump]]--
  2696. txt:Destroy()
  2697. end))
  2698. end
  2699. end
  2700. end
  2701.  
  2702. function MakeBullet(Type,Speed,Position,Magni,Minim,Maxim,Color,TrailColor,Size,TrailSize,Delay,VolumeEx)
  2703. local ExplodeType = Type
  2704. local spart = Instance.new("Part",char)
  2705. local msh = Instance.new("SpecialMesh",spart)
  2706. msh.MeshType = "Sphere"
  2707. msh.Scale = Size
  2708. CFuncs["Sound"].Create("rbxassetid://260433768", spart, 2, 1)
  2709. spart.Size = vt(1,1,1)
  2710. spart.BrickColor = Color
  2711. spart.Material = "Neon"
  2712. spart.Transparency = 0
  2713. spart.Anchored = true
  2714. spart.CanCollide = false
  2715. spart.CFrame = Position
  2716. local hitted = false
  2717. spart.Anchored = false
  2718. local bv = Instance.new("BodyVelocity")
  2719. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2720. bv.velocity = spart.CFrame.lookVector *Speed
  2721. bv.Parent = spart
  2722. game:GetService("Debris"):AddItem(spart, Delay)
  2723. --[[coroutine.resume(coroutine.create(function()
  2724. while true do
  2725. swait(1)
  2726. if spart.Parent ~= nil and hitted == false then
  2727. 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)
  2728. elseif spart.Parent == nil then
  2729. break
  2730. end
  2731. end
  2732. end))]]--
  2733. swait(1)
  2734. if ExplodeType == "Normal" then
  2735. local hit =spart.Touched:connect(function(hit)
  2736. if hitted == false then
  2737. hitted = true
  2738. CFuncs["Sound"].Create("rbxassetid://239000203", spart, VolumeEx, 1)
  2739. MagniDamage(spart, Magni, Minim,Maxim, 0, "Normal")
  2740. sphere(1,"Add",spart.CFrame,Size,Magni/20,spart.BrickColor)
  2741. spart.Anchored = true
  2742. spart.Transparency = 1
  2743. end
  2744. end)
  2745. elseif ExplodeType == "Timefreeze" then
  2746. local hit =spart.Touched:connect(function(hit)
  2747. if hitted == false then
  2748. hitted = true
  2749. MagniStop(Magni/1.75,spart.CFrame.p,1)
  2750. MagniDamage(spart, Magni/1.75, Minim,Maxim, 0, "Normal")
  2751. --CFuncs["Sound"].Create("rbxassetid://239000203", spart, 2, 1)
  2752. CFuncs["Sound"].Create("rbxassetid://1208650519", spart, VolumeEx, 1)
  2753. sphere(1,"Add",spart.CFrame,vt(Magni,Magni,Magni),-Magni/50,spart.BrickColor)
  2754. spart.Anchored = true
  2755. spart.Transparency = 1
  2756. end
  2757. end)
  2758. end
  2759. end
  2760. --[[function UnusedSource()
  2761. MagniStop(12.5,targetted.Torso.CFrame.p,2)
  2762. CFuncs["Sound"].Create("rbxassetid://743521656", targetted.Torso, 5, 0.8)
  2763. --CFuncs["Sound"].Create("rbxassetid://1208650519", targetted.Torso, 5, 1)
  2764. sphere(1,"Add",targetted.Torso.CFrame,vt(25,25,25),-0.5,BrickColor.new("White"))
  2765. end]]--
  2766.  
  2767. -------------
  2768. function FaceMouse()
  2769. Cam = workspace.CurrentCamera
  2770. return {
  2771. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2772. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2773. }
  2774. end
  2775.  
  2776. function FaceMouse2()
  2777. Cam = workspace.CurrentCamera
  2778. return {
  2779. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2780. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2781. }
  2782. end
  2783.  
  2784. ---- main combo attacks
  2785.  
  2786. local r = 255
  2787. local g = 0
  2788. local b = 0
  2789. coroutine.resume(coroutine.create(function()
  2790. while wait() do
  2791. for i = 0, 254/5 do
  2792. swait()
  2793. g = g + 5
  2794. end
  2795. for i = 0, 254/5 do
  2796. swait()
  2797. r = r - 5
  2798. end
  2799. for i = 0, 254/5 do
  2800. swait()
  2801. b = b + 5
  2802. end
  2803. for i = 0, 254/5 do
  2804. swait()
  2805. g = g - 5
  2806. end
  2807. for i = 0, 254/5 do
  2808. swait()
  2809. r = r + 5
  2810. end
  2811. for i = 0, 254/5 do
  2812. swait()
  2813. b = b - 5
  2814. end
  2815. end
  2816. end))
  2817.  
  2818. function attackone()
  2819. attack = true
  2820. for i = 0,1,0.1 do
  2821. swait()
  2822. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(20),math.rad(90)),.3)
  2823. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2824. 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)
  2825. 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)
  2826. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  2827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2828. 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)
  2829. 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)
  2830. end
  2831. local con = hibox.Touched:connect(function(hit)
  2832. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  2833. end)
  2834. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 1)
  2835. for i = 0,1,0.1 do
  2836. swait()
  2837. sordweld.C0=clerp(sordweld.C0,cf(-1,0,0)*angles(math.rad(-90),math.rad(60),math.rad(90)),.3)
  2838. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2839. 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)
  2840. 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)
  2841. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  2842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  2843. 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)
  2844. 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)
  2845. end
  2846. con:disconnect()
  2847. attack = false
  2848. end
  2849.  
  2850. function attacktwo()
  2851. attack = true
  2852. for i = 0,1,0.1 do
  2853. swait()
  2854. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  2855. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2856. 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)
  2857. 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)
  2858. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  2859. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  2860. 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)
  2861. 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)
  2862. end
  2863. local con = hibox.Touched:connect(function(hit)
  2864. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  2865. end)
  2866. CFuncs["Sound"].Create("rbxassetid://92597369", hibox, 1.5, 0.75)
  2867. for i = 0,1,0.1 do
  2868. swait()
  2869. sordweld.C0=clerp(sordweld.C0,cf(-1,-1,0)*angles(math.rad(-90),math.rad(5),math.rad(90)),.3)
  2870. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  2871. 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)
  2872. 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)
  2873. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2874. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2875. 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)
  2876. 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)
  2877. end
  2878. con:disconnect()
  2879. attack = false
  2880. end
  2881.  
  2882. function attackthree()
  2883. attack = true
  2884. for i = 0,1,0.1 do
  2885. swait()
  2886. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2887. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2888. 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)
  2889. 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)
  2890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(15)),.3)
  2891. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-15)),.3)
  2892. 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)
  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(-10)),.3)
  2894. end
  2895. for i = 0,2,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. 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)
  2900. 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)
  2901. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2902. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(45)),.3)
  2903. 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)
  2904. 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)
  2905. end
  2906. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  2907. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.175,halocolor)
  2908. MagniDamage(glowst, 7.5, 12,16, 0, "Normal")
  2909. for i = 0, 9 do
  2910. 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)
  2911. 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)
  2912. end
  2913. CFuncs["Sound"].Create("rbxassetid://183763506", glowst, 1.5, 1)
  2914. attack = false
  2915. end
  2916.  
  2917. function attackorb()
  2918. attack = true
  2919. for i = 0,1,0.1 do
  2920. swait()
  2921. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2922. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2923. 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)
  2924. 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)
  2925. 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)
  2926. 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)
  2927. 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)
  2928. 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)
  2929. 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)
  2930. 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)
  2931. end
  2932. for i = 0,1,0.1 do
  2933. swait()
  2934. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2935. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.3)
  2936. 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)
  2937. 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)
  2938. 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)
  2939. 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)
  2940. 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)
  2941. 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)
  2942. 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)
  2943. 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)
  2944. end
  2945. sphere(2.5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  2946. sphere(5,"Add",glowst.CFrame,vt(0,0,0),0.05,halocolor)
  2947. local orb = Instance.new("Part", char)
  2948. orb.BrickColor = halocolor
  2949. orb.CanCollide = false
  2950. orb.FormFactor = 3
  2951. orb.Name = "Ring"
  2952. orb.Material = "Neon"
  2953. orb.Size = Vector3.new(1, 1, 1)
  2954. orb.Transparency = 0
  2955. orb.TopSurface = 0
  2956. orb.BottomSurface = 0
  2957. local orbm = Instance.new("SpecialMesh", orb)
  2958. orbm.MeshType = "Sphere"
  2959. orbm.Name = "SizeMesh"
  2960. orbm.Scale = vt(1.5,1.5,1.5)
  2961. local a = Instance.new("Part",workspace)
  2962. a.Name = "Direction"
  2963. a.Anchored = true
  2964. a.BrickColor = bc("Bright red")
  2965. a.Material = "Neon"
  2966. a.Transparency = 1
  2967. a.CanCollide = false
  2968. local ray = Ray.new(
  2969. glowst.CFrame.p, -- origin
  2970. (mouse.Hit.p - glowst.CFrame.p).unit * 500 -- direction
  2971. )
  2972. local ignore = glowst
  2973. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2974. a.BottomSurface = 10
  2975. a.TopSurface = 10
  2976. local distance = (glowst.CFrame.p - position).magnitude
  2977. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2978. a.CFrame = CFrame.new(glowst.CFrame.p, position) * CFrame.new(0, 0, 0)
  2979. orb.CFrame = a.CFrame
  2980. a:Destroy()
  2981. local bv = Instance.new("BodyVelocity")
  2982. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2983. bv.velocity = orb.CFrame.lookVector*100
  2984. bv.Parent = orb
  2985. local hitted = false
  2986. game:GetService("Debris"):AddItem(orb, 10)
  2987. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  2988. coroutine.resume(coroutine.create(function()
  2989. swait(0.1)
  2990. orb.Touched:connect(function(hit)
  2991. if hitted == false then
  2992. hitted = true
  2993. game:GetService("Debris"):AddItem(orb, 5)
  2994. orb.Transparency = 1
  2995. orb.Anchored = true
  2996. for i = 0, 49 do
  2997. 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)
  2998. end
  2999. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3000. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3001. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3002. sphere(4,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3003. sphere(5,"Add",orb.CFrame,vt(0,0,0),0.25,halocolor)
  3004. CFuncs["Sound"].Create("rbxassetid://468991944", orb, 7.5, 1)
  3005. CFuncs["Sound"].Create("rbxassetid://419447292", orb, 2.5,1)
  3006. MagniDamage(orb, 12.5, 15,22, 0, "Normal")
  3007. end
  3008. end)
  3009. end))
  3010. attack = false
  3011. end
  3012.  
  3013. function Taunt()
  3014. attack = true
  3015. hum.WalkSpeed = 0
  3016. for x = 0, 4 do
  3017. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.75)
  3018. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.6)
  3019. for i = 0,1,0.6 do
  3020. swait()
  3021. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  3022. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3023. 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)
  3024. 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)
  3025. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3026. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3027. 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)
  3028. 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)
  3029. end
  3030. for i = 0,1,0.6 do
  3031. swait()
  3032. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.5)
  3033. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3034. 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)
  3035. 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)
  3036. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3037. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3038. 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)
  3039. 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)
  3040. end
  3041. for i = 0,1,0.6 do
  3042. swait()
  3043. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(180),math.rad(0)),.5)
  3044. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3045. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3046. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3047. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3048. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3049. 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)
  3050. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3051. end
  3052. for i = 0,1,0.6 do
  3053. swait()
  3054. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(270),math.rad(0)),.5)
  3055. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3056. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.5)
  3057. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(5)),.5)
  3058. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  3059. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  3060. 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)
  3061. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(-10),math.rad(20),math.rad(0)),.5)
  3062. end
  3063. end
  3064. local ranod = math.random(1,5)
  3065. if ranod == 1 then
  3066. chatfunc("You're not really at this, arent you.",halocolor.Color)
  3067. elseif ranod == 2 then
  3068. chatfunc("I dont like whoever messes me up.",halocolor.Color)
  3069. elseif ranod == 3 then
  3070. chatfunc("I never expected you to be here.",halocolor.Color)
  3071. elseif ranod == 4 then
  3072. chatfunc("You really messed up.",halocolor.Color)
  3073. elseif ranod == 5 then
  3074. chatfunc("Go away.",halocolor.Color)
  3075. end
  3076. for i = 0,15,0.1 do
  3077. swait()
  3078. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
  3079. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3080. 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)
  3081. 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)
  3082. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  3083. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  3084. 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)
  3085. 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)
  3086. end
  3087. hum.WalkSpeed = 16
  3088. attack = false
  3089. end
  3090.  
  3091. MAINRUINCOLOR = BrickColor.new("Institutional white")
  3092.  
  3093. function SwordSplosion()
  3094. attack = true
  3095.  
  3096. local orb = Instance.new("Part", char)
  3097. orb.Anchored = true
  3098. orb.BrickColor = MAINRUINCOLOR
  3099. orb.CanCollide = false
  3100. orb.FormFactor = 3
  3101. orb.Name = "Ring"
  3102. orb.Material = "Neon"
  3103. orb.Size = Vector3.new(1, 1, 1)
  3104. orb.Transparency = 1
  3105. orb.TopSurface = 0
  3106. orb.BottomSurface = 0
  3107. local orbm = Instance.new("SpecialMesh", orb)
  3108. orbm.MeshType = "Sphere"
  3109. orbm.Name = "SizeMesh"
  3110. orbm.Scale = vt(0,0,0)
  3111. local scaled = 0.1
  3112. local posid = 0
  3113. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3114. for i = 0, 5, 0.1 do
  3115. swait()
  3116. scaled = scaled - 0.001
  3117. posid = posid - scaled
  3118. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3119. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3120. 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)
  3121. 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)
  3122. 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)
  3123. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3124. sordweld.C0=clerp(sordweld.C0,cf(0,-1.75,1)*angles(math.rad(90),math.rad(180),math.rad(0)),.1)
  3125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3126. 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)
  3127. end
  3128. swait(60)
  3129. for i =1,3 do
  3130. swait(30)
  3131. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3132. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3133. end
  3134. swait(30)
  3135. for i = 0, 2, 0.1 do
  3136. swait()
  3137. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3138. 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)
  3139. 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)
  3140. 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)
  3141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3142. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3143. 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)
  3144. end
  3145. swait(60)
  3146. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3147. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3148. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3149. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3150. MagniDamageWithEffect(tors, 999, math.huge, math.huge, 0, "Normal")
  3151. for i = 1,20 do
  3152. 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)
  3153. for i = 0, 45 do
  3154. 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"))
  3155. end
  3156. for i = 0, 10 do
  3157. 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)
  3158. end
  3159. end
  3160. orb:Remove()
  3161. attack = false
  3162. end
  3163.  
  3164. function WAT()
  3165. attack = true
  3166. hum.WalkSpeed = 0
  3167. for x = 0, 9 do
  3168. CFuncs["Sound"].Create("rbxassetid://92597296", sord, 1.5,0.7)
  3169. CFuncs["Sound"].Create("rbxassetid://92597369", sord, 1.5,0.55)
  3170. for i = 0,1,0.6 do
  3171. swait()
  3172. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  3173. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3174. 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)
  3175. 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)
  3176. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3177. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3178. 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)
  3179. 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)
  3180. end
  3181. for i = 0,1,0.6 do
  3182. swait()
  3183. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.5)
  3184. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3185. 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)
  3186. 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)
  3187. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3188. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3189. 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)
  3190. 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)
  3191. end
  3192. for i = 0,1,0.6 do
  3193. swait()
  3194. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.5)
  3195. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3196. 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)
  3197. 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)
  3198. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3199. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3200. 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)
  3201. 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)
  3202. end
  3203. for i = 0,1,0.6 do
  3204. swait()
  3205. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(-270),math.rad(0),math.rad(0)),.5)
  3206. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3207. 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)
  3208. 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)
  3209. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.5)
  3210. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.5)
  3211. 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)
  3212. 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)
  3213. end
  3214. end
  3215. local hittery = false
  3216. local ParentedHit = nil
  3217. local con1 = hibox.Touched:connect(function(hit)
  3218. Damagefunc(hibox, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://199149137", 1)
  3219. end)
  3220. local con = hibox.Touched:connect(function(hit)
  3221. if hit.Name == "Torso" and hittery == false then
  3222. hittery = true
  3223. ParentedHit = hit
  3224. for i = 0, 24 do
  3225. 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"))
  3226. end
  3227. sphere(2,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3228. sphere(3,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3229. sphere(4,"Add",hit.CFrame,vt(0,0,0),0.5,halocolor)
  3230. CFuncs["Sound"].Create("rbxassetid://153092227", hit, 5, 1)
  3231. sbs = Instance.new("BodyPosition", hit)
  3232. sbs.P = 3000
  3233. sbs.D = 1000
  3234. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3235. sbs.position = hit.CFrame.p
  3236. end
  3237. end)
  3238. for i = 0,2,0.1 do
  3239. swait()
  3240. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  3241. 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)
  3242. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3243. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.6)
  3244. 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)
  3245. 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)
  3246. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(2.5),math.rad(5),math.rad(90)),.6)
  3247. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3248. 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)
  3249. 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)
  3250. end
  3251. con:disconnect()
  3252. if hittery == true then
  3253. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3254. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  3255. for i = 0, 24 do
  3256. 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)
  3257. end
  3258. root.CFrame = ParentedHit.CFrame + ParentedHit.CFrame.lookVector*-8
  3259. sphere(2,"Add",root.CFrame,vt(0,0,0),0.25,halocolor)
  3260. for i = 0, 24 do
  3261. 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)
  3262. end
  3263. for x = 0, 9 do
  3264. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  3265. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  3266. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  3267. for i = 0, 2 do
  3268. 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"))
  3269. 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)
  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(0),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. for i = 0,1,0.6 do
  3283. swait()
  3284. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3285. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3286. 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)
  3287. 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)
  3288. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(90),math.rad(5),math.rad(90)),.6)
  3289. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3290. 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)
  3291. 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)
  3292. end
  3293. CFuncs["Sound"].Create("rbxassetid://153092227", ParentedHit, 2.5, 1)
  3294. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black"))
  3295. sphere(5,"Add",ParentedHit.CFrame,vt(0,0,0),0.125,BrickColor.new("Really black"))
  3296. for i = 0, 2 do
  3297. 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"))
  3298. 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)
  3299. end
  3300. for i = 0,1,0.6 do
  3301. swait()
  3302. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3303. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3304. 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)
  3305. 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)
  3306. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(180),math.rad(5),math.rad(90)),.6)
  3307. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3308. 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)
  3309. 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)
  3310. end
  3311. for i = 0,1,0.6 do
  3312. swait()
  3313. sordweld.C0=clerp(sordweld.C0,cf(0,-1.8,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.6)
  3314. stafweld.C0=clerp(stafweld.C0,cf(0,0,-1.2)*angles(math.rad(-90),math.rad(-20),math.rad(0)),.6)
  3315. 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)
  3316. 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)
  3317. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(270),math.rad(5),math.rad(90)),.6)
  3318. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3319. 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)
  3320. 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)
  3321. end
  3322. end
  3323.  
  3324. local ex = Instance.new("ParticleEmitter",at1)
  3325. ex.Texture = "rbxassetid://296874871"
  3326. ex.LightEmission = 0.25
  3327. ex.Color = ColorSequence.new(Color3.new(0,0,0))
  3328. ex.Rate = 100
  3329. ex.Lifetime = NumberRange.new(2)
  3330. ex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)})
  3331. ex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3332. ex.Speed = NumberRange.new(10)
  3333. ex.LockedToPart = true
  3334. ex.Rotation = NumberRange.new(-500,500)
  3335. ex.RotSpeed = NumberRange.new(-500,500)
  3336. local ex2 = Instance.new("ParticleEmitter",at1)
  3337. ex2.Texture = "rbxassetid://865418009"
  3338. ex2.LightEmission = 1
  3339. ex2.Color = ColorSequence.new(Color3.new(1,1,1))
  3340. ex2.Rate = 50
  3341. ex2.Lifetime = NumberRange.new(0.25)
  3342. ex2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3343. ex2.Speed = NumberRange.new(75)
  3344. ex2.LockedToPart = true
  3345. ex2.Rotation = NumberRange.new(-500,500)
  3346. local ex3 = Instance.new("ParticleEmitter",glow)
  3347. ex3.Texture = "rbxassetid://865418009"
  3348. ex3.LightEmission = 1
  3349. ex3.Color = ColorSequence.new(Color3.new(1,1,1))
  3350. ex3.Rate = 50
  3351. ex3.Lifetime = NumberRange.new(0.5)
  3352. ex3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,3,0)})
  3353. ex3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3354. ex3.Speed = NumberRange.new(0)
  3355. ex3.LockedToPart = true
  3356. ex3.Rotation = NumberRange.new(-500,500)
  3357. CFuncs["Sound"].Create("rbxassetid://1548527129", sord, 4.5, 1)
  3358. CFuncs["Sound"].Create("rbxassetid://1548599511", root, 8, 1)
  3359. for i = 0,10,0.1 do
  3360. swait()
  3361. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3362. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3363. 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)
  3364. 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)
  3365. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  3366. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  3367. 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)
  3368. 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)
  3369. end
  3370. for i = 0,5,0.1 do
  3371. swait()
  3372. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.3)
  3373. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  3374. 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)
  3375. 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)
  3376. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(70)),.3)
  3377. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  3378. 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)
  3379. 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)
  3380. end
  3381. CameraEnshaking(3,30,char)
  3382. CameraEnshaking(3,30,ParentedHit.Parent)
  3383. CFuncs["Sound"].Create("rbxassetid://1548544673", sord, 1.5, 1)
  3384. CFuncs["Sound"].Create("rbxassetid://1548538202", sord, 2.5, 1)
  3385. CFuncs["Sound"].Create("rbxassetid://1548544673", ParentedHit, 1.5, 1)
  3386. CFuncs["Sound"].Create("rbxassetid://1548538202", ParentedHit, 2.5, 1)
  3387. CFuncs["Sound"].Create("rbxassetid://1548599962", root, 8, 1)
  3388. for i = 0, 9 do
  3389. 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"))
  3390. end
  3391. dmg(ParentedHit.Parent)
  3392. sbs:Destroy()
  3393. for i = 0,5,0.1 do
  3394. swait()
  3395. sordweld.C0=clerp(sordweld.C0,cf(-1,-0.5,0)*angles(math.rad(-90),math.rad(75),math.rad(90)),.5)
  3396. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.5)
  3397. 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)
  3398. 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)
  3399. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(20),math.rad(0),math.rad(-70)),.5)
  3400. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(70)),.5)
  3401. 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)
  3402. 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)
  3403. end
  3404. ex.Enabled = false
  3405. ex2.Enabled = false
  3406. ex3.Enabled = false
  3407. game:GetService("Debris"):AddItem(ex, 10)
  3408. game:GetService("Debris"):AddItem(ex2, 10)
  3409. game:GetService("Debris"):AddItem(ex3, 10)
  3410. end
  3411. hum.WalkSpeed = 16
  3412. attack = false
  3413. con1:disconnect()
  3414. end
  3415.  
  3416. local FloatMode = false
  3417. local attacktype = 1
  3418. mouse.Button1Down:connect(function()
  3419. if FloatMode == false then
  3420. if attack == false and attacktype == 1 then
  3421. attacktype = 2
  3422. attackone()
  3423. elseif attack == false and attacktype == 2 then
  3424. attacktype = 3
  3425. attacktwo()
  3426. elseif attack == false and attacktype == 3 then
  3427. attacktype = 1
  3428. attackthree()
  3429. end
  3430. elseif FloatMode == true then
  3431. if attack == false and attacktype == 1 then
  3432. attacktype = 2
  3433. attackone()
  3434. elseif attack == false and attacktype == 2 then
  3435. attacktype = 3
  3436. attacktwo()
  3437. elseif attack == false and attacktype == 3 then
  3438. attacktype = 1
  3439. attackorb()
  3440. end
  3441. end
  3442. end)
  3443.  
  3444. mouse.KeyDown:connect(function(k)
  3445. if k == "q" and attack == false and FloatMode == false then
  3446. FloatMode = true
  3447. hum.WalkSpeed = 32
  3448. elseif k == "q" and attack == false and FloatMode == true then
  3449. FloatMode = false
  3450. hum.WalkSpeed = 16
  3451. end
  3452.  
  3453. if FloatMode == false then
  3454. if k == "t" and attack == false then
  3455. Taunt()
  3456. end
  3457. if k == "x" and attack == false then
  3458. ----SwordSplosion()
  3459. end
  3460. if k == "c" and attack == false then
  3461. attackorb()
  3462. end
  3463. if k == "v" and attack == false then
  3464. WAT()
  3465. end
  3466. end
  3467. end)
  3468. idleanim=.4
  3469. hum.Animator.Parent = nil
  3470. while true do
  3471. swait()
  3472. sine = sine + change
  3473. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3474. local velderp=RootPart.Velocity.y
  3475. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3476. if equipped==true or equipped==false then
  3477. if attack==false then
  3478. idle=idle+1
  3479. else
  3480. idle=0
  3481. end
  3482. if idle>=500 then
  3483. if attack==false then
  3484. ---Sheath()
  3485. end
  3486. end
  3487. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3488. Anim="Jump"
  3489. if attack==false then
  3490. 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)
  3491. 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)
  3492. 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)
  3493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3494. 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)
  3495. 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)
  3496. end
  3497. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3498. Anim="Fall"
  3499. if attack==false then
  3500. 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)
  3501. 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)
  3502. 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)
  3503. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3504. 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)
  3505. 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)
  3506. end
  3507. elseif torvel<1 and hitfloor~=nil then
  3508. Anim="Idle"
  3509. if attack==false then
  3510. if FloatMode == false then
  3511. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3512. stafweld.C0=clerp(stafweld.C0,cf(0,-0.1,1.2)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3513. 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)
  3514. 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)
  3515. 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)
  3516. 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)
  3517. 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)
  3518. 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)
  3519. elseif FloatMode == true then
  3520. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3521. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3522. 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)
  3523. 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)
  3524. 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)
  3525. 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)
  3526. 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)
  3527. 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)
  3528. 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)
  3529. 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)
  3530. end
  3531. end
  3532. elseif torvel>2 and torvel<42 and hitfloor~=nil then
  3533. Anim="Walk"
  3534. if attack==false then
  3535. if FloatMode == false then
  3536. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3537. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3538. 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)
  3539. 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)
  3540. 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)
  3541. 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)
  3542. 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)
  3543. 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)
  3544. elseif FloatMode == true then
  3545. sordweld.C0=clerp(sordweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3546. stafweld.C0=clerp(stafweld.C0,cf(1,0,1)*angles(math.rad(0),math.rad(50),math.rad(0)),.1)
  3547. 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)
  3548. 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)
  3549. 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)
  3550. 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)
  3551. 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)
  3552. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3553. 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)
  3554. 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)
  3555. end
  3556. end
  3557. elseif torvel>=42 and hitfloor~=nil then
  3558. Anim="Run"
  3559. if attack==false then
  3560. 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)
  3561. 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)
  3562. 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)
  3563. 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)
  3564. 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)
  3565. 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)
  3566. end
  3567. end
  3568. end
  3569. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement