LifeIsBoring

Untitled

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