Advertisement
seasee54u

Untitled

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