kaualima12

haaaaaaaaaaaaaaaaaaaa

Aug 17th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.44 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player = owner
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. Player=owner
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88. warn'Corrupt Vectorist II, The Dimensiona.'
  89. plr = owner
  90. char = plr.Character
  91. hum = char.Humanoid
  92. local cam = game.Workspace.CurrentCamera
  93. t = char.Torso
  94. h = char.Head
  95. ra = char["Right Arm"]
  96. la = char["Left Arm"]
  97. rl = char["Right Leg"]
  98. ll = char["Left Leg"]
  99. tors = char.Torso
  100. lleg = char["Left Leg"]
  101. root = char.HumanoidRootPart
  102. hed = char.Head
  103. rleg = char["Right Leg"]
  104. rarm = char["Right Arm"]
  105. larm = char["Left Arm"]
  106. vt = Vector3.new
  107. bc = BrickColor.new
  108. br = BrickColor.random
  109. it = Instance.new
  110. cf = CFrame.new
  111.  
  112. function CameraShake(Times, Power)
  113. coroutine.resume(coroutine.create(function()
  114. FV = Instance.new("BoolValue", Character)
  115. FV.Name = "CameraShake"
  116. for ShakeNum=1,Times do
  117. swait()
  118. local ef=Power
  119. if ef>=1 then
  120. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  121. else
  122. ef=Power*10
  123. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  124. end
  125. end
  126. Humanoid.CameraOffset = Vector3.new(0,0,0)
  127. FV:Destroy()
  128. end))
  129. end
  130.  
  131. CamShake=function(Part,Distan,Power,Times)
  132. local de=Part.Position
  133. for i,v in pairs(workspace:children()) do
  134. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  135. for _,c in pairs(v:children()) do
  136. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  137. local Noob=v.Humanoid
  138. if Noob~=nil then
  139. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  140. --[[local ss=script.CamShake:clone()
  141. ss.Parent=Noob
  142. ss.Power.Value=Power
  143. ss.Times.Value=Times
  144. ss.Disabled=false]]
  145. CameraShake(Times, Power)
  146. end
  147. end
  148. end
  149. end
  150. end
  151. end
  152. end
  153.  
  154. function chatfunc(text,color)
  155. local chat = coroutine.wrap(function()
  156. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  157. Character:FindFirstChild("TalkingBillBoard"):destroy()
  158. end
  159. local naeeym2 = Instance.new("BillboardGui",Character)
  160. naeeym2.Size = UDim2.new(0,100,0,40)
  161. naeeym2.StudsOffset = Vector3.new(0,3,0)
  162. naeeym2.Adornee = Character.Head
  163. naeeym2.Name = "TalkingBillBoard"
  164. local tecks2 = Instance.new("TextLabel",naeeym2)
  165. tecks2.BackgroundTransparency = 1
  166. tecks2.BorderSizePixel = 0
  167. tecks2.Text = ""
  168. tecks2.Font = "SciFi"
  169. tecks2.TextSize = 30
  170. tecks2.TextStrokeTransparency = 0
  171. tecks2.TextColor3 = color
  172. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  173. tecks2.Size = UDim2.new(1,0,0.5,0)
  174. local tecks3 = Instance.new("TextLabel",naeeym2)
  175. tecks3.BackgroundTransparency = 1
  176. tecks3.BorderSizePixel = 0
  177. tecks3.Text = ""
  178. tecks3.Font = "SciFi"
  179. tecks3.TextSize = 30
  180. tecks3.TextStrokeTransparency = 0
  181. tecks3.TextColor3 = Color3.new(0,0,0)
  182. tecks3.TextStrokeColor3 = color
  183. tecks3.Size = UDim2.new(1,0,0.5,0)
  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. wait(0.01)
  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("Dark indigo")
  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(1,1,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,y1,z1)
  381. return mesh
  382. end
  383.  
  384. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  385. local mesh = Instance.new("SpecialMesh",parent)
  386. mesh.MeshType = "FileMesh"
  387. mesh.MeshId = meshid
  388. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  389. mesh.Scale = Vector3.new(x1,y1,z1)
  390. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  391. return mesh
  392. end
  393.  
  394. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  395. local weld = Instance.new("Weld")
  396. weld.Parent = parent
  397. weld.Part0 = part0
  398. weld.Part1 = part1
  399. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  400. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  401. return weld
  402. end
  403.  
  404.  
  405. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  406. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  407. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  408. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  409.  
  410. function RemoveOutlines(part)
  411. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  412. end
  413. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  414. local Part = Create("Part")({
  415. Parent = Parent,
  416. Reflectance = Reflectance,
  417. Transparency = Transparency,
  418. CanCollide = false,
  419. Locked = true,
  420. BrickColor = BrickColor.new(tostring(BColor)),
  421. Name = Name,
  422. Size = Size,
  423. Material = Material
  424. })
  425. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  426. RemoveOutlines(Part)
  427. return Part
  428. end
  429. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  430. local Msh = Create(Mesh)({
  431. Parent = Part,
  432. Offset = OffSet,
  433. Scale = Scale
  434. })
  435. if Mesh == "SpecialMesh" then
  436. Msh.MeshType = MeshType
  437. Msh.MeshId = MeshId
  438. end
  439. return Msh
  440. end
  441. function CreateWeld(Parent, Part0, Part1, C0, C1)
  442. local Weld = Create("Weld")({
  443. Parent = Parent,
  444. Part0 = Part0,
  445. Part1 = Part1,
  446. C0 = C0,
  447. C1 = C1
  448. })
  449. return Weld
  450. end
  451.  
  452. Player=owner
  453. Character=Player.Character
  454. PlayerGui=Player.PlayerGui
  455. Backpack=Player.Backpack
  456. Torso=Character.Torso
  457. Head=Character.Head
  458. Humanoid=Character.Humanoid
  459. m=Instance.new('Model',Character)
  460. LeftArm=Character["Left Arm"]
  461. LeftLeg=Character["Left Leg"]
  462. RightArm=Character["Right Arm"]
  463. RightLeg=Character["Right Leg"]
  464. LS=Torso["Left Shoulder"]
  465. LH=Torso["Left Hip"]
  466. RS=Torso["Right Shoulder"]
  467. RH=Torso["Right Hip"]
  468. Face = Head.face
  469. Neck=Torso.Neck
  470. it=Instance.new
  471. attacktype=1
  472. vt=Vector3.new
  473. cf=CFrame.new
  474. euler=CFrame.fromEulerAnglesXYZ
  475. angles=CFrame.Angles
  476. cloaked=false
  477. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  478. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  479. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  480. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  481. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  482. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  483. RootPart=Character.HumanoidRootPart
  484. RootJoint=RootPart.RootJoint
  485. RootCF=euler(-1.57,0,3.14)
  486. attack = false
  487. attackdebounce = false
  488. deb=false
  489. equipped=true
  490. hand=false
  491. MMouse=nil
  492. combo=0
  493. mana=0
  494. trispeed=.2
  495. attackmode='none'
  496. local idle=0
  497. local Anim="Idle"
  498. local Effects={}
  499. local gun=false
  500. local shoot=false
  501. local sine = 0
  502. local change = 1
  503. player=nil
  504.  
  505. mouse=Player:GetMouse()
  506. --save shoulders
  507. RSH, LSH=nil, nil
  508. --welds
  509. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  510. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  511. LH=Torso["Left Hip"]
  512. RH=Torso["Right Hip"]
  513. TorsoColor=Torso.BrickColor
  514. function NoOutline(Part)
  515. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  516. end
  517. player=Player
  518. ch=Character
  519. RSH=ch.Torso["Right Shoulder"]
  520. LSH=ch.Torso["Left Shoulder"]
  521. --
  522. RSH.Parent=nil
  523. LSH.Parent=nil
  524. --
  525. RW.Name="Right Shoulder"
  526. RW.Part0=ch.Torso
  527. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  528. RW.C1=cf(0, 0.5, 0)
  529. RW.Part1=ch["Right Arm"]
  530. RW.Parent=ch.Torso
  531. --
  532. LW.Name="Left Shoulder"
  533. LW.Part0=ch.Torso
  534. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  535. LW.C1=cf(0, 0.5, 0)
  536. LW.Part1=ch["Left Arm"]
  537. LW.Parent=ch.Torso
  538.  
  539. local Stats=Instance.new("BoolValue")
  540. Stats.Name="Stats"
  541. Stats.Parent=Character
  542. local Atk=Instance.new("NumberValue")
  543. Atk.Name="Damage"
  544. Atk.Parent=Stats
  545. Atk.Value=1
  546. local Def=Instance.new("NumberValue")
  547. Def.Name="Defense"
  548. Def.Parent=Stats
  549. Def.Value=1
  550. local Speed=Instance.new("NumberValue")
  551. Speed.Name="Speed"
  552. Speed.Parent=Stats
  553. Speed.Value=1
  554. local Mvmt=Instance.new("NumberValue")
  555. Mvmt.Name="Movement"
  556. Mvmt.Parent=Stats
  557. Mvmt.Value=1
  558.  
  559. local donum=0
  560.  
  561.  
  562. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  563. local fp=it("Part")
  564. fp.formFactor=formfactor
  565. fp.Parent=parent
  566. fp.Reflectance=reflectance
  567. fp.Transparency=transparency
  568. fp.CanCollide=false
  569. fp.Locked=true
  570. fp.BrickColor=brickcolor
  571. fp.Name=name
  572. fp.Size=size
  573. fp.Position=Torso.Position
  574. NoOutline(fp)
  575. fp.Material="SmoothPlastic"
  576. fp:BreakJoints()
  577. return fp
  578. end
  579.  
  580. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  581. local mesh=it(Mesh)
  582. mesh.Parent=part
  583. if Mesh=="SpecialMesh" then
  584. mesh.MeshType=meshtype
  585. if meshid~="nil" then
  586. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  587. end
  588. end
  589. mesh.Offset=offset
  590. mesh.Scale=scale
  591. return mesh
  592. end
  593.  
  594. function weld(parent,part0,part1,c0)
  595. local weld=it("Weld")
  596. weld.Parent=parent
  597. weld.Part0=part0
  598. weld.Part1=part1
  599. weld.C0=c0
  600. return weld
  601. end
  602.  
  603. local Color1=Torso.BrickColor
  604.  
  605. local bodvel=Instance.new("BodyVelocity")
  606. local bg=Instance.new("BodyGyro")
  607.  
  608. function swait(num)
  609. if num==0 or num==nil then
  610. game:service'RunService'.Stepped:wait(0)
  611. else
  612. for i=0,num do
  613. game:service'RunService'.Stepped:wait(0)
  614. end
  615. end
  616. end
  617.  
  618.  
  619. so = function(id,par,vol,pit)
  620. coroutine.resume(coroutine.create(function()
  621. local sou = Instance.new("Sound",par or workspace)
  622. sou.Volume=vol
  623. sou.Pitch=pit or 1
  624. sou.SoundId=id
  625. swait()
  626. sou:play()
  627. game:GetService("Debris"):AddItem(sou,6)
  628. end))
  629. end
  630.  
  631. function clerp(a,b,t)
  632. local qa = {QuaternionFromCFrame(a)}
  633. local qb = {QuaternionFromCFrame(b)}
  634. local ax, ay, az = a.x, a.y, a.z
  635. local bx, by, bz = b.x, b.y, b.z
  636. local _t = 1-t
  637. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  638. end
  639.  
  640. function QuaternionFromCFrame(cf)
  641. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  642. local trace = m00 + m11 + m22
  643. if trace > 0 then
  644. local s = math.sqrt(1 + trace)
  645. local recip = 0.5/s
  646. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  647. else
  648. local i = 0
  649. if m11 > m00 then
  650. i = 1
  651. end
  652. if m22 > (i == 0 and m00 or m11) then
  653. i = 2
  654. end
  655. if i == 0 then
  656. local s = math.sqrt(m00-m11-m22+1)
  657. local recip = 0.5/s
  658. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  659. elseif i == 1 then
  660. local s = math.sqrt(m11-m22-m00+1)
  661. local recip = 0.5/s
  662. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  663. elseif i == 2 then
  664. local s = math.sqrt(m22-m00-m11+1)
  665. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  666. end
  667. end
  668. end
  669.  
  670. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  671. local xs, ys, zs = x + x, y + y, z + z
  672. local wx, wy, wz = w*xs, w*ys, w*zs
  673. local xx = x*xs
  674. local xy = x*ys
  675. local xz = x*zs
  676. local yy = y*ys
  677. local yz = y*zs
  678. local zz = z*zs
  679. 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))
  680. end
  681.  
  682. function QuaternionSlerp(a, b, t)
  683. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  684. local startInterp, finishInterp;
  685. if cosTheta >= 0.0001 then
  686. if (1 - cosTheta) > 0.0001 then
  687. local theta = math.acos(cosTheta)
  688. local invSinTheta = 1/math.sin(theta)
  689. startInterp = math.sin((1-t)*theta)*invSinTheta
  690. finishInterp = math.sin(t*theta)*invSinTheta
  691. else
  692. startInterp = 1-t
  693. finishInterp = t
  694. end
  695. else
  696. if (1+cosTheta) > 0.0001 then
  697. local theta = math.acos(-cosTheta)
  698. local invSinTheta = 1/math.sin(theta)
  699. startInterp = math.sin((t-1)*theta)*invSinTheta
  700. finishInterp = math.sin(t*theta)*invSinTheta
  701. else
  702. startInterp = t-1
  703. finishInterp = t
  704. end
  705. end
  706. 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
  707. end
  708.  
  709. local function CFrameFromTopBack(at, top, back)
  710. local right = top:Cross(back)
  711. return CFrame.new(at.x, at.y, at.z,
  712. right.x, top.x, back.x,
  713. right.y, top.y, back.y,
  714. right.z, top.z, back.z)
  715. end
  716.  
  717. function Triangle(a, b, c)
  718. local edg1 = (c-a):Dot((b-a).unit)
  719. local edg2 = (a-b):Dot((c-b).unit)
  720. local edg3 = (b-c):Dot((a-c).unit)
  721. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  722. a, b, c = a, b, c
  723. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  724. a, b, c = b, c, a
  725. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  726. a, b, c = c, a, b
  727. else
  728. assert(false, "unreachable")
  729. end
  730.  
  731. local len1 = (c-a):Dot((b-a).unit)
  732. local len2 = (b-a).magnitude - len1
  733. local width = (a + (b-a).unit*len1 - c).magnitude
  734.  
  735. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  736.  
  737. local list = {}
  738.  
  739. if len1 > 0.01 then
  740. local w1 = Instance.new('WedgePart', m)
  741. game:GetService("Debris"):AddItem(w1,5)
  742. w1.Material = "SmoothPlastic"
  743. w1.FormFactor = 'Custom'
  744. w1.BrickColor = BrickColor.new("Really red")
  745. w1.Transparency = 0
  746. w1.Reflectance = 0
  747. w1.Material = "SmoothPlastic"
  748. w1.CanCollide = false
  749. local l1 = Instance.new("PointLight",w1)
  750. l1.Color = Color3.new(170,0,0)
  751. NoOutline(w1)
  752. local sz = Vector3.new(0.2, width, len1)
  753. w1.Size = sz
  754. local sp = Instance.new("SpecialMesh",w1)
  755. sp.MeshType = "Wedge"
  756. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  757. w1:BreakJoints()
  758. w1.Anchored = true
  759. w1.Parent = workspace
  760. w1.Transparency = 0.7
  761. table.insert(Effects,{w1,"Disappear",.01})
  762. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  763. table.insert(list,w1)
  764. end
  765.  
  766. if len2 > 0.01 then
  767. local w2 = Instance.new('WedgePart', m)
  768. game:GetService("Debris"):AddItem(w2,5)
  769. w2.Material = "SmoothPlastic"
  770. w2.FormFactor = 'Custom'
  771. w2.BrickColor = BrickColor.new("Really red")
  772. w2.Transparency = 0
  773. w2.Reflectance = 0
  774. w2.Material = "SmoothPlastic"
  775. w2.CanCollide = false
  776. local l2 = Instance.new("PointLight",w2)
  777. l2.Color = Color3.new(170,0,0)
  778. NoOutline(w2)
  779. local sz = Vector3.new(0.2, width, len2)
  780. w2.Size = sz
  781. local sp = Instance.new("SpecialMesh",w2)
  782. sp.MeshType = "Wedge"
  783. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  784. w2:BreakJoints()
  785. w2.Anchored = true
  786. w2.Parent = workspace
  787. w2.Transparency = 0.7
  788. table.insert(Effects,{w2,"Disappear",.01})
  789. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  790. table.insert(list,w2)
  791. end
  792. return unpack(list)
  793. end
  794.  
  795.  
  796. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  797. if hit.Parent == nil then
  798. return
  799. end
  800. local h = hit.Parent:FindFirstChild("Humanoid")
  801. for _, v in pairs(hit.Parent:children()) do
  802. if v:IsA("Humanoid") then
  803. h = v
  804. end
  805. end
  806. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  807. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  808. return
  809. end
  810. local c = Create("ObjectValue")({
  811. Name = "creator",
  812. Value = game:service("Players").LocalPlayer,
  813. Parent = h
  814. })
  815. game:GetService("Debris"):AddItem(c, 0.5)
  816. if HitSound ~= nil and HitPitch ~= nil then
  817. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  818. end
  819. local Damage = math.random(minim, maxim)
  820. local blocked = false
  821. local block = hit.Parent:findFirstChild("Block")
  822. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  823. blocked = true
  824. block.Value = block.Value - 1
  825. print(block.Value)
  826. end
  827. if blocked == false then
  828. HitHealth = h.Health
  829. h.Health = h.Health - Damage
  830. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  831. print("gained kill")
  832. end
  833. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  834. else
  835. h.Health = h.Health - Damage / 2
  836. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  837. end
  838. if Type == "Knockdown" then
  839. local hum = hit.Parent.Humanoid
  840. hum.PlatformStand = true
  841. coroutine.resume(coroutine.create(function(HHumanoid)
  842. swait(1)
  843. HHumanoid.PlatformStand = false
  844. end), hum)
  845. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  846. local bodvol = Create("BodyVelocity")({
  847. velocity = angle * knockback,
  848. P = 5000,
  849. maxForce = Vector3.new(8000, 8000, 8000),
  850. Parent = hit
  851. })
  852. local rl = Create("BodyAngularVelocity")({
  853. P = 3000,
  854. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  855. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  856. Parent = hit
  857. })
  858. game:GetService("Debris"):AddItem(bodvol, 0.5)
  859. game:GetService("Debris"):AddItem(rl, 0.5)
  860. elseif Type == "Normal" then
  861. local vp = Create("BodyVelocity")({
  862. P = 500,
  863. maxForce = Vector3.new(math.huge, 0, math.huge),
  864. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  865. })
  866. if knockback > 0 then
  867. vp.Parent = hit.Parent.Torso
  868. end
  869. game:GetService("Debris"):AddItem(vp, 0.5)
  870. elseif Type == "Up" then
  871. local bodyVelocity = Create("BodyVelocity")({
  872. velocity = Vector3.new(0, 20, 0),
  873. P = 5000,
  874. maxForce = Vector3.new(8000, 8000, 8000),
  875. Parent = hit
  876. })
  877. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  878. local bodyVelocity = Create("BodyVelocity")({
  879. velocity = Vector3.new(0, 20, 0),
  880. P = 5000,
  881. maxForce = Vector3.new(8000, 8000, 8000),
  882. Parent = hit
  883. })
  884. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  885. elseif Type == "Leech" then
  886. local hum = hit.Parent.Humanoid
  887. if hum ~= nil then
  888. for i = 0, 2 do
  889. 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)
  890. end
  891. Humanoid.Health = Humanoid.Health + 10
  892. end
  893. elseif Type == "UpKnock" then
  894. local hum = hit.Parent.Humanoid
  895. hum.PlatformStand = true
  896. if hum ~= nil then
  897. hitr = true
  898. end
  899. coroutine.resume(coroutine.create(function(HHumanoid)
  900. swait(5)
  901. HHumanoid.PlatformStand = false
  902. hitr = false
  903. end), hum)
  904. local bodyVelocity = Create("BodyVelocity")({
  905. velocity = Vector3.new(0, 20, 0),
  906. P = 5000,
  907. maxForce = Vector3.new(8000, 8000, 8000),
  908. Parent = hit
  909. })
  910. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  911. local bodyVelocity = Create("BodyVelocity")({
  912. velocity = Vector3.new(0, 20, 0),
  913. P = 5000,
  914. maxForce = Vector3.new(8000, 8000, 8000),
  915. Parent = hit
  916. })
  917. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  918. elseif Type == "Snare" then
  919. local bp = Create("BodyPosition")({
  920. P = 2000,
  921. D = 100,
  922. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  923. position = hit.Parent.Torso.Position,
  924. Parent = hit.Parent.Torso
  925. })
  926. game:GetService("Debris"):AddItem(bp, 1)
  927. elseif Type == "Slashnare" then
  928. 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)
  929. for i = 1, math.random(4, 5) do
  930. 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)
  931. end
  932. local bp = Create("BodyPosition")({
  933. P = 2000,
  934. D = 100,
  935. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  936. position = hit.Parent.Torso.Position,
  937. Parent = hit.Parent.Torso
  938. })
  939. game:GetService("Debris"):AddItem(bp, 1)
  940. elseif Type == "Spike" then
  941. CreateBigIceSword(hit.Parent.Torso.CFrame)
  942. local bp = Create("BodyPosition")({
  943. P = 2000,
  944. D = 100,
  945. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  946. position = hit.Parent.Torso.Position,
  947. Parent = hit.Parent.Torso
  948. })
  949. game:GetService("Debris"):AddItem(bp, 1)
  950. elseif Type == "Freeze" then
  951. local BodPos = Create("BodyPosition")({
  952. P = 50000,
  953. D = 1000,
  954. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  955. position = hit.Parent.Torso.Position,
  956. Parent = hit.Parent.Torso
  957. })
  958. local BodGy = Create("BodyGyro")({
  959. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  960. P = 20000,
  961. Parent = hit.Parent.Torso,
  962. cframe = hit.Parent.Torso.CFrame
  963. })
  964. hit.Parent.Torso.Anchored = true
  965. coroutine.resume(coroutine.create(function(Part)
  966. swait(1.5)
  967. Part.Anchored = false
  968. end), hit.Parent.Torso)
  969. game:GetService("Debris"):AddItem(BodPos, 3)
  970. game:GetService("Debris"):AddItem(BodGy, 3)
  971. end
  972. local debounce = Create("BoolValue")({
  973. Name = "DebounceHit",
  974. Parent = hit.Parent,
  975. Value = true
  976. })
  977. game:GetService("Debris"):AddItem(debounce, Delay)
  978. c = Instance.new("ObjectValue")
  979. c.Name = "creator"
  980. c.Value = Player
  981. c.Parent = h
  982. game:GetService("Debris"):AddItem(c, 0.5)
  983. end
  984. end
  985. function ShowDamage(Pos, Text, Time, Color)
  986. local Rate = 0.1
  987. local Pos = Pos or Vector3.new(0, 0, 0)
  988. local Text = Text or ""
  989. local Time = Time or 2
  990. local Color = Color or Color3.new(1, 0, 1)
  991. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  992. EffectPart.Anchored = true
  993. local BillboardGui = Create("BillboardGui")({
  994. Size = UDim2.new(3, 0, 3, 0),
  995. Adornee = EffectPart,
  996. Parent = EffectPart
  997. })
  998. local TextLabel = Create("TextLabel")({
  999. BackgroundTransparency = 1,
  1000. Size = UDim2.new(1, 0, 1, 0),
  1001. Text = Text,
  1002. TextColor3 = Color3.new(1,1,1),
  1003. TextStrokeColor3 = Color3.new(0,0,0),
  1004. TextStrokeTransparency = 0.25,
  1005. TextScaled = true,
  1006. Font = Enum.Font.Fantasy,
  1007. TextSize = 24,
  1008. Parent = BillboardGui
  1009. })
  1010. game.Debris:AddItem(EffectPart, Time + 0.1)
  1011. EffectPart.Parent = game:GetService("Workspace")
  1012. delay(0, function()
  1013. local Frames = Time / Rate
  1014. for Frame = 1, Frames do
  1015. swait(Rate)
  1016. local Percent = Frame / Frames
  1017. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent*2, 0)
  1018. TextLabel.TextTransparency = Percent
  1019. TextLabel.TextStrokeTransparency = Percent
  1020. end
  1021. if EffectPart and EffectPart.Parent then
  1022. EffectPart:Destroy()
  1023. end
  1024. end)
  1025. end
  1026. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1027. for _, c in pairs(workspace:children()) do
  1028. local hum = c:findFirstChild("Humanoid")
  1029. if hum ~= nil then
  1030. local head = c:findFirstChild("Torso")
  1031. if head ~= nil then
  1032. local targ = head.Position - Part.Position
  1033. local mag = targ.magnitude
  1034. if magni >= mag and c.Name ~= Player.Name then
  1035. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1036. end
  1037. end
  1038. end
  1039. end
  1040. end
  1041.  
  1042. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1043. for _, c in pairs(workspace:children()) do
  1044. local hum = c:findFirstChild("Humanoid")
  1045. if hum ~= nil then
  1046. local head = c:findFirstChild("Torso")
  1047. if head ~= nil then
  1048. local targ = head.Position - Part.Position
  1049. local mag = targ.magnitude
  1050. if magni >= mag and c.Name ~= Player.Name then
  1051. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  1052. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1053. end
  1054. end
  1055. end
  1056. end
  1057. end
  1058.  
  1059. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1060. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1061. end
  1062.  
  1063. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1064. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1065. prt.Anchored=true
  1066. prt.CFrame=cframe
  1067. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1068. --http://www.roblox.com/asset/?id=4770560
  1069. game:GetService("Debris"):AddItem(prt,2)
  1070. CF=prt.CFrame
  1071. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1072. for i=0,1,0.2 do
  1073. wait()
  1074. Part.CFrame=CF*cf(0,0,-0.4)
  1075. end
  1076. for i=0,1,delay do
  1077. wait()
  1078. --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)
  1079. Mesh.Scale=Mesh.Scale
  1080. end
  1081. for i=0,1,0.1 do
  1082. wait()
  1083. Part.Transparency=i
  1084. end
  1085. Part.Parent=nil
  1086. end),prt,msh,CF)
  1087. end
  1088.  
  1089. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1090. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1091. prt.Anchored=true
  1092. prt.Material = "Neon"
  1093. prt.CFrame=cframe
  1094. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1095. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1096. game:GetService("Debris"):AddItem(prt,5)
  1097. coroutine.resume(coroutine.create(function(Part,Mesh)
  1098. for i=0,1,delay do
  1099. swait()
  1100. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1101. Part.Transparency=i
  1102. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1103. end
  1104. Part.Parent=nil
  1105. end),prt,msh)
  1106. end
  1107.  
  1108. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1109. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1110. prt.Anchored=true
  1111. prt.Material = "Neon"
  1112. prt.CFrame=cframe
  1113. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1114. game:GetService("Debris"):AddItem(prt,5)
  1115. coroutine.resume(coroutine.create(function(Part,Mesh)
  1116. local rtype = rottype
  1117. for i=0,1,delay do
  1118. swait()
  1119. if rtype == 1 then
  1120. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1121. elseif rtype == 2 then
  1122. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1123. end
  1124. Part.Transparency=i
  1125. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1126. end
  1127. Part.Parent=nil
  1128. end),prt,msh)
  1129. end
  1130.  
  1131. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1132. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1133. prt.Anchored=true
  1134. prt.CFrame=cframe
  1135. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1136. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1137. game:GetService("Debris"):AddItem(prt,5)
  1138. coroutine.resume(coroutine.create(function(Part,Mesh)
  1139. for i=0,1,delay do
  1140. wait()
  1141. Part.Transparency=i
  1142. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1143. end
  1144. Part.Parent=nil
  1145. end),prt,msh)
  1146. end
  1147.  
  1148. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1149. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1150. prt.Anchored=true
  1151. prt.Material = "Neon"
  1152. prt.CFrame=cframe
  1153. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1154. game:GetService("Debris"):AddItem(prt,5)
  1155. coroutine.resume(coroutine.create(function(Part,Mesh)
  1156. local rtype = rottype
  1157. for i=0,1,delay do
  1158. swait()
  1159. if rtype == 1 then
  1160. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1161. elseif rtype == 2 then
  1162. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1163. end
  1164. Part.Transparency=i
  1165. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1166. end
  1167. Part.Parent=nil
  1168. end),prt,msh)
  1169. end
  1170.  
  1171. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1172. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1173. prt.Anchored=true
  1174. prt.Material = "Neon"
  1175. prt.CFrame=cframe
  1176. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1177. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1178. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1179. game:GetService("Debris"):AddItem(prt,5)
  1180. coroutine.resume(coroutine.create(function(Part,Mesh)
  1181. local rtype = rottype
  1182. for i=0,1,delay do
  1183. swait()
  1184. if rtype == 1 then
  1185. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1186. elseif rtype == 2 then
  1187. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1188. end
  1189. dec.Transparency=i
  1190. dec2.Transparency=i
  1191. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1192. end
  1193. Part.Parent=nil
  1194. end),prt,msh)
  1195. end
  1196.  
  1197. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1198. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1199. prt.Anchored=true
  1200. prt.Material = "Neon"
  1201. prt.CFrame=cframe
  1202. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1203. game:GetService("Debris"):AddItem(prt,5)
  1204. coroutine.resume(coroutine.create(function(Part,Mesh)
  1205. local rtype = rottype
  1206. for i=0,1,delay do
  1207. swait()
  1208. if rtype == 1 then
  1209. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1210. elseif rtype == 2 then
  1211. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1212. end
  1213. prt.Transparency=i
  1214. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1215. end
  1216. Part.Parent=nil
  1217. end),prt,msh)
  1218. end
  1219.  
  1220. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1221. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1222. prt.Anchored=true
  1223. prt.Material = "Neon"
  1224. prt.CFrame=cframe
  1225. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1226. game:GetService("Debris"):AddItem(prt,5)
  1227. coroutine.resume(coroutine.create(function(Part,Mesh)
  1228. local rtype = rottype
  1229. for i=0,1,delay do
  1230. swait()
  1231. if rtype == 1 then
  1232. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1233. elseif rtype == 2 then
  1234. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1235. end
  1236. prt.Transparency=i
  1237. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1238. end
  1239. Part.Parent=nil
  1240. end),prt,msh)
  1241. end
  1242.  
  1243. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1244. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1245. prt.Anchored=true
  1246. prt.Material = "Neon"
  1247. prt.CFrame=cframe
  1248. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1249. game:GetService("Debris"):AddItem(prt,5)
  1250. coroutine.resume(coroutine.create(function(Part,Mesh)
  1251. local rtype = rottype
  1252. for i=0,1,delay do
  1253. swait()
  1254. if rtype == 1 then
  1255. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1256. elseif rtype == 2 then
  1257. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1258. end
  1259. prt.Transparency=i
  1260. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1261. end
  1262. Part.Parent=nil
  1263. end),prt,msh)
  1264. end
  1265.  
  1266. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1267. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1268. prt.Anchored=true
  1269. prt.Material = "Neon"
  1270. prt.CFrame=cframe
  1271. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1272. game:GetService("Debris"):AddItem(prt,5)
  1273. coroutine.resume(coroutine.create(function(Part,Mesh)
  1274. local rtype = rottype
  1275. for i=0,1,delay do
  1276. swait()
  1277. if rtype == 1 then
  1278. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1279. elseif rtype == 2 then
  1280. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1281. end
  1282. prt.Transparency=i
  1283. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1284. end
  1285. Part.Parent=nil
  1286. end),prt,msh)
  1287. end
  1288.  
  1289. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1290. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1291. prt.Anchored=false
  1292. prt.CFrame=cframe
  1293. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1294. local wld=weld(prt,prt,Parent,cframe)
  1295. game:GetService("Debris"):AddItem(prt,5)
  1296. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1297. for i=0,1,delay do
  1298. wait()
  1299. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1300. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1301. Part.Transparency=i
  1302. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1303. end
  1304. Part.Parent=nil
  1305. end),prt,msh,wld)
  1306. end
  1307.  
  1308. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1309. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1310. prt.Anchored=false
  1311. prt.CFrame=cframe
  1312. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1313. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1314. game:GetService("Debris"):AddItem(prt,5)
  1315. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1316. for i=0,1,delay do
  1317. wait()
  1318. Weld.C0=euler(i*20,0,0)
  1319. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1320. Part.Transparency=i
  1321. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1322. end
  1323. Part.Parent=nil
  1324. end),prt,msh,wld)
  1325. end
  1326.  
  1327. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1328. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1329. prt.Anchored=true
  1330. prt.CFrame=cframe
  1331. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1332. game:GetService("Debris"):AddItem(prt,2)
  1333. coroutine.resume(coroutine.create(function(Part,Mesh)
  1334. for i=0,1,delay do
  1335. wait()
  1336. Part.CFrame=Part.CFrame
  1337. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1338. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1339. prt2.Anchored=true
  1340. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1341. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1342. game:GetService("Debris"):AddItem(prt2,2)
  1343. coroutine.resume(coroutine.create(function(Part,Mesh)
  1344. for i=0,1,0.1 do
  1345. wait()
  1346. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1347. end
  1348. Part.Parent=nil
  1349. end),prt2,msh2)
  1350. end
  1351. for i=0,1,delay*2 do
  1352. wait()
  1353. Part.CFrame=Part.CFrame
  1354. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1355. end
  1356. Part.Parent=nil
  1357. end),prt,msh)
  1358. end
  1359.  
  1360. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1361. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1362. prt.Anchored=true
  1363. prt.CFrame=cframe
  1364. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1365. game:GetService("Debris"):AddItem(prt,2)
  1366. coroutine.resume(coroutine.create(function(Part,Mesh)
  1367. for i=0,1,delay do
  1368. wait()
  1369. Part.CFrame=Part.CFrame
  1370. Part.Transparency=i
  1371. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1372. end
  1373. Part.Parent=nil
  1374. end),prt,msh)
  1375. end
  1376.  
  1377. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1378. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1379. prt.Anchored=true
  1380. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1381. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1382. game:GetService("Debris"):AddItem(prt,2)
  1383. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1384. CF=Part.CFrame
  1385. Numbb=0
  1386. randnumb=math.random()/10
  1387. rand1=math.random()/10
  1388. for i=0,1,rand1 do
  1389. wait()
  1390. CF=CF*cf(0,math.random()/2,0)
  1391. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1392. Part.CFrame=CF*euler(Numbb,0,0)
  1393. Part.Transparency=i
  1394. Numbb=Numbb+randnumb
  1395. end
  1396. Part.Parent=nil
  1397. end),prt,CF,Numbb,randnumb)
  1398. end
  1399.  
  1400. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1401. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1402. prt.Anchored=true
  1403. prt.CFrame=cframe
  1404. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1405. game:GetService("Debris"):AddItem(prt,5)
  1406. coroutine.resume(coroutine.create(function(Part,Mesh)
  1407. for i=0,1,delay do
  1408. wait()
  1409. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1410. Part.Transparency=i
  1411. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1412. end
  1413. Part.Parent=nil
  1414. end),prt,msh)
  1415. end
  1416.  
  1417. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1418. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1419. prt.Anchored=true
  1420. prt.CFrame=cframe
  1421. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1422. game:GetService("Debris"):AddItem(prt,2)
  1423. coroutine.resume(coroutine.create(function(Part,Mesh)
  1424. for i=0,1,delay do
  1425. wait()
  1426. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1427. Part.Transparency=i
  1428. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1429. end
  1430. Part.Parent=nil
  1431. end),prt,msh)
  1432. end
  1433.  
  1434. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1435. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1436. prt.Anchored=true
  1437. prt.CFrame=cframe*cf(x,y,z)
  1438. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1439. game:GetService("Debris"):AddItem(prt,5)
  1440. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1441. local num=math.random()
  1442. local num2=math.random(-3,2)+math.random()
  1443. local numm=0
  1444. for i=0,1,delay*2 do
  1445. swait()
  1446. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1447. Part.Transparency=i
  1448. numm=numm+0.01
  1449. end
  1450. Part.Parent=nil
  1451. Mesh.Parent=nil
  1452. end),prt,msh,x,y,z)
  1453. end
  1454.  
  1455. function dmgstart(dmg,what)
  1456. hitcon = what.Touched:connect(function(hit)
  1457. local hum = hit.Parent:FindFirstChild("Humanoid")
  1458. if hum and not hum:IsDescendantOf(Character) then
  1459. hum:TakeDamage(dmg)
  1460. end
  1461. end)
  1462. end
  1463.  
  1464. function dmgstop()
  1465. hitcon:disconnect()
  1466. end
  1467.  
  1468. function Cloak()
  1469. Face.Parent=nil
  1470. cloaked=true
  1471. for _,v in pairs(Torso.Parent:children()) do
  1472. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1473. coroutine.resume(coroutine.create(function()
  1474. for i=0,1,0.2 do
  1475. wait()
  1476. v.Transparency=i
  1477. end
  1478. v.Transparency=1
  1479. end))
  1480. end
  1481. if v.className=="Hat" then
  1482. hatp=v.Handle
  1483. coroutine.resume(coroutine.create(function(derp)
  1484. for i=0,1,0.2 do
  1485. wait()
  1486. derp.Transparency=i
  1487. end
  1488. derp.Transparency=1
  1489. end),hatp)
  1490. end
  1491. end
  1492. for _,v in pairs(m:children()) do
  1493. if v.className=="Part" then
  1494. coroutine.resume(coroutine.create(function()
  1495. for i=0,1,0.2 do
  1496. wait()
  1497. v.Transparency=i
  1498. end
  1499. v.Transparency=1
  1500. end))
  1501. end
  1502. end
  1503. end
  1504.  
  1505. function UnCloak()
  1506. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1507. Face.Parent=Head
  1508. cloaked=false
  1509. for _,v in pairs(Torso.Parent:children()) do
  1510. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1511. coroutine.resume(coroutine.create(function()
  1512. for i=0,1,0.1 do
  1513. wait()
  1514. v.Transparency=v.Transparency-0.1
  1515. end
  1516. v.Transparency=0
  1517. end))
  1518. end
  1519. if v.className=="Hat" then
  1520. hatp=v.Handle
  1521. coroutine.resume(coroutine.create(function(derp)
  1522. for i=0,1,0.1 do
  1523. wait()
  1524. derp.Transparency=derp.Transparency-0.1
  1525. end
  1526. derp.Transparency=0
  1527. end),hatp)
  1528. end
  1529. end
  1530. for _,v in pairs(m:children()) do
  1531. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1532. coroutine.resume(coroutine.create(function()
  1533. for i=0,1,0.1 do
  1534. wait()
  1535. v.Transparency=v.Transparency-0.1
  1536. end
  1537. v.Transparency=0
  1538. end))
  1539. v.Transparency=0
  1540. end
  1541. end
  1542. end
  1543.  
  1544. local origcolor = BrickColor.new("Dark indigo")
  1545. ---- This section of explosions.
  1546. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1547. local expart = Instance.new("Part",char)
  1548. local expart2 = Instance.new("Part",char)
  1549. local rin = Instance.new("Part",char)
  1550. local rin2 = Instance.new("Part",char)
  1551. local partMesh = Instance.new("SpecialMesh",expart)
  1552. partMesh.MeshType = "Sphere"
  1553. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1554. partMesh2.MeshType = "Sphere"
  1555. local partMesh3 = Instance.new("SpecialMesh",rin)
  1556. partMesh3.MeshType = "Brick"
  1557. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1558. partMesh4.MeshType = "Brick"
  1559. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1560. partMesh.Scale = vt(rad,rad,rad)
  1561. expart.Size = vt(1,1,1)
  1562. expart.Transparency = 1
  1563. expart.Anchored = true
  1564. expart.Material = "Neon"
  1565. expart.BrickColor = bc("White")
  1566. expart.CFrame = par.CFrame
  1567. partMesh2.Scale = vt(rad,rad,rad)
  1568. expart2.Size = vt(1.15,1.15,1.15)
  1569. expart2.Transparency = 0.75
  1570. expart2.Anchored = true
  1571. expart2.Material = "Glass"
  1572. expart2.BrickColor = par.BrickColor
  1573. expart2.CFrame = par.CFrame
  1574. rin.Size = vt(1.15,1.15,1.15)
  1575. rin.Transparency = 1
  1576. rin.Anchored = true
  1577. rin.Material = "Neon"
  1578. rin.BrickColor = par.BrickColor
  1579. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1580. rin2.Size = vt(1.15,1.15,1.15)
  1581. rin2.Transparency = 1
  1582. rin2.Anchored = true
  1583. rin2.Material = "Neon"
  1584. rin2.BrickColor = par.BrickColor
  1585. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1586. partMesh3.Scale = vt(0,1,0)
  1587. partMesh4.Scale = vt(0,1,0)
  1588. local dec2 = Instance.new("Decal", rin)
  1589. dec2.Face = "Top"
  1590. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1591. dec2.Parent = rin
  1592. local dec2b = dec2:Clone()
  1593. dec2b.Face = "Bottom"
  1594. dec2b.Parent = rin
  1595.  
  1596. local dec2a = Instance.new("Decal", rin2)
  1597. dec2a.Face = "Top"
  1598. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1599. dec2a.Parent = rin2
  1600. local dec2ab = dec2a:Clone()
  1601. dec2ab.Face = "Bottom"
  1602. dec2ab.Parent = rin2
  1603. expart.CanCollide = false
  1604. expart2.CanCollide = false
  1605. rin.CanCollide = false
  1606. rin2.CanCollide = false
  1607. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1608. local value = 1*rad/6.5
  1609. for i = 0, 199 do
  1610. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1611. expart.CFrame = expart.CFrame
  1612. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1613. expart2.CFrame = expart.CFrame
  1614. value = value - 0.035*rad/30
  1615. if value < 7.5 then
  1616. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1617. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1618. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1619. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1620. end
  1621. if value < 0 then
  1622. dec2.Transparency = dec2.Transparency + 0.025
  1623. dec2a.Transparency = dec2a.Transparency + 0.025
  1624. dec2b.Transparency = dec2b.Transparency + 0.025
  1625. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1626. expart.Transparency = expart.Transparency + 0.025
  1627. expart2.Transparency = expart2.Transparency + 0.025
  1628. rin.Transparency = rin.Transparency + 0.025
  1629. rin2.Transparency = rin2.Transparency + 0.025
  1630. end
  1631. swait()
  1632. end
  1633. game:GetService("Debris"):AddItem(expart, 1)
  1634. game:GetService("Debris"):AddItem(expart2, 1)
  1635. game:GetService("Debris"):AddItem(rin, 1)
  1636. game:GetService("Debris"):AddItem(rin2, 1)
  1637. end
  1638.  
  1639. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1640. local expart = Instance.new("Part",char)
  1641. local expart2 = Instance.new("Part",char)
  1642. local partMesh = Instance.new("SpecialMesh",expart)
  1643. partMesh.MeshType = "Sphere"
  1644. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1645. partMesh2.MeshType = "Sphere"
  1646. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1647. partMesh.Scale = vt(rad,rad,rad)
  1648. expart.Size = vt(1,1,1)
  1649. expart.Transparency = 0
  1650. expart.Anchored = true
  1651. expart.Material = "Neon"
  1652. expart.BrickColor = bc("White")
  1653. expart.CFrame = par.CFrame
  1654. partMesh2.Scale = vt(rad,rad,rad)
  1655. expart2.Size = vt(1.15,1.15,1.15)
  1656. expart2.Transparency = 0.5
  1657. expart2.Anchored = true
  1658. expart2.Material = "Neon"
  1659. expart2.BrickColor = par.BrickColor
  1660. expart2.CFrame = par.CFrame
  1661. expart.CanCollide = false
  1662. expart2.CanCollide = false
  1663. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1664. local value = 1*rad/6.5
  1665. for i = 0, 75 do
  1666. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1667. expart.CFrame = expart.CFrame
  1668. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1669. expart2.CFrame = expart.CFrame
  1670. value = value - 0.035*rad/5
  1671. if value < 0 then
  1672. value = 0
  1673. expart.Transparency = expart.Transparency + 0.05
  1674. expart2.Transparency = expart2.Transparency + 0.05
  1675. end
  1676. swait()
  1677. end
  1678. game:GetService("Debris"):AddItem(expart, 1)
  1679. game:GetService("Debris"):AddItem(expart2, 1)
  1680. end
  1681.  
  1682. function AreaDanger(rad,par,mindam,maxdam)
  1683. local expart = Instance.new("Part",char)
  1684. local partMesh = Instance.new("SpecialMesh",expart)
  1685. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1686. partMesh.MeshType = "Sphere"
  1687. partMesh.Scale = vt(rad,rad,rad)
  1688. expart.Size = vt(1,1,1)
  1689. expart.Transparency = 0.5
  1690. expart.Anchored = true
  1691. expart.Material = "Neon"
  1692. expart.CanCollide = false
  1693. expart.BrickColor = par.BrickColor
  1694. expart.CFrame = par.CFrame
  1695. local value = 1*rad/5
  1696. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1697. for i = 0, 14 do
  1698. wait()
  1699. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1700. expart.CFrame = expart.CFrame
  1701. value = value - 0.035*rad
  1702. if value < 0 then
  1703. value = 0
  1704. end
  1705. end
  1706. wait(0.25)
  1707. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1708. wait(0.5)
  1709. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1710. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1711. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1712. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1713. for i = 0, 14 do
  1714. wait()
  1715. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1716. expart.CFrame = expart.CFrame
  1717. value = value - 0.035*rad/2
  1718. end
  1719. expart.Transparency = 1
  1720. game:GetService("Debris"):AddItem(expart, 5)
  1721. end
  1722.  
  1723. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1724. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1725. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1726. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1727. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1728. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1729. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1730. for i = 0, 24 do
  1731. 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))
  1732. end
  1733. for i = 0, 24 do
  1734. local expart = Instance.new("Part",char)
  1735. expart.Transparency = 1
  1736. expart.Anchored = true
  1737. expart.CanCollide = false
  1738. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1739. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1740. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1741. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1742. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1743. for i = 0, 9 do
  1744. 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))
  1745. end
  1746. game:GetService("Debris"):AddItem(expart, 2)
  1747. wait(0.1)
  1748. end
  1749. end
  1750.  
  1751. function EXterPlosion(par)
  1752. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1753. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1754. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1755. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1756. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  1757. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1758. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1759. for i = 0, 24 do
  1760. 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))
  1761. end
  1762. for i = 0, 24 do
  1763. 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))
  1764. end
  1765. end
  1766. ----
  1767. function bullit()
  1768. attack = true
  1769. for i = 0,1,0.1 do
  1770. swait()
  1771. MagicBlock(origcolor,sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1772. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.3)
  1773. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  1774. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1775. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.3)
  1776. end
  1777. CFuncs["Sound"].Create("rbxassetid://558640653", sorb, 1.5, 1)
  1778. local a = Instance.new("Part",Character)
  1779. a.Name = "Direction"
  1780. a.Anchored = true
  1781. a.BrickColor = bc("Bright red")
  1782. a.Material = "Neon"
  1783. a.Transparency = 1
  1784. a.CanCollide = false
  1785. local ray = Ray.new(
  1786. sorb.CFrame.p, -- origin
  1787. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1788. )
  1789. local ignore = Character
  1790. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1791. a.BottomSurface = 10
  1792. a.TopSurface = 10
  1793. local distance = (root.CFrame.p - position).magnitude
  1794. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1795. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1796. local lb = Instance.new("Part")
  1797. lb.Parent = char
  1798. lb.BrickColor = origcolor
  1799. lb.CanCollide = false
  1800. lb.Material = "Glass"
  1801. lb.Anchored = true
  1802. lb.TopSurface = 0
  1803. lb.BottomSurface = 0
  1804. lb.Transparency = 0.75
  1805. lb.Size = vt(0.5,0.5,0.5)
  1806. lb.CFrame = a.CFrame
  1807. lb.Anchored = false
  1808. local thingery = Instance.new("SpecialMesh",lb)
  1809. thingery.MeshType = "Sphere"
  1810. thingery.Scale = vt(20,20,20)
  1811. game:GetService("Debris"):AddItem(lb, 10)
  1812. local bv = Instance.new("BodyVelocity")
  1813. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1814. bv.velocity = a.CFrame.lookVector*150
  1815. bv.Parent = lb
  1816. local hitted = false
  1817. game:GetService("Debris"):AddItem(a, 0.1)
  1818. wait(0.01)
  1819. lb.Touched:connect(function(hit)
  1820. if hitted == false then
  1821. hitted = true
  1822. lb.Anchored = true
  1823. lb.Transparency = 1
  1824. Explode(7.5,lb,1,1,10,15)
  1825. end
  1826. end)
  1827. for i = 0,2,0.1 do
  1828. swait()
  1829. MagicBlock(origcolor,sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1830. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1831. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1832. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1833. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1834. end
  1835. attack = false
  1836. end
  1837.  
  1838.  
  1839. function RingEffect(pos,startsize,size,col)
  1840. local lb = Instance.new("Part")
  1841. lb.Parent = char
  1842. lb.BrickColor = col
  1843. lb.CanCollide = false
  1844. lb.Material = "Neon"
  1845. lb.Anchored = true
  1846. lb.TopSurface = 0
  1847. lb.BottomSurface = 0
  1848. lb.Transparency = 1
  1849. lb.Size = vt(1,1,1)
  1850. lb.CFrame = pos
  1851. local thingery = Instance.new("SpecialMesh",lb)
  1852. thingery.MeshType = "Brick"
  1853. thingery.Scale = vt(startsize,0.1,startsize)
  1854. local dec2 = Instance.new("Texture", lb)
  1855. dec2.Face = "Top"
  1856. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1857. dec2.Color3 = lb.Color
  1858. dec2.Parent = lb
  1859. dec2.StudsPerTileU = startsize
  1860. dec2.StudsPerTileV = startsize
  1861. local dec2b = dec2:Clone()
  1862. dec2b.Face = "Bottom"
  1863. dec2b.Parent = lb
  1864. local randomrot = math.random(1,2)
  1865. coroutine.resume(coroutine.create(function()
  1866. for i = 0, 19 do
  1867. swait()
  1868. if randomrot == 1 then
  1869. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1870. elseif randomrot == 2 then
  1871. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1872. end
  1873. dec2.Transparency = dec2.Transparency + 0.05
  1874. dec2b.Transparency = dec2b.Transparency + 0.05
  1875. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  1876. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  1877. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  1878. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  1879. thingery.Scale = thingery.Scale + vt(size,0,size)
  1880. end
  1881. lb:Destroy()
  1882. end))
  1883. end
  1884.  
  1885. function SlowRingEffect(pos,startsize,size,col)
  1886. local lb = Instance.new("Part")
  1887. lb.Parent = char
  1888. lb.BrickColor = col
  1889. lb.CanCollide = false
  1890. lb.Material = "Neon"
  1891. lb.Anchored = true
  1892. lb.TopSurface = 0
  1893. lb.BottomSurface = 0
  1894. lb.Transparency = 1
  1895. lb.Size = vt(1,1,1)
  1896. lb.CFrame = pos
  1897. local thingery = Instance.new("SpecialMesh",lb)
  1898. thingery.MeshType = "Brick"
  1899. thingery.Scale = vt(startsize,0.1,startsize)
  1900. local dec2 = Instance.new("Decal", lb)
  1901. dec2.Face = "Top"
  1902. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1903. dec2.Color3 = lb.Color
  1904. dec2.Parent = lb
  1905. local dec2b = dec2:Clone()
  1906. dec2b.Face = "Bottom"
  1907. dec2b.Parent = lb
  1908. local randomrot = math.random(1,2)
  1909. coroutine.resume(coroutine.create(function()
  1910. for i = 0, 49 do
  1911. swait()
  1912. if randomrot == 1 then
  1913. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1914. elseif randomrot == 2 then
  1915. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1916. end
  1917. dec2.Transparency = dec2.Transparency + 0.02
  1918. dec2b.Transparency = dec2b.Transparency + 0.02
  1919. thingery.Scale = thingery.Scale + vt(size,0,size)
  1920. end
  1921. lb:Destroy()
  1922. end))
  1923. end
  1924.  
  1925.  
  1926. function groundringaa(pos)
  1927. local rng = Instance.new("Part", char)
  1928. rng.Anchored = true
  1929. rng.BrickColor = origcolor
  1930. rng.CanCollide = false
  1931. rng.FormFactor = 3
  1932. rng.Name = "Ring"
  1933. rng.Size = Vector3.new(1, 1, 1)
  1934. rng.Transparency = 1
  1935. rng.TopSurface = 0
  1936. rng.BottomSurface = 0
  1937. rng.CFrame = pos
  1938. local rngm = Instance.new("SpecialMesh", rng)
  1939. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1940. rngm.Scale = Vector3.new(100,100,5)
  1941. local scaler2 = -10/2
  1942. coroutine.resume(coroutine.create(function()
  1943. for i = 0,10,0.1 do
  1944. swait()
  1945. scaler2 = scaler2 + 0.1/2
  1946. rng.Transparency = rng.Transparency - 0.01
  1947. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  1948. end
  1949. rng:Destroy()
  1950. end))
  1951. end
  1952.  
  1953. function groundringbb(pos)
  1954. local rng = Instance.new("Part", char)
  1955. rng.Anchored = true
  1956. rng.BrickColor = origcolor
  1957. rng.CanCollide = false
  1958. rng.FormFactor = 3
  1959. rng.Name = "Ring"
  1960. rng.Size = Vector3.new(1, 1, 1)
  1961. rng.Transparency = 0
  1962. rng.TopSurface = 0
  1963. rng.BottomSurface = 0
  1964. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1965. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1966. local rngm = Instance.new("SpecialMesh", rng)
  1967. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1968. rngm.Scale = Vector3.new(0,0,5)
  1969. local scaler2 = 10
  1970. coroutine.resume(coroutine.create(function()
  1971. for i = 0,10*2,0.1 do
  1972. swait()
  1973. scaler2 = scaler2 - 0.1/2
  1974. rng.Transparency = rng.Transparency + 0.005
  1975. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  1976. end
  1977. rng:Destroy()
  1978. end))
  1979. end
  1980.  
  1981. function groundglowaa(pos)
  1982. local rng = Instance.new("Part", char)
  1983. rng.Anchored = true
  1984. rng.BrickColor = origcolor
  1985. rng.CanCollide = false
  1986. rng.FormFactor = 3
  1987. rng.Material = "Neon"
  1988. rng.Name = "Ring"
  1989. rng.Size = Vector3.new(1, 1, 1)
  1990. rng.Transparency = 0
  1991. rng.TopSurface = 0
  1992. rng.BottomSurface = 0
  1993. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1994. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1995. local rngm = Instance.new("SpecialMesh", rng)
  1996. rngm.MeshType = "Sphere"
  1997. rngm.Scale = Vector3.new(0,0,25)
  1998. local scaler2 = 10*2
  1999. coroutine.resume(coroutine.create(function()
  2000. for i = 0,10*2,0.1 do
  2001. swait()
  2002. scaler2 = scaler2 - 0.1*2/2
  2003. rng.Transparency = rng.Transparency + 0.005
  2004. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  2005. end
  2006. rng:Destroy()
  2007. end))
  2008. end
  2009.  
  2010. function bemaa(pos)
  2011. local rng = Instance.new("Part", char)
  2012. rng.Anchored = true
  2013. rng.BrickColor = origcolor
  2014. rng.CanCollide = false
  2015. rng.FormFactor = 3
  2016. rng.Material = "Neon"
  2017. rng.Name = "Ring"
  2018. rng.Size = Vector3.new(1, 1, 1)
  2019. rng.Transparency = 0
  2020. rng.TopSurface = 0
  2021. rng.BottomSurface = 0
  2022. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2023. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2024. local rngm = Instance.new("SpecialMesh", rng)
  2025. rngm.MeshType = "Sphere"
  2026. rngm.Scale = Vector3.new(0,0,10000)
  2027. local scaler2 = 1
  2028. coroutine.resume(coroutine.create(function()
  2029. for i = 0,99,0.1 do
  2030. swait()
  2031. scaler2 = scaler2 - 0.0025
  2032. rng.Transparency = rng.Transparency + 0.0025
  2033. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2034. end
  2035. rng:Destroy()
  2036. end))
  2037. end
  2038.  
  2039. function bemaashake(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.Material = "Neon"
  2046. rng.Name = "Ring"
  2047. rng.Size = Vector3.new(1, 1, 1)
  2048. rng.Transparency = 0
  2049. rng.TopSurface = 0
  2050. rng.BottomSurface = 0
  2051. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2052. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2053. local rngm = Instance.new("SpecialMesh", rng)
  2054. rngm.MeshType = "Sphere"
  2055. local oof = Instance.new("Part",char)
  2056. oof.Parent = rng
  2057. oof.CFrame = rng.CFrame
  2058. oof.CanCollide = false
  2059. oof.Anchored = true
  2060. oof.Transparency = 1
  2061. rngm.Scale = Vector3.new(0,0,10000)
  2062. local scaler2 = 1*10
  2063. coroutine.resume(coroutine.create(function()
  2064. for i = 0,99,0.1 do
  2065. swait()
  2066. scaler2 = scaler2 - 0.0025*10
  2067. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  2068. rng.Transparency = rng.Transparency + 0.0025
  2069. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2070. end
  2071. rng:Destroy()
  2072. end))
  2073. end
  2074.  
  2075. function groundringlarge(pos)
  2076. local rng = Instance.new("Part", char)
  2077. rng.Anchored = true
  2078. rng.BrickColor = origcolor
  2079. rng.CanCollide = false
  2080. rng.FormFactor = 3
  2081. rng.Name = "Ring"
  2082. rng.Size = Vector3.new(1, 1, 1)
  2083. rng.Transparency = 0
  2084. rng.TopSurface = 0
  2085. rng.BottomSurface = 0
  2086. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2087. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2088. local rngm = Instance.new("SpecialMesh", rng)
  2089. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2090. rngm.Scale = Vector3.new(0,0,5)
  2091. local scaler2 = 10*10
  2092. coroutine.resume(coroutine.create(function()
  2093. for i = 0,10*2,0.1 do
  2094. swait()
  2095. scaler2 = scaler2 - 0.1*10/2
  2096. rng.Transparency = rng.Transparency + 0.005
  2097. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2098. end
  2099. rng:Destroy()
  2100. end))
  2101. end
  2102.  
  2103. function sphere(bonuspeed,type,pos,scale,value,color)
  2104. local type = type
  2105. local rng = Instance.new("Part", char)
  2106. rng.Anchored = true
  2107. rng.BrickColor = color
  2108. rng.CanCollide = false
  2109. rng.FormFactor = 3
  2110. rng.Name = "Ring"
  2111. rng.Material = "Neon"
  2112. rng.Size = Vector3.new(1, 1, 1)
  2113. rng.Transparency = 0
  2114. rng.TopSurface = 0
  2115. rng.BottomSurface = 0
  2116. rng.CFrame = pos
  2117. local rngm = Instance.new("SpecialMesh", rng)
  2118. rngm.MeshType = "Sphere"
  2119. rngm.Scale = scale
  2120. local scaler2 = 1
  2121. if type == "Add" then
  2122. scaler2 = 1*value
  2123. elseif type == "Divide" then
  2124. scaler2 = 1/value
  2125. end
  2126. coroutine.resume(coroutine.create(function()
  2127. for i = 0,10/bonuspeed,0.1 do
  2128. swait()
  2129. if type == "Add" then
  2130. scaler2 = scaler2 - 0.01*value/bonuspeed
  2131. elseif type == "Divide" then
  2132. scaler2 = scaler2 - 0.01/value*bonuspeed
  2133. end
  2134. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2135. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2136. end
  2137. rng:Destroy()
  2138. end))
  2139. end
  2140.  
  2141. function Transition()
  2142. attack = true
  2143. attack = false
  2144. end
  2145.  
  2146. --Transition()
  2147.  
  2148. function FaceMouse()
  2149. Cam = workspace.CurrentCamera
  2150. return {
  2151. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2152. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2153. }
  2154. end
  2155.  
  2156. function outerbeam()
  2157. attack = true
  2158. hum.WalkSpeed = 5
  2159. local trail = Instance.new("ParticleEmitter",sorb2)
  2160. trail.LightEmission = 1
  2161. trail.Color = ColorSequence.new(origcolor.Color)
  2162. trail.Rate = 5000
  2163. trail.Lifetime = NumberRange.new(0.5)
  2164. trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,2,0)})
  2165. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2166. trail.Speed = NumberRange.new(0,0)
  2167. trail.EmissionDirection = "Front"
  2168. trail.Rotation = NumberRange.new(-500,500)
  2169. trail.RotSpeed = NumberRange.new(-500,500)
  2170. local trail2 = Instance.new("ParticleEmitter",sorb2)
  2171. trail2.LightEmission = 1
  2172. trail2.Texture = "rbxassetid://254287058"
  2173. trail2.Color = ColorSequence.new(origcolor.Color)
  2174. trail2.Rate = 25
  2175. trail2.Lifetime = NumberRange.new(1)
  2176. trail2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(1,0,0)})
  2177. trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)})
  2178. trail2.Speed = NumberRange.new(0,0)
  2179. trail2.EmissionDirection = "Front"
  2180. trail2.Rotation = NumberRange.new(-1000,1000)
  2181. trail2.RotSpeed = NumberRange.new(-1000,1000)
  2182. CFuncs["Sound"].Create("rbxassetid://1256695951", sorb2, 1, 1.15)
  2183. for i = 0,10,0.1 do
  2184. swait()
  2185. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,-0.25,BrickColor.new("White"))
  2186. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,0.1,BrickColor.new("Alder"))
  2187. MagicBlock(BrickColor.new("White"),sorb2.CFrame,1.5,1.5,1.5,0.05,0.05,0.05,0.05)
  2188. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.2)
  2189. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.2)
  2190. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(20)), 0.2)
  2191. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-80)), 0.2)
  2192. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2193. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2194. root.CFrame = FaceMouse()[1]
  2195. end
  2196. for i = 0, 4 do
  2197. wait(0.25)
  2198. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,-0.25,BrickColor.new("White"))
  2199. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,0.1,BrickColor.new("Alder"))
  2200. MagicBlock(BrickColor.new("White"),sorb2.CFrame,1.5,1.5,1.5,0.05,0.05,0.05,0.05)
  2201. root.CFrame = FaceMouse()[1]
  2202. CFuncs["Sound"].Create("rbxassetid://1256695105", sorb2, 1, 1.25)
  2203. local a = Instance.new("Part",Character)
  2204. a.Name = "Direction"
  2205. a.Anchored = true
  2206. a.BrickColor = bc("Bright red")
  2207. a.Material = "Neon"
  2208. a.Transparency = 1
  2209. a.CanCollide = false
  2210. local ray = Ray.new(
  2211. sorb2.CFrame.p, -- origin
  2212. (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
  2213. )
  2214. local ignore = Character
  2215. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2216. a.BottomSurface = 10
  2217. a.TopSurface = 10
  2218. local distance = (root.CFrame.p - position).magnitude
  2219. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2220. a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0)
  2221. local lb = Instance.new("Part")
  2222. lb.Parent = char
  2223. lb.BrickColor = BrickColor.new("White")
  2224. lb.CanCollide = false
  2225. lb.Material = "Neon"
  2226. lb.Anchored = true
  2227. lb.TopSurface = 0
  2228. lb.BottomSurface = 0
  2229. lb.Transparency = 0.5
  2230. lb.Size = vt(1,1,1)
  2231. lb.CFrame = a.CFrame
  2232. lb.Anchored = false
  2233. local thingery = Instance.new("SpecialMesh",lb)
  2234. thingery.MeshType = "Sphere"
  2235. thingery.Scale = vt(2,2,2)
  2236. game:GetService("Debris"):AddItem(lb, 10)
  2237. local bv = Instance.new("BodyVelocity")
  2238. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2239. bv.velocity = a.CFrame.lookVector*250
  2240. bv.Parent = lb
  2241. local traile = Instance.new("ParticleEmitter",lb)
  2242. traile.LightEmission = 1
  2243. traile.Texture = "rbxassetid://254287058"
  2244. traile.Color = ColorSequence.new(origcolor.Color)
  2245. traile.Rate = 2500
  2246. traile.Lifetime = NumberRange.new(0.5)
  2247. traile.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(1,0,0)})
  2248. traile.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)})
  2249. traile.Speed = NumberRange.new(0,0)
  2250. traile.EmissionDirection = "Front"
  2251. traile.Rotation = NumberRange.new(-1000,1000)
  2252. traile.RotSpeed = NumberRange.new(-1000,1000)
  2253. local trailq = Instance.new("ParticleEmitter",lb)
  2254. trailq.LightEmission = 1
  2255. trailq.Color = ColorSequence.new(Color3.new(1,1,1))
  2256. trailq.Rate = 5000
  2257. trailq.Lifetime = NumberRange.new(0.1)
  2258. trailq.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,10,0)})
  2259. trailq.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2260. trailq.Speed = NumberRange.new(0,1)
  2261. trailq.VelocitySpread = 100000
  2262. trailq.LockedToPart = true
  2263. trailq.EmissionDirection = "Front"
  2264. trailq.Rotation = NumberRange.new(-500,500)
  2265. trailq.RotSpeed = NumberRange.new(-500,500)
  2266. local hitted = false
  2267. game:GetService("Debris"):AddItem(a, 0.1)
  2268. wait(0.01)
  2269. lb.Touched:connect(function(hit)
  2270. if hitted == false then
  2271. hitted = true
  2272. lb.Anchored = true
  2273. traile.Enabled = false
  2274. trailq.Enabled = false
  2275. lb.Transparency = 1
  2276. CFuncs["Sound"].Create("rbxassetid://142070127", lb, 2.5, 1)
  2277. sphere(2.25,"Add",lb.CFrame,vt(0,0,0),0.55,origcolor)
  2278. sphere(2.25,"Add",lb.CFrame,vt(0,0,0),0.4,BrickColor.new("White"))
  2279. MagniDamage(lb, 25, 16,24, 0, "Normal")
  2280. for i = 0, 9 do
  2281. RingEffect(lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,3,BrickColor.new("White"))
  2282. RingEffect(lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,6,BrickColor.new("Alder"))
  2283. end
  2284. --Explode(7.5,lb,1,1,10,15)
  2285. end
  2286. end)
  2287. end
  2288. trail.Enabled = false
  2289. game:GetService("Debris"):AddItem(trail, 2)
  2290. trail2.Enabled = false
  2291. game:GetService("Debris"):AddItem(trail2, 3)
  2292. hum.WalkSpeed = 16
  2293. attack = false
  2294. end
  2295.  
  2296. function inpulse()
  2297. attack = true
  2298. hum.WalkSpeed = 0
  2299. CFuncs["Sound"].Create("rbxassetid://569564686", root, 1.5, 1)
  2300. CFuncs["Sound"].Create("rbxassetid://1256698605", root, 0.5, 0.5)
  2301. for i = 0,5,0.1 do
  2302. swait()
  2303. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2304. MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2305. RingEffect(sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,-0.05,BrickColor.new("Really black"))
  2306. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,-0.05,BrickColor.new("Really black"))
  2307. RingEffect(root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),75,math.random(-1,1),origcolor)
  2308. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2309. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  2310. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  2311. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  2312. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2313. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2314. end
  2315. CFuncs["Sound"].Create("rbxassetid://621522790", root, 4, 1)
  2316. CFuncs["Sound"].Create("rbxassetid://533243953", root, 6, 1)
  2317. CFuncs["Sound"].Create("rbxassetid://621522959", root, 0.25, 1)
  2318. sphere(1,"Add",root.CFrame,vt(60,60,60),-1.25,BrickColor.new("Really black"))
  2319. sphere(1,"Add",root.CFrame,vt(55,55,55),-1.25,origcolor)
  2320. MagniDamage(root, 45, 10,28, 0, "Normal")
  2321. for i = 0, 9 do
  2322. RingEffect(root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),math.random(100,150),math.random(-8,-3),BrickColor.new("Really black"))
  2323. RingEffect(root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),math.random(100,150),math.random(1,2),BrickColor.new("Really black"))
  2324. end
  2325. for i = 0,4,0.1 do
  2326. swait()
  2327. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2328. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2329. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.2)
  2330. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.2)
  2331. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2332. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2333. end
  2334. hum.WalkSpeed = 16
  2335. attack = false
  2336. end
  2337.  
  2338. function tele()
  2339. attack = true
  2340. hum.WalkSpeed = 0
  2341. CFuncs["Sound"].Create("rbxassetid://569564686", root, 1.5, 1)
  2342. for i = 0,3,0.1 do
  2343. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2344. MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2345. RingEffect(sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,-0.05,BrickColor.new("White"))
  2346. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,-0.05,BrickColor.new("White"))
  2347. swait()
  2348. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2349. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2350. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(20)), 0.2)
  2351. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(-20)), 0.2)
  2352. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2353. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2354. root.CFrame = FaceMouse()[1]
  2355. end
  2356. CFuncs["Sound"].Create("rbxassetid://1256698605", root, 1, 1)
  2357. sphere(2,"Add",root.CFrame,vt(60/1.5,60/1.5,60/1.5),-0.5,origcolor)
  2358. sphere(2,"Add",root.CFrame,vt(55/1.5,55/1.5,55/1.5),-0.5,BrickColor.new("White"))
  2359. for i = 0, 9 do
  2360. RingEffect(root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),math.random(50,75),math.random(-4,-2),BrickColor.new("White"))
  2361. end
  2362. wait(0.3325)
  2363. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  2364. CFuncs["Sound"].Create("rbxassetid://533243953", root, 1, 1)
  2365. CFuncs["Sound"].Create("rbxassetid://1256695105", root, 1, 1.25)
  2366. sphere(2,"Add",root.CFrame,vt(0,0,0),0.75,origcolor)
  2367. sphere(2,"Add",root.CFrame,vt(0,0,0),0.5,BrickColor.new("White"))
  2368. MagniDamage(root, 28, 15,35, 0, "Normal")
  2369. for i = 0, 9 do
  2370. RingEffect(root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),math.random(25,30),math.random(4,7),BrickColor.new("White"))
  2371. end
  2372. hum.WalkSpeed = 16
  2373. attack = false
  2374. end
  2375.  
  2376. mouse.KeyDown:connect(function(k)
  2377. if k == "z" and attack == false then
  2378. outerbeam()
  2379. end
  2380. if k == "x" and attack == false then
  2381. inpulse()
  2382. end
  2383. if k == "c" and attack == false then
  2384. tele()
  2385. end
  2386. end)
  2387. Humanoid.Animator.Parent = nil
  2388. idleanim=.4
  2389. while true do
  2390. swait()
  2391. sine = sine + change
  2392. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2393. local velderp=RootPart.Velocity.y
  2394. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2395. if equipped==true or equipped==false then
  2396. if attack==false then
  2397. idle=idle+1
  2398. else
  2399. idle=0
  2400. end
  2401. if idle>=500 then
  2402. if attack==false then
  2403. --Sheath()
  2404. end
  2405. end
  2406. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2407. Anim="Jump"
  2408. if attack==false then
  2409. 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)
  2410. 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)
  2411. 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)
  2412. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2413. 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)
  2414. 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)
  2415. end
  2416. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2417. Anim="Fall"
  2418. if attack==false then
  2419. 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)
  2420. 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)
  2421. 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)
  2422. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2423. 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)
  2424. 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)
  2425. end
  2426. elseif torvel<1 and hitfloor~=nil then
  2427. Anim="Idle"
  2428. if attack==false then
  2429. 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(-2.5),math.rad(0),math.rad(2 + 1 * math.cos(sine / 34))),.1)
  2430. 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(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  2431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  2432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  2433. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  2434. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  2435. end
  2436. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2437. Anim="Walk"
  2438. if attack==false then
  2439. RH.C0=clerp(RH.C0,cf(1,-0.85 - 0.15 * math.cos(sine / 3),-0.15 - 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  2440. LH.C0=clerp(LH.C0,cf(-1,-0.85 + 0.15 * math.cos(sine / 3),-0.15 + 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  2441. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 3))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 6))),.1)
  2442. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 6))),.1)
  2443. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 75 * math.cos(sine / 6)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 3))),.1)
  2444. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 75 * math.cos(sine / 6)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 3))),.1)
  2445. end
  2446. elseif torvel>=22 and hitfloor~=nil then
  2447. Anim="Run"
  2448. if attack==false then
  2449. 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)
  2450. 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)
  2451. 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)
  2452. 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)
  2453. 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)
  2454. 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)
  2455. end
  2456. end
  2457. end
  2458. end
Advertisement
Add Comment
Please, Sign In to add comment