Advertisement
memberhero

I.R.O.N FE

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