Advertisement
seasee54u

Untitled

Apr 28th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.81 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. mouse=Player:GetMouse()
  721. --save shoulders
  722. RSH, LSH=nil, nil
  723. --welds
  724. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  725. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  726. LH=Torso["Left Hip"]
  727. RH=Torso["Right Hip"]
  728. TorsoColor=Torso.BrickColor
  729. function NoOutline(Part)
  730. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  731. end
  732. player=Player
  733. ch=Character
  734. RSH=ch.Torso["Right Shoulder"]
  735. LSH=ch.Torso["Left Shoulder"]
  736. --
  737. RSH.Parent=nil
  738. LSH.Parent=nil
  739. --
  740. RW.Name="Right Shoulder"
  741. RW.Part0=ch.Torso
  742. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  743. RW.C1=cf(0, 0.5, 0)
  744. RW.Part1=ch["Right Arm"]
  745. RW.Parent=ch.Torso
  746. --
  747. LW.Name="Left Shoulder"
  748. LW.Part0=ch.Torso
  749. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  750. LW.C1=cf(0, 0.5, 0)
  751. LW.Part1=ch["Left Arm"]
  752. LW.Parent=ch.Torso
  753.  
  754. local Stats=Instance.new("BoolValue")
  755. Stats.Name="Stats"
  756. Stats.Parent=Character
  757. local Atk=Instance.new("NumberValue")
  758. Atk.Name="Damage"
  759. Atk.Parent=Stats
  760. Atk.Value=1
  761. local Def=Instance.new("NumberValue")
  762. Def.Name="Defense"
  763. Def.Parent=Stats
  764. Def.Value=1
  765. local Speed=Instance.new("NumberValue")
  766. Speed.Name="Speed"
  767. Speed.Parent=Stats
  768. Speed.Value=1
  769. local Mvmt=Instance.new("NumberValue")
  770. Mvmt.Name="Movement"
  771. Mvmt.Parent=Stats
  772. Mvmt.Value=1
  773.  
  774. local donum=0
  775.  
  776.  
  777. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  778. local fp=it("Part")
  779. fp.formFactor=formfactor
  780. fp.Parent=parent
  781. fp.Reflectance=reflectance
  782. fp.Transparency=transparency
  783. fp.CanCollide=false
  784. fp.Locked=true
  785. fp.BrickColor=brickcolor
  786. fp.Name=name
  787. fp.Size=size
  788. fp.Position=Torso.Position
  789. NoOutline(fp)
  790. fp.Material="SmoothPlastic"
  791. fp:BreakJoints()
  792. return fp
  793. end
  794.  
  795. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  796. local mesh=it(Mesh)
  797. mesh.Parent=part
  798. if Mesh=="SpecialMesh" then
  799. mesh.MeshType=meshtype
  800. if meshid~="nil" then
  801. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  802. end
  803. end
  804. mesh.Offset=offset
  805. mesh.Scale=scale
  806. return mesh
  807. end
  808.  
  809. function weld(parent,part0,part1,c0)
  810. local weld=it("Weld")
  811. weld.Parent=parent
  812. weld.Part0=part0
  813. weld.Part1=part1
  814. weld.C0=c0
  815. return weld
  816. end
  817.  
  818. local Color1=Torso.BrickColor
  819.  
  820. local bodvel=Instance.new("BodyVelocity")
  821. local bg=Instance.new("BodyGyro")
  822.  
  823. function swait(num)
  824. if num==0 or num==nil then
  825. game:service'RunService'.Stepped:wait(0)
  826. else
  827. for i=0,num do
  828. game:service'RunService'.Stepped:wait(0)
  829. end
  830. end
  831. end
  832.  
  833.  
  834. so = function(id,par,vol,pit)
  835. coroutine.resume(coroutine.create(function()
  836. local sou = Instance.new("Sound",par or workspace)
  837. sou.Volume=vol
  838. sou.Pitch=pit or 1
  839. sou.SoundId=id
  840. swait()
  841. sou:play()
  842. game:GetService("Debris"):AddItem(sou,6)
  843. end))
  844. end
  845.  
  846. function clerp(a,b,t)
  847. local qa = {QuaternionFromCFrame(a)}
  848. local qb = {QuaternionFromCFrame(b)}
  849. local ax, ay, az = a.x, a.y, a.z
  850. local bx, by, bz = b.x, b.y, b.z
  851. local _t = 1-t
  852. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  853. end
  854.  
  855. function QuaternionFromCFrame(cf)
  856. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  857. local trace = m00 + m11 + m22
  858. if trace > 0 then
  859. local s = math.sqrt(1 + trace)
  860. local recip = 0.5/s
  861. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  862. else
  863. local i = 0
  864. if m11 > m00 then
  865. i = 1
  866. end
  867. if m22 > (i == 0 and m00 or m11) then
  868. i = 2
  869. end
  870. if i == 0 then
  871. local s = math.sqrt(m00-m11-m22+1)
  872. local recip = 0.5/s
  873. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  874. elseif i == 1 then
  875. local s = math.sqrt(m11-m22-m00+1)
  876. local recip = 0.5/s
  877. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  878. elseif i == 2 then
  879. local s = math.sqrt(m22-m00-m11+1)
  880. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  881. end
  882. end
  883. end
  884.  
  885. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  886. local xs, ys, zs = x + x, y + y, z + z
  887. local wx, wy, wz = w*xs, w*ys, w*zs
  888. local xx = x*xs
  889. local xy = x*ys
  890. local xz = x*zs
  891. local yy = y*ys
  892. local yz = y*zs
  893. local zz = z*zs
  894. 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))
  895. end
  896.  
  897. function QuaternionSlerp(a, b, t)
  898. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  899. local startInterp, finishInterp;
  900. if cosTheta >= 0.0001 then
  901. if (1 - cosTheta) > 0.0001 then
  902. local theta = math.acos(cosTheta)
  903. local invSinTheta = 1/math.sin(theta)
  904. startInterp = math.sin((1-t)*theta)*invSinTheta
  905. finishInterp = math.sin(t*theta)*invSinTheta
  906. else
  907. startInterp = 1-t
  908. finishInterp = t
  909. end
  910. else
  911. if (1+cosTheta) > 0.0001 then
  912. local theta = math.acos(-cosTheta)
  913. local invSinTheta = 1/math.sin(theta)
  914. startInterp = math.sin((t-1)*theta)*invSinTheta
  915. finishInterp = math.sin(t*theta)*invSinTheta
  916. else
  917. startInterp = t-1
  918. finishInterp = t
  919. end
  920. end
  921. 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
  922. end
  923.  
  924. local function CFrameFromTopBack(at, top, back)
  925. local right = top:Cross(back)
  926. return CFrame.new(at.x, at.y, at.z,
  927. right.x, top.x, back.x,
  928. right.y, top.y, back.y,
  929. right.z, top.z, back.z)
  930. end
  931.  
  932. function Triangle(a, b, c)
  933. local edg1 = (c-a):Dot((b-a).unit)
  934. local edg2 = (a-b):Dot((c-b).unit)
  935. local edg3 = (b-c):Dot((a-c).unit)
  936. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  937. a, b, c = a, b, c
  938. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  939. a, b, c = b, c, a
  940. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  941. a, b, c = c, a, b
  942. else
  943. assert(false, "unreachable")
  944. end
  945.  
  946. local len1 = (c-a):Dot((b-a).unit)
  947. local len2 = (b-a).magnitude - len1
  948. local width = (a + (b-a).unit*len1 - c).magnitude
  949.  
  950. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  951.  
  952. local list = {}
  953.  
  954. if len1 > 0.01 then
  955. local w1 = Instance.new('WedgePart', m)
  956. game:GetService("Debris"):AddItem(w1,5)
  957. w1.Material = "SmoothPlastic"
  958. w1.FormFactor = 'Custom'
  959. w1.BrickColor = BrickColor.new("Really red")
  960. w1.Transparency = 0
  961. w1.Reflectance = 0
  962. w1.Material = "SmoothPlastic"
  963. w1.CanCollide = false
  964. local l1 = Instance.new("PointLight",w1)
  965. l1.Color = Color3.new(170,0,0)
  966. NoOutline(w1)
  967. local sz = Vector3.new(0.2, width, len1)
  968. w1.Size = sz
  969. local sp = Instance.new("SpecialMesh",w1)
  970. sp.MeshType = "Wedge"
  971. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  972. w1:BreakJoints()
  973. w1.Anchored = true
  974. w1.Parent = workspace
  975. w1.Transparency = 0.7
  976. table.insert(Effects,{w1,"Disappear",.01})
  977. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  978. table.insert(list,w1)
  979. end
  980.  
  981. if len2 > 0.01 then
  982. local w2 = Instance.new('WedgePart', m)
  983. game:GetService("Debris"):AddItem(w2,5)
  984. w2.Material = "SmoothPlastic"
  985. w2.FormFactor = 'Custom'
  986. w2.BrickColor = BrickColor.new("Really red")
  987. w2.Transparency = 0
  988. w2.Reflectance = 0
  989. w2.Material = "SmoothPlastic"
  990. w2.CanCollide = false
  991. local l2 = Instance.new("PointLight",w2)
  992. l2.Color = Color3.new(170,0,0)
  993. NoOutline(w2)
  994. local sz = Vector3.new(0.2, width, len2)
  995. w2.Size = sz
  996. local sp = Instance.new("SpecialMesh",w2)
  997. sp.MeshType = "Wedge"
  998. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  999. w2:BreakJoints()
  1000. w2.Anchored = true
  1001. w2.Parent = workspace
  1002. w2.Transparency = 0.7
  1003. table.insert(Effects,{w2,"Disappear",.01})
  1004. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1005. table.insert(list,w2)
  1006. end
  1007. return unpack(list)
  1008. end
  1009.  
  1010.  
  1011. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1012. if hit.Parent == nil then
  1013. return
  1014. end
  1015. local h = hit.Parent:FindFirstChild("Humanoid")
  1016. for _, v in pairs(hit.Parent:children()) do
  1017. if v:IsA("Humanoid") then
  1018. h = v
  1019. end
  1020. end
  1021. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1022. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1023. return
  1024. end
  1025. local c = Create("ObjectValue")({
  1026. Name = "creator",
  1027. Value = owner,
  1028. Parent = h
  1029. })
  1030. game:GetService("Debris"):AddItem(c, 0.5)
  1031. if HitSound ~= nil and HitPitch ~= nil then
  1032. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1033. end
  1034. local Damage = math.huge
  1035. local blocked = false
  1036. local block = hit.Parent:findFirstChild("Block")
  1037. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1038. blocked = true
  1039. block.Value = block.Value - 1
  1040. print(block.Value)
  1041. end
  1042. if blocked == false then
  1043. HitHealth = h.Health
  1044. h.Health = h.Health - Damage
  1045. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1046. print("gained kill")
  1047. end
  1048. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1049. else
  1050. h.Health = h.Health - Damage / 2
  1051. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1052. end
  1053. if Type == "Knockdown" then
  1054. local hum = hit.Parent.Humanoid
  1055. hum.PlatformStand = true
  1056. coroutine.resume(coroutine.create(function(HHumanoid)
  1057. swait(1)
  1058. HHumanoid.PlatformStand = false
  1059. end), hum)
  1060. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1061. local bodvol = Create("BodyVelocity")({
  1062. velocity = angle * knockback,
  1063. P = 5000,
  1064. maxForce = Vector3.new(8000, 8000, 8000),
  1065. Parent = hit
  1066. })
  1067. local rl = Create("BodyAngularVelocity")({
  1068. P = 3000,
  1069. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1070. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1071. Parent = hit
  1072. })
  1073. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1074. game:GetService("Debris"):AddItem(rl, 0.5)
  1075. elseif Type == "Normal" then
  1076. local vp = Create("BodyVelocity")({
  1077. P = 500,
  1078. maxForce = Vector3.new(math.huge, 0, math.huge),
  1079. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1080. })
  1081. if knockback > 0 then
  1082. vp.Parent = hit.Parent.Torso
  1083. end
  1084. game:GetService("Debris"):AddItem(vp, 0.5)
  1085. elseif Type == "Up" then
  1086. local bodyVelocity = Create("BodyVelocity")({
  1087. velocity = Vector3.new(0, 20, 0),
  1088. P = 5000,
  1089. maxForce = Vector3.new(8000, 8000, 8000),
  1090. Parent = hit
  1091. })
  1092. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1093. local bodyVelocity = Create("BodyVelocity")({
  1094. velocity = Vector3.new(0, 20, 0),
  1095. P = 5000,
  1096. maxForce = Vector3.new(8000, 8000, 8000),
  1097. Parent = hit
  1098. })
  1099. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1100. elseif Type == "Leech" then
  1101. local hum = hit.Parent.Humanoid
  1102. if hum ~= nil then
  1103. for i = 0, 2 do
  1104. 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)
  1105. end
  1106. Humanoid.Health = Humanoid.Health + 10
  1107. end
  1108. elseif Type == "UpKnock" then
  1109. local hum = hit.Parent.Humanoid
  1110. hum.PlatformStand = true
  1111. if hum ~= nil then
  1112. hitr = true
  1113. end
  1114. coroutine.resume(coroutine.create(function(HHumanoid)
  1115. swait(5)
  1116. HHumanoid.PlatformStand = false
  1117. hitr = false
  1118. end), hum)
  1119. local bodyVelocity = Create("BodyVelocity")({
  1120. velocity = Vector3.new(0, 20, 0),
  1121. P = 5000,
  1122. maxForce = Vector3.new(8000, 8000, 8000),
  1123. Parent = hit
  1124. })
  1125. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1126. local bodyVelocity = Create("BodyVelocity")({
  1127. velocity = Vector3.new(0, 20, 0),
  1128. P = 5000,
  1129. maxForce = Vector3.new(8000, 8000, 8000),
  1130. Parent = hit
  1131. })
  1132. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1133. elseif Type == "Snare" then
  1134. local bp = Create("BodyPosition")({
  1135. P = 2000,
  1136. D = 100,
  1137. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1138. position = hit.Parent.Torso.Position,
  1139. Parent = hit.Parent.Torso
  1140. })
  1141. game:GetService("Debris"):AddItem(bp, 1)
  1142. elseif Type == "Slashnare" then
  1143. 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)
  1144. for i = 1, math.random(4, 5) do
  1145. 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)
  1146. end
  1147. local bp = Create("BodyPosition")({
  1148. P = 2000,
  1149. D = 100,
  1150. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1151. position = hit.Parent.Torso.Position,
  1152. Parent = hit.Parent.Torso
  1153. })
  1154. game:GetService("Debris"):AddItem(bp, 1)
  1155. elseif Type == "Spike" then
  1156. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1157. local bp = Create("BodyPosition")({
  1158. P = 2000,
  1159. D = 100,
  1160. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1161. position = hit.Parent.Torso.Position,
  1162. Parent = hit.Parent.Torso
  1163. })
  1164. game:GetService("Debris"):AddItem(bp, 1)
  1165. elseif Type == "Freeze" then
  1166. local BodPos = Create("BodyPosition")({
  1167. P = 50000,
  1168. D = 1000,
  1169. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1170. position = hit.Parent.Torso.Position,
  1171. Parent = hit.Parent.Torso
  1172. })
  1173. local BodGy = Create("BodyGyro")({
  1174. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1175. P = 20000,
  1176. Parent = hit.Parent.Torso,
  1177. cframe = hit.Parent.Torso.CFrame
  1178. })
  1179. hit.Parent.Torso.Anchored = true
  1180. coroutine.resume(coroutine.create(function(Part)
  1181. swait(1.5)
  1182. Part.Anchored = false
  1183. end), hit.Parent.Torso)
  1184. game:GetService("Debris"):AddItem(BodPos, 3)
  1185. game:GetService("Debris"):AddItem(BodGy, 3)
  1186. end
  1187. local debounce = Create("BoolValue")({
  1188. Name = "DebounceHit",
  1189. Parent = hit.Parent,
  1190. Value = true
  1191. })
  1192. game:GetService("Debris"):AddItem(debounce, Delay)
  1193. c = Instance.new("ObjectValue")
  1194. c.Name = "creator"
  1195. c.Value = Player
  1196. c.Parent = h
  1197. game:GetService("Debris"):AddItem(c, 0.5)
  1198. end
  1199. end
  1200. function ShowDamage(Pos, Text, Time, Color)
  1201. local Rate = 0.03333333333333333
  1202. local Pos = Pos or Vector3.new(0, 0, 0)
  1203. local Text = Text or ""
  1204. local Time = Time or 2
  1205. local Color = Color or Color3.new(1, 0, 1)
  1206. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1207. EffectPart.Anchored = true
  1208. local BillboardGui = Create("BillboardGui")({
  1209. Size = UDim2.new(3, 0, 3, 0),
  1210. Adornee = EffectPart,
  1211. Parent = EffectPart
  1212. })
  1213. local TextLabel = Create("TextLabel")({
  1214. BackgroundTransparency = 1,
  1215. Size = UDim2.new(1, 0, 1, 0),
  1216. Text = Text,
  1217. TextColor3 = Color,
  1218. TextScaled = true,
  1219. Font = Enum.Font.ArialBold,
  1220. Parent = BillboardGui
  1221. })
  1222. game.Debris:AddItem(EffectPart, Time + 0.1)
  1223. EffectPart.Parent = game:GetService("Workspace")
  1224. delay(0, function()
  1225. local Frames = Time / Rate
  1226. for Frame = 1, Frames do
  1227. wait(Rate)
  1228. local Percent = Frame / Frames
  1229. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1230. TextLabel.TextTransparency = Percent
  1231. end
  1232. if EffectPart and EffectPart.Parent then
  1233. EffectPart:Destroy()
  1234. end
  1235. end)
  1236. end
  1237. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1238. for _, c in pairs(workspace:children()) do
  1239. local hum = c:findFirstChild("Humanoid")
  1240. if hum ~= nil then
  1241. local head = c:findFirstChild("Torso")
  1242. if head ~= nil then
  1243. local targ = head.Position - Part.Position
  1244. local mag = targ.magnitude
  1245. if magni >= mag and c.Name ~= Player.Name then
  1246. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1247. end
  1248. end
  1249. end
  1250. end
  1251. end
  1252.  
  1253. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1254. for _, c in pairs(workspace:children()) do
  1255. local hum = c:findFirstChild("Humanoid")
  1256. if hum ~= nil then
  1257. local head = c:findFirstChild("Torso")
  1258. if head ~= nil then
  1259. local targ = head.Position - Part.Position
  1260. local mag = targ.magnitude
  1261. if magni >= mag and c.Name ~= Player.Name then
  1262. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1263. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1264. end
  1265. end
  1266. end
  1267. end
  1268. end
  1269.  
  1270. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1271. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1272. end
  1273.  
  1274. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1275. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1276. prt.Anchored=true
  1277. prt.CFrame=cframe
  1278. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1279. --http://www.roblox.com/asset/?id=4770560
  1280. game:GetService("Debris"):AddItem(prt,2)
  1281. CF=prt.CFrame
  1282. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1283. for i=0,1,0.2 do
  1284. wait()
  1285. Part.CFrame=CF*cf(0,0,-0.4)
  1286. end
  1287. for i=0,1,delay do
  1288. wait()
  1289. --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)
  1290. Mesh.Scale=Mesh.Scale
  1291. end
  1292. for i=0,1,0.1 do
  1293. wait()
  1294. Part.Transparency=i
  1295. end
  1296. Part.Parent=nil
  1297. end),prt,msh,CF)
  1298. end
  1299.  
  1300. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1301. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1302. prt.Anchored=true
  1303. prt.Material = "Neon"
  1304. prt.CFrame=cframe
  1305. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1306. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1307. game:GetService("Debris"):AddItem(prt,5)
  1308. coroutine.resume(coroutine.create(function(Part,Mesh)
  1309. for i=0,1,delay do
  1310. swait()
  1311. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1312. Part.Transparency=i
  1313. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1314. end
  1315. Part.Parent=nil
  1316. end),prt,msh)
  1317. end
  1318.  
  1319. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1320. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1321. prt.Anchored=true
  1322. prt.Material = "Neon"
  1323. prt.CFrame=cframe
  1324. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1325. game:GetService("Debris"):AddItem(prt,5)
  1326. coroutine.resume(coroutine.create(function(Part,Mesh)
  1327. local rtype = rottype
  1328. for i=0,1,delay do
  1329. swait()
  1330. if rtype == 1 then
  1331. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1332. elseif rtype == 2 then
  1333. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1334. end
  1335. Part.Transparency=i
  1336. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1337. end
  1338. Part.Parent=nil
  1339. end),prt,msh)
  1340. end
  1341.  
  1342. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1343. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1344. prt.Anchored=true
  1345. prt.CFrame=cframe
  1346. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1347. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1348. game:GetService("Debris"):AddItem(prt,5)
  1349. coroutine.resume(coroutine.create(function(Part,Mesh)
  1350. for i=0,1,delay do
  1351. wait()
  1352. Part.Transparency=i
  1353. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1354. end
  1355. Part.Parent=nil
  1356. end),prt,msh)
  1357. end
  1358.  
  1359. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1360. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1361. prt.Anchored=true
  1362. prt.Material = "Neon"
  1363. prt.CFrame=cframe
  1364. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1365. game:GetService("Debris"):AddItem(prt,5)
  1366. coroutine.resume(coroutine.create(function(Part,Mesh)
  1367. local rtype = rottype
  1368. for i=0,1,delay do
  1369. swait()
  1370. if rtype == 1 then
  1371. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1372. elseif rtype == 2 then
  1373. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1374. end
  1375. Part.Transparency=i
  1376. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1377. end
  1378. Part.Parent=nil
  1379. end),prt,msh)
  1380. end
  1381.  
  1382. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1383. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1384. prt.Anchored=true
  1385. prt.Material = "Neon"
  1386. prt.CFrame=cframe
  1387. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1388. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1389. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1390. game:GetService("Debris"):AddItem(prt,5)
  1391. coroutine.resume(coroutine.create(function(Part,Mesh)
  1392. local rtype = rottype
  1393. for i=0,1,delay do
  1394. swait()
  1395. if rtype == 1 then
  1396. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1397. elseif rtype == 2 then
  1398. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1399. end
  1400. dec.Transparency=i
  1401. dec2.Transparency=i
  1402. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1403. end
  1404. Part.Parent=nil
  1405. end),prt,msh)
  1406. end
  1407.  
  1408. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1409. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1410. prt.Anchored=true
  1411. prt.Material = "Neon"
  1412. prt.CFrame=cframe
  1413. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1414. game:GetService("Debris"):AddItem(prt,5)
  1415. coroutine.resume(coroutine.create(function(Part,Mesh)
  1416. local rtype = rottype
  1417. for i=0,1,delay do
  1418. swait()
  1419. if rtype == 1 then
  1420. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1421. elseif rtype == 2 then
  1422. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1423. end
  1424. prt.Transparency=i
  1425. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1426. end
  1427. Part.Parent=nil
  1428. end),prt,msh)
  1429. end
  1430.  
  1431. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1432. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1433. prt.Anchored=true
  1434. prt.Material = "Neon"
  1435. prt.CFrame=cframe
  1436. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1437. game:GetService("Debris"):AddItem(prt,5)
  1438. coroutine.resume(coroutine.create(function(Part,Mesh)
  1439. local rtype = rottype
  1440. for i=0,1,delay do
  1441. swait()
  1442. if rtype == 1 then
  1443. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1444. elseif rtype == 2 then
  1445. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1446. end
  1447. prt.Transparency=i
  1448. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1449. end
  1450. Part.Parent=nil
  1451. end),prt,msh)
  1452. end
  1453.  
  1454. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1455. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1456. prt.Anchored=true
  1457. prt.Material = "Neon"
  1458. prt.CFrame=cframe
  1459. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1460. game:GetService("Debris"):AddItem(prt,5)
  1461. coroutine.resume(coroutine.create(function(Part,Mesh)
  1462. local rtype = rottype
  1463. for i=0,1,delay do
  1464. swait()
  1465. if rtype == 1 then
  1466. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1467. elseif rtype == 2 then
  1468. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1469. end
  1470. prt.Transparency=i
  1471. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1472. end
  1473. Part.Parent=nil
  1474. end),prt,msh)
  1475. end
  1476.  
  1477. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1478. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1479. prt.Anchored=true
  1480. prt.Material = "Neon"
  1481. prt.CFrame=cframe
  1482. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1483. game:GetService("Debris"):AddItem(prt,5)
  1484. coroutine.resume(coroutine.create(function(Part,Mesh)
  1485. local rtype = rottype
  1486. for i=0,1,delay do
  1487. swait()
  1488. if rtype == 1 then
  1489. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1490. elseif rtype == 2 then
  1491. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1492. end
  1493. prt.Transparency=i
  1494. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1495. end
  1496. Part.Parent=nil
  1497. end),prt,msh)
  1498. end
  1499.  
  1500. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1501. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1502. prt.Anchored=false
  1503. prt.CFrame=cframe
  1504. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1505. local wld=weld(prt,prt,Parent,cframe)
  1506. game:GetService("Debris"):AddItem(prt,5)
  1507. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1508. for i=0,1,delay do
  1509. wait()
  1510. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1511. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1512. Part.Transparency=i
  1513. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1514. end
  1515. Part.Parent=nil
  1516. end),prt,msh,wld)
  1517. end
  1518.  
  1519. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1520. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1521. prt.Anchored=false
  1522. prt.CFrame=cframe
  1523. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1524. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1525. game:GetService("Debris"):AddItem(prt,5)
  1526. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1527. for i=0,1,delay do
  1528. wait()
  1529. Weld.C0=euler(i*20,0,0)
  1530. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1531. Part.Transparency=i
  1532. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1533. end
  1534. Part.Parent=nil
  1535. end),prt,msh,wld)
  1536. end
  1537.  
  1538. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1539. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1540. prt.Anchored=true
  1541. prt.CFrame=cframe
  1542. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1543. game:GetService("Debris"):AddItem(prt,2)
  1544. coroutine.resume(coroutine.create(function(Part,Mesh)
  1545. for i=0,1,delay do
  1546. wait()
  1547. Part.CFrame=Part.CFrame
  1548. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1549. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1550. prt2.Anchored=true
  1551. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1552. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1553. game:GetService("Debris"):AddItem(prt2,2)
  1554. coroutine.resume(coroutine.create(function(Part,Mesh)
  1555. for i=0,1,0.1 do
  1556. wait()
  1557. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1558. end
  1559. Part.Parent=nil
  1560. end),prt2,msh2)
  1561. end
  1562. for i=0,1,delay*2 do
  1563. wait()
  1564. Part.CFrame=Part.CFrame
  1565. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1566. end
  1567. Part.Parent=nil
  1568. end),prt,msh)
  1569. end
  1570.  
  1571. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1572. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1573. prt.Anchored=true
  1574. prt.CFrame=cframe
  1575. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1576. game:GetService("Debris"):AddItem(prt,2)
  1577. coroutine.resume(coroutine.create(function(Part,Mesh)
  1578. for i=0,1,delay do
  1579. wait()
  1580. Part.CFrame=Part.CFrame
  1581. Part.Transparency=i
  1582. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1583. end
  1584. Part.Parent=nil
  1585. end),prt,msh)
  1586. end
  1587.  
  1588. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1589. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1590. prt.Anchored=true
  1591. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1592. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1593. game:GetService("Debris"):AddItem(prt,2)
  1594. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1595. CF=Part.CFrame
  1596. Numbb=0
  1597. randnumb=math.random()/10
  1598. rand1=math.random()/10
  1599. for i=0,1,rand1 do
  1600. wait()
  1601. CF=CF*cf(0,math.random()/2,0)
  1602. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1603. Part.CFrame=CF*euler(Numbb,0,0)
  1604. Part.Transparency=i
  1605. Numbb=Numbb+randnumb
  1606. end
  1607. Part.Parent=nil
  1608. end),prt,CF,Numbb,randnumb)
  1609. end
  1610.  
  1611. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1612. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1613. prt.Anchored=true
  1614. prt.CFrame=cframe
  1615. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1616. game:GetService("Debris"):AddItem(prt,5)
  1617. coroutine.resume(coroutine.create(function(Part,Mesh)
  1618. for i=0,1,delay do
  1619. wait()
  1620. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1621. Part.Transparency=i
  1622. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1623. end
  1624. Part.Parent=nil
  1625. end),prt,msh)
  1626. end
  1627.  
  1628. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1629. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1630. prt.Anchored=true
  1631. prt.CFrame=cframe
  1632. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1633. game:GetService("Debris"):AddItem(prt,2)
  1634. coroutine.resume(coroutine.create(function(Part,Mesh)
  1635. for i=0,1,delay do
  1636. wait()
  1637. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1638. Part.Transparency=i
  1639. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1640. end
  1641. Part.Parent=nil
  1642. end),prt,msh)
  1643. end
  1644.  
  1645. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1646. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1647. prt.Anchored=true
  1648. prt.CFrame=cframe*cf(x,y,z)
  1649. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1650. game:GetService("Debris"):AddItem(prt,5)
  1651. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1652. local num=math.random()
  1653. local num2=math.random(-3,2)+math.random()
  1654. local numm=0
  1655. for i=0,1,delay*2 do
  1656. swait()
  1657. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1658. Part.Transparency=i
  1659. numm=numm+0.01
  1660. end
  1661. Part.Parent=nil
  1662. Mesh.Parent=nil
  1663. end),prt,msh,x,y,z)
  1664. end
  1665.  
  1666. function dmgstart(dmg,what)
  1667. hitcon = what.Touched:connect(function(hit)
  1668. local hum = hit.Parent:FindFirstChild("Humanoid")
  1669. if hum and not hum:IsDescendantOf(Character) then
  1670. hum:TakeDamage(dmg)
  1671. end
  1672. end)
  1673. end
  1674.  
  1675. function dmgstop()
  1676. hitcon:disconnect()
  1677. end
  1678.  
  1679. function Cloak()
  1680. Face.Parent=nil
  1681. cloaked=true
  1682. for _,v in pairs(Torso.Parent:children()) do
  1683. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1684. coroutine.resume(coroutine.create(function()
  1685. for i=0,1,0.2 do
  1686. wait()
  1687. v.Transparency=i
  1688. end
  1689. v.Transparency=1
  1690. end))
  1691. end
  1692. if v.className=="Hat" then
  1693. hatp=v.Handle
  1694. coroutine.resume(coroutine.create(function(derp)
  1695. for i=0,1,0.2 do
  1696. wait()
  1697. derp.Transparency=i
  1698. end
  1699. derp.Transparency=1
  1700. end),hatp)
  1701. end
  1702. end
  1703. for _,v in pairs(m:children()) do
  1704. if v.className=="Part" then
  1705. coroutine.resume(coroutine.create(function()
  1706. for i=0,1,0.2 do
  1707. wait()
  1708. v.Transparency=i
  1709. end
  1710. v.Transparency=1
  1711. end))
  1712. end
  1713. end
  1714. end
  1715.  
  1716. function UnCloak()
  1717. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1718. Face.Parent=Head
  1719. cloaked=false
  1720. for _,v in pairs(Torso.Parent:children()) do
  1721. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1722. coroutine.resume(coroutine.create(function()
  1723. for i=0,1,0.1 do
  1724. wait()
  1725. v.Transparency=v.Transparency-0.1
  1726. end
  1727. v.Transparency=0
  1728. end))
  1729. end
  1730. if v.className=="Hat" then
  1731. hatp=v.Handle
  1732. coroutine.resume(coroutine.create(function(derp)
  1733. for i=0,1,0.1 do
  1734. wait()
  1735. derp.Transparency=derp.Transparency-0.1
  1736. end
  1737. derp.Transparency=0
  1738. end),hatp)
  1739. end
  1740. end
  1741. for _,v in pairs(m:children()) do
  1742. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1743. coroutine.resume(coroutine.create(function()
  1744. for i=0,1,0.1 do
  1745. wait()
  1746. v.Transparency=v.Transparency-0.1
  1747. end
  1748. v.Transparency=0
  1749. end))
  1750. v.Transparency=0
  1751. end
  1752. end
  1753. end
  1754.  
  1755. local origcolor = BrickColor.new("Toothpaste")
  1756. ---- This section of explosions.
  1757. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1758. local expart = Instance.new("Part",char)
  1759. local expart2 = Instance.new("Part",char)
  1760. local rin = Instance.new("Part",char)
  1761. local rin2 = Instance.new("Part",char)
  1762. local partMesh = Instance.new("SpecialMesh",expart)
  1763. partMesh.MeshType = "Sphere"
  1764. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1765. partMesh2.MeshType = "Sphere"
  1766. local partMesh3 = Instance.new("SpecialMesh",rin)
  1767. partMesh3.MeshType = "Brick"
  1768. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1769. partMesh4.MeshType = "Brick"
  1770. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1771. partMesh.Scale = vt(rad,rad,rad)
  1772. expart.Size = vt(1,1,1)
  1773. expart.Transparency = 0
  1774. expart.Anchored = true
  1775. expart.Material = "Neon"
  1776. expart.BrickColor = bc("White")
  1777. expart.CFrame = par.CFrame
  1778. partMesh2.Scale = vt(rad,rad,rad)
  1779. expart2.Size = vt(1.15,1.15,1.15)
  1780. expart2.Transparency = 0.5
  1781. expart2.Anchored = true
  1782. expart2.Material = "Neon"
  1783. expart2.BrickColor = par.BrickColor
  1784. expart2.CFrame = par.CFrame
  1785. rin.Size = vt(1.15,1.15,1.15)
  1786. rin.Transparency = 1
  1787. rin.Anchored = true
  1788. rin.Material = "Neon"
  1789. rin.BrickColor = par.BrickColor
  1790. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1791. rin2.Size = vt(1.15,1.15,1.15)
  1792. rin2.Transparency = 1
  1793. rin2.Anchored = true
  1794. rin2.Material = "Neon"
  1795. rin2.BrickColor = par.BrickColor
  1796. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1797. partMesh3.Scale = vt(0,1,0)
  1798. partMesh4.Scale = vt(0,1,0)
  1799. local dec2 = Instance.new("Decal", rin)
  1800. dec2.Face = "Top"
  1801. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1802. dec2.Parent = rin
  1803. local dec2b = dec2:Clone()
  1804. dec2b.Face = "Bottom"
  1805. dec2b.Parent = rin
  1806.  
  1807. local dec2a = Instance.new("Decal", rin2)
  1808. dec2a.Face = "Top"
  1809. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1810. dec2a.Parent = rin2
  1811. local dec2ab = dec2a:Clone()
  1812. dec2ab.Face = "Bottom"
  1813. dec2ab.Parent = rin2
  1814. expart.CanCollide = false
  1815. expart2.CanCollide = false
  1816. rin.CanCollide = false
  1817. rin2.CanCollide = false
  1818. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1819. local value = 1*rad/6.5
  1820. for i = 0, 199 do
  1821. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1822. expart.CFrame = expart.CFrame
  1823. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1824. expart2.CFrame = expart.CFrame
  1825. value = value - 0.035*rad/30
  1826. if value < 7.5 then
  1827. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1828. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1829. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1830. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1831. end
  1832. if value < 0 then
  1833. dec2.Transparency = dec2.Transparency + 0.025
  1834. dec2a.Transparency = dec2a.Transparency + 0.025
  1835. dec2b.Transparency = dec2b.Transparency + 0.025
  1836. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1837. expart.Transparency = expart.Transparency + 0.025
  1838. expart2.Transparency = expart2.Transparency + 0.025
  1839. rin.Transparency = rin.Transparency + 0.025
  1840. rin2.Transparency = rin2.Transparency + 0.025
  1841. end
  1842. swait()
  1843. end
  1844. game:GetService("Debris"):AddItem(expart, 1)
  1845. game:GetService("Debris"):AddItem(expart2, 1)
  1846. game:GetService("Debris"):AddItem(rin, 1)
  1847. game:GetService("Debris"):AddItem(rin2, 1)
  1848. end
  1849.  
  1850. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1851. local expart = Instance.new("Part",char)
  1852. local expart2 = Instance.new("Part",char)
  1853. local partMesh = Instance.new("SpecialMesh",expart)
  1854. partMesh.MeshType = "Sphere"
  1855. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1856. partMesh2.MeshType = "Sphere"
  1857. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1858. partMesh.Scale = vt(rad,rad,rad)
  1859. expart.Size = vt(1,1,1)
  1860. expart.Transparency = 0
  1861. expart.Anchored = true
  1862. expart.Material = "Neon"
  1863. expart.BrickColor = bc("White")
  1864. expart.CFrame = par.CFrame
  1865. partMesh2.Scale = vt(rad,rad,rad)
  1866. expart2.Size = vt(1.15,1.15,1.15)
  1867. expart2.Transparency = 0.5
  1868. expart2.Anchored = true
  1869. expart2.Material = "Neon"
  1870. expart2.BrickColor = par.BrickColor
  1871. expart2.CFrame = par.CFrame
  1872. expart.CanCollide = false
  1873. expart2.CanCollide = false
  1874. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1875. local value = 1*rad/6.5
  1876. for i = 0, 75 do
  1877. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1878. expart.CFrame = expart.CFrame
  1879. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1880. expart2.CFrame = expart.CFrame
  1881. value = value - 0.035*rad/5
  1882. if value < 0 then
  1883. value = 0
  1884. expart.Transparency = expart.Transparency + 0.05
  1885. expart2.Transparency = expart2.Transparency + 0.05
  1886. end
  1887. swait()
  1888. end
  1889. game:GetService("Debris"):AddItem(expart, 1)
  1890. game:GetService("Debris"):AddItem(expart2, 1)
  1891. end
  1892.  
  1893. function AreaDanger(rad,par,mindam,maxdam)
  1894. local expart = Instance.new("Part",char)
  1895. local partMesh = Instance.new("SpecialMesh",expart)
  1896. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1897. partMesh.MeshType = "Sphere"
  1898. partMesh.Scale = vt(rad,rad,rad)
  1899. expart.Size = vt(1,1,1)
  1900. expart.Transparency = 0.5
  1901. expart.Anchored = true
  1902. expart.Material = "Neon"
  1903. expart.CanCollide = false
  1904. expart.BrickColor = par.BrickColor
  1905. expart.CFrame = par.CFrame
  1906. local value = 1*rad/5
  1907. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1908. for i = 0, 14 do
  1909. wait()
  1910. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1911. expart.CFrame = expart.CFrame
  1912. value = value - 0.035*rad
  1913. if value < 0 then
  1914. value = 0
  1915. end
  1916. end
  1917. wait(0.25)
  1918. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1919. wait(0.5)
  1920. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1921. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1922. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1923. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1924. for i = 0, 14 do
  1925. wait()
  1926. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1927. expart.CFrame = expart.CFrame
  1928. value = value - 0.035*rad/2
  1929. end
  1930. expart.Transparency = 1
  1931. game:GetService("Debris"):AddItem(expart, 5)
  1932. end
  1933.  
  1934. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1935. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1936. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1937. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1938. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1939. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1940. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1941. for i = 0, 24 do
  1942. 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))
  1943. end
  1944. for i = 0, 24 do
  1945. local expart = Instance.new("Part",char)
  1946. expart.Transparency = 1
  1947. expart.Anchored = true
  1948. expart.CanCollide = false
  1949. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1950. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1951. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1952. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1953. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1954. for i = 0, 9 do
  1955. 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))
  1956. end
  1957. game:GetService("Debris"):AddItem(expart, 2)
  1958. wait(0.1)
  1959. end
  1960. end
  1961.  
  1962. function EXterPlosion(par)
  1963. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1964. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1965. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1966. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1967. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  1968. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1969. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1970. for i = 0, 24 do
  1971. 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))
  1972. end
  1973. for i = 0, 24 do
  1974. 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))
  1975. end
  1976. end
  1977. ----
  1978.  
  1979.  
  1980. function ring(type,pos,scale,value)
  1981. local type = type
  1982. local rng = Instance.new("Part", char)
  1983. rng.Anchored = true
  1984. rng.BrickColor = origcolor
  1985. rng.CanCollide = false
  1986. rng.FormFactor = 3
  1987. rng.Name = "Ring"
  1988. rng.Size = Vector3.new(1, 1, 1)
  1989. rng.Transparency = 0
  1990. rng.TopSurface = 0
  1991. rng.BottomSurface = 0
  1992. rng.CFrame = pos
  1993. local rngm = Instance.new("SpecialMesh", rng)
  1994. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1995. rngm.Scale = scale
  1996. local scaler2 = 1
  1997. if type == "Add" then
  1998. scaler2 = 1*value
  1999. elseif type == "Divide" then
  2000. scaler2 = 1/value
  2001. end
  2002. coroutine.resume(coroutine.create(function()
  2003. for i = 0,10,0.1 do
  2004. swait()
  2005. if type == "Add" then
  2006. scaler2 = scaler2 - 0.01*value
  2007. elseif type == "Divide" then
  2008. scaler2 = scaler2 - 0.01/value
  2009. end
  2010. rng.Transparency = rng.Transparency + 0.01
  2011. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2012. end
  2013. rng:Destroy()
  2014. end))
  2015. end
  2016.  
  2017. function ring2(type,pos,scale,value,color)
  2018. local type = type
  2019. local rng = Instance.new("Part", char)
  2020. rng.Anchored = true
  2021. rng.BrickColor = color
  2022. rng.CanCollide = false
  2023. rng.FormFactor = 3
  2024. rng.Name = "Ring"
  2025. rng.Size = Vector3.new(1, 1, 1)
  2026. rng.Transparency = 0
  2027. rng.TopSurface = 0
  2028. rng.BottomSurface = 0
  2029. rng.CFrame = pos
  2030. local rngm = Instance.new("SpecialMesh", rng)
  2031. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2032. rngm.Scale = scale
  2033. local scaler2 = 1
  2034. if type == "Add" then
  2035. scaler2 = 1*value
  2036. elseif type == "Divide" then
  2037. scaler2 = 1/value
  2038. end
  2039. coroutine.resume(coroutine.create(function()
  2040. for i = 0,10,0.1 do
  2041. swait()
  2042. if type == "Add" then
  2043. scaler2 = scaler2 - 0.01*value
  2044. elseif type == "Divide" then
  2045. scaler2 = scaler2 - 0.01/value
  2046. end
  2047. rng.Transparency = rng.Transparency + 0.01
  2048. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2049. end
  2050. rng:Destroy()
  2051. end))
  2052. end
  2053.  
  2054.  
  2055. function wave(type,pos,scale,value)
  2056. local type = type
  2057. local rng = Instance.new("Part", char)
  2058. rng.Anchored = true
  2059. rng.BrickColor = origcolor
  2060. rng.CanCollide = false
  2061. rng.FormFactor = 3
  2062. rng.Name = "Ring"
  2063. rng.Size = Vector3.new(1, 1, 1)
  2064. rng.Transparency = 0
  2065. rng.TopSurface = 0
  2066. rng.BottomSurface = 0
  2067. rng.CFrame = pos
  2068. local rngm = Instance.new("SpecialMesh", rng)
  2069. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2070. rngm.Scale = scale
  2071. local scaler2 = 1
  2072. if type == "Add" then
  2073. scaler2 = 1*value
  2074. elseif type == "Divide" then
  2075. scaler2 = 1/value
  2076. end
  2077. coroutine.resume(coroutine.create(function()
  2078. for i = 0,10,0.1 do
  2079. swait()
  2080. if type == "Add" then
  2081. scaler2 = scaler2 - 0.01*value
  2082. elseif type == "Divide" then
  2083. scaler2 = scaler2 - 0.01/value
  2084. end
  2085. rng.Transparency = rng.Transparency + 0.01
  2086. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2087. end
  2088. rng:Destroy()
  2089. end))
  2090. end
  2091.  
  2092. function wave2(type,pos,scale,value,color)
  2093. local type = type
  2094. local rng = Instance.new("Part", char)
  2095. rng.Anchored = true
  2096. rng.BrickColor = color
  2097. rng.CanCollide = false
  2098. rng.FormFactor = 3
  2099. rng.Name = "Ring"
  2100. rng.Size = Vector3.new(1, 1, 1)
  2101. rng.Transparency = 0
  2102. rng.TopSurface = 0
  2103. rng.BottomSurface = 0
  2104. rng.CFrame = pos
  2105. local rngm = Instance.new("SpecialMesh", rng)
  2106. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2107. rngm.Scale = scale
  2108. local scaler2 = 1
  2109. if type == "Add" then
  2110. scaler2 = 1*value
  2111. elseif type == "Divide" then
  2112. scaler2 = 1/value
  2113. end
  2114. coroutine.resume(coroutine.create(function()
  2115. for i = 0,10,0.1 do
  2116. swait()
  2117. if type == "Add" then
  2118. scaler2 = scaler2 - 0.01*value
  2119. elseif type == "Divide" then
  2120. scaler2 = scaler2 - 0.01/value
  2121. end
  2122. rng.Transparency = rng.Transparency + 0.01
  2123. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2124. end
  2125. rng:Destroy()
  2126. end))
  2127. end
  2128.  
  2129.  
  2130. function wind(type,pos,scale,value,speed)
  2131. local type = type
  2132. local rng = Instance.new("Part", char)
  2133. rng.Anchored = true
  2134. rng.BrickColor = origcolor
  2135. rng.CanCollide = false
  2136. rng.FormFactor = 3
  2137. rng.Name = "Ring"
  2138. rng.Size = Vector3.new(1, 1, 1)
  2139. rng.Transparency = 0
  2140. rng.TopSurface = 0
  2141. rng.BottomSurface = 0
  2142. rng.CFrame = pos
  2143. local rngm = Instance.new("SpecialMesh", rng)
  2144. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2145. rngm.Scale = scale
  2146. local scaler2 = 1
  2147. if type == "Add" then
  2148. scaler2 = 1*value
  2149. elseif type == "Divide" then
  2150. scaler2 = 1/value
  2151. end
  2152. coroutine.resume(coroutine.create(function()
  2153. for i = 0,10,0.1 do
  2154. swait()
  2155. if type == "Add" then
  2156. scaler2 = scaler2 - 0.01*value
  2157. elseif type == "Divide" then
  2158. scaler2 = scaler2 - 0.01/value
  2159. end
  2160. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2161. rng.Transparency = rng.Transparency + 0.01
  2162. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2163. end
  2164. rng:Destroy()
  2165. end))
  2166. end
  2167.  
  2168. function groundwind(type,pos,scale,value,speed)
  2169. local type = type
  2170. local rng = Instance.new("Part", char)
  2171. rng.Anchored = true
  2172. rng.BrickColor = origcolor
  2173. rng.CanCollide = false
  2174. rng.FormFactor = 3
  2175. rng.Name = "Ring"
  2176. rng.Size = Vector3.new(1, 1, 1)
  2177. rng.Transparency = 0
  2178. rng.TopSurface = 0
  2179. rng.BottomSurface = 0
  2180. rng.CFrame = pos
  2181. local rngm = Instance.new("SpecialMesh", rng)
  2182. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2183. rngm.Scale = scale
  2184. local scaler2 = 1
  2185. if type == "Add" then
  2186. scaler2 = 1*value
  2187. elseif type == "Divide" then
  2188. scaler2 = 1/value
  2189. end
  2190. coroutine.resume(coroutine.create(function()
  2191. for i = 0,10,0.1 do
  2192. swait()
  2193. if type == "Add" then
  2194. scaler2 = scaler2 - 0.01*value
  2195. elseif type == "Divide" then
  2196. scaler2 = scaler2 - 0.01/value
  2197. end
  2198. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2199. rng.Transparency = rng.Transparency + 0.01
  2200. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2201. end
  2202. rng:Destroy()
  2203. end))
  2204. end
  2205.  
  2206. function sphere(type,pos,scale,value)
  2207. local type = type
  2208. local rng = Instance.new("Part", char)
  2209. rng.Anchored = true
  2210. rng.BrickColor = origcolor
  2211. rng.CanCollide = false
  2212. rng.FormFactor = 3
  2213. rng.Name = "Ring"
  2214. rng.Material = "Neon"
  2215. rng.Size = Vector3.new(1, 1, 1)
  2216. rng.Transparency = 0
  2217. rng.TopSurface = 0
  2218. rng.BottomSurface = 0
  2219. rng.CFrame = pos
  2220. local rngm = Instance.new("SpecialMesh", rng)
  2221. rngm.MeshType = "Sphere"
  2222. rngm.Scale = scale
  2223. local scaler2 = 1
  2224. if type == "Add" then
  2225. scaler2 = 1*value
  2226. elseif type == "Divide" then
  2227. scaler2 = 1/value
  2228. end
  2229. coroutine.resume(coroutine.create(function()
  2230. for i = 0,10,0.1 do
  2231. swait()
  2232. if type == "Add" then
  2233. scaler2 = scaler2 - 0.01*value
  2234. elseif type == "Divide" then
  2235. scaler2 = scaler2 - 0.01/value
  2236. end
  2237. rng.Transparency = rng.Transparency + 0.01
  2238. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2239. end
  2240. rng:Destroy()
  2241. end))
  2242. end
  2243.  
  2244. function beam(type,pos,scale,value)
  2245. local type = type
  2246. local rng = Instance.new("Part", char)
  2247. rng.Anchored = true
  2248. rng.BrickColor = origcolor
  2249. rng.CanCollide = false
  2250. rng.FormFactor = 3
  2251. rng.Name = "Ring"
  2252. rng.Material = "Neon"
  2253. rng.Size = Vector3.new(1, 1, 1)
  2254. rng.Transparency = 0
  2255. rng.TopSurface = 0
  2256. rng.BottomSurface = 0
  2257. rng.CFrame = pos
  2258. local rngm = Instance.new("SpecialMesh", rng)
  2259. rngm.MeshType = "Sphere"
  2260. rngm.Scale = scale
  2261. rngm.Scale = rngm.Scale + Vector3.new(0,10000,0)
  2262. local scaler2 = 0.5
  2263. if type == "Add" then
  2264. scaler2 = 0.5*value
  2265. elseif type == "Divide" then
  2266. scaler2 = 0.5/value
  2267. end
  2268. coroutine.resume(coroutine.create(function()
  2269. for i = 0,10,0.1 do
  2270. swait()
  2271. if type == "Add" then
  2272. scaler2 = scaler2 - 0.01*value
  2273. elseif type == "Divide" then
  2274. scaler2 = scaler2 - 0.01/value
  2275. end
  2276. rng.Transparency = rng.Transparency + 0.01
  2277. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2278. end
  2279. rng:Destroy()
  2280. end))
  2281. end
  2282. local dashing = false
  2283. local OriginalWalkspeed = hum.WalkSpeed
  2284. local equipped = false
  2285. -- Functions are ready.
  2286. function equipanim()
  2287. attack = true
  2288. for i = 0,2,0.1 do
  2289.  
  2290. swait()
  2291. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2292. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.2)
  2293. RW.C0 = clerp(RW.C0, CFrame.new(1.75, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(100)), 0.2)
  2294. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2295. end
  2296. attack = false
  2297. hum.WalkSpeed = 10
  2298. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),1)
  2299. wepweld.Part0 = rarm
  2300. equipped = true
  2301. end
  2302. function unequipanim()
  2303. attack = true
  2304. for i = 0,2,0.1 do
  2305.  
  2306. swait()
  2307. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(220),math.rad(0),math.rad(0)),0.2)
  2308. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2309. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.2)
  2310. RW.C0 = clerp(RW.C0, CFrame.new(1.75, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(100)), 0.2)
  2311. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2312. end
  2313. attack = false
  2314. hum.WalkSpeed = OriginalWalkspeed
  2315. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),1)
  2316. wepweld.Part0 = tors
  2317. equipped = false
  2318. end
  2319.  
  2320. ----------- attacks
  2321. function attackone()
  2322. attack = true
  2323. for i = 0,3,0.1 do
  2324.  
  2325. swait()
  2326. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2327. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.1)
  2328. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.1)
  2329. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(100)), 0.1)
  2330. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.1)
  2331. end
  2332. CFuncs["Sound"].Create("rbxassetid://231917961", hitbox, 1, 1)
  2333. local con = hitbox.Touched:connect(function(hit)
  2334. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  2335. end)
  2336. for i = 0,3,0.1 do
  2337.  
  2338. swait()
  2339. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2340. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-60)),0.2)
  2341. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(60)),.2)
  2342. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(60)), 0.2)
  2343. 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)
  2344. end
  2345. con:disconnect()
  2346. attack = false
  2347. end
  2348.  
  2349. function attacktwo()
  2350. attack = true
  2351. for i = 0,3,0.1 do
  2352.  
  2353. swait()
  2354. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(180),math.rad(0),math.rad(0)),0.1)
  2355. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.1)
  2356. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(40)),.1)
  2357. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(70)), 0.1)
  2358. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.1)
  2359. end
  2360. CFuncs["Sound"].Create("rbxassetid://231917950", hitbox, 1, 1)
  2361. local con = hitbox.Touched:connect(function(hit)
  2362. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  2363. end)
  2364. for i = 0,3,0.1 do
  2365.  
  2366. swait()
  2367. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(180),math.rad(0),math.rad(0)),0.2)
  2368. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.2)
  2369. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  2370. 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)
  2371. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(50)), 0.2)
  2372. end
  2373. con:disconnect()
  2374. attack = false
  2375. end
  2376.  
  2377. function attackthree()
  2378. attack = true
  2379. for i = 0,3,0.1 do
  2380.  
  2381. swait()
  2382. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  2383. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-100)),0.1)
  2384. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(100)),.1)
  2385. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(60)), 0.1)
  2386. 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)
  2387. end
  2388. CFuncs["Sound"].Create("rbxassetid://231917950", hitbox, 1, 1.25)
  2389. local con = hitbox.Touched:connect(function(hit)
  2390. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  2391. end)
  2392. for i = 0,3,0.1 do
  2393.  
  2394. swait()
  2395. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(0),math.rad(0)),0.2)
  2396. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.2)
  2397. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-70)),.2)
  2398. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(80), math.rad(110)), 0.2)
  2399. 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)
  2400. end
  2401. con:disconnect()
  2402. attack = false
  2403. end
  2404.  
  2405. function attackfour()
  2406. attack = true
  2407. for i = 0,3,0.1 do
  2408.  
  2409. swait()
  2410. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.5)
  2411. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.1)
  2412. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2413. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(-40)), 0.1)
  2414. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(40)), 0.1)
  2415. end
  2416. for i = 0,1,0.1 do
  2417. swait()
  2418. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  2419. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2420. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2421. 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)
  2422. 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)
  2423. end
  2424. local impact = Instance.new("Part")
  2425. impact.Parent = char
  2426. impact.BrickColor = origcolor
  2427. impact.CanCollide = false
  2428. impact.Material = "Neon"
  2429. impact.Anchored = true
  2430. impact.TopSurface = 0
  2431. impact.BottomSurface = 0
  2432. impact.Transparency = 1
  2433. impact.Size = vt(2,2,2)
  2434. impact.Position = bladt.Position
  2435. game:GetService("Debris"):AddItem(impact, 5)
  2436. CFuncs["Sound"].Create("rbxassetid://231917806", impact, 2, 1)
  2437. CFuncs["Sound"].Create("rbxassetid://231917845", impact, 1, 1)
  2438. CFuncs["Sound"].Create("rbxassetid://231917833", impact, 1, 1.5)
  2439. MagniDamage(impact, 10, 10,12, 0, "Normal")
  2440. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,0),1.5,BrickColor.new("White"))
  2441. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(5,5,0),2.5,BrickColor.new("White"))
  2442. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(5,0,5),5,BrickColor.new("White"))
  2443. for i = 0,1,0.1 do
  2444. swait()
  2445. CameraShake(10, 5)
  2446. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  2447. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2448. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2449. 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)
  2450. 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)
  2451. end
  2452. attack = false
  2453. end
  2454.  
  2455. -------- Skills
  2456. function scrollingup()
  2457. attack = true
  2458. for i = 0,3,0.1 do
  2459.  
  2460. swait()
  2461. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  2462. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(110)),0.1)
  2463. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-100)),.1)
  2464. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(70), math.rad(90)), 0.1)
  2465. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  2466. end
  2467. local con = hitbox.Touched:connect(function(hit)
  2468. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  2469. end)
  2470. local bv = Instance.new("BodyVelocity")
  2471. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2472. bv.velocity = root.CFrame.lookVector*100
  2473. bv.Parent = root
  2474. CFuncs["Sound"].Create("rbxassetid://231917788", root, 2.5, 1)
  2475. CFuncs["Sound"].Create("rbxassetid://231917845", root, 2.5, 1)
  2476. CFuncs["Sound"].Create("rbxassetid://231917801", root, 1, 1)
  2477. wave2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(10,1,10),35,BrickColor.new("White"))
  2478. wave2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(10,1,10),5,BrickColor.new("White"))
  2479. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1.5,BrickColor.new("White"))
  2480. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1,BrickColor.new("White"))
  2481. coroutine.resume(coroutine.create(function()
  2482. wait(0.45)
  2483. bv:Destroy()
  2484. end))
  2485. for z = 0, 1 do
  2486. MagniDamage(root, 15, 13,15, 0, "Normal")
  2487. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),5,BrickColor.new("White"))
  2488. ring2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(15,15,1),25,BrickColor.new("Toothpaste"))
  2489. ring2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(15,15,1),2.5,BrickColor.new("Toothpaste"))
  2490. for i = 0,1,0.3 do
  2491. CameraShake(6, 3)
  2492. swait()
  2493. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  2494. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-30)),0.3)
  2495. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2496. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  2497. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  2498. end
  2499. for i = 0,1,0.3 do
  2500.  
  2501. swait()
  2502. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  2503. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  2504. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(90)),.3)
  2505. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  2506. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  2507. end
  2508. for i = 0,1,0.3 do
  2509.  
  2510. swait()
  2511. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  2512. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-180)),0.3)
  2513. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2514. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  2515. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  2516. end
  2517. for i = 0,1,0.3 do
  2518.  
  2519. swait()
  2520. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  2521. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-270)),0.3)
  2522. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  2523. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  2524. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  2525. end
  2526. end
  2527. attack = false
  2528. con:disconnect()
  2529. end
  2530.  
  2531. function lemmesmashyoo()
  2532. attack = true
  2533. CFuncs["Sound"].Create("rbxassetid://136007472", root, 0.75, 1.15)
  2534. sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(-25,-25,-25),1.75)
  2535. for i = 0,5,0.1 do
  2536.  
  2537. swait()
  2538. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.5)
  2539. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.1)
  2540. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2541. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(-40)), 0.1)
  2542. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(40)), 0.1)
  2543. end
  2544. for i = 0,1,0.1 do
  2545. swait()
  2546. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  2547. CameraShake(8, 4)
  2548. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2549. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2550. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  2551. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  2552. end
  2553. local impact = Instance.new("Part")
  2554. impact.Parent = char
  2555. impact.BrickColor = origcolor
  2556. impact.CanCollide = false
  2557. impact.Material = "Neon"
  2558. impact.Anchored = true
  2559. impact.TopSurface = 0
  2560. impact.BottomSurface = 0
  2561. impact.Transparency = 1
  2562. impact.Size = vt(2,2,2)
  2563. impact.Position = bladt.Position
  2564. game:GetService("Debris"):AddItem(impact, 5)
  2565. CFuncs["Sound"].Create("rbxassetid://157878578", impact, 1.5, 0.75)
  2566. CFuncs["Sound"].Create("rbxassetid://157878578", impact, 0.5, 0.5)
  2567. CFuncs["Sound"].Create("rbxassetid://231917806", impact, 2.25, 0.5)
  2568. CFuncs["Sound"].Create("rbxassetid://231917845", impact, 2.25, 0.5)
  2569. CFuncs["Sound"].Create("rbxassetid://231917833", impact, 2.25, 1.25)
  2570. MagniDamage(impact, 27.5, 15,17, 0, "Normal")
  2571. ring2("Add",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,0),1.25,BrickColor.new("White"))
  2572. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(5,5,0),1.5,BrickColor.new("White"))
  2573. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(5,0,5),3.5,BrickColor.new("White"))
  2574. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(15,0,15),5,BrickColor.new("White"))
  2575. ring2("Add",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(0,0,0),50,BrickColor.new("Really black"))
  2576. beam("Add",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),1)
  2577. beam("Add",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),1.25)
  2578. for i = 0,1,0.1 do
  2579. swait()
  2580. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  2581. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2582. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2583. 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)
  2584. 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)
  2585. end
  2586. attack = false
  2587. end
  2588. ---
  2589.  
  2590. local attacktype = 1
  2591. mouse.Button1Down:connect(function()
  2592. if equipped == true then
  2593. if attack == false and attacktype == 1 then
  2594. attacktype = 2
  2595. attackone()
  2596. elseif attack == false and attacktype == 2 then
  2597. attacktype = 3
  2598. attacktwo()
  2599. elseif attack == false and attacktype == 3 then
  2600. attacktype = 4
  2601. attackthree()
  2602. elseif attack == false and attacktype == 4 then
  2603. attacktype = 1
  2604. attackfour()
  2605. end
  2606. end
  2607. end)
  2608. mouse.KeyDown:connect(function(k)
  2609. if k == "f" and attack == false and equipped == false then
  2610. equipanim()
  2611. elseif k == "f" and attack == false and equipped == true then
  2612. unequipanim()
  2613. end
  2614. if equipped == true then
  2615. if k == "z" and attack == false then
  2616. scrollingup()
  2617. end
  2618. if k == "x" and attack == false then
  2619. lemmesmashyoo()
  2620. end
  2621. end
  2622. end)
  2623. Humanoid.Animator.Parent = nil
  2624. idleanim=.4
  2625. while true do
  2626. swait()
  2627. sine = sine + change
  2628. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2629. local velderp=RootPart.Velocity.y
  2630. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2631. if equipped==true or equipped==false then
  2632. if attack==false then
  2633. idle=idle+1
  2634. else
  2635. idle=0
  2636. end
  2637. if idle>=500 then
  2638. if attack==false then
  2639. end
  2640. end
  2641. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2642. Anim="Jump"
  2643. if attack==false then
  2644. 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)
  2645. 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)
  2646. 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)
  2647. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2648. 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)
  2649. 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)
  2650. if equipped == true then
  2651. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(-10),math.rad(180),math.rad(0)),0.1)
  2652. end
  2653. end
  2654. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2655. Anim="Fall"
  2656. if attack==false then
  2657. 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)
  2658. 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)
  2659. 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)
  2660. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2661. 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)
  2662. 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)
  2663. if equipped == true then
  2664. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(-10),math.rad(180),math.rad(0)),0.1)
  2665. end
  2666. end
  2667. elseif torvel<1 and hitfloor~=nil then
  2668. Anim="Idle"
  2669. if equipped == false then
  2670. if dashing == false then
  2671. 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)
  2672. 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)
  2673. end
  2674. if attack==false then
  2675. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),0.1)
  2676. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 100))*angles(math.rad(-10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 100))),.1)
  2677. 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)
  2678. 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)
  2679. 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)
  2680. end
  2681. elseif equipped == true then
  2682. if dashing == false then
  2683. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-15)),.1)
  2684. 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)
  2685. end
  2686. if attack==false then
  2687. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2688. 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)
  2689. 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)
  2690. 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)
  2691. 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)
  2692. end
  2693. end
  2694. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2695. Anim="Walk"
  2696. if equipped == false then
  2697. if dashing == false then
  2698. 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)
  2699. 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)
  2700. end
  2701. if attack==false then
  2702. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),0.1)
  2703. 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)
  2704. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  2705. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(10)),.1)
  2706. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(-10)),.1)
  2707. end
  2708. elseif equipped == true then
  2709. if dashing == false then
  2710. 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)
  2711. 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)
  2712. end
  2713. if attack==false then
  2714. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(180),math.rad(0)),0.1)
  2715. 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)
  2716. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  2717. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(20),math.rad(10)),.1)
  2718. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(-10)),.1)
  2719. end
  2720. end
  2721. elseif torvel>=22 and hitfloor~=nil then
  2722. Anim="Run"
  2723. if dashing == false then
  2724. 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)
  2725. 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)
  2726. end
  2727. if attack==false then
  2728. 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)
  2729. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2730. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2731. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2732. end
  2733. end
  2734. end
  2735. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement