Advertisement
gecksad

Untitled

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