Advertisement
-----------------

Cool Sword fe

Mar 26th, 2020
764
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.89 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. Player=game:GetService("Players").LocalPlayer
  153. Character=Player.Character
  154. PlayerGui=Player.PlayerGui
  155. Backpack=Player.Backpack
  156. Torso=Character.Torso
  157. Head=Character.Head
  158. Humanoid=Character.Humanoid
  159. m=Instance.new('Model',Character)
  160. LeftArm=Character["Left Arm"]
  161. LeftLeg=Character["Left Leg"]
  162. RightArm=Character["Right Arm"]
  163. RightLeg=Character["Right Leg"]
  164. LS=Torso["Left Shoulder"]
  165. LH=Torso["Left Hip"]
  166. RS=Torso["Right Shoulder"]
  167. RH=Torso["Right Hip"]
  168. Neck=Torso.Neck
  169. it=Instance.new
  170. attacktype=1
  171. vt=Vector3.new
  172. cf=CFrame.new
  173. euler=CFrame.fromEulerAnglesXYZ
  174. angles=CFrame.Angles
  175. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  176. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  177. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  178. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  179. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  180. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  181. RootPart=Character.HumanoidRootPart
  182. RootJoint=RootPart.RootJoint
  183. RootCF=euler(-1.57,0,3.14)
  184. attack = false
  185. attackdebounce = false
  186. deb=false
  187. equipped=true
  188. hand=false
  189. MMouse=nil
  190. combo=0
  191. mana=0
  192. trispeed=.2
  193. attackmode='none'
  194. local idle=0
  195. local Anim="Idle"
  196. local Effects={}
  197. local gun=false
  198. local shoot=false
  199. player=nil
  200.  
  201. mouse=Player:GetMouse()
  202. --save shoulders
  203. RSH, LSH=nil, nil
  204. --welds
  205. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  206. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  207. LH=Torso["Left Hip"]
  208. RH=Torso["Right Hip"]
  209. TorsoColor=Torso.BrickColor
  210. function NoOutline(Part)
  211. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  212. end
  213. player=Player
  214. ch=Character
  215. RSH=ch.Torso["Right Shoulder"]
  216. LSH=ch.Torso["Left Shoulder"]
  217. --
  218. RSH.Parent=nil
  219. LSH.Parent=nil
  220. --
  221. RW.Name="Right Shoulder"
  222. RW.Part0=ch.Torso
  223. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  224. RW.C1=cf(0, 0.5, 0)
  225. RW.Part1=ch["Right Arm"]
  226. RW.Parent=ch.Torso
  227. --
  228. LW.Name="Left Shoulder"
  229. LW.Part0=ch.Torso
  230. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  231. LW.C1=cf(0, 0.5, 0)
  232. LW.Part1=ch["Left Arm"]
  233. LW.Parent=ch.Torso
  234.  
  235. local Stats=Instance.new("BoolValue")
  236. Stats.Name="Stats"
  237. Stats.Parent=Character
  238. local Atk=Instance.new("NumberValue")
  239. Atk.Name="Damage"
  240. Atk.Parent=Stats
  241. Atk.Value=1
  242. local Def=Instance.new("NumberValue")
  243. Def.Name="Defense"
  244. Def.Parent=Stats
  245. Def.Value=1
  246. local Speed=Instance.new("NumberValue")
  247. Speed.Name="Speed"
  248. Speed.Parent=Stats
  249. Speed.Value=1
  250. local Mvmt=Instance.new("NumberValue")
  251. Mvmt.Name="Movement"
  252. Mvmt.Parent=Stats
  253. Mvmt.Value=1
  254.  
  255. local donum=0
  256.  
  257.  
  258. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  259. local fp=it("Part")
  260. fp.formFactor=formfactor
  261. fp.Parent=parent
  262. fp.Reflectance=reflectance
  263. fp.Transparency=transparency
  264. fp.CanCollide=false
  265. fp.Locked=true
  266. fp.BrickColor=brickcolor
  267. fp.Name=name
  268. fp.Size=size
  269. fp.Position=Torso.Position
  270. NoOutline(fp)
  271. fp.Material="SmoothPlastic"
  272. fp:BreakJoints()
  273. return fp
  274. end
  275.  
  276. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  277. local mesh=it(Mesh)
  278. mesh.Parent=part
  279. if Mesh=="SpecialMesh" then
  280. mesh.MeshType=meshtype
  281. if meshid~="nil" then
  282. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  283. end
  284. end
  285. mesh.Offset=offset
  286. mesh.Scale=scale
  287. return mesh
  288. end
  289.  
  290. function weld(parent,part0,part1,c0)
  291. local weld=it("Weld")
  292. weld.Parent=parent
  293. weld.Part0=part0
  294. weld.Part1=part1
  295. weld.C0=c0
  296. return weld
  297. end
  298.  
  299. local Color1=Torso.BrickColor
  300.  
  301. local bodvel=Instance.new("BodyVelocity")
  302. local bg=Instance.new("BodyGyro")
  303.  
  304. function swait(num)
  305. if num==0 or num==nil then
  306. game:service'RunService'.Heartbeat:wait(0)
  307. else
  308. for i=0,num do
  309. game:service'RunService'.Heartbeat:wait(0)
  310. end
  311. end
  312. end
  313.  
  314.  
  315. so = function(id,par,vol,pit)
  316. coroutine.resume(coroutine.create(function()
  317. local sou = Instance.new("Sound",par or workspace)
  318. sou.Volume=vol
  319. sou.Pitch=pit or 1
  320. sou.SoundId=id
  321. swait()
  322. sou:play()
  323. game:GetService("Debris"):AddItem(sou,6)
  324. end))
  325. end
  326.  
  327. function clerp(a,b,t)
  328. local qa = {QuaternionFromCFrame(a)}
  329. local qb = {QuaternionFromCFrame(b)}
  330. local ax, ay, az = a.x, a.y, a.z
  331. local bx, by, bz = b.x, b.y, b.z
  332. local _t = 1-t
  333. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  334. end
  335.  
  336. function QuaternionFromCFrame(cf)
  337. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  338. local trace = m00 + m11 + m22
  339. if trace > 0 then
  340. local s = math.sqrt(1 + trace)
  341. local recip = 0.5/s
  342. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  343. else
  344. local i = 0
  345. if m11 > m00 then
  346. i = 1
  347. end
  348. if m22 > (i == 0 and m00 or m11) then
  349. i = 2
  350. end
  351. if i == 0 then
  352. local s = math.sqrt(m00-m11-m22+1)
  353. local recip = 0.5/s
  354. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  355. elseif i == 1 then
  356. local s = math.sqrt(m11-m22-m00+1)
  357. local recip = 0.5/s
  358. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  359. elseif i == 2 then
  360. local s = math.sqrt(m22-m00-m11+1)
  361. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  362. end
  363. end
  364. end
  365.  
  366. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  367. local xs, ys, zs = x + x, y + y, z + z
  368. local wx, wy, wz = w*xs, w*ys, w*zs
  369. local xx = x*xs
  370. local xy = x*ys
  371. local xz = x*zs
  372. local yy = y*ys
  373. local yz = y*zs
  374. local zz = z*zs
  375. 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))
  376. end
  377.  
  378. function QuaternionSlerp(a, b, t)
  379. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  380. local startInterp, finishInterp;
  381. if cosTheta >= 0.0001 then
  382. if (1 - cosTheta) > 0.0001 then
  383. local theta = math.acos(cosTheta)
  384. local invSinTheta = 1/math.sin(theta)
  385. startInterp = math.sin((1-t)*theta)*invSinTheta
  386. finishInterp = math.sin(t*theta)*invSinTheta
  387. else
  388. startInterp = 1-t
  389. finishInterp = t
  390. end
  391. else
  392. if (1+cosTheta) > 0.0001 then
  393. local theta = math.acos(-cosTheta)
  394. local invSinTheta = 1/math.sin(theta)
  395. startInterp = math.sin((t-1)*theta)*invSinTheta
  396. finishInterp = math.sin(t*theta)*invSinTheta
  397. else
  398. startInterp = t-1
  399. finishInterp = t
  400. end
  401. end
  402. 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
  403. end
  404.  
  405. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  406. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  407. end
  408.  
  409.  
  410. user=game:service'Players'.localPlayer
  411. char=user.Character
  412. mouse=user:GetMouse()
  413. m=Instance.new('Model',char)
  414.  
  415.  
  416. local Handle = Instance.new("Part", m)
  417. Handle:BreakJoints()
  418. Handle.TopSurface = "Smooth"
  419. Handle.Transparency = 0 Handle.Material = "SmoothPlastic"
  420. Handle.Name = 'Handle'
  421. Handle.BottomSurface = "Smooth"
  422. Handle.FormFactor = "Custom" Handle.CanCollide = false
  423. Handle.BrickColor = BrickColor.new("Institutional white")
  424. Handle.Size = Vector3.new(0.337107092, 1.12369001, 0.337107033)
  425. local Handleweld = Instance.new("ManualWeld")
  426. Handleweld.Part0 = Character["Right Arm"]
  427. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  428. Handleweld.C1 = CFrame.new(-0.000732421875, -0.0344696045, -0.945665836, -0.999993205, 0, 0, 0, 0, -1, 0, -0.999993086, 0)
  429. Handleweld.Parent = Character["Right Arm"]
  430.  
  431. local HandleMesh = Instance.new("CylinderMesh",Handle)
  432. HandleMesh.Name = "Mesh"
  433. HandleMesh.Offset = Vector3.new(0, 0, 0)
  434. HandleMesh.Scale = Vector3.new(1, 1, 1)
  435.  
  436. local Part = Instance.new("Part", m)
  437. Part:BreakJoints()
  438. Part.TopSurface = "Smooth"
  439. Part.Material = "SmoothPlastic"
  440. Part.Transparency = 0 Part.Name = 'Part'
  441. Part.BottomSurface = "Smooth"
  442. Part.FormFactor = "Custom" Part.CanCollide = false
  443. Part.BrickColor = BrickColor.new("Institutional white")
  444. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  445. local Partweld = Instance.new("ManualWeld")
  446. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  447. Partweld.C1 = CFrame.new(0, -0.842823029, -0.393207669, 0.99998641, 0, 1.77634477e-015, -1.32347999e-023, 1, 0, -1.77634477e-015, 0, 0.99998641)
  448. Partweld.Parent = Part
  449. local PartMesh = Instance.new("BlockMesh",Part)
  450. PartMesh.Name = "Mesh"
  451. PartMesh.Offset = Vector3.new(0, 0, 0)
  452. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  453.  
  454. local Part = Instance.new("Part", m)
  455. Part:BreakJoints()
  456. Part.TopSurface = "Smooth"
  457. Part.Material = "SmoothPlastic"
  458. Part.Transparency = 0 Part.Name = 'Part'
  459. Part.BottomSurface = "Smooth"
  460. Part.FormFactor = "Custom" Part.CanCollide = false
  461. Part.BrickColor = BrickColor.new("Toothpaste")
  462. Part.Size = Vector3.new(0.337107092, 0.224738032, 0.337107033)
  463. local Partweld = Instance.new("ManualWeld")
  464. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  465. Partweld.C1 = CFrame.new(-4.00543213e-005, 0.674224854, -1.33514404e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  466. Partweld.Parent = Part
  467. local PartMesh = Instance.new("SpecialMesh",Part)
  468. PartMesh.MeshId = ""
  469. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  470. PartMesh.Offset = Vector3.new(0, 0, 0)
  471. PartMesh.Scale = Vector3.new(1, 1, 1)
  472.  
  473. local Part = Instance.new("Part", m)
  474. Part:BreakJoints()
  475. Part.TopSurface = "Smooth"
  476. Part.Material = "SmoothPlastic"
  477. Part.Transparency = 0 Part.Name = 'Part'
  478. Part.BottomSurface = "Smooth"
  479. Part.FormFactor = "Custom" Part.CanCollide = false
  480. Part.BrickColor = BrickColor.new("Institutional white")
  481. Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
  482. local Partweld = Instance.new("ManualWeld")
  483. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  484. Partweld.C1 = CFrame.new(0, -0.730434418, 7.62939453e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  485. Partweld.Parent = Part
  486. local PartMesh = Instance.new("CylinderMesh",Part)
  487. PartMesh.Name = "Mesh"
  488. PartMesh.Offset = Vector3.new(0, 0, 0)
  489. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  490.  
  491. local Part = Instance.new("Part", m)
  492. Part:BreakJoints()
  493. Part.TopSurface = "Smooth"
  494. Part.Material = "SmoothPlastic"
  495. Part.Transparency = 0 Part.Name = 'Part'
  496. Part.BottomSurface = "Smooth"
  497. Part.FormFactor = "Custom" Part.CanCollide = false
  498. Part.BrickColor = BrickColor.new("Institutional white")
  499. Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
  500. local Partweld = Instance.new("ManualWeld")
  501. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  502. Partweld.C1 = CFrame.new(0, -0.730434418, 7.62939453e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  503. Partweld.Parent = Part
  504. local PartMesh = Instance.new("CylinderMesh",Part)
  505. PartMesh.Name = "Mesh"
  506. PartMesh.Offset = Vector3.new(0, 0, 0)
  507. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  508.  
  509. local Part = Instance.new("Part", m)
  510. Part:BreakJoints()
  511. Part.TopSurface = "Smooth"
  512. Part.Material = "SmoothPlastic"
  513. Part.Transparency = 0 Part.Name = 'Part'
  514. Part.BottomSurface = "Smooth"
  515. Part.FormFactor = "Custom" Part.CanCollide = false
  516. Part.BrickColor = BrickColor.new("Toothpaste")
  517. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  518. local Partweld = Instance.new("ManualWeld")
  519. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  520. Partweld.C1 = CFrame.new(0, -0.955184937, -0.179762959, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  521. Partweld.Parent = Part
  522. local PartMesh = Instance.new("CylinderMesh",Part)
  523. PartMesh.Name = "Mesh"
  524. PartMesh.Offset = Vector3.new(0, 0, 0)
  525. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  526.  
  527. local Part = Instance.new("Part", m)
  528. Part:BreakJoints()
  529. Part.TopSurface = "Smooth"
  530. Part.Material = "SmoothPlastic"
  531. Part.Transparency = 0 Part.Name = 'Part'
  532. Part.BottomSurface = "Smooth"
  533. Part.FormFactor = "Custom" Part.CanCollide = false
  534. Part.BrickColor = BrickColor.new("Institutional white")
  535. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  536. local Partweld = Instance.new("ManualWeld")
  537. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  538. Partweld.C1 = CFrame.new(0, -0.842823029, -0.393225789, 0.99998641, 0, 1.77634477e-015, -1.32347999e-023, 1, 0, -1.77634477e-015, 0, 0.99998641)
  539. Partweld.Parent = Part
  540. local PartMesh = Instance.new("BlockMesh",Part)
  541. PartMesh.Name = "Mesh"
  542. PartMesh.Offset = Vector3.new(0, 0, 0)
  543. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  544.  
  545. local Part = Instance.new("Part", m)
  546. Part:BreakJoints()
  547. Part.TopSurface = "Smooth"
  548. Part.Material = "SmoothPlastic"
  549. Part.Transparency = 0 Part.Name = 'Part'
  550. Part.BottomSurface = "Smooth"
  551. Part.FormFactor = "Custom" Part.CanCollide = false
  552. Part.BrickColor = BrickColor.new("Institutional white")
  553. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  554. local Partweld = Instance.new("ManualWeld")
  555. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  556. Partweld.C1 = CFrame.new(0.597281575, -0.842823029, -0.00578403473, -0.258815438, 0, 0.965912819, 0, 1, 0, -0.965912819, 0, -0.258815438)
  557. Partweld.Parent = Part
  558. local PartMesh = Instance.new("BlockMesh",Part)
  559. PartMesh.Name = "Mesh"
  560. PartMesh.Offset = Vector3.new(0, 0, 0)
  561. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  562.  
  563. local Part = Instance.new("Part", m)
  564. Part:BreakJoints()
  565. Part.TopSurface = "Smooth"
  566. Part.Material = "SmoothPlastic"
  567. Part.Transparency = 0.5 Part.Name = 'Part'
  568. Part.BottomSurface = "Smooth"
  569. Part.FormFactor = "Custom" Part.CanCollide = false
  570. Part.BrickColor = BrickColor.new("Toothpaste")
  571. Part.Size = Vector3.new(0.200000003, 4.62046242, 0.449476063)
  572. local Partweld = Instance.new("ManualWeld")
  573. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  574. Partweld.C1 = CFrame.new(3.24249268e-005, -3.32155609, -4.76837158e-007, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  575. Partweld.Parent = Part
  576. local PartMesh = Instance.new("BlockMesh",Part)
  577. PartMesh.Name = "Mesh"
  578. PartMesh.Offset = Vector3.new(0, 0, 0)
  579. PartMesh.Scale = Vector3.new(0.230356485, 1, 1)
  580.  
  581. local Part = Instance.new("Part", m)
  582. Part:BreakJoints()
  583. Part.TopSurface = "Smooth"
  584. Part.Material = "SmoothPlastic"
  585. Part.Transparency = 0 Part.Name = 'Part'
  586. Part.BottomSurface = "Smooth"
  587. Part.FormFactor = "Custom" Part.CanCollide = false
  588. Part.BrickColor = BrickColor.new("Institutional white")
  589. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  590. local Partweld = Instance.new("ManualWeld")
  591. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  592. Partweld.C1 = CFrame.new(0.597218513, -0.842823029, 0.00602054596, 0.258815646, 0, 0.9659127, 0, 1, 0, -0.9659127, 0, 0.258815646)
  593. Partweld.Parent = Part
  594. local PartMesh = Instance.new("BlockMesh",Part)
  595. PartMesh.Name = "Mesh"
  596. PartMesh.Offset = Vector3.new(0, 0, 0)
  597. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  598.  
  599. local Part = Instance.new("Part", m)
  600. Part:BreakJoints()
  601. Part.TopSurface = "Smooth"
  602. Part.Material = "SmoothPlastic"
  603. Part.Transparency = 0 Part.Name = 'Part'
  604. Part.BottomSurface = "Smooth"
  605. Part.FormFactor = "Custom" Part.CanCollide = false
  606. Part.BrickColor = BrickColor.new("Toothpaste")
  607. Part.Size = Vector3.new(0.337107092, 1.12369001, 0.200000003)
  608. local Partweld = Instance.new("ManualWeld")
  609. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  610. Partweld.C1 = CFrame.new(0, 0, -0.123583317, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  611. Partweld.Parent = Part
  612. local PartMesh = Instance.new("CylinderMesh",Part)
  613. PartMesh.Name = "Mesh"
  614. PartMesh.Offset = Vector3.new(0, 0, 0)
  615. PartMesh.Scale = Vector3.new(1, 1, 0.561845064)
  616.  
  617. local Part = Instance.new("Part", m)
  618. Part:BreakJoints()
  619. Part.TopSurface = "Smooth"
  620. Part.Material = "SmoothPlastic"
  621. Part.Transparency = 0 Part.Name = 'Part'
  622. Part.BottomSurface = "Smooth"
  623. Part.FormFactor = "Custom" Part.CanCollide = false
  624. Part.BrickColor = BrickColor.new("Institutional white")
  625. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  626. local Partweld = Instance.new("ManualWeld")
  627. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  628. Partweld.C1 = CFrame.new(0, -0.842823029, 0.393286943, 0.99998641, 1.07852229e-016, -0, -1.14204248e-016, 1, -2.3803019e-013, -0, 2.38031816e-013, 0.99998641)
  629. Partweld.Parent = Part
  630. local PartMesh = Instance.new("BlockMesh",Part)
  631. PartMesh.Name = "Mesh"
  632. PartMesh.Offset = Vector3.new(0, 0, 0)
  633. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  634.  
  635. local Part = Instance.new("Part", m)
  636. Part:BreakJoints()
  637. Part.TopSurface = "Smooth"
  638. Part.Material = "SmoothPlastic"
  639. Part.Transparency = 0 Part.Name = 'Part'
  640. Part.BottomSurface = "Smooth"
  641. Part.FormFactor = "Custom" Part.CanCollide = false
  642. Part.BrickColor = BrickColor.new("Toothpaste")
  643. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  644. local Partweld = Instance.new("ManualWeld")
  645. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  646. Partweld.C1 = CFrame.new(0, -0.842823029, -0.230328798, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  647. Partweld.Parent = Part
  648. local PartMesh = Instance.new("CylinderMesh",Part)
  649. PartMesh.Name = "Mesh"
  650. PartMesh.Offset = Vector3.new(0, 0, 0)
  651. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  652.  
  653. local Part = Instance.new("Part", m)
  654. Part:BreakJoints()
  655. Part.TopSurface = "Smooth"
  656. Part.Material = "SmoothPlastic"
  657. Part.Transparency = 0 Part.Name = 'Part'
  658. Part.BottomSurface = "Smooth"
  659. Part.FormFactor = "Custom" Part.CanCollide = false
  660. Part.BrickColor = BrickColor.new("Toothpaste")
  661. Part.Size = Vector3.new(0.337107092, 0.200000003, 0.337107033)
  662. local Partweld = Instance.new("ManualWeld")
  663. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  664. Partweld.C1 = CFrame.new(0, -0.618034363, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  665. Partweld.Parent = Part
  666. local PartMesh = Instance.new("CylinderMesh",Part)
  667. PartMesh.Name = "Mesh"
  668. PartMesh.Offset = Vector3.new(0, 0, 0)
  669. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  670.  
  671. local Part = Instance.new("Part", m)
  672. Part:BreakJoints()
  673. Part.TopSurface = "Smooth"
  674. Part.Material = "SmoothPlastic"
  675. Part.Transparency = 0 Part.Name = 'Part'
  676. Part.BottomSurface = "Smooth"
  677. Part.FormFactor = "Custom" Part.CanCollide = false
  678. Part.BrickColor = BrickColor.new("Institutional white")
  679. Part.Size = Vector3.new(0.200000003, 4.60922527, 0.224738017)
  680. local Partweld = Instance.new("ManualWeld")
  681. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  682. Partweld.C1 = CFrame.new(0, -3.3159256, -1.14440918e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  683. Partweld.Parent = Part
  684. local PartMesh = Instance.new("BlockMesh",Part)
  685. PartMesh.Name = "Mesh"
  686. PartMesh.Offset = Vector3.new(0, 0, 0)
  687. PartMesh.Scale = Vector3.new(0.561845124, 1, 1)
  688.  
  689. local Part = Instance.new("Part", m)
  690. Part:BreakJoints()
  691. Part.TopSurface = "Smooth"
  692. Part.Material = "SmoothPlastic"
  693. Part.Transparency = 0 Part.Name = 'Part'
  694. Part.BottomSurface = "Smooth"
  695. Part.FormFactor = "Custom" Part.CanCollide = false
  696. Part.BrickColor = BrickColor.new("Toothpaste")
  697. Part.Size = Vector3.new(0.337107092, 0.200000003, 0.337107033)
  698. local Partweld = Instance.new("ManualWeld")
  699. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  700. Partweld.C1 = CFrame.new(0, 0.618049622, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  701. Partweld.Parent = Part
  702. local PartMesh = Instance.new("CylinderMesh",Part)
  703. PartMesh.Name = "Mesh"
  704. PartMesh.Offset = Vector3.new(0, 0, 0)
  705. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  706.  
  707. local Part = Instance.new("Part", m)
  708. Part:BreakJoints()
  709. Part.TopSurface = "Smooth"
  710. Part.Material = "SmoothPlastic"
  711. Part.Transparency = 0 Part.Name = 'Part'
  712. Part.BottomSurface = "Smooth"
  713. Part.FormFactor = "Custom" Part.CanCollide = false
  714. Part.BrickColor = BrickColor.new("Toothpaste")
  715. Part.Size = Vector3.new(0.337107092, 1.12369001, 0.200000003)
  716. local Partweld = Instance.new("ManualWeld")
  717. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  718. Partweld.C1 = CFrame.new(0, 0, 0.117978811, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  719. Partweld.Parent = Part
  720. local PartMesh = Instance.new("CylinderMesh",Part)
  721. PartMesh.Name = "Mesh"
  722. PartMesh.Offset = Vector3.new(0, 0, 0)
  723. PartMesh.Scale = Vector3.new(1, 1, 0.561845064)
  724.  
  725. local Part = Instance.new("Part", m)
  726. Part:BreakJoints()
  727. Part.TopSurface = "Smooth"
  728. Part.Material = "SmoothPlastic"
  729. Part.Transparency = 0 Part.Name = 'Part'
  730. Part.BottomSurface = "Smooth"
  731. Part.FormFactor = "Custom" Part.CanCollide = false
  732. Part.BrickColor = BrickColor.new("Institutional white")
  733. Part.Size = Vector3.new(0.561845124, 0.200000003, 0.561845005)
  734. local Partweld = Instance.new("ManualWeld")
  735. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  736. Partweld.C1 = CFrame.new(0, -0.842823029, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  737. Partweld.Parent = Part
  738. local PartMesh = Instance.new("CylinderMesh",Part)
  739. PartMesh.Name = "Mesh"
  740. PartMesh.Offset = Vector3.new(0, 0, 0)
  741. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  742.  
  743. local Part = Instance.new("Part", m)
  744. Part:BreakJoints()
  745. Part.TopSurface = "Smooth"
  746. Part.Material = "SmoothPlastic"
  747. Part.Transparency = 0 Part.Name = 'Part'
  748. Part.BottomSurface = "Smooth"
  749. Part.FormFactor = "Custom" Part.CanCollide = false
  750. Part.BrickColor = BrickColor.new("Toothpaste")
  751. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
  752. local Partweld = Instance.new("ManualWeld")
  753. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  754. Partweld.C1 = CFrame.new(0.53044498, -0.842823029, 0.0229825974, 0.258815438, -1.97460321e-017, -0.965912819, 3.30120669e-017, 1, -1.15873321e-017, 0.965912819, -2.88872116e-017, 0.258815438)
  755. Partweld.Parent = Part
  756. local PartMesh = Instance.new("BlockMesh",Part)
  757. PartMesh.Name = "Mesh"
  758. PartMesh.Offset = Vector3.new(0, 0, 0)
  759. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
  760.  
  761. local Part = Instance.new("Part", m)
  762. Part:BreakJoints()
  763. Part.TopSurface = "Smooth"
  764. Part.Material = "SmoothPlastic"
  765. Part.Transparency = 0 Part.Name = 'Part'
  766. Part.BottomSurface = "Smooth"
  767. Part.FormFactor = "Custom" Part.CanCollide = false
  768. Part.BrickColor = BrickColor.new("Institutional white")
  769. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  770. local Partweld = Instance.new("ManualWeld")
  771. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  772. Partweld.C1 = CFrame.new(0.529430389, -0.842823029, 0.0128250122, 0.258815438, 1.35525272e-020, -0.965912819, -3.50722156e-021, 1, 1.35524351e-020, 0.965912819, 0, 0.258815438)
  773. Partweld.Parent = Part
  774. local PartMesh = Instance.new("BlockMesh",Part)
  775. PartMesh.Name = "Mesh"
  776. PartMesh.Offset = Vector3.new(0, 0, 0)
  777. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  778.  
  779. local Part = Instance.new("Part", m)
  780. Part:BreakJoints()
  781. Part.TopSurface = "Smooth"
  782. Part.Material = "SmoothPlastic"
  783. Part.Transparency = 0 Part.Name = 'Part'
  784. Part.BottomSurface = "Smooth"
  785. Part.FormFactor = "Custom" Part.CanCollide = false
  786. Part.BrickColor = BrickColor.new("Institutional white")
  787. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  788. local Partweld = Instance.new("ManualWeld")
  789. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  790. Partweld.C1 = CFrame.new(0.529132843, -0.842823029, -0.0117540359, -0.258815706, -3.25260652e-018, -0.965912759, 3.89845789e-017, 1, -1.38099317e-017, 0.965912759, -4.1236952e-017, -0.258815706)
  791. Partweld.Parent = Part
  792. local PartMesh = Instance.new("BlockMesh",Part)
  793. PartMesh.Name = "Mesh"
  794. PartMesh.Offset = Vector3.new(0, 0, 0)
  795. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  796.  
  797. local Part = Instance.new("Part", m)
  798. Part:BreakJoints()
  799. Part.TopSurface = "Smooth"
  800. Part.Material = "SmoothPlastic"
  801. Part.Transparency = 0 Part.Name = 'Part'
  802. Part.BottomSurface = "Smooth"
  803. Part.FormFactor = "Custom" Part.CanCollide = false
  804. Part.BrickColor = BrickColor.new("Institutional white")
  805. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
  806. local Partweld = Instance.new("ManualWeld")
  807. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  808. Partweld.C1 = CFrame.new(0, -0.842823029, -0.393235803, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  809. Partweld.Parent = Part
  810. local PartMesh = Instance.new("BlockMesh",Part)
  811. PartMesh.Name = "Mesh"
  812. PartMesh.Offset = Vector3.new(0, 0, 0)
  813. PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
  814.  
  815. local Part = Instance.new("Part", m)
  816. Part:BreakJoints()
  817. Part.TopSurface = "Smooth"
  818. Part.Material = "SmoothPlastic"
  819. Part.Transparency = 0 Part.Name = 'Part'
  820. Part.BottomSurface = "Smooth"
  821. Part.FormFactor = "Custom" Part.CanCollide = false
  822. Part.BrickColor = BrickColor.new("Toothpaste")
  823. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
  824. local Partweld = Instance.new("ManualWeld")
  825. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  826. Partweld.C1 = CFrame.new(-0.525370121, -0.842823029, 0.0256881714, 0.258815676, -6.64073831e-019, 0.9659127, 1.05359266e-018, 1, 4.06573049e-019, -0.9659127, 9.14795583e-019, 0.258815676)
  827. Partweld.Parent = Part
  828. local PartMesh = Instance.new("BlockMesh",Part)
  829. PartMesh.Name = "Mesh"
  830. PartMesh.Offset = Vector3.new(0, 0, 0)
  831. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
  832.  
  833. local Part = Instance.new("Part", m)
  834. Part:BreakJoints()
  835. Part.TopSurface = "Smooth"
  836. Part.Material = "SmoothPlastic"
  837. Part.Transparency = 0 Part.Name = 'Part'
  838. Part.BottomSurface = "Smooth"
  839. Part.FormFactor = "Custom" Part.CanCollide = false
  840. Part.BrickColor = BrickColor.new("Toothpaste")
  841. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  842. local Partweld = Instance.new("ManualWeld")
  843. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  844. Partweld.C1 = CFrame.new(0, -0.730434418, 0.174170732, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  845. Partweld.Parent = Part
  846. local PartMesh = Instance.new("CylinderMesh",Part)
  847. PartMesh.Name = "Mesh"
  848. PartMesh.Offset = Vector3.new(0, 0, 0)
  849. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  850.  
  851. local Part = Instance.new("Part", m)
  852. Part:BreakJoints()
  853. Part.TopSurface = "Smooth"
  854. Part.Material = "SmoothPlastic"
  855. Part.Transparency = 0 Part.Name = 'Part'
  856. Part.BottomSurface = "Smooth"
  857. Part.FormFactor = "Custom" Part.CanCollide = false
  858. Part.BrickColor = BrickColor.new("Toothpaste")
  859. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
  860. local Partweld = Instance.new("ManualWeld")
  861. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  862. Partweld.C1 = CFrame.new(-0.59340477, -0.842823029, 0.00790405273, -0.258815557, 0, -0.9659127, 0, 1, 0, 0.9659127, 0, -0.258815557)
  863. Partweld.Parent = Part
  864. local PartMesh = Instance.new("BlockMesh",Part)
  865. PartMesh.Name = "Mesh"
  866. PartMesh.Offset = Vector3.new(0, 0, 0)
  867. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
  868.  
  869. local Part = Instance.new("Part", m)
  870. Part:BreakJoints()
  871. Part.TopSurface = "Smooth"
  872. Part.Material = "SmoothPlastic"
  873. Part.Transparency = 0 Part.Name = 'Part'
  874. Part.BottomSurface = "Smooth"
  875. Part.FormFactor = "Custom" Part.CanCollide = false
  876. Part.BrickColor = BrickColor.new("Toothpaste")
  877. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.382054657)
  878. local Partweld = Instance.new("ManualWeld")
  879. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  880. Partweld.C1 = CFrame.new(0.00023651123, -0.842823029, -0.364931583, 0.99998641, -2.62516024e-017, -1.67287184e-026, 2.62512451e-017, 1, 3.6862117e-018, 1.67287184e-026, -3.68626216e-018, 0.99998641)
  881. Partweld.Parent = Part
  882. local PartMesh = Instance.new("BlockMesh",Part)
  883. PartMesh.Name = "Mesh"
  884. PartMesh.Offset = Vector3.new(0, 0, 0)
  885. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 1)
  886.  
  887. local Part = Instance.new("Part", m)
  888. Part:BreakJoints()
  889. Part.TopSurface = "Smooth"
  890. Part.Material = "SmoothPlastic"
  891. Part.Transparency = 0 Part.Name = 'Part'
  892. Part.BottomSurface = "Smooth"
  893. Part.FormFactor = "Custom" Part.CanCollide = false
  894. Part.BrickColor = BrickColor.new("Toothpaste")
  895. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
  896. local Partweld = Instance.new("ManualWeld")
  897. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  898. Partweld.C1 = CFrame.new(0.598263144, -0.842823029, 0.00432395935, -0.258815438, 0, 0.965912819, 0, 1, 0, -0.965912819, 0, -0.258815438)
  899. Partweld.Parent = Part
  900. local PartMesh = Instance.new("BlockMesh",Part)
  901. PartMesh.Name = "Mesh"
  902. PartMesh.Offset = Vector3.new(0, 0, 0)
  903. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
  904.  
  905. local Part = Instance.new("Part", m)
  906. Part:BreakJoints()
  907. Part.TopSurface = "Smooth"
  908. Part.Material = "SmoothPlastic"
  909. Part.Transparency = 0 Part.Name = 'Part'
  910. Part.BottomSurface = "Smooth"
  911. Part.FormFactor = "Custom" Part.CanCollide = false
  912. Part.BrickColor = BrickColor.new("Toothpaste")
  913. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.449476063)
  914. local Partweld = Instance.new("ManualWeld")
  915. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  916. Partweld.C1 = CFrame.new(0, -0.842823029, 0.398794174, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  917. Partweld.Parent = Part
  918. local PartMesh = Instance.new("BlockMesh",Part)
  919. PartMesh.Name = "Mesh"
  920. PartMesh.Offset = Vector3.new(0, 0, 0)
  921. PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 1)
  922.  
  923. local Part = Instance.new("Part", m)
  924. Part:BreakJoints()
  925. Part.TopSurface = "Smooth"
  926. Part.Material = "SmoothPlastic"
  927. Part.Transparency = 0 Part.Name = 'Part'
  928. Part.BottomSurface = "Smooth"
  929. Part.FormFactor = "Custom" Part.CanCollide = false
  930. Part.BrickColor = BrickColor.new("Toothpaste")
  931. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  932. local Partweld = Instance.new("ManualWeld")
  933. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  934. Partweld.C1 = CFrame.new(0, -0.955184937, 0.174145699, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  935. Partweld.Parent = Part
  936. local PartMesh = Instance.new("CylinderMesh",Part)
  937. PartMesh.Name = "Mesh"
  938. PartMesh.Offset = Vector3.new(0, 0, 0)
  939. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  940.  
  941. local Part = Instance.new("Part", m)
  942. Part:BreakJoints()
  943. Part.TopSurface = "Smooth"
  944. Part.Material = "SmoothPlastic"
  945. Part.Transparency = 0.5 Part.Name = 'Part'
  946. Part.BottomSurface = "Smooth"
  947. Part.FormFactor = "Custom" Part.CanCollide = false
  948. Part.BrickColor = BrickColor.new("Toothpaste")
  949. Part.Size = Vector3.new(0.200000003, 1.01132107, 0.449476063)
  950. local Partweld = Instance.new("ManualWeld")
  951. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  952. Partweld.C1 = CFrame.new(-8.39233398e-005, -6.13697433, 0.00012421608, -0.99998641, 0, 5.96042398e-008, 0, 1, 0, -5.96042398e-008, 0, -0.99998641)
  953. Partweld.Parent = Part
  954. local PartMesh = Instance.new("SpecialMesh",Part)
  955. PartMesh.MeshId = ""
  956. PartMesh.MeshType = Enum.MeshType.Wedge PartMesh.Name = "Mesh"
  957. PartMesh.Offset = Vector3.new(0, 0, 0)
  958. PartMesh.Scale = Vector3.new(0.221366972, 1, 1)
  959.  
  960. local Part = Instance.new("Part", m)
  961. Part:BreakJoints()
  962. Part.TopSurface = "Smooth"
  963. Part.Material = "SmoothPlastic"
  964. Part.Transparency = 0 Part.Name = 'Part'
  965. Part.BottomSurface = "Smooth"
  966. Part.FormFactor = "Custom" Part.CanCollide = false
  967. Part.BrickColor = BrickColor.new("Institutional white")
  968. Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
  969. local Partweld = Instance.new("ManualWeld")
  970. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  971. Partweld.C1 = CFrame.new(0, -0.955184937, -2.38418579e-007, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  972. Partweld.Parent = Part
  973. local PartMesh = Instance.new("CylinderMesh",Part)
  974. PartMesh.Name = "Mesh"
  975. PartMesh.Offset = Vector3.new(0, 0, 0)
  976. PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
  977.  
  978. local Part = Instance.new("Part", m)
  979. Part:BreakJoints()
  980. Part.TopSurface = "Smooth"
  981. Part.Material = "SmoothPlastic"
  982. Part.Transparency = 0 Part.Name = 'Part'
  983. Part.BottomSurface = "Smooth"
  984. Part.FormFactor = "Custom" Part.CanCollide = false
  985. Part.BrickColor = BrickColor.new("Toothpaste")
  986. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  987. local Partweld = Instance.new("ManualWeld")
  988. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  989. Partweld.C1 = CFrame.new(0, -0.842823029, 0.230348349, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  990. Partweld.Parent = Part
  991. local PartMesh = Instance.new("CylinderMesh",Part)
  992. PartMesh.Name = "Mesh"
  993. PartMesh.Offset = Vector3.new(0, 0, 0)
  994. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  995.  
  996. local Part = Instance.new("Part", m)
  997. Part:BreakJoints()
  998. Part.TopSurface = "Smooth"
  999. Part.Material = "SmoothPlastic"
  1000. Part.Transparency = 0 Part.Name = 'Part'
  1001. Part.BottomSurface = "Smooth"
  1002. Part.FormFactor = "Custom" Part.CanCollide = false
  1003. Part.BrickColor = BrickColor.new("Toothpaste")
  1004. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1005. local Partweld = Instance.new("ManualWeld")
  1006. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1007. Partweld.C1 = CFrame.new(0, -0.730434418, -0.179762959, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  1008. Partweld.Parent = Part
  1009. local PartMesh = Instance.new("CylinderMesh",Part)
  1010. PartMesh.Name = "Mesh"
  1011. PartMesh.Offset = Vector3.new(0, 0, 0)
  1012. PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
  1013.  
  1014. local hitbox = Instance.new("Part", m)
  1015. hitbox:BreakJoints()
  1016. hitbox.TopSurface = "Smooth"
  1017. hitbox.Material = "SmoothPlastic"
  1018. hitbox.Transparency = 1 hitbox.Name = 'hitbox'
  1019. hitbox.BottomSurface = "Smooth"
  1020. hitbox.FormFactor = "Custom" hitbox.CanCollide = false
  1021. hitbox.BrickColor = BrickColor.new("Institutional white")
  1022. hitbox.Size = Vector3.new(0.200000003, 5.60922527, 0.624738038)
  1023. local hitboxweld = Instance.new("ManualWeld")
  1024. hitboxweld.Part0 = Handle hitboxweld.Part1 = hitbox hitboxweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1025. hitboxweld.C1 = CFrame.new(0, -3.8159256, -1.12056732e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
  1026. hitboxweld.Parent = hitbox
  1027. local hitboxMesh = Instance.new("BlockMesh",hitbox)
  1028. hitboxMesh.Name = "Mesh"
  1029. hitboxMesh.Offset = Vector3.new(0, 0, 0)
  1030. hitboxMesh.Scale = Vector3.new(0.561845124, 1, 1)
  1031.  
  1032. local Wedge = Instance.new("WedgePart", m)
  1033. Wedge:BreakJoints()
  1034. Wedge.TopSurface = "Smooth"
  1035. Wedge.Material = "SmoothPlastic"
  1036. Wedge.Transparency = 0 Wedge.Name = 'Wedge'
  1037. Wedge.BottomSurface = "Smooth"
  1038. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1039. Wedge.BrickColor = BrickColor.new("Institutional white")
  1040. Wedge.Size = Vector3.new(0.200000003, 0.561845124, 0.224738076)
  1041. local Wedgeweld = Instance.new("ManualWeld")
  1042. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1043. Wedgeweld.C1 = CFrame.new(7.62939453e-006, -5.9009819, -4.0769577e-005, -0.999992788, 1.60944605e-010, -8.94063589e-007, 1.60504526e-010, 0.999993563, -4.18958729e-010, 7.897562e-007, -4.18840851e-010, -0.999986649)
  1044. Wedgeweld.Parent = Wedge
  1045. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1046. WedgeMesh.MeshId = ""
  1047. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1048. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1049. WedgeMesh.Scale = Vector3.new(0.561845124, 1, 1)
  1050.  
  1051. local function weldBetween(a, b, name)
  1052. local weld = Instance.new("ManualWeld")
  1053. weld.Part0 = a
  1054. weld.Part1 = b
  1055. weld.C0 = CFrame.new()
  1056. weld.C1 = b.CFrame:inverse() * a.CFrame
  1057. weld.Parent = a
  1058. weld.Name=name or 'weldb1'
  1059. weld.Parent=m
  1060. return weld;
  1061. end
  1062.  
  1063. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1064. if hit.Parent==nil then
  1065. return
  1066. end
  1067. h=hit.Parent:FindFirstChild("Humanoid")
  1068. for _,v in pairs(hit.Parent:children()) do
  1069. if v:IsA("Humanoid") then
  1070. h=v
  1071. end
  1072. end
  1073. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1074. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1075. end
  1076. if hit.Parent.className=="Hat" then
  1077. hit=hit.Parent.Parent:findFirstChild("Head")
  1078. end
  1079. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1080. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1081. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1082. return
  1083. end]]
  1084. -- hs(hit,1.2)
  1085. c=Instance.new("ObjectValue")
  1086. c.Name="creator"
  1087. c.Value=game:service("Players").LocalPlayer
  1088. c.Parent=h
  1089. game:GetService("Debris"):AddItem(c,.5)
  1090. Damage=math.random(minim,maxim)
  1091. -- h:TakeDamage(Damage)
  1092. blocked=false
  1093. block=hit.Parent:findFirstChild("Block")
  1094. if block~=nil then
  1095. print(block.className)
  1096. if block.className=="NumberValue" then
  1097. if block.Value>0 then
  1098. blocked=true
  1099. if decreaseblock==nil then
  1100. block.Value=block.Value-1
  1101. end
  1102. end
  1103. end
  1104. if block.className=="IntValue" then
  1105. if block.Value>0 then
  1106. blocked=true
  1107. if decreaseblock~=nil then
  1108. block.Value=block.Value-1
  1109. end
  1110. end
  1111. end
  1112. end
  1113. if blocked==false then
  1114. -- h:TakeDamage(Damage)
  1115. h.Health=h.Health-Damage
  1116. showDamage(hit.Parent,Damage,.5,BrickColor.new("Navy blue"))
  1117. else
  1118. h.Health=h.Health-(Damage/2)
  1119. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1120. end
  1121. if Type=="Knockdown" then
  1122. hum=hit.Parent.Humanoid
  1123. hum.PlatformStand=true
  1124. coroutine.resume(coroutine.create(function(HHumanoid)
  1125. swait(1)
  1126. HHumanoid.PlatformStand=false
  1127. end),hum)
  1128. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1129. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1130. local bodvol=Instance.new("BodyVelocity")
  1131. bodvol.velocity=angle*knockback
  1132. bodvol.P=5000
  1133. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1134. bodvol.Parent=hit
  1135. rl=Instance.new("BodyAngularVelocity")
  1136. rl.P=3000
  1137. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1138. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1139. rl.Parent=hit
  1140. game:GetService("Debris"):AddItem(bodvol,.5)
  1141. game:GetService("Debris"):AddItem(rl,.5)
  1142. elseif Type=="Normal" then
  1143. vp=Instance.new("BodyVelocity")
  1144. vp.P=500
  1145. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1146. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1147. if KnockbackType==1 then
  1148. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1149. elseif KnockbackType==2 then
  1150. vp.velocity=Property.CFrame.lookVector*knockback
  1151. end
  1152. if knockback>0 then
  1153. vp.Parent=hit.Parent.Torso
  1154. end
  1155. game:GetService("Debris"):AddItem(vp,.5)
  1156. elseif Type=="Up" then
  1157. local bodyVelocity=Instance.new("BodyVelocity")
  1158. bodyVelocity.velocity=vt(0,60,0)
  1159. bodyVelocity.P=5000
  1160. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1161. bodyVelocity.Parent=hit
  1162. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1163. rl=Instance.new("BodyAngularVelocity")
  1164. rl.P=3000
  1165. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1166. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1167. rl.Parent=hit
  1168. game:GetService("Debris"):AddItem(rl,.5)
  1169. elseif Type=="Snare" then
  1170. bp=Instance.new("BodyPosition")
  1171. bp.P=2000
  1172. bp.D=100
  1173. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1174. bp.position=hit.Parent.Torso.Position
  1175. bp.Parent=hit.Parent.Torso
  1176. game:GetService("Debris"):AddItem(bp,1)
  1177. elseif Type=="Target" then
  1178. if Targetting==false then
  1179. ZTarget=hit.Parent.Torso
  1180. coroutine.resume(coroutine.create(function(Part)
  1181. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1182. swait(5)
  1183. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1184. end),ZTarget)
  1185. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1186. targetgui=Instance.new("BillboardGui")
  1187. targetgui.Parent=ZTarget
  1188. targetgui.Size=UDim2.new(10,100,10,100)
  1189. targ=Instance.new("ImageLabel")
  1190. targ.Parent=targetgui
  1191. targ.BackgroundTransparency=1
  1192. targ.Image="rbxassetid://4834067"
  1193. targ.Size=UDim2.new(1,0,1,0)
  1194. cam.CameraType="Scriptable"
  1195. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1196. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1197. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1198. Targetting=true
  1199. RocketTarget=ZTarget
  1200. for i=1,Property do
  1201. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1202. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1203. swait()
  1204. end
  1205. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1206. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1207. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1208. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1209. end
  1210. Targetting=false
  1211. RocketTarget=nil
  1212. targetgui.Parent=nil
  1213. cam.CameraType="Custom"
  1214. end
  1215. end
  1216. debounce=Instance.new("BoolValue")
  1217. debounce.Name="DebounceHit"
  1218. debounce.Parent=hit.Parent
  1219. debounce.Value=true
  1220. game:GetService("Debris"):AddItem(debounce,Delay)
  1221. c=Instance.new("ObjectValue")
  1222. c.Name="creator"
  1223. c.Value=Player
  1224. c.Parent=h
  1225. game:GetService("Debris"):AddItem(c,.5)
  1226. CRIT=false
  1227. hitDeb=true
  1228. AttackPos=6
  1229. end
  1230. end
  1231.  
  1232. showDamage=function(Char,Dealt,du,Color)
  1233. m=Instance.new("Model")
  1234. m.Name=tostring(Dealt)
  1235. h=Instance.new("Humanoid")
  1236. h.Health=0
  1237. h.MaxHealth=0
  1238. h.Parent=m
  1239. c=Instance.new("Part")
  1240. c.Transparency=0
  1241. c.BrickColor=Color
  1242. c.Name="Head"
  1243. c.TopSurface=0
  1244. c.BottomSurface=0
  1245. c.formFactor="Plate"
  1246. c.Size=Vector3.new(1,.4,1)
  1247. ms=Instance.new("CylinderMesh")
  1248. ms.Scale=Vector3.new(.8,.8,.8)
  1249. if CRIT==true then
  1250. ms.Scale=Vector3.new(1,1.25,1)
  1251. end
  1252. ms.Parent=c
  1253. c.Reflectance=0
  1254. Instance.new("BodyGyro").Parent=c
  1255. c.Parent=m
  1256. if Char:findFirstChild("Head")~=nil then
  1257. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1258. elseif Char.Parent:findFirstChild("Head")~=nil then
  1259. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1260. end
  1261. f=Instance.new("BodyPosition")
  1262. f.P=2000
  1263. f.D=100
  1264. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1265. f.position=c.Position+Vector3.new(0,3,0)
  1266. f.Parent=c
  1267. game:GetService("Debris"):AddItem(m,.5+du)
  1268. c.CanCollide=false
  1269. m.Parent=workspace
  1270. c.CanCollide=false
  1271. end
  1272.  
  1273. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1274. local msh1 = it("SpecialMesh")
  1275. msh1.Scale = vt(0.5,0.5,0.5)
  1276. msh1.MeshType = "Sphere"
  1277. local S=it("Part")
  1278. S.Name="Effect"
  1279. S.formFactor=0
  1280. S.Size=vt(x1,y1,z1)
  1281. S.BrickColor=color
  1282. S.Reflectance = 0
  1283. S.TopSurface=0
  1284. S.BottomSurface=0
  1285. S.Transparency=0
  1286. S.Anchored=true
  1287. S.CanCollide=false
  1288. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1289. S.Parent=workspace
  1290. msh1.Parent = S
  1291. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1292. end
  1293.  
  1294. function SummonSword(Part,cframe1,cframe2)
  1295. coroutine.resume(coroutine.create(function()
  1296.  
  1297. local sword=part(1,workspace,0,0.5,BrickColor.new("Cyan"),"Sword",vt(2,2,2))
  1298. sword.Anchored=true
  1299. --con1=sword.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  1300. local smesh=mesh("SpecialMesh",sword,"FileMesh","http://www.roblox.com/asset/?id=50798664",vt(0,0,0),vt(3,3,3))
  1301. --smesh.Parent=nil
  1302. smesh.VertexColor=Vector3.new(0, 0, 0)
  1303. sword.CFrame=Part.CFrame*cframe1
  1304. con1=sword.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1305. so("http://roblox.com/asset/?id=231917788",sword,0.5,1)
  1306. hitconasdf = sword.Touched:connect(function(hit)
  1307. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1308. if hum12 and not hum12:IsDescendantOf(Character) then
  1309. so('http://roblox.com/asset/?id=220025675',sword,1,3)
  1310. hitconasdf:disconnect()
  1311. end
  1312. end)
  1313. EVENMOARMAGIX(sword,4,4,4,0,0,0,0,0,0,BrickColor.new("Cyan"))
  1314. for i=0,1,0.2 do
  1315. wait()
  1316. local dir = sword.CFrame.lookVector*-1
  1317. hit2,pos = rayCast(sword.Position,dir,5,Character)
  1318. if hit2~=nil then
  1319. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  1320. hum = hit2.Parent.Humanoid
  1321. --Damagefunc2(hit2,5,1)
  1322. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1323. hum = hit2.Parent.Parent.Humanoid
  1324. --Damagefunc2(hit2,5,1)
  1325. end
  1326. end
  1327. sword.CFrame=sword.CFrame*cframe2
  1328. end
  1329. EVENMOARMAGIX(sword,4,4,4,0,0,0,0,0,0,BrickColor.new("Cyan"))
  1330. sword.Parent=nil
  1331. pcall(function()
  1332. hitconasdf:disconnect()
  1333. end)
  1334. con1:disconnect()
  1335. end))
  1336. end
  1337.  
  1338.  
  1339. rings=Instance.new('Model',Character)
  1340.  
  1341. ring=function(way,way2,where,vector,rv1,rv2,rv3,c1,c2)
  1342. local rng = Instance.new("Part", rings)
  1343. rng.Anchored = true
  1344. rng.BrickColor = BrickColor.new("Bright blue")
  1345. rng.CanCollide = false
  1346. rng.FormFactor = 3
  1347. rng.Name = "Ring"
  1348. rng.Size = Vector3.new(1, 1, 1)
  1349. rng.Transparency = .5
  1350. rng.TopSurface = 0
  1351. rng.BottomSurface = 0
  1352. rng.CFrame = where.CFrame * CFrame.Angles(math.rad(way), math.rad(way2), 0)
  1353. local rngm = Instance.new("SpecialMesh", rng)
  1354. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1355. rngm.Scale = vector--10,10,1
  1356. for i = 1, 20, 1 do
  1357. rngm.Scale = Vector3.new(rv1 + i*c1, rv2 + i*c2, rv3)--(10 + i*2, 10 + i*2, 1)
  1358. rng.Transparency = i/20
  1359. swait()
  1360. end
  1361. wait()
  1362. rng:destroy''
  1363. end
  1364.  
  1365. player=game.Players.localPlayer
  1366. char=player.Character
  1367. Effects={}
  1368. vt=Vector3.new
  1369. cf=CFrame.new
  1370. euler=CFrame.fromEulerAnglesXYZ
  1371. m=Instance.new("Model",char)
  1372.  
  1373. mouse.Button1Down:connect(function()
  1374. if equipped==true and hand==false then
  1375. if attacktype==1 then
  1376. attackone()
  1377. elseif attacktype==2 then
  1378. attacktwo()
  1379. elseif attacktype==3 then
  1380. attackthree()
  1381. end
  1382. end
  1383. end)
  1384.  
  1385. mouse.KeyDown:connect(function(k)
  1386. k=k:lower()
  1387. if k=='q' then
  1388. if attack==false then
  1389. spin()
  1390. end
  1391. elseif k=='f' then
  1392. if attack==false then
  1393. boom()
  1394. end
  1395. elseif k=='e' then
  1396. if attack==false then
  1397. JumpSwing()
  1398. end
  1399. end
  1400. end)
  1401.  
  1402. function JumpSwing()
  1403. attack=true
  1404. for i=0,0.5,0.1 do
  1405. swait()
  1406. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1407. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1408. local h = 5
  1409. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1410. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1411. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1412. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1413. scfr = blcf
  1414. elseif not scfr then
  1415. scfr = blcf
  1416. end
  1417. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  1418. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  1419. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  1420. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  1421. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  1422. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  1423. end
  1424. Humanoid.Jump=true
  1425. bodvol=Instance.new("BodyVelocity")
  1426. bodvol.Parent=RootPart
  1427. bodvol.velocity=vt(0,1,0)*100
  1428. bodvol.P=5000
  1429. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1430. --Torso.Velocity=vt(0,1,0)*100
  1431. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  1432. so("http://roblox.com/asset/?id=231917987",hitbox,1,1)
  1433. hitconasdf = hitbox.Touched:connect(function(hit)
  1434. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1435. if hum12 and not hum12:IsDescendantOf(Character) then
  1436. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1437. hitconasdf:disconnect()
  1438. end
  1439. end)
  1440. for i=0,1,0.1 do
  1441. swait()
  1442. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1443. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1444. local h = 5
  1445. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1446. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1447. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1448. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1449. scfr = blcf
  1450. elseif not scfr then
  1451. scfr = blcf
  1452. end
  1453. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  1454. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  1455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  1456. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  1457. RH.C0=clerp(RH.C0,RHC0,.3)
  1458. LH.C0=clerp(LH.C0,LHC0,.3)
  1459. end
  1460. con1:disconnect()
  1461. hitconasdf:disconnect()
  1462. bodvol.Parent=nil
  1463. attack=false
  1464. end
  1465.  
  1466. function spin()
  1467. attack=true
  1468. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1469. for i=0,1,0.2 do
  1470. swait()
  1471. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1472. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1473. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1474. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1475. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1476. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1477. end
  1478. for i=0,1,0.15 do
  1479. so("http://roblox.com/asset/?id=231917987",hitbox,1,1)
  1480. swait()
  1481. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1482. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1483. local h = 5
  1484. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1485. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1486. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1487. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1488. scfr = blcf
  1489. elseif not scfr then
  1490. scfr = blcf
  1491. end
  1492. for i=0,1,0.1 do
  1493. swait()
  1494. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1495. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1496. local h = 5
  1497. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1498. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1499. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1500. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1501. scfr = blcf
  1502. elseif not scfr then
  1503. scfr = blcf
  1504. end
  1505. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1506. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1507. RootJoint.C0=RootCF*euler(0,0,6.6*i)
  1508. end
  1509. end
  1510. con1:disconnect()
  1511. attack=false
  1512. end
  1513.  
  1514. function attackone()
  1515. if attack==false and attacktype==1 then
  1516. attacktype=2
  1517. attack=true
  1518. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1519. for i=0,1,0.2 do
  1520. swait()
  1521. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.4)
  1522. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  1523. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1),.4)
  1524. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1525. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.3)*euler(.4,0,.2)*euler(0,-.2,0),.4)
  1526. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1527. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  1528. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  1529. end
  1530. so("http://roblox.com/asset/?id=234365549",hitbox,1,1)
  1531. hitconasdf = hitbox.Touched:connect(function(hit)
  1532. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1533. if hum12 and not hum12:IsDescendantOf(Character) then
  1534. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1535. hitconasdf:disconnect()
  1536. end
  1537. end)
  1538. for i=0,1,0.3 do
  1539. swait()
  1540. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1541. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1542. local h = 5
  1543. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1544. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1545. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1546. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1547. scfr = blcf
  1548. elseif not scfr then
  1549. scfr = blcf
  1550. end
  1551. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  1552. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  1553. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.2,0,-.2)*euler(0,-.5,0),.4)
  1554. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1555. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
  1556. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1557. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  1558. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  1559. end
  1560. for i=0,1,0.2 do
  1561. swait()
  1562. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1563. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1564. local h = 5
  1565. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1566. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1567. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1568. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1569. scfr = blcf
  1570. elseif not scfr then
  1571. scfr = blcf
  1572. end
  1573. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  1574. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  1575. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.4)
  1576. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1577. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
  1578. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1579. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  1580. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  1581. end
  1582. con1:disconnect()
  1583. hitconasdf:disconnect()
  1584. attack=false
  1585. end
  1586. end
  1587.  
  1588. function attacktwo()
  1589. if attack==false and attacktype==2 then
  1590. attacktype=3
  1591. attack=true
  1592. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1593. for i=0,1,0.2 do
  1594. swait()
  1595. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
  1596. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
  1597. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,1.2,0),.4)
  1598. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1599. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-.4),.4)
  1600. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1601. RH.C0=clerp(RH.C0,cf(.8,-1,.2)*euler(0,1.57,0)*euler(0,-.7,0),.4)
  1602. LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
  1603. end
  1604. so("http://roblox.com/asset/?id=234365573",hitbox,1,1)
  1605. hitconasdf = hitbox.Touched:connect(function(hit)
  1606. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1607. if hum12 and not hum12:IsDescendantOf(Character) then
  1608. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1609. hitconasdf:disconnect()
  1610. end
  1611. end)
  1612. for i=0,1,0.3 do
  1613. swait()
  1614. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1615. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1616. local h = 5
  1617. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1618. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1619. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1620. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1621. scfr = blcf
  1622. elseif not scfr then
  1623. scfr = blcf
  1624. end
  1625. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.4)
  1626. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  1627. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,1)*euler(0,1.6,0),.4)
  1628. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1629. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
  1630. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1631. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  1632. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  1633. end
  1634. for i=0,1,0.2 do
  1635. swait()
  1636. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1637. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1638. local h = 5
  1639. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1640. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1641. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1642. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1643. scfr = blcf
  1644. elseif not scfr then
  1645. scfr = blcf
  1646. end
  1647. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  1648. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  1649. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.8)*euler(0,1.3,0),.4)
  1650. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1651. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
  1652. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1653. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  1654. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  1655. end
  1656. attack=false
  1657. con1:disconnect()
  1658. hitconasdf:disconnect()
  1659. end
  1660. end
  1661.  
  1662. function attackthree()
  1663. if attack==false and attacktype==3 then
  1664. attacktype=1
  1665. attack=true
  1666. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1667. for i=0,1,0.2 do
  1668. swait()
  1669. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  1670. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.4)
  1671. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.4)
  1672. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1673. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
  1674. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1675. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.4)
  1676. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.4)
  1677. end
  1678. so("http://roblox.com/asset/?id=231917871",hitbox,1,1)
  1679. hitconasdf = hitbox.Touched:connect(function(hit)
  1680. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1681. if hum12 and not hum12:IsDescendantOf(Character) then
  1682. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  1683. hitconasdf:disconnect()
  1684. end
  1685. end)
  1686. for i=0,1,0.1 do
  1687. swait()
  1688. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  1689. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1690. local h = 5
  1691. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1692. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1693. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1694. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1695. scfr = blcf
  1696. elseif not scfr then
  1697. scfr = blcf
  1698. end
  1699. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.35)
  1700. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.35)
  1701. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1.2)*euler(0,-1.2,0),.35)
  1702. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  1703. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.4,0,-.7)*euler(0,0,0),.35)
  1704. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  1705. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.6,0),.35)
  1706. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0),.35)
  1707. end
  1708. attack=false
  1709. con1:disconnect()
  1710. hitconasdf:disconnect()
  1711. end
  1712. end
  1713.  
  1714. function boom()
  1715. attack=true
  1716. for i=0,3,0.2 do
  1717. swait()
  1718. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  1719. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(math.rad(0),math.rad(0),math.rad(0)),.4)
  1720. RW.C0=clerp(RW.C0,cf(1, 1, -.5)*euler(math.rad(145),math.rad(180),math.rad(45)),.4)
  1721. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(0)),.4)
  1722. LW.C0=clerp(LW.C0,cf(-1, 1, -.5)*euler(math.rad(145),math.rad(0),math.rad(45)),.4)
  1723. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(0)),.4)
  1724. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.4)
  1725. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.4)
  1726. end
  1727. so("http://roblox.com/asset/?id=231917813",hitbox,1,1)
  1728. for i=0,1,0.07 do
  1729. swait()
  1730. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(0.04/2),0,0),.4)
  1731. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.4)
  1732. RW.C0=clerp(RW.C0,cf(1, 1, -.5)*euler(math.rad(90),math.rad(180),math.rad(45)),.4)
  1733. LW.C0=clerp(LW.C0,cf(-1, 1, -.5)*euler(math.rad(90),math.rad(0),math.rad(45)),.4)
  1734. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.4)
  1735. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.4)
  1736. for i=0,1 do
  1737. inc=1
  1738. wait(0)
  1739. SummonSword(Torso,CFrame.fromEulerAnglesXYZ(.1,0,1)*CFrame.new(0,inc,-6),CFrame.new(0,0,-3))
  1740. inc=inc-5
  1741. end
  1742. end
  1743. attack=false
  1744. end
  1745.  
  1746. local function CFrameFromTopBack(at, top, back)
  1747. local right = top:Cross(back)
  1748. return CFrame.new(at.x, at.y, at.z,
  1749. right.x, top.x, back.x,
  1750. right.y, top.y, back.y,
  1751. right.z, top.z, back.z)
  1752. end
  1753.  
  1754. function Triangle(a, b, c)
  1755. local edg1 = (c-a):Dot((b-a).unit)
  1756. local edg2 = (a-b):Dot((c-b).unit)
  1757. local edg3 = (b-c):Dot((a-c).unit)
  1758. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1759. a, b, c = a, b, c
  1760. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1761. a, b, c = b, c, a
  1762. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1763. a, b, c = c, a, b
  1764. else
  1765. assert(false, "unreachable")
  1766. end
  1767.  
  1768. local len1 = (c-a):Dot((b-a).unit)
  1769. local len2 = (b-a).magnitude - len1
  1770. local width = (a + (b-a).unit*len1 - c).magnitude
  1771.  
  1772. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1773.  
  1774. local list = {}
  1775.  
  1776. if len1 > 0.01 then
  1777. local w1 = Instance.new('WedgePart', m)
  1778. game:GetService("Debris"):AddItem(w1,5)
  1779. w1.Material = "SmoothPlastic"
  1780. w1.FormFactor = 'Custom'
  1781. w1.BrickColor = BrickColor.new("Toothpaste")
  1782. w1.Transparency = 0
  1783. w1.Reflectance = 0
  1784. w1.Material = "SmoothPlastic"
  1785. w1.CanCollide = false
  1786. NoOutline(w1)
  1787. local sz = Vector3.new(0.2, width, len1)
  1788. w1.Size = sz
  1789. local sp = Instance.new("SpecialMesh",w1)
  1790. sp.MeshType = "Wedge"
  1791. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1792. w1:BreakJoints()
  1793. w1.Anchored = true
  1794. w1.Parent = workspace
  1795. w1.Transparency = 0.7
  1796. table.insert(Effects,{w1,"Disappear",.01})
  1797. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1798. table.insert(list,w1)
  1799. end
  1800.  
  1801. if len2 > 0.01 then
  1802. local w2 = Instance.new('WedgePart', m)
  1803. game:GetService("Debris"):AddItem(w2,5)
  1804. w2.Material = "SmoothPlastic"
  1805. w2.FormFactor = 'Custom'
  1806. w2.BrickColor = BrickColor.new("Toothpaste")
  1807. w2.Transparency = 0
  1808. w2.Reflectance = 0
  1809. w2.Material = "SmoothPlastic"
  1810. w2.CanCollide = false
  1811. NoOutline(w2)
  1812. local sz = Vector3.new(0.2, width, len2)
  1813. w2.Size = sz
  1814. local sp = Instance.new("SpecialMesh",w2)
  1815. sp.MeshType = "Wedge"
  1816. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1817. w2:BreakJoints()
  1818. w2.Anchored = true
  1819. w2.Parent = workspace
  1820. w2.Transparency = 0.7
  1821. table.insert(Effects,{w2,"Disappear",.01})
  1822. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1823. table.insert(list,w2)
  1824. end
  1825. return unpack(list)
  1826. end
  1827.  
  1828. function NoOutline(Part)
  1829. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1830. end
  1831.  
  1832.  
  1833. if #Effects>0 then
  1834. --table.insert(Effects,{prt,"Block1",delay})
  1835. for e=1,#Effects do
  1836. if Effects[e]~=nil then
  1837. --for j=1,#Effects[e] do
  1838. local Thing=Effects[e]
  1839. if Thing~=nil then
  1840. local Part=Thing[1]
  1841. local Mode=Thing[2]
  1842. local Delay=Thing[3]
  1843. local IncX=Thing[4]
  1844. local IncY=Thing[5]
  1845. local IncZ=Thing[6]
  1846. if Thing[1].Transparency<=1 then
  1847. if Thing[2]=="Block1" then
  1848. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1849. Mesh=Thing[1].Mesh
  1850. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1851. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1852. elseif Thing[2]=="Cylinder" then
  1853. Mesh=Thing[1].Mesh
  1854. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1855. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1856. elseif Thing[2]=="Blood" then
  1857. Mesh=Thing[1].Mesh
  1858. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1859. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1860. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1861. elseif Thing[2]=="Elec" then
  1862. Mesh=Thing[1].Mesh
  1863. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1864. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1865. elseif Thing[2]=="Disappear" then
  1866. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1867. end
  1868. else
  1869. Part.Parent=nil
  1870. table.remove(Effects,e)
  1871. end
  1872. end
  1873. --end
  1874. end
  1875. end
  1876. end
  1877.  
  1878. idleanim=.4
  1879.  
  1880. while true do
  1881. swait()
  1882. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1883. local velderp=RootPart.Velocity.y
  1884. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1885. if equipped==true or equipped==false then
  1886. if attack==false then
  1887. idle=idle+1
  1888. else
  1889. idle=0
  1890. end
  1891. if idle>=500 then
  1892. if attack==false then
  1893. --Sheath()
  1894. end
  1895. end
  1896. if Anim~='Fly' then
  1897. pcall(function()
  1898. RightLeg.Transparency=0
  1899. LeftLeg.Transparency=0
  1900. m.fakerleg:destroy()
  1901. m.fakelleg:destroy()
  1902. end)
  1903. end
  1904. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1905. Anim="Jump"
  1906. if attack==false then
  1907. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1908. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1909. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1910. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1911. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1912. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1913. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1914. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1915. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1916. end
  1917. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1918. Anim="Fall"
  1919. if attack==false then
  1920. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1921. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1922. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1923. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1924. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1925. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1926. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1927. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1928. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1929. end
  1930. elseif torvel<1 and hitfloor~=nil then
  1931. Anim="Idle"
  1932. if attack==false then
  1933. --[[Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-10),0,0),.3)
  1934. Neck.C1=clerp(Neck.C1,necko2*angles(0,0,0),.3)
  1935. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(15),0,0),.3)
  1936. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(0,0,0.1),.3)
  1937. RW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(0,0,0),.3)
  1938. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),0,math.rad(45)),.3)
  1939. LW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(0,0,0),.3)
  1940. RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(15),math.rad(90),0),.3)
  1941. RH.C1=clerp(RH.C1,RHC1,.3)
  1942. LH.C0=clerp(LH.C0,cf(1,-.5,0)*angles(math.rad(15),math.rad(-90),0),.3)
  1943. LH.C1=clerp(LH.C1,LHC1,.3)]]
  1944. idleanim=.4
  1945. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  1946. --RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1947. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  1948. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-25),math.rad(-35),math.rad(45)),.3)
  1949. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(45)),.3)
  1950. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  1951. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  1952. end
  1953. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1954. Anim="Walk"
  1955. if attack==false then
  1956. idleanim=-1
  1957. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0.4,0,0),.3)
  1958. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  1959. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-35),math.rad(45)),.3)
  1960. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(35),math.rad(-45)),.3)
  1961. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.2,1.57,0),.3)
  1962. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  1963. end
  1964. elseif torvel>=22 and hitfloor~=nil then
  1965. Anim="Run"
  1966. if attack==false then
  1967. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  1968. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  1969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-35),math.rad(-35),math.rad(45)),.3)
  1970. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-35),math.rad(35),math.rad(-45)),.3)
  1971. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.2,1.57,0),.3)
  1972. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  1973. end
  1974. end
  1975. end
  1976. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement