Advertisement
Guest User

Untitled

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