Advertisement
voidman

Untitled

Dec 26th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 123.82 KB | None | 0 0
  1. --]]
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  7. --Thanks gaster :3
  8. wait()
  9. Player = game.Players.LocalPlayer
  10. Object = Player.Character.HumanoidRootPart
  11. Arm1 = Player.Character["Right Arm"]
  12. PreviousA1 = Arm1.CFrame.p
  13. Arm2 = Player.Character["Left Arm"]
  14. PreviousA2 = Arm2.CFrame.p
  15.  
  16. Leg1 = Player.Character["Right Leg"]
  17. PreviousL1 = Leg1.CFrame.p
  18. Leg2 = Player.Character["Left Leg"]
  19. PreviousL2 = Leg2.CFrame.p
  20.  
  21. Run = game["Run Service"]
  22.  
  23. PreviousP = Object.CFrame.p
  24. Running = false
  25. Phase = false
  26. PhaseActive = false
  27. Morph = false
  28. MorphActive = false
  29. Tornado = false
  30. TornadoRadius = 50
  31. TornadoActive = false
  32. Portal = false
  33. PortalEnd = false
  34. MaxZ = 15
  35. MinZ = -15
  36. LightMaxX = 3
  37. LightMinX = 1
  38. LightMaxX2 = -1
  39. LightMinX2 = -3
  40. LightMaxY = 3
  41. LightMinY = -1
  42. Rotation = 0
  43. Length = 10
  44. Color = BrickColor.White()
  45. PColor = Color3.new(0,0,0)
  46. PrevPoint1 = nil
  47. PrevPoint2 = nil
  48. PrevPoint3 = nil
  49. PrevPoint4 = nil
  50. PrevPoint5 = nil
  51. PrevPoint6 = nil
  52. PrevPoint7 = nil
  53. PrevPoint8 = nil
  54. PrevPoint9 = nil
  55. PrevPoint10 = nil
  56. PrevPoint11 = nil
  57. PrevPoint12 = nil
  58. angle = 0
  59. Mouse = Player:GetMouse()
  60. Player.Character.Humanoid.WalkSpeed = 100
  61.  
  62. Nil = function()
  63. PrevPoint1 = "Empty"
  64. PrevPoint2 = "Empty"
  65. PrevPoint3 = "Empty"
  66. PrevPoint4 = "Empty"
  67. PrevPoint5 = "Empty"
  68. PrevPoint6 = "Empty"
  69. PrevPoint7 = "Empty"
  70. PrevPoint8 = "Empty"
  71. PrevPoint9 = "Empty"
  72. PrevPoint10 = "Empty"
  73. PrevPoint11 = "Empty"
  74. PrevPoint12 = "Empty"
  75. end
  76.  
  77. local Lightning = coroutine.wrap(function()
  78. while wait() do
  79. if Portal == false then
  80. angle = angle + 0.6
  81. local Model = Instance.new("Model",workspace)
  82. Model.Name = "Lightning"
  83. local Point1 = Instance.new("Part",Model)
  84. Point1.Transparency = 1
  85. Point1.Size = Vector3.new(0.2,0.2,0.2)
  86. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  87. Point1.Anchored = true
  88. Point1.CanCollide = false
  89. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  90.  
  91. local Point2 = Instance.new("Part",Model)
  92. Point2.Transparency = 1
  93. Point2.Size = Vector3.new(0.2,0.2,0.2)
  94. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  95. Point2.Anchored = true
  96. Point2.CanCollide = false
  97. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  98.  
  99. local Point3 = Instance.new("Part",Model)
  100. Point3.Transparency = 1
  101. Point3.Size = Vector3.new(0.2,0.2,0.2)
  102. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  103. Point3.Anchored = true
  104. Point3.CanCollide = false
  105. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  106.  
  107. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  108. local Light = Instance.new("Part",Model)
  109. local PointLight = Instance.new("PointLight",Light)
  110. PointLight.Range = 5
  111. PointLight.Color = PColor
  112. Light.Transparency = 0
  113. Light.BrickColor = Color
  114. Light.Material = "Neon"
  115. Light.Size = Vector3.new(0.25,0.25,distance)
  116. Light.Anchored = true
  117. Light.CanCollide = false
  118. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  119.  
  120. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  121. local Light = Instance.new("Part",Model)
  122. local PointLight = Instance.new("PointLight",Light)
  123. PointLight.Range = 5
  124. PointLight.Color = PColor
  125. Light.Transparency = 0
  126. Light.BrickColor = Color
  127. Light.Material = "Neon"
  128. Light.Size = Vector3.new(0.25,0.25,distance2)
  129. Light.Anchored = true
  130. Light.CanCollide = false
  131. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  132.  
  133. local Point1 = Instance.new("Part",Model)
  134. Point1.Transparency = 1
  135. Point1.Size = Vector3.new(0.2,0.2,0.2)
  136. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  137. Point1.Anchored = true
  138. Point1.CanCollide = false
  139. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  140.  
  141. local Point2 = Instance.new("Part",Model)
  142. Point2.Transparency = 1
  143. Point2.Size = Vector3.new(0.2,0.2,0.2)
  144. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  145. Point2.Anchored = true
  146. Point2.CanCollide = false
  147. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  148.  
  149. local Point3 = Instance.new("Part",Model)
  150. Point3.Transparency = 1
  151. Point3.Size = Vector3.new(0.2,0.2,0.2)
  152. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  153. Point3.Anchored = true
  154. Point3.CanCollide = false
  155. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  156.  
  157. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  158. local Light = Instance.new("Part",Model)
  159. local PointLight = Instance.new("PointLight",Light)
  160. PointLight.Range = 5
  161. PointLight.Color = PColor
  162. Light.Transparency = 0
  163. Light.BrickColor = Color
  164. Light.Material = "Neon"
  165. Light.Size = Vector3.new(0.25,0.25,distance)
  166. Light.Anchored = true
  167. Light.CanCollide = false
  168. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  169.  
  170. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  171. local Light = Instance.new("Part",Model)
  172. local PointLight = Instance.new("PointLight",Light)
  173. PointLight.Range = 5
  174. PointLight.Color = PColor
  175. Light.Transparency = 0
  176. Light.BrickColor = Color
  177. Light.Material = "Neon"
  178. Light.Size = Vector3.new(0.3,0.3,distance2)
  179. Light.Anchored = true
  180. Light.CanCollide = false
  181. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  182.  
  183. local Point1 = Instance.new("Part",Model)
  184. Point1.Transparency = 1
  185. Point1.Size = Vector3.new(0.2,0.2,0.2)
  186. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  187. Point1.Anchored = true
  188. Point1.CanCollide = false
  189. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  190.  
  191. local Point2 = Instance.new("Part",Model)
  192. Point2.Transparency = 1
  193. Point2.Size = Vector3.new(0.2,0.2,0.2)
  194. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  195. Point2.Anchored = true
  196. Point2.CanCollide = false
  197. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  198.  
  199. local Point3 = Instance.new("Part",Model)
  200. Point3.Transparency = 1
  201. Point3.Size = Vector3.new(0.2,0.2,0.2)
  202. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  203. Point3.Anchored = true
  204. Point3.CanCollide = false
  205. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  206.  
  207. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  208. local Light = Instance.new("Part",Model)
  209. local PointLight = Instance.new("PointLight",Light)
  210. PointLight.Range = 5
  211. PointLight.Color = PColor
  212. Light.Transparency = 0
  213. Light.BrickColor = Color
  214. Light.Material = "Neon"
  215. Light.Size = Vector3.new(0.25,0.25,distance)
  216. Light.Anchored = true
  217. Light.CanCollide = false
  218. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  219.  
  220. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  221. local Light = Instance.new("Part",Model)
  222. local PointLight = Instance.new("PointLight",Light)
  223. PointLight.Range = 5
  224. PointLight.Color = PColor
  225. Light.Transparency = 0
  226. Light.BrickColor = Color
  227. Light.Material = "Neon"
  228. Light.Size = Vector3.new(0.25,0.25,distance2)
  229. Light.Anchored = true
  230. Light.CanCollide = false
  231. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  232.  
  233. local Point1 = Instance.new("Part",Model)
  234. Point1.Transparency = 1
  235. Point1.Size = Vector3.new(0.2,0.2,0.2)
  236. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  237. Point1.Anchored = true
  238. Point1.CanCollide = false
  239. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  240.  
  241. local Point2 = Instance.new("Part",Model)
  242. Point2.Transparency = 1
  243. Point2.Size = Vector3.new(0.2,0.2,0.2)
  244. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  245. Point2.Anchored = true
  246. Point2.CanCollide = false
  247. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  248.  
  249. local Point3 = Instance.new("Part",Model)
  250. Point3.Transparency = 1
  251. Point3.Size = Vector3.new(0.2,0.2,0.2)
  252. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  253. Point3.Anchored = true
  254. Point3.CanCollide = false
  255. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  256.  
  257. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  258. local Light = Instance.new("Part",Model)
  259. local PointLight = Instance.new("PointLight",Light)
  260. PointLight.Range = 5
  261. PointLight.Color = PColor
  262. Light.Transparency = 0
  263. Light.BrickColor = Color
  264. Light.Material = "Neon"
  265. Light.Size = Vector3.new(0.25,0.25,distance)
  266. Light.Anchored = true
  267. Light.CanCollide = false
  268. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  269.  
  270. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  271. local Light = Instance.new("Part",Model)
  272. local PointLight = Instance.new("PointLight",Light)
  273. PointLight.Range = 5
  274. PointLight.Color = PColor
  275. Light.Transparency = 0
  276. Light.BrickColor = Color
  277. Light.Material = "Neon"
  278. Light.Size = Vector3.new(0.25,0.25,distance2)
  279. Light.Anchored = true
  280. Light.CanCollide = false
  281. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  282.  
  283. local Children = Model:GetChildren()
  284. wait(0.1)
  285. for i = 1,#Children do
  286. if Children[i]:IsA("Part") then
  287. Children[i].Transparency = 1
  288. end
  289. game.Debris:AddItem(Children[i],0)
  290. end
  291.  
  292. end
  293. end
  294. end)
  295. Lightning()
  296.  
  297. local LocalPlayer = game:GetService("Players").LocalPlayer
  298. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  299.  
  300. local Orb = Instance.new("Part", Character)
  301. Orb.Name = "Orb"
  302. Orb.Shape = Enum.PartType.Ball
  303. Orb.CanCollide = false
  304. Orb.BrickColor = BrickColor.new("Really red")
  305. Orb.Transparency = 0
  306. Orb.Material = "Neon"
  307. Orb.Size = Vector3.new(0.3, 0.3, 0.3)
  308. Orb.TopSurface = Enum.SurfaceType.Smooth
  309. Orb.BottomSurface = Enum.SurfaceType.Smooth
  310.  
  311. local Weld = Instance.new("Weld", Orb)
  312. Weld.Part0 = Character.Head
  313. Weld.Part1 = Orb
  314. Weld.C1 = CFrame.new(0.2, -0.2, 0.5)
  315. --------------------------------------------------------
  316. local Orbd = Instance.new("Part", Character)
  317. Orbd.Name = "Orbd"
  318. Orbd.Shape = Enum.PartType.Ball
  319. Orbd.CanCollide = false
  320. Orbd.BrickColor = BrickColor.new("Really orange")
  321. Orbd.Transparency = 0
  322. Orbd.Material = "Neon"
  323. Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
  324. Orbd.TopSurface = Enum.SurfaceType.Smooth
  325. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  326.  
  327. local Weld = Instance.new("Weld", Orbd)
  328. Weld.Part0 = Character.Head
  329. Weld.Part1 = Orbd
  330. Weld.C1 = CFrame.new(-0.2, -0.2, 0.5)
  331.  
  332. ----------------------------------------------------
  333. Character.Head.face.Texture = "rbxassetid://0"
  334. ----------------------------------------------------
  335.  
  336. local p = game.Players.LocalPlayer
  337. local char = p.Character
  338. local mouse = p:GetMouse()
  339. local larm = char["Left Arm"]
  340. local rarm = char["Right Arm"]
  341. local lleg = char["Left Leg"]
  342. local rleg = char["Right Leg"]
  343. local hed = char.Head
  344. local torso = char.Torso
  345. local hum = char.Humanoid
  346. local cam = game.Workspace.CurrentCamera
  347. local root = char.HumanoidRootPart
  348. local deb = false
  349. local shot = 0
  350. local debris=game:service"Debris"
  351. local l = game:GetService("Lighting")
  352. local rs = game:GetService("RunService").RenderStepped
  353. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  354. math.randomseed(os.time())
  355. for i,v in pairs(char:children()) do
  356. if v:IsA("Hat") then
  357. v:Destroy()
  358. end
  359. end
  360. for i,v in pairs (hed:GetChildren()) do
  361. if v:IsA("Sound") then
  362. v:Destroy()
  363. end
  364. end
  365. ----------------------------------------------------
  366. Debounces = {
  367. CanAttack = true;
  368. NoIdl = false;
  369. Slashing = false;
  370. Slashed = false;
  371. RPunch = false;
  372. RPunched = false;
  373. LPunch = false;
  374. LPunched = false;
  375. }
  376. local Touche = {char.Name, }
  377. ----------------------------------------------------
  378. hed.face.Texture = "rbxassetid://0"
  379. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  380. char["Body Colors"].TorsoColor = BrickColor.new("Really black")
  381. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  382. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  383. ----------------------------------------------------
  384. ypcall(function()
  385. char.Shirt:Destroy()
  386. char.Pants:Destroy()
  387. shirt = Instance.new("Shirt", char)
  388. shirt.Name = "Shirt"
  389. pants = Instance.new("Pants", char)
  390. pants.Name = "Pants"
  391. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=593918405"
  392. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=226620273"
  393. end)
  394. ----------------------------------------------------
  395. ----------------------------------------------------
  396. p = game.Players.LocalPlayer
  397. char = p.Character
  398. des = false
  399. fling = true
  400. dot = false
  401. falling = false
  402. jump = true
  403. --char.Shirt:Remove()
  404. --for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  405. for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
  406. wait()--shirt = Instance.new("Shirt", char)
  407. --shirt.Name = "Shirt"
  408. --pants = Instance.new("Pants", char)
  409. --pants.Name = "Pants"
  410.  
  411. ----------------------------------------------------
  412. z = Instance.new("Sound", char)
  413. z.SoundId = "rbxassetid://176517652"--303570180
  414. z.Looped = true
  415. z.Pitch = 1
  416. z.Volume = 1
  417. wait(.1)
  418. z:Play()
  419. ----------------------------------------------------
  420.  
  421. --char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=593918405"
  422. --char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=226620273"
  423. tp = true
  424. shoot = true
  425. hum = char.Humanoid
  426. punch = true
  427. neckp = char.Torso.Neck.C0
  428. neck = char.Torso.Neck
  429. hum.MaxHealth = 999999999
  430. wait()
  431. hum.Health =hum.MaxHealth
  432. des = false
  433. root=char.HumanoidRootPart
  434. torso = char.Torso
  435. char.Head.face.Texture = "rbxassetid://0"
  436. local ChatService = game:GetService("Chat")
  437. local player = game.Players.LocalPlayer
  438. lig = Instance.new("PointLight",player.Character.Torso)
  439. lig.Color=Color3.new(255,0,0)
  440. m=player:GetMouse()
  441. bb = Instance.new("BillboardGui",player.Character.Head)
  442. bb.Enabled = true
  443. function newRay(start,face,range,wat)
  444. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  445. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  446. return rey,hit,pos
  447. end
  448. aa1={}
  449. torso=game.Players.LocalPlayer.Character.Torso
  450.  
  451. local WorldUp = Vector3.new(0,1,0)
  452. function look2(Vec1,Vec2)
  453. local Orig = Vec1
  454. Vec1 = Vec1+Vector3.new(0,1,0)
  455. Vec2 = Vec2+Vector3.new(0,1,0)
  456. local Forward = (Vec2-Vec1).unit
  457. local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
  458. local Right = Up:Cross(Forward).unit
  459. Forward = -Forward
  460. Right = -Right
  461. return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
  462. end
  463.  
  464. function look(CFr,Vec2)
  465. local A = Vector3.new(0,0,0)
  466. local B = CFr:inverse()*Vec2
  467. local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
  468. if B.Z > 0 then
  469. CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
  470. elseif B.Z == 0 then
  471. if B.Y > 0 then
  472. CF = CFr*CFrame.Angles(math.pi/2,0,0)
  473. elseif B.Y < 0 then
  474. CF = CFr*CFrame.Angles(-math.pi/2,0,0)
  475. else
  476. CF = CFr
  477. end
  478. end
  479. local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
  480. local Up = Vector3.new(X,Y,Z)
  481. local Forward = (Vec2-CFr.p).unit
  482. local Right = Up:Cross(Forward)
  483. Forward = -Forward
  484. Right = -Right
  485. return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
  486. end
  487.  
  488. function simulate(j,d,m,r,t)
  489. local joint = j
  490. for i,v in ipairs(t) do
  491. if v[1]:FindFirstChild("Weld") then
  492. local stiff = m.CFrame.lookVector*0.03
  493. if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
  494. local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
  495. local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
  496. local pos = joint.p+(dir*(d*0.5))
  497. --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
  498. local inv = v[1].Weld.Part0.CFrame
  499. local rel1 = inv:inverse()*pos
  500. local rel2 = inv:inverse()*(pos-(dir*dis))
  501. local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
  502. v[1].Weld.C0 = cf
  503. v[2] = inv*cf
  504. --v[1].CFrame = cf
  505. end
  506. end
  507. end
  508. for i=1,8 do
  509. local p = Instance.new("Part",char)
  510. p.Anchored = false
  511. p.BrickColor = BrickColor.new("Really black")
  512. p.CanCollide = false
  513. p.FormFactor="Custom"
  514. p.Material = "SmoothPlastic"
  515. p.TopSurface = "SmoothNoOutlines"
  516. p.BottomSurface = "SmoothNoOutlines"
  517. p.RightSurface = "SmoothNoOutlines"
  518. p.LeftSurface = "SmoothNoOutlines"
  519. p.FrontSurface = "SmoothNoOutlines"
  520. p.BackSurface = "SmoothNoOutlines"
  521.  
  522. p.Size=Vector3.new(2,.2,0.2)
  523. p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
  524. mesh = Instance.new("BlockMesh",p)
  525. mesh.Scale = Vector3.new(1,1,4)
  526. local w = Instance.new("Motor6D",p)
  527. w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
  528. w.Part1 = p
  529. w.Name = "Weld"
  530. --table.insert(aa1,p)
  531. aa1[i] = {p,p.CFrame}
  532.  
  533. end
  534. game:service"RunService".Stepped:connect(function()
  535. simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
  536. end)
  537. bb.AlwaysOnTop = true
  538. bb.Size = UDim2.new(0,200,0,50)
  539. bb.StudsOffset = Vector3.new(0,1,0)
  540. gui=Instance.new("TextBox",bb)
  541. gui.Text = "* "
  542. gui.Size = UDim2.new(0,133,0,45)
  543. gui.Position=UDim2.new(0,57,0,-40)
  544. gui.TextColor3 = Color3.new(255,255,255)
  545. gui.BackgroundColor3=Color3.new(0,0,0)
  546. gui.TextWrapped = true
  547. gui.TextScaled = true
  548. gui.TextXAlignment = "Left"
  549. gui.TextYAlignment = "Top"
  550. gui.Visible = false
  551. gui.BorderColor3 = Color3.new(0,0,0)
  552. punch2 = true
  553. gui1=Instance.new("TextButton",bb)
  554. gui1.Position=UDim2.new(0,5,0,-43)
  555. gui1.Size = UDim2.new(0,190,0,51)
  556.  
  557. gui1.TextColor3 = Color3.new(255,255,255)
  558. gui1.BackgroundColor3=Color3.new(255,255,255)
  559. jump2 = true
  560. gui1.Visible = false
  561. img = Instance.new("ImageLabel",bb)
  562. img.Size = UDim2.new(0,46,0,47)
  563. img.Position = UDim2.new(0,10,0,-41)
  564. img.Image = "rbxassetid://447301252"
  565. img.BorderColor3 = Color3.new(0,0,0)
  566. img.Visible = false
  567. soka = Instance.new("Sound",char)
  568. soka.SoundId = "http://www.roblox.com/asset/?id = 0"
  569. soka.Volume = 1
  570. boom = Instance.new("Sound",char)
  571. boom.SoundId = "http://www.roblox.com/asset/?id = 0"
  572. boom.Volume = 1
  573. boom2 = Instance.new("Sound",char)
  574. boom2.SoundId = "http://www.roblox.com/asset/?id = 0"
  575. boom2.Volume = 1
  576. boom3 = Instance.new("Sound",char)
  577. boom3.SoundId = "http://www.roblox.com/asset/?id = 0"
  578. boom3.Volume = 1
  579. tps = Instance.new("Sound",char)
  580. tps.SoundId = "http://www.roblox.com/asset/?id = 0"
  581. tps.Volume = 1
  582. asd = Instance.new("Sound",char)
  583. asd.SoundId = "http://www.roblox.com/asset/?id = 0"
  584. asd.Volume =1
  585. asd1 = Instance.new("Sound",char)
  586. asd1.SoundId = "http://www.roblox.com/asset/?id = 0"
  587.  
  588. asd2 = Instance.new("Sound",char)
  589. asd2.SoundId = "http://www.roblox.com/asset/?id = 0"
  590. asd2.Looped = true
  591. asd2.Volume = 5
  592. asd3 = Instance.new("Sound",char)
  593. asd3.SoundId = "http://www.roblox.com/asset/?id = 0"
  594. asd3.Looped = true
  595. asd4 = Instance.new("Sound",char)
  596. asd4.SoundId = "http://www.roblox.com/asset/?id = 0"
  597. asd4.Looped = true
  598. asd5 = Instance.new("Sound",char)
  599. asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
  600. asd5.Looped = true
  601. gas = Instance.new("Sound",char)
  602. gas.SoundId = "http://www.roblox.com/asset/?id = 0"
  603. asd6 = Instance.new("Sound",char)
  604. asd6.SoundId = "http://www.roblox.com/asset/?id = 0"
  605. asd6.Looped = true
  606. function play(play)
  607. asd:Play()
  608. wait(0.05)
  609. --asd1:Play()
  610. end
  611.  
  612.  
  613.  
  614. ------------
  615. -------------------------
  616.  
  617. function stream(origin,dir,length,size)
  618. local parts = {}
  619. for i = 1,length do
  620. local p = Instance.new("Part",char)
  621. p.Anchored = true
  622. p.Transparency = 0.5
  623. p.TopSurface = 0
  624. p.BottomSurface = 0
  625. p.CanCollide = false
  626. p.BrickColor = BrickColor.new("Really red")
  627. p.Size = Vector3.new(10,30,10) -- for now
  628. p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  629. parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
  630. game:GetService("Debris"):AddItem(p,3)
  631. end
  632. Spawn(function()
  633. while parts do
  634. for i,v in pairs(parts) do
  635. if v[1].Parent == char then
  636. v[1].CFrame = v[1].CFrame*v[2]
  637. else
  638. parts = nil
  639. break
  640. end
  641. end
  642. wait(0.02)
  643. end
  644. end)
  645. end
  646.  
  647. --[[-- listen for their chatting
  648. player.Chatted:connect(function(message)
  649. a = string.len(message)
  650. gui.Text = ""
  651. gui.Visible = true
  652. gui1.Visible = true
  653. des = false
  654. img.Visible = true
  655. print(a)
  656. if dot == false then
  657. gui.Text = ""
  658. for i = 1,string.len(message) do
  659. gui.Text =gui.Text..message:sub(i,i)
  660. play()
  661.  
  662. end
  663. end
  664.  
  665.  
  666. des = true
  667. end)]]--
  668. m.KeyDown:connect(function(k)
  669. if k == "g" then
  670. asd2:Play()
  671.  
  672.  
  673. end
  674. end)
  675.  
  676. m.KeyDown:connect(function(k)
  677. if k == "r" then
  678.  
  679. asd4:Play()
  680. end
  681. end)
  682. m.KeyDown:connect(function(k)
  683. if k == "q" then
  684.  
  685. asd3:Play()
  686. end
  687. end)
  688. m.KeyDown:connect(function(k)
  689. if k == "z" then
  690. img.Image = "rbxassetid://332766052"
  691.  
  692. end
  693. end)
  694. m.KeyDown:connect(function(k)
  695. if k == "c" then
  696. img.Image = "rbxassetid://447301252"
  697.  
  698. end
  699. end)
  700. m.KeyDown:connect(function(k)
  701. if k == "b" then
  702.  
  703. asd6:Play()
  704. end
  705. end)
  706. mouse = p:GetMouse()
  707. m.KeyDown:connect(function(k)
  708. if k:byte() == 48 then
  709.  
  710. hum.WalkSpeed = 100
  711. end
  712. end)
  713. m.KeyDown:connect(function(k)
  714. if k:byte() == 50 then
  715.  
  716. soka:Play()
  717. end
  718. end)
  719. m.KeyDown:connect(function(k)
  720. if k:byte() == 52 then
  721.  
  722. char.Head.face.Texture = "rbxassetid://444037452"
  723. end
  724. end)
  725. m.KeyDown:connect(function(k)
  726. if k:byte() == 51 then
  727.  
  728. char.Head.face.Texture = "rbxassetid://332768867"
  729. end
  730. end)
  731. m.KeyUp:connect(function(k)
  732. if k:byte() == 48 then
  733.  
  734. hum.WalkSpeed = 16
  735. end
  736. end)
  737. p.Chatted:connect(function(m)
  738. if m == "Okay." then
  739. soka:Play()
  740. end
  741. end)
  742. m.KeyDown:connect(function(k)
  743. if k == "x" then
  744. if des == true then
  745. gui.Visible = false
  746. gui.Text = "* "
  747. gui1.Visible = false
  748. img.Visible = false
  749. end
  750. end
  751. end)
  752. m.KeyDown:connect(function(key)
  753. if key == "ja" then
  754. if tp == true then
  755. tp = false
  756. tps:Play()
  757. char.Head.face.Parent = game.Lighting
  758. for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
  759. end
  760.  
  761. end
  762. wait(0.5)
  763. for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
  764. end
  765.  
  766. end
  767. char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
  768. char.HumanoidRootPart.Transparency = 1
  769. game.Lighting.face.Parent = char.Head
  770. wait(0.2)
  771.  
  772. tp = true
  773.  
  774.  
  775. end
  776. end
  777. end)
  778.  
  779.  
  780. m.KeyDown:connect(function(key)
  781. if key == "ta" then
  782. if punch2 == true then
  783. punch2 = false
  784. punch = false
  785.  
  786. local ChatService = game:GetService("Chat")
  787.  
  788. neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
  789. ChatService:Chat(char.Head, "Mind if I get Serious?")
  790. wait(1)
  791. local ChatService = game:GetService("Chat")
  792.  
  793.  
  794. ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
  795. wait(1)
  796. local ChatService = game:GetService("Chat")
  797.  
  798.  
  799. ChatService:Chat(char.Head, "Death.")
  800. neck.C0 = neckp
  801. wait(0.6)
  802. org = char.Torso["Left Shoulder"].C0
  803. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
  804. wait()
  805. killbrick2 = Instance.new("Part",char)
  806. killbrick2.Size = Vector3.new(80,80,9000)
  807. killbrick2.Transparency = 1
  808.  
  809. killbrick2.CanCollide = true
  810. wait(0.1)
  811. killbrick2.CanCollide = false
  812.  
  813. killbrick2.Anchored = true
  814.  
  815. killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
  816.  
  817. killbrick2.Touched:connect(function(h)
  818. local x = h.Parent:FindFirstChild("Humanoid")
  819. if x then
  820. if x.Parent.Name == game.Players.LocalPlayer.Name then
  821. safe = true
  822. else safe = false
  823. end
  824. if x then
  825. if safe == false then
  826. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
  827. local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
  828. boom:Play()
  829. bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
  830.  
  831.  
  832. wait(0.2)
  833. x.Parent:BreakJoints()
  834. wait()
  835. safe = true
  836. end
  837. end
  838. end
  839. end)
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848. local rng = Instance.new("Part", char)
  849. rng.Anchored = true
  850. rng.BrickColor = BrickColor.new("Really red")
  851. rng.CanCollide = false
  852. rng.FormFactor = 3
  853. rng.Name = "Ring"
  854. rng.Size = Vector3.new(1, 1, 1)
  855. rng.Transparency = 0.8
  856. rng.TopSurface = 0
  857. rng.BottomSurface = 0
  858. rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  859. --rng.Rotation = Vector3.new(math.pi/2,0,0)
  860. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  861. local rngm = Instance.new("SpecialMesh", rng)
  862. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  863. rngm.Scale = Vector3.new(1, 1.3, 2)
  864. local rng1 = Instance.new("Part", char)
  865. rng1.Anchored = true
  866. rng1.BrickColor = BrickColor.new("Really red")
  867. rng1.CanCollide = false
  868. rng1.FormFactor = 3
  869. rng1.Name = "Ring"
  870. rng1.Size = Vector3.new(1, 1, 1)
  871. rng1.Transparency = 0.8
  872. rng1.TopSurface = 0
  873. rng1.BottomSurface = 0
  874. rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  875. --rng1.Rotation = Vector3.new(math.pi/2,0,0)
  876. rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  877. local rngm1 = Instance.new("SpecialMesh", rng1)
  878. rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  879. rngm1.Scale = Vector3.new(1, 1.3, 2)
  880.  
  881. local p = (torso.CFrame*CFrame.new(-20,0,3))
  882. stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
  883. local p = (torso.CFrame*CFrame.new(20,0,3))
  884. stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
  885.  
  886. local rng2 = Instance.new("Part", char)
  887. rng2.Anchored = true
  888. rng2.BrickColor = BrickColor.new("Really red")
  889. rng2.CanCollide = false
  890. rng2.FormFactor = 3
  891. rng2.Name = "Ring"
  892. rng2.Size = Vector3.new(1, 1, 1)
  893. rng2.Transparency = 0.8
  894. rng2.TopSurface = 0
  895. rng2.BottomSurface = 0
  896. rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  897. --rng1.Rotation = Vector3.new(math.pi/2,0,0)
  898. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  899. local rngm2 = Instance.new("SpecialMesh", rng2)
  900. rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  901. rngm2.Scale = Vector3.new(1, 1.3, 2)
  902. wait(0.1)
  903.  
  904. boom3:Play()
  905. coroutine.wrap(function()
  906. for i = 1, 35, 0.5 do
  907.  
  908.  
  909.  
  910.  
  911.  
  912. rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
  913. rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
  914. rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
  915.  
  916. wait()
  917. end
  918. wait()
  919. rng:Destroy()
  920. rng1:Destroy()
  921. rng2:Destroy()
  922. killbrick2:Remove()
  923. wait(0.5)
  924. char.Torso["Left Shoulder"].C0 = org
  925. wait(1)
  926. punch2 = true
  927. punch = true
  928. wait()
  929.  
  930.  
  931. end)()
  932.  
  933.  
  934.  
  935. end
  936.  
  937.  
  938. wait(.1)
  939.  
  940.  
  941. end
  942. end)
  943.  
  944.  
  945. ----------------
  946.  
  947. ----------------------
  948. Player=game:GetService("Players").LocalPlayer
  949. Character=Player.Character
  950. PlayerGui=Player.PlayerGui
  951. Backpack=Player.Backpack
  952. Torso=Character.Torso
  953. Head=Character.Head
  954. Humanoid=Character.Humanoid
  955. m=Instance.new('Model',Character)
  956. LeftArm=Character["Left Arm"]
  957. LeftLeg=Character["Left Leg"]
  958. LeftArm=Character["Left Arm"]
  959. RightLeg=Character["Right Leg"]
  960. LS=Torso["Left Shoulder"]
  961. LH=Torso["Left Hip"]
  962. RS=Torso["Left Shoulder"]
  963. RH=Torso["Right Hip"]
  964. Face = Head.face
  965. Neck=Torso.Neck
  966. it=Instance.new
  967. attacktype=1
  968. vt=Vector3.new
  969. cf=CFrame.new
  970. euler=CFrame.fromEulerAnglesXYZ
  971. angles=CFrame.Angles
  972. cloaked=false
  973. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  974. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  975. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  976. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  977. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  978. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  979. RootPart=Character.HumanoidRootPart
  980. RootJoint=RootPart.RootJoint
  981. RootCF=euler(-1.57,0,3.14)
  982. attack = false
  983. attackdebounce = false
  984. deb=false
  985. equipped=true
  986. hand=false
  987. MMouse=nil
  988. combo=0
  989. mana=0
  990. trispeed=.2
  991. attackmode='none'
  992. local idle=0
  993. local Anim="Idle"
  994. local Effects={}
  995. local gun=false
  996. local shoot=false
  997. player=nil
  998. mana=0
  999.  
  1000. mouse=Player:GetMouse()
  1001. --save shoulders
  1002. RSH, LSH=nil, nil
  1003. --welds
  1004. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1005. RW.Name="Left Shoulder" LW.Name="Left Shoulder"
  1006. LH=Torso["Left Hip"]
  1007. RH=Torso["Right Hip"]
  1008. TorsoColor=Torso.BrickColor
  1009. function NoOutline(Part)
  1010. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1011. end
  1012. player=Player
  1013. ch=Character
  1014. RSH=ch.Torso["Left Shoulder"]
  1015. LSH=ch.Torso["Left Shoulder"]
  1016. --
  1017. RSH.Parent=nil
  1018. LSH.Parent=nil
  1019. --
  1020. RW.Name="Left Shoulder"
  1021. RW.Part0=ch.Torso
  1022. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1023. RW.C1=cf(0, 0.5, 0)
  1024. RW.Part1=ch["Left Arm"]
  1025. RW.Parent=ch.Torso
  1026. --
  1027. LW.Name="Left Shoulder"
  1028. LW.Part0=ch.Torso
  1029. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1030. LW.C1=cf(0, 0.5, 0)
  1031. LW.Part1=ch["Left Arm"]
  1032. LW.Parent=ch.Torso
  1033.  
  1034. Player=game:GetService('Players').LocalPlayer
  1035. Character=Player.Character
  1036. Mouse=Player:GetMouse()
  1037. m=Instance.new('Model',Character)
  1038.  
  1039.  
  1040. local function weldBetween(a, b)
  1041. local weldd = Instance.new("ManualWeld")
  1042. weldd.Part0 = a
  1043. weldd.Part1 = b
  1044. weldd.C0 = CFrame.new()
  1045. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1046. weldd.Parent = a
  1047. return weldd
  1048. end
  1049.  
  1050. function swait(num)
  1051. if num==0 or num==nil then
  1052. game:service'RunService'.Heartbeat:wait(0)
  1053. else
  1054. for i=0,num do
  1055. game:service'RunService'.Heartbeat:wait(0)
  1056. end
  1057. end
  1058. end
  1059.  
  1060. function nooutline(part)
  1061. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1062. end
  1063.  
  1064. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1065. local fp=it("Part")
  1066. fp.formFactor=formfactor
  1067. fp.Parent=parent
  1068. fp.Reflectance=reflectance
  1069. fp.Transparency=transparency
  1070. fp.CanCollide=false
  1071. fp.Locked=true
  1072. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1073. fp.Name=name
  1074. fp.Size=size
  1075. fp.Position=Character.Torso.Position
  1076. nooutline(fp)
  1077. fp.Material=material
  1078. fp:BreakJoints()
  1079. return fp
  1080. end
  1081.  
  1082. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1083. local mesh=it(Mesh)
  1084. mesh.Parent=part
  1085. if Mesh=="SpecialMesh" then
  1086. mesh.MeshType=meshtype
  1087. mesh.MeshId=meshid
  1088. end
  1089. mesh.Offset=offset
  1090. mesh.Scale=scale
  1091. return mesh
  1092. end
  1093.  
  1094. function weld(parent,part0,part1,c0,c1)
  1095. local weld=it("Weld")
  1096. weld.Parent=parent
  1097. weld.Part0=part0
  1098. weld.Part1=part1
  1099. weld.C0=c0
  1100. weld.C1=c1
  1101. return weld
  1102. end
  1103.  
  1104.  
  1105. local function CFrameFromTopBack(at, top, back)
  1106. local right = top:Cross(back)
  1107. return CFrame.new(at.x, at.y, at.z,
  1108. right.x, top.x, back.x,
  1109. right.y, top.y, back.y,
  1110. right.z, top.z, back.z)
  1111. end
  1112.  
  1113. function Triangle(a, b, c)
  1114. local edg1 = (c-a):Dot((b-a).unit)
  1115. local edg2 = (a-b):Dot((c-b).unit)
  1116. local edg3 = (b-c):Dot((a-c).unit)
  1117. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1118. a, b, c = a, b, c
  1119. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1120. a, b, c = b, c, a
  1121. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1122. a, b, c = c, a, b
  1123. else
  1124. assert(false, "unreachable")
  1125. end
  1126.  
  1127. local len1 = (c-a):Dot((b-a).unit)
  1128. local len2 = (b-a).magnitude - len1
  1129. local width = (a + (b-a).unit*len1 - c).magnitude
  1130.  
  1131. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1132.  
  1133. local list = {}
  1134.  
  1135. local TrailColor = ("Really black")
  1136.  
  1137. if len1 > 0.01 then
  1138. local w1 = Instance.new('WedgePart', m)
  1139. game:GetService("Debris"):AddItem(w1,5)
  1140. w1.Material = "SmoothPlastic"
  1141. w1.FormFactor = 'Custom'
  1142. w1.BrickColor = BrickColor.new(TrailColor)
  1143. w1.Transparency = 0
  1144. w1.Reflectance = 0
  1145. w1.Material = "SmoothPlastic"
  1146. w1.CanCollide = false
  1147. NoOutline(w1)
  1148. local sz = Vector3.new(0.2, width, len1)
  1149. w1.Size = sz
  1150. local sp = Instance.new("SpecialMesh",w1)
  1151. sp.MeshType = "Wedge"
  1152. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1153. w1:BreakJoints()
  1154. w1.Anchored = true
  1155. w1.Parent = workspace
  1156. w1.Transparency = 0.7
  1157. table.insert(Effects,{w1,"Disappear",.01})
  1158. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1159. table.insert(list,w1)
  1160. end
  1161.  
  1162. if len2 > 0.01 then
  1163. local w2 = Instance.new('WedgePart', m)
  1164. game:GetService("Debris"):AddItem(w2,5)
  1165. w2.Material = "SmoothPlastic"
  1166. w2.FormFactor = 'Custom'
  1167. w2.BrickColor = BrickColor.new(TrailColor)
  1168. w2.Transparency = 0
  1169. w2.Reflectance = 0
  1170. w2.Material = "SmoothPlastic"
  1171. w2.CanCollide = false
  1172. NoOutline(w2)
  1173. local sz = Vector3.new(0.2, width, len2)
  1174. w2.Size = sz
  1175. local sp = Instance.new("SpecialMesh",w2)
  1176. sp.MeshType = "Wedge"
  1177. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1178. w2:BreakJoints()
  1179. w2.Anchored = true
  1180. w2.Parent = workspace
  1181. w2.Transparency = 0.7
  1182. table.insert(Effects,{w2,"Disappear",.01})
  1183. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1184. table.insert(list,w2)
  1185. end
  1186. return unpack(list)
  1187. end
  1188.  
  1189.  
  1190. so = function(id,par,vol,pit)
  1191. coroutine.resume(coroutine.create(function()
  1192. local sou = Instance.new("Sound",par or workspace)
  1193. sou.Volume=vol
  1194. sou.Pitch=pit or 1
  1195. sou.SoundId=id
  1196. swait()
  1197. sou:play()
  1198. game:GetService("Debris"):AddItem(sou,6)
  1199. end))
  1200. end
  1201.  
  1202. function clerp(a,b,t)
  1203. local qa = {QuaternionFromCFrame(a)}
  1204. local qb = {QuaternionFromCFrame(b)}
  1205. local ax, ay, az = a.x, a.y, a.z
  1206. local bx, by, bz = b.x, b.y, b.z
  1207. local _t = 1-t
  1208. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1209. end
  1210.  
  1211. function QuaternionFromCFrame(cf)
  1212. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1213. local trace = m00 + m11 + m22
  1214. if trace > 0 then
  1215. local s = math.sqrt(1 + trace)
  1216. local recip = 0.5/s
  1217. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1218. else
  1219. local i = 0
  1220. if m11 > m00 then
  1221. i = 1
  1222. end
  1223. if m22 > (i == 0 and m00 or m11) then
  1224. i = 2
  1225. end
  1226. if i == 0 then
  1227. local s = math.sqrt(m00-m11-m22+1)
  1228. local recip = 0.5/s
  1229. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1230. elseif i == 1 then
  1231. local s = math.sqrt(m11-m22-m00+1)
  1232. local recip = 0.5/s
  1233. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1234. elseif i == 2 then
  1235. local s = math.sqrt(m22-m00-m11+1)
  1236. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1237. end
  1238. end
  1239. end
  1240.  
  1241. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1242. local xs, ys, zs = x + x, y + y, z + z
  1243. local wx, wy, wz = w*xs, w*ys, w*zs
  1244. local xx = x*xs
  1245. local xy = x*ys
  1246. local xz = x*zs
  1247. local yy = y*ys
  1248. local yz = y*zs
  1249. local zz = z*zs
  1250. 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))
  1251. end
  1252.  
  1253. function QuaternionSlerp(a, b, t)
  1254. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1255. local startInterp, finishInterp;
  1256. if cosTheta >= 0.0001 then
  1257. if (1 - cosTheta) > 0.0001 then
  1258. local theta = math.acos(cosTheta)
  1259. local invSinTheta = 1/math.sin(theta)
  1260. startInterp = math.sin((1-t)*theta)*invSinTheta
  1261. finishInterp = math.sin(t*theta)*invSinTheta
  1262. else
  1263. startInterp = 1-t
  1264. finishInterp = t
  1265. end
  1266. else
  1267. if (1+cosTheta) > 0.0001 then
  1268. local theta = math.acos(-cosTheta)
  1269. local invSinTheta = 1/math.sin(theta)
  1270. startInterp = math.sin((t-1)*theta)*invSinTheta
  1271. finishInterp = math.sin(t*theta)*invSinTheta
  1272. else
  1273. startInterp = t-1
  1274. finishInterp = t
  1275. end
  1276. end
  1277. 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
  1278. end
  1279.  
  1280. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1281.  
  1282.  
  1283. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1284. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1285. end
  1286.  
  1287. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1288. if hit.Parent==nil then
  1289. return
  1290. end
  1291. h=hit.Parent:FindFirstChild("Humanoid")
  1292. for _,v in pairs(hit.Parent:children()) do
  1293. if v:IsA("Humanoid") then
  1294. h=v
  1295. end
  1296. end
  1297. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1298. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1299. end
  1300. if hit.Parent.className=="Hat" then
  1301. hit=hit.Parent.Parent:findFirstChild("Head")
  1302. end
  1303. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1304. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1305. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1306. return
  1307. end]]
  1308. -- hs(hit,1.2)
  1309. c=Instance.new("ObjectValue")
  1310. c.Name="creator"
  1311. c.Value=game:service("Players").LocalPlayer
  1312. c.Parent=h
  1313. game:GetService("Debris"):AddItem(c,.5)
  1314. Damage=math.random(minim,maxim)
  1315. -- h:TakeDamage(Damage)
  1316. blocked=false
  1317. block=hit.Parent:findFirstChild("Block")
  1318. if block~=nil then
  1319. print(block.className)
  1320. if block.className=="NumberValue" then
  1321. if block.Value>0 then
  1322. blocked=true
  1323. if decreaseblock==nil then
  1324. block.Value=block.Value-1
  1325. end
  1326. end
  1327. end
  1328. if block.className=="IntValue" then
  1329. if block.Value>0 then
  1330. blocked=true
  1331. if decreaseblock~=nil then
  1332. block.Value=block.Value-1
  1333. end
  1334. end
  1335. end
  1336. end
  1337. if blocked==false then
  1338. -- h:TakeDamage(Damage)
  1339. h.Health=h.Health-Damage
  1340. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really black"))
  1341. else
  1342. h.Health=h.Health-(Damage/2)
  1343. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1344. end
  1345. if Type=="Knockdown" then
  1346. hum=hit.Parent.Humanoid
  1347. hum.PlatformStand=true
  1348. coroutine.resume(coroutine.create(function(HHumanoid)
  1349. swait(1)
  1350. HHumanoid.PlatformStand=false
  1351. end),hum)
  1352. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1353. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1354. local bodvol=Instance.new("BodyVelocity")
  1355. bodvol.velocity=angle*knockback
  1356. bodvol.P=5000
  1357. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1358. bodvol.Parent=hit
  1359. rl=Instance.new("BodyAngularVelocity")
  1360. rl.P=3000
  1361. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1362. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1363. rl.Parent=hit
  1364. game:GetService("Debris"):AddItem(bodvol,.5)
  1365. game:GetService("Debris"):AddItem(rl,.5)
  1366. elseif Type=="Normal" then
  1367. vp=Instance.new("BodyVelocity")
  1368. vp.P=500
  1369. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1370. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1371. if KnockbackType==1 then
  1372. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1373. elseif KnockbackType==2 then
  1374. vp.velocity=Property.CFrame.lookVector*knockback
  1375. end
  1376. if knockback>0 then
  1377. vp.Parent=hit.Parent.Torso
  1378. end
  1379. game:GetService("Debris"):AddItem(vp,.5)
  1380. elseif Type=="Up" then
  1381. local bodyVelocity=Instance.new("BodyVelocity")
  1382. bodyVelocity.velocity=vt(0,60,0)
  1383. bodyVelocity.P=5000
  1384. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1385. bodyVelocity.Parent=hit
  1386. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1387. rl=Instance.new("BodyAngularVelocity")
  1388. rl.P=3000
  1389. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1390. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1391. rl.Parent=hit
  1392. game:GetService("Debris"):AddItem(rl,.5)
  1393. elseif Type=="Snare" then
  1394. bp=Instance.new("BodyPosition")
  1395. bp.P=2000
  1396. bp.D=100
  1397. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1398. bp.position=hit.Parent.Torso.Position
  1399. bp.Parent=hit.Parent.Torso
  1400. game:GetService("Debris"):AddItem(bp,1)
  1401. elseif Type=="Target" then
  1402. if Targetting==false then
  1403. ZTarget=hit.Parent.Torso
  1404. coroutine.resume(coroutine.create(function(Part)
  1405. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1406. swait(5)
  1407. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1408. end),ZTarget)
  1409. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1410. targetgui=Instance.new("BillboardGui")
  1411. targetgui.Parent=ZTarget
  1412. targetgui.Size=UDim2.new(10,100,10,100)
  1413. targ=Instance.new("ImageLabel")
  1414. targ.Parent=targetgui
  1415. targ.BackgroundTransparency=1
  1416. targ.Image="rbxassetid://4834067"
  1417. targ.Size=UDim2.new(1,0,1,0)
  1418. cam.CameraType="Scriptable"
  1419. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1420. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1421. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1422. Targetting=true
  1423. RocketTarget=ZTarget
  1424. for i=1,Property do
  1425. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1426. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1427. swait()
  1428. end
  1429. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1430. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1431. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1432. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1433. end
  1434. Targetting=false
  1435. RocketTarget=nil
  1436. targetgui.Parent=nil
  1437. cam.CameraType="Custom"
  1438. end
  1439. end
  1440. debounce=Instance.new("BoolValue")
  1441. debounce.Name="DebounceHit"
  1442. debounce.Parent=hit.Parent
  1443. debounce.Value=true
  1444. game:GetService("Debris"):AddItem(debounce,Delay)
  1445. c=Instance.new("ObjectValue")
  1446. c.Name="creator"
  1447. c.Value=Player
  1448. c.Parent=h
  1449. game:GetService("Debris"):AddItem(c,.5)
  1450. CRIT=false
  1451. hitDeb=true
  1452. AttackPos=6
  1453. end
  1454. end
  1455.  
  1456. showDamage=function(Char,Dealt,du,Color)
  1457. m=Instance.new("Model")
  1458. m.Name=tostring(Dealt)
  1459. h=Instance.new("Humanoid")
  1460. h.Health=0
  1461. h.MaxHealth=0
  1462. h.Parent=m
  1463. c=Instance.new("Part")
  1464. c.Transparency=0
  1465. c.BrickColor=Color
  1466. c.Name="Head"
  1467. c.TopSurface=0
  1468. c.BottomSurface=0
  1469. c.formFactor="Plate"
  1470. c.Size=Vector3.new(1,.4,1)
  1471. ms=Instance.new("CylinderMesh")
  1472. ms.Scale=Vector3.new(.8,.8,.8)
  1473. if CRIT==true then
  1474. ms.Scale=Vector3.new(1,1.25,1)
  1475. end
  1476. ms.Parent=c
  1477. c.Reflectance=0
  1478. Instance.new("BodyGyro").Parent=c
  1479. c.Parent=m
  1480. if Char:findFirstChild("Head")~=nil then
  1481. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1482. elseif Char.Parent:findFirstChild("Head")~=nil then
  1483. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1484. end
  1485. f=Instance.new("BodyPosition")
  1486. f.P=2000
  1487. f.D=100
  1488. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1489. f.position=c.Position+Vector3.new(0,3,0)
  1490. f.Parent=c
  1491. game:GetService("Debris"):AddItem(m,.5+du)
  1492. c.CanCollide=false
  1493. m.Parent=workspace
  1494. c.CanCollide=false
  1495. end
  1496.  
  1497. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(1.00000012, 0.200000003, 0.600000024))
  1498. handleweld=weld(m,Character["Left Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00497817993, 1.09852839, -0.00498199463, -1.00772247e-025, 2.44568227e-013, 1, 2.26874075e-013, 0.999999881, 2.44568255e-013, -1, -2.26874048e-013, 1.00166402e-025))
  1499. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,1,"Really black","Hitbox",Vector3.new(0.400000036, 1.60000014, 0.600000024))
  1500. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.101213217, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
  1501. mesh("SpecialMesh",Hitbox,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
  1502. PBNeedle=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,0,"Really black","PBNeedle",Vector3.new(0.400000006, 0.400000006, 0.200000003))
  1503. PBNeedleweld=weld(m,handle,PBNeedle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.501211882, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
  1504. mesh("SpecialMesh",PBNeedle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
  1505. PBPart1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PBPart1",Vector3.new(0.800000012, 0.399999946, 0.600000024))
  1506. PBPart1weld=weld(m,handle,PBPart1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -3.69963789, -7.15255737e-006, 1, 5.05664954e-013, -1.30451205e-015, 4.97449304e-013, 1, -4.5374815e-013, 1.30451205e-015, -4.5374815e-013, 1))
  1507. mesh("CylinderMesh",PBPart1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1508. PBPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","PBPart2",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  1509. PBPart2weld=weld(m,handle,PBPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700050354, -7.00950623e-005, 3.49907684, -1, -1.60482286e-005, -1.59286301e-007, 1.58860502e-007, 2.65327035e-005, -1, 1.60482323e-005, -1, -2.65327017e-005))
  1510. mesh("SpecialMesh",PBPart2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  1511. PBPole=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PBPole",Vector3.new(0.400000006, 3.5999999, 0.600000024))
  1512. PBPoleweld=weld(m,handle,PBPole,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.69878912, 0, 1, 2.91981717e-013, 2.13405832e-025, 2.91981717e-013, 1, -2.97428748e-013, 2.22223004e-025, -2.40585329e-013, 1))
  1513. mesh("CylinderMesh",PBPole,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1514. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.600000024))
  1515. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09998429, 0, 1, 2.45206633e-013, 2.23613988e-025, 2.45205765e-013, 0.999996424, -2.26373662e-013, 2.25900477e-025, -2.26374475e-013, 1))
  1516. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 0.600000024))
  1517. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.325069427, -0.366897583, 0, 0.707222462, -0.706991136, 1.60148153e-013, 0.706991136, 0.707222462, -1.60200642e-013, 2.25900477e-025, -2.26374475e-013, 1))
  1518. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.200000003))
  1519. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09959769, -0.40000391, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  1520. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
  1521. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  1522. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699993134, 1.09672546e-005, 0.200021386, -0.999997139, -5.88281814e-008, 2.74286049e-005, -2.76967985e-005, -7.53964502e-010, -0.999998033, 5.88349671e-008, -0.999996901, -2.88369467e-011))
  1523. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 0.460000008, 1))
  1524. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1525. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 1.99907148, 0.400010586, 1, -2.3827215e-007, 4.58606735e-007, -2.38272577e-007, -1, -1.63917434e-007, 4.58606763e-007, 1.6391779e-007, -1))
  1526. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  1527. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.200000003))
  1528. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09944224, 0.399987221, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  1529. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
  1530. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1531. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, 1.99895847, -0.399979591, 1, -2.38257996e-007, 4.58606735e-007, -2.38258409e-007, -1, -1.63927155e-007, 4.58606763e-007, 1.63927496e-007, -1))
  1532. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  1533. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1534. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198883891, -0.399979591, 1, -2.38229688e-007, 4.58606735e-007, -2.38230101e-007, -1, -1.63946595e-007, 4.58606763e-007, 1.63946936e-007, -1))
  1535. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  1536. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1537. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198892951, 0.400010586, 1, -2.38208457e-007, 4.58606735e-007, -2.3820887e-007, -1, -1.63961175e-007, 4.58606763e-007, 1.63961516e-007, -1))
  1538. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  1539. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  1540. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -0.199686766, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  1541. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
  1542. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  1543. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.99940848, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  1544. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
  1545. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.799999952, 0.600000024))
  1546. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.09965634, -7.15255737e-006, 1, 2.53450039e-013, -1.30451205e-015, 2.36963227e-013, 1, -2.26374475e-013, 1.30451205e-015, -2.26374475e-013, 1))
  1547. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1548. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  1549. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700004578, -2.67028809e-005, 0.699332714, -1, -1.60535947e-005, -1.59286301e-007, 1.58860217e-007, 2.65416365e-005, -1, 1.60535983e-005, -1, -2.65416347e-005))
  1550. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  1551. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  1552. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700019836, -1.66893005e-005, 1.49919093, -1, -1.60516884e-005, -1.59286301e-007, 1.58860317e-007, 2.65384861e-005, -1, 1.6051692e-005, -1, -2.65384842e-005))
  1553. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  1554. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  1555. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700023651, -4.29153442e-005, 1.89885879, -1, -1.60487161e-005, -1.59286301e-007, 1.58860473e-007, 2.65335711e-005, -1, 1.60487198e-005, -1, -2.65335693e-005))
  1556. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  1557. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.400000006, 0.600000024))
  1558. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -2.09877872, 0, 1, 2.63532252e-013, 2.20870009e-025, 2.26881014e-013, 1, -2.40585329e-013, 2.29174052e-025, -2.1216362e-013, 1))
  1559. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1560. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  1561. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700031281, -3.81469727e-005, 2.29907608, -1, -1.60496675e-005, -1.59286301e-007, 1.58860416e-007, 2.65351464e-005, -1, 1.60497293e-005, -0.999996424, -2.65352392e-005))
  1562. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  1563. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  1564. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.900005341, -2.09888887, 0.0100111961, 1, 2.6353919e-013, 2.20464535e-025, 2.26873208e-013, 0.999996424, -2.69013165e-013, 2.35117084e-025, -1.83734972e-013, 1))
  1565. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000036, 0.400000006))
  1566. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.09933496, 0.00994968414, -1.1000061, -7.43166083e-007, 0.999996424, 2.72369789e-007, 1.49011719e-008, -2.72368425e-007, 1, 1, 7.431629e-007, -1.49009649e-008))
  1567. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1568. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  1569. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -0.404999018, -3.0040741e-005, 1, 1.05336483e-010, -5.11527077e-021, 1.05335976e-010, 1, -9.92765453e-011, -5.11568477e-021, -9.9276018e-011, 1))
  1570. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  1571. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -1.60497594, -3.0040741e-005, 1, 1.12981839e-010, -5.89094849e-021, -1.12491558e-010, 1, -1.06496659e-010, -6.08833769e-021, 1.0604289e-010, 1))
  1572. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  1573. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -1.60497594, -3.0040741e-005, 1, 1.13225755e-010, -5.9168516e-021, -1.12735474e-010, 1, -1.06724032e-010, -6.11401341e-021, 1.06270263e-010, 1))
  1574. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  1575. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, 0.40499115, 1, 7.82292217e-011, -2.80034948e-021, -7.77389403e-011, 1, -7.37259559e-011, -2.93059226e-021, 7.32721869e-011, 1))
  1576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  1577. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, -0.405024052, 1, 7.93888774e-011, -2.8813423e-021, -7.88986237e-011, 1, -7.48344303e-011, -3.02257208e-021, 7.43806614e-011, 1))
  1578. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  1579. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, -0.405024052, 1, 7.9389488e-011, -2.88135442e-021, 7.93889815e-011, 1, -7.48338752e-011, -2.88212869e-021, -7.48333479e-011, 1))
  1580. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  1581. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -0.404999018, -3.0040741e-005, 1, 3.79056439e-011, -6.35164548e-022, 3.79058382e-011, 1, -3.57250896e-011, -6.35662047e-022, -3.57250896e-011, 1))
  1582. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  1583. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, 0.40499115, 1, 7.82298046e-011, -2.80033434e-021, 7.8229298e-011, 1, -7.37254285e-011, -2.80000274e-021, -7.37249012e-011, 1))
  1584.  
  1585. function attackone()
  1586. attack = true
  1587. local con = LeftLeg.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end)
  1588. so("http://roblox.com/asset/?id=200632211",LeftLeg,1,1)
  1589. for i = 0,1,0.1 do
  1590. swait()
  1591. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-50),math.rad(0),math.rad(-90)),.3)
  1592. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(50),math.rad(0),math.rad(20)),.3)
  1593. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(40)), 0.3)
  1594. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
  1595. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1596. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1597. end
  1598. attack = false
  1599. con:disconnect()
  1600. end
  1601.  
  1602. function attacktwo()
  1603. attack = true
  1604. for i = 0,1,0.1 do
  1605. swait()
  1606. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
  1607. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  1608. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1609. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), 0.3)
  1610. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
  1611. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
  1612. end
  1613. so("http://roblox.com/asset/?id=200632211",LeftArm,1,.9)
  1614. local con = LeftArm.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end)
  1615. for i = 0,1,0.1 do
  1616. swait()
  1617. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  1618. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1619. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1620. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  1621. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
  1622. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
  1623. end
  1624. attack = false
  1625. con:disconnect()
  1626. end
  1627.  
  1628. --[[remiders: PBPART1,PBPART2,PBPOLE,PBNEEDLE,HITBOX ]]--
  1629.  
  1630. function attackthree()
  1631. attack = true
  1632. for i = 0,1,0.1 do
  1633. swait()
  1634. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1635. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1636. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
  1637. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1638. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0)),.3)
  1639. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0)),.3)
  1640. end
  1641. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end)
  1642. so("http://roblox.com/asset/?id=240429891",Hitbox,1,1)
  1643. so("http://roblox.com/asset/?id=240429289",Hitbox,1,1)
  1644. for i = 0,1,0.1 do
  1645. swait()
  1646. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1647. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1648. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1649. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.3)
  1650. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0)),.3)
  1651. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(0)),.3)
  1652. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1653. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1654. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1655. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1656. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1657. end
  1658. attack = false
  1659. con:disconnect()
  1660. end
  1661.  
  1662. function attackfour()
  1663. attack = true
  1664. for i = 0,1,0.1 do
  1665. swait()
  1666. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
  1667. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  1668. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3)
  1669. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-50)), 0.3)
  1670. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
  1671. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
  1672. end
  1673. so("http://roblox.com/asset/?id=240429891",Hitbox,1,.9)
  1674. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.8)
  1675. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end)
  1676. for i = 0,1,0.1 do
  1677. swait()
  1678. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  1679. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1680. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1681. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-80)), 0.3)
  1682. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
  1683. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
  1684. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1685. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1686. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1687. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1688. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1689. end
  1690. attack = false
  1691. con:disconnect()
  1692. end
  1693.  
  1694. mouse.Button1Down:connect(function()
  1695. if attack == false and
  1696. attacktype == 1 then
  1697. attacktype = 2
  1698. attackone()
  1699. elseif attack == false and
  1700. attacktype == 2 then
  1701. attacktype = 3
  1702. attacktwo()
  1703. elseif attack == false and
  1704. attacktype == 3 then
  1705. attacktype = 4
  1706. attackthree()
  1707. elseif attack == false and
  1708. attacktype == 4 then
  1709. attacktype = 1
  1710. attackfour()
  1711. end
  1712. end)
  1713.  
  1714. mouse.KeyDown:connect(function(k)
  1715. k=k:lower()
  1716.  
  1717. end)
  1718.  
  1719.  
  1720. local sine = 0
  1721. local change = 1
  1722. local val = 0
  1723.  
  1724. while true do
  1725. swait()
  1726. sine = sine + change
  1727. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1728. local velderp=RootPart.Velocity.y
  1729. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1730. if equipped==true or equipped==false then
  1731. if attack==false then
  1732. idle=idle+1
  1733. else
  1734. idle=0
  1735. end
  1736. if idle>=500 then
  1737. if attack==false then
  1738. --Sheath()
  1739. end
  1740. end
  1741. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1742. Anim="Jump"
  1743. if attack==false then
  1744. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1745. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1746. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1747. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1748. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  1749. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-15),math.rad(-90),math.rad(0)),.3)
  1750. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1751. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1752. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1753. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1754. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1755. end
  1756. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1757. Anim="Fall"
  1758. if attack==false then
  1759. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1760. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1761. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
  1762. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1763. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(20),math.rad(90),math.rad(0)),.3)
  1764. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
  1765. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1766. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1767. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1768. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1769. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1770. end
  1771. elseif torvel<1 and hitfloor~=nil then
  1772. Anim="Idle"
  1773. if attack==false then
  1774. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-20)),.3)
  1775. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1776. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1777. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1778. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  1779. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
  1780. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1781. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1782. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1783. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1784. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1785. end
  1786. elseif torvel>2 and hitfloor~=nil then
  1787. Anim="Walk"
  1788. if attack==false then
  1789. change=3
  1790. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1791. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1792. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(10)), 0.3)
  1793. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1794. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-15)),.3)
  1795. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-15)),.3)
  1796. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1797. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1798. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1799. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1800. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1801. end
  1802. end
  1803. end
  1804.  
  1805. Player=game:GetService("Players").LocalPlayer
  1806. Character=Player.Character
  1807. PlayerGui=Player.PlayerGui
  1808. Backpack=Player.Backpack
  1809. Torso=Character.Torso
  1810. Head=Character.Head
  1811. Humanoid=Character.Humanoid
  1812. m=Instance.new('Model',Character)
  1813. LeftArm=Character["Left Arm"]
  1814. LeftLeg=Character["Left Leg"]
  1815. RightArm=Character["Right Arm"]
  1816. RightLeg=Character["Right Leg"]
  1817. LS=Torso["Left Shoulder"]
  1818. LH=Torso["Left Hip"]
  1819. RS=Torso["Right Shoulder"]
  1820. RH=Torso["Right Hip"]
  1821. Face = Head.face
  1822. Neck=Torso.Neck
  1823. it=Instance.new
  1824. attacktype=1
  1825. vt=Vector3.new
  1826. cf=CFrame.new
  1827. euler=CFrame.fromEulerAnglesXYZ
  1828. angles=CFrame.Angles
  1829. cloaked=false
  1830. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1831. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1832. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1833. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1834. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1835. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1836. RootPart=Character.HumanoidRootPart
  1837. RootJoint=RootPart.RootJoint
  1838. RootCF=euler(-1.57,0,3.14)
  1839. attack = false
  1840. attackdebounce = false
  1841. deb=false
  1842. equipped=true
  1843. hand=false
  1844. MMouse=nil
  1845. combo=0
  1846. mana=0
  1847. trispeed=.2
  1848. attackmode='none'
  1849. local idle=0
  1850. local Anim="Idle"
  1851. local Effects={}
  1852. local gun=false
  1853. local shoot=false
  1854. player=nil
  1855. mana=0
  1856.  
  1857. mouse=Player:GetMouse()
  1858. --save shoulders
  1859. RSH, LSH=nil, nil
  1860. --welds
  1861. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1862. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1863. LH=Torso["Left Hip"]
  1864. RH=Torso["Right Hip"]
  1865. TorsoColor=Torso.BrickColor
  1866. function NoOutline(Part)
  1867. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1868. end
  1869. player=Player
  1870. ch=Character
  1871. RSH=ch.Torso["Right Shoulder"]
  1872. LSH=ch.Torso["Left Shoulder"]
  1873. --
  1874. RSH.Parent=nil
  1875. LSH.Parent=nil
  1876. --
  1877. RW.Name="Right Shoulder"
  1878. RW.Part0=ch.Torso
  1879. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1880. RW.C1=cf(0, 0.5, 0)
  1881. RW.Part1=ch["Right Arm"]
  1882. RW.Parent=ch.Torso
  1883. --
  1884. LW.Name="Left Shoulder"
  1885. LW.Part0=ch.Torso
  1886. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1887. LW.C1=cf(0, 0.5, 0)
  1888. LW.Part1=ch["Left Arm"]
  1889. LW.Parent=ch.Torso
  1890.  
  1891. Player=game:GetService('Players').LocalPlayer
  1892. Character=Player.Character
  1893. Mouse=Player:GetMouse()
  1894. m=Instance.new('Model',Character)
  1895.  
  1896.  
  1897. local function weldBetween(a, b)
  1898. local weldd = Instance.new("ManualWeld")
  1899. weldd.Part0 = a
  1900. weldd.Part1 = b
  1901. weldd.C0 = CFrame.new()
  1902. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1903. weldd.Parent = a
  1904. return weldd
  1905. end
  1906.  
  1907. function swait(num)
  1908. if num==0 or num==nil then
  1909. game:service'RunService'.Heartbeat:wait(0)
  1910. else
  1911. for i=0,num do
  1912. game:service'RunService'.Heartbeat:wait(0)
  1913. end
  1914. end
  1915. end
  1916.  
  1917. function nooutline(part)
  1918. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1919. end
  1920.  
  1921. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1922. local fp=it("Part")
  1923. fp.formFactor=formfactor
  1924. fp.Parent=parent
  1925. fp.Reflectance=reflectance
  1926. fp.Transparency=transparency
  1927. fp.CanCollide=false
  1928. fp.Locked=true
  1929. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1930. fp.Name=name
  1931. fp.Size=size
  1932. fp.Position=Character.Torso.Position
  1933. nooutline(fp)
  1934. fp.Material=material
  1935. fp:BreakJoints()
  1936. return fp
  1937. end
  1938.  
  1939. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1940. local mesh=it(Mesh)
  1941. mesh.Parent=part
  1942. if Mesh=="SpecialMesh" then
  1943. mesh.MeshType=meshtype
  1944. mesh.MeshId=meshid
  1945. end
  1946. mesh.Offset=offset
  1947. mesh.Scale=scale
  1948. return mesh
  1949. end
  1950.  
  1951. function weld(parent,part0,part1,c0,c1)
  1952. local weld=it("Weld")
  1953. weld.Parent=parent
  1954. weld.Part0=part0
  1955. weld.Part1=part1
  1956. weld.C0=c0
  1957. weld.C1=c1
  1958. return weld
  1959. end
  1960.  
  1961.  
  1962. local function CFrameFromTopBack(at, top, back)
  1963. local right = top:Cross(back)
  1964. return CFrame.new(at.x, at.y, at.z,
  1965. right.x, top.x, back.x,
  1966. right.y, top.y, back.y,
  1967. right.z, top.z, back.z)
  1968. end
  1969.  
  1970. function Triangle(a, b, c)
  1971. local edg1 = (c-a):Dot((b-a).unit)
  1972. local edg2 = (a-b):Dot((c-b).unit)
  1973. local edg3 = (b-c):Dot((a-c).unit)
  1974. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1975. a, b, c = a, b, c
  1976. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1977. a, b, c = b, c, a
  1978. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1979. a, b, c = c, a, b
  1980. else
  1981. assert(false, "unreachable")
  1982. end
  1983.  
  1984. local len1 = (c-a):Dot((b-a).unit)
  1985. local len2 = (b-a).magnitude - len1
  1986. local width = (a + (b-a).unit*len1 - c).magnitude
  1987.  
  1988. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1989.  
  1990. local list = {}
  1991.  
  1992. local TrailColor = ("Really red")
  1993.  
  1994. if len1 > 0.01 then
  1995. local w1 = Instance.new('WedgePart', m)
  1996. game:GetService("Debris"):AddItem(w1,5)
  1997. w1.Material = "SmoothPlastic"
  1998. w1.FormFactor = 'Custom'
  1999. w1.BrickColor = BrickColor.new(TrailColor)
  2000. w1.Transparency = 0
  2001. w1.Reflectance = 0
  2002. w1.Material = "SmoothPlastic"
  2003. w1.CanCollide = false
  2004. NoOutline(w1)
  2005. local sz = Vector3.new(0.2, width, len1)
  2006. w1.Size = sz
  2007. local sp = Instance.new("SpecialMesh",w1)
  2008. sp.MeshType = "Wedge"
  2009. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2010. w1:BreakJoints()
  2011. w1.Anchored = true
  2012. w1.Parent = workspace
  2013. w1.Transparency = 0.7
  2014. table.insert(Effects,{w1,"Disappear",.01})
  2015. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2016. table.insert(list,w1)
  2017. end
  2018.  
  2019. if len2 > 0.01 then
  2020. local w2 = Instance.new('WedgePart', m)
  2021. game:GetService("Debris"):AddItem(w2,5)
  2022. w2.Material = "SmoothPlastic"
  2023. w2.FormFactor = 'Custom'
  2024. w2.BrickColor = BrickColor.new(TrailColor)
  2025. w2.Transparency = 0
  2026. w2.Reflectance = 0
  2027. w2.Material = "SmoothPlastic"
  2028. w2.CanCollide = false
  2029. NoOutline(w2)
  2030. local sz = Vector3.new(0.2, width, len2)
  2031. w2.Size = sz
  2032. local sp = Instance.new("SpecialMesh",w2)
  2033. sp.MeshType = "Wedge"
  2034. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2035. w2:BreakJoints()
  2036. w2.Anchored = true
  2037. w2.Parent = workspace
  2038. w2.Transparency = 0.7
  2039. table.insert(Effects,{w2,"Disappear",.01})
  2040. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2041. table.insert(list,w2)
  2042. end
  2043. return unpack(list)
  2044. end
  2045.  
  2046.  
  2047. so = function(id,par,vol,pit)
  2048. coroutine.resume(coroutine.create(function()
  2049. local sou = Instance.new("Sound",par or workspace)
  2050. sou.Volume=vol
  2051. sou.Pitch=pit or 1
  2052. sou.SoundId=id
  2053. swait()
  2054. sou:play()
  2055. game:GetService("Debris"):AddItem(sou,6)
  2056. end))
  2057. end
  2058.  
  2059. function clerp(a,b,t)
  2060. local qa = {QuaternionFromCFrame(a)}
  2061. local qb = {QuaternionFromCFrame(b)}
  2062. local ax, ay, az = a.x, a.y, a.z
  2063. local bx, by, bz = b.x, b.y, b.z
  2064. local _t = 1-t
  2065. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2066. end
  2067.  
  2068. function QuaternionFromCFrame(cf)
  2069. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2070. local trace = m00 + m11 + m22
  2071. if trace > 0 then
  2072. local s = math.sqrt(1 + trace)
  2073. local recip = 0.5/s
  2074. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2075. else
  2076. local i = 0
  2077. if m11 > m00 then
  2078. i = 1
  2079. end
  2080. if m22 > (i == 0 and m00 or m11) then
  2081. i = 2
  2082. end
  2083. if i == 0 then
  2084. local s = math.sqrt(m00-m11-m22+1)
  2085. local recip = 0.5/s
  2086. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2087. elseif i == 1 then
  2088. local s = math.sqrt(m11-m22-m00+1)
  2089. local recip = 0.5/s
  2090. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2091. elseif i == 2 then
  2092. local s = math.sqrt(m22-m00-m11+1)
  2093. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2094. end
  2095. end
  2096. end
  2097.  
  2098. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2099. local xs, ys, zs = x + x, y + y, z + z
  2100. local wx, wy, wz = w*xs, w*ys, w*zs
  2101. local xx = x*xs
  2102. local xy = x*ys
  2103. local xz = x*zs
  2104. local yy = y*ys
  2105. local yz = y*zs
  2106. local zz = z*zs
  2107. 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))
  2108. end
  2109.  
  2110. function QuaternionSlerp(a, b, t)
  2111. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2112. local startInterp, finishInterp;
  2113. if cosTheta >= 0.0001 then
  2114. if (1 - cosTheta) > 0.0001 then
  2115. local theta = math.acos(cosTheta)
  2116. local invSinTheta = 1/math.sin(theta)
  2117. startInterp = math.sin((1-t)*theta)*invSinTheta
  2118. finishInterp = math.sin(t*theta)*invSinTheta
  2119. else
  2120. startInterp = 1-t
  2121. finishInterp = t
  2122. end
  2123. else
  2124. if (1+cosTheta) > 0.0001 then
  2125. local theta = math.acos(-cosTheta)
  2126. local invSinTheta = 1/math.sin(theta)
  2127. startInterp = math.sin((t-1)*theta)*invSinTheta
  2128. finishInterp = math.sin(t*theta)*invSinTheta
  2129. else
  2130. startInterp = t-1
  2131. finishInterp = t
  2132. end
  2133. end
  2134. 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
  2135. end
  2136.  
  2137. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2138.  
  2139.  
  2140. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2141. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2142. end
  2143.  
  2144. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2145. if hit.Parent==nil then
  2146. return
  2147. end
  2148. h=hit.Parent:FindFirstChild("Humanoid")
  2149. for _,v in pairs(hit.Parent:children()) do
  2150. if v:IsA("Humanoid") then
  2151. h=v
  2152. end
  2153. end
  2154. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2155. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2156. end
  2157. if hit.Parent.className=="Hat" then
  2158. hit=hit.Parent.Parent:findFirstChild("Head")
  2159. end
  2160. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2161. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2162. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2163. return
  2164. end]]
  2165. -- hs(hit,1.2)
  2166. c=Instance.new("ObjectValue")
  2167. c.Name="creator"
  2168. c.Value=game:service("Players").LocalPlayer
  2169. c.Parent=h
  2170. game:GetService("Debris"):AddItem(c,.5)
  2171. Damage=math.random(minim,maxim)
  2172. -- h:TakeDamage(Damage)
  2173. blocked=false
  2174. block=hit.Parent:findFirstChild("Block")
  2175. if block~=nil then
  2176. print(block.className)
  2177. if block.className=="NumberValue" then
  2178. if block.Value>0 then
  2179. blocked=true
  2180. if decreaseblock==nil then
  2181. block.Value=block.Value-1
  2182. end
  2183. end
  2184. end
  2185. if block.className=="IntValue" then
  2186. if block.Value>0 then
  2187. blocked=true
  2188. if decreaseblock~=nil then
  2189. block.Value=block.Value-1
  2190. end
  2191. end
  2192. end
  2193. end
  2194. if blocked==false then
  2195. -- h:TakeDamage(Damage)
  2196. h.Health=h.Health-Damage
  2197. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really black"))
  2198. else
  2199. h.Health=h.Health-(Damage/2)
  2200. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  2201. end
  2202. if Type=="Knockdown" then
  2203. hum=hit.Parent.Humanoid
  2204. hum.PlatformStand=true
  2205. coroutine.resume(coroutine.create(function(HHumanoid)
  2206. swait(1)
  2207. HHumanoid.PlatformStand=false
  2208. end),hum)
  2209. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2210. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2211. local bodvol=Instance.new("BodyVelocity")
  2212. bodvol.velocity=angle*knockback
  2213. bodvol.P=5000
  2214. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2215. bodvol.Parent=hit
  2216. rl=Instance.new("BodyAngularVelocity")
  2217. rl.P=3000
  2218. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2219. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2220. rl.Parent=hit
  2221. game:GetService("Debris"):AddItem(bodvol,.5)
  2222. game:GetService("Debris"):AddItem(rl,.5)
  2223. elseif Type=="Normal" then
  2224. vp=Instance.new("BodyVelocity")
  2225. vp.P=500
  2226. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2227. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2228. if KnockbackType==1 then
  2229. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2230. elseif KnockbackType==2 then
  2231. vp.velocity=Property.CFrame.lookVector*knockback
  2232. end
  2233. if knockback>0 then
  2234. vp.Parent=hit.Parent.Torso
  2235. end
  2236. game:GetService("Debris"):AddItem(vp,.5)
  2237. elseif Type=="Up" then
  2238. local bodyVelocity=Instance.new("BodyVelocity")
  2239. bodyVelocity.velocity=vt(0,60,0)
  2240. bodyVelocity.P=5000
  2241. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2242. bodyVelocity.Parent=hit
  2243. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2244. rl=Instance.new("BodyAngularVelocity")
  2245. rl.P=3000
  2246. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2247. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  2248. rl.Parent=hit
  2249. game:GetService("Debris"):AddItem(rl,.5)
  2250. elseif Type=="Snare" then
  2251. bp=Instance.new("BodyPosition")
  2252. bp.P=2000
  2253. bp.D=100
  2254. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2255. bp.position=hit.Parent.Torso.Position
  2256. bp.Parent=hit.Parent.Torso
  2257. game:GetService("Debris"):AddItem(bp,1)
  2258. elseif Type=="Target" then
  2259. if Targetting==false then
  2260. ZTarget=hit.Parent.Torso
  2261. coroutine.resume(coroutine.create(function(Part)
  2262. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2263. swait(5)
  2264. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2265. end),ZTarget)
  2266. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  2267. targetgui=Instance.new("BillboardGui")
  2268. targetgui.Parent=ZTarget
  2269. targetgui.Size=UDim2.new(10,100,10,100)
  2270. targ=Instance.new("ImageLabel")
  2271. targ.Parent=targetgui
  2272. targ.BackgroundTransparency=1
  2273. targ.Image="rbxassetid://4834067"
  2274. targ.Size=UDim2.new(1,0,1,0)
  2275. cam.CameraType="Scriptable"
  2276. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2277. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2278. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2279. Targetting=true
  2280. RocketTarget=ZTarget
  2281. for i=1,Property do
  2282. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  2283. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  2284. swait()
  2285. end
  2286. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  2287. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2288. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2289. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  2290. end
  2291. Targetting=false
  2292. RocketTarget=nil
  2293. targetgui.Parent=nil
  2294. cam.CameraType="Custom"
  2295. end
  2296. end
  2297. debounce=Instance.new("BoolValue")
  2298. debounce.Name="DebounceHit"
  2299. debounce.Parent=hit.Parent
  2300. debounce.Value=true
  2301. game:GetService("Debris"):AddItem(debounce,Delay)
  2302. c=Instance.new("ObjectValue")
  2303. c.Name="creator"
  2304. c.Value=Player
  2305. c.Parent=h
  2306. game:GetService("Debris"):AddItem(c,.5)
  2307. CRIT=false
  2308. hitDeb=true
  2309. AttackPos=6
  2310. end
  2311. end
  2312.  
  2313. showDamage=function(Char,Dealt,du,Color)
  2314. m=Instance.new("Model")
  2315. m.Name=tostring(Dealt)
  2316. h=Instance.new("Humanoid")
  2317. h.Health=0
  2318. h.MaxHealth=0
  2319. h.Parent=m
  2320. c=Instance.new("Part")
  2321. c.Transparency=0
  2322. c.BrickColor=Color
  2323. c.Name="Head"
  2324. c.TopSurface=0
  2325. c.BottomSurface=0
  2326. c.formFactor="Plate"
  2327. c.Size=Vector3.new(1,.4,1)
  2328. ms=Instance.new("CylinderMesh")
  2329. ms.Scale=Vector3.new(.8,.8,.8)
  2330. if CRIT==true then
  2331. ms.Scale=Vector3.new(1,1.25,1)
  2332. end
  2333. ms.Parent=c
  2334. c.Reflectance=0
  2335. Instance.new("BodyGyro").Parent=c
  2336. c.Parent=m
  2337. if Char:findFirstChild("Head")~=nil then
  2338. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2339. elseif Char.Parent:findFirstChild("Head")~=nil then
  2340. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2341. end
  2342. f=Instance.new("BodyPosition")
  2343. f.P=2000
  2344. f.D=100
  2345. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2346. f.position=c.Position+Vector3.new(0,3,0)
  2347. f.Parent=c
  2348. game:GetService("Debris"):AddItem(m,.5+du)
  2349. c.CanCollide=false
  2350. m.Parent=workspace
  2351. c.CanCollide=false
  2352. end
  2353.  
  2354. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(1.00000012, 0.200000003, 0.600000024))
  2355. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00497817993, 1.09852839, -0.00498199463, -1.00772247e-025, 2.44568227e-013, 1, 2.26874075e-013, 0.999999881, 2.44568255e-013, -1, -2.26874048e-013, 1.00166402e-025))
  2356. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,1,"Really black","Hitbox",Vector3.new(0.400000036, 1.60000014, 0.600000024))
  2357. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.101213217, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
  2358. mesh("SpecialMesh",Hitbox,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
  2359. PBNeedle=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,0,"Really black","PBNeedle",Vector3.new(0.400000006, 0.400000006, 0.200000003))
  2360. PBNeedleweld=weld(m,handle,PBNeedle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.501211882, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
  2361. mesh("SpecialMesh",PBNeedle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
  2362. PBPart1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PBPart1",Vector3.new(0.800000012, 0.399999946, 0.600000024))
  2363. PBPart1weld=weld(m,handle,PBPart1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -3.69963789, -7.15255737e-006, 1, 5.05664954e-013, -1.30451205e-015, 4.97449304e-013, 1, -4.5374815e-013, 1.30451205e-015, -4.5374815e-013, 1))
  2364. mesh("CylinderMesh",PBPart1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2365. PBPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","PBPart2",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  2366. PBPart2weld=weld(m,handle,PBPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700050354, -7.00950623e-005, 3.49907684, -1, -1.60482286e-005, -1.59286301e-007, 1.58860502e-007, 2.65327035e-005, -1, 1.60482323e-005, -1, -2.65327017e-005))
  2367. mesh("SpecialMesh",PBPart2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  2368. PBPole=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PBPole",Vector3.new(0.400000006, 3.5999999, 0.600000024))
  2369. PBPoleweld=weld(m,handle,PBPole,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.69878912, 0, 1, 2.91981717e-013, 2.13405832e-025, 2.91981717e-013, 1, -2.97428748e-013, 2.22223004e-025, -2.40585329e-013, 1))
  2370. mesh("CylinderMesh",PBPole,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2371. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.600000024))
  2372. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09998429, 0, 1, 2.45206633e-013, 2.23613988e-025, 2.45205765e-013, 0.999996424, -2.26373662e-013, 2.25900477e-025, -2.26374475e-013, 1))
  2373. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 0.600000024))
  2374. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.325069427, -0.366897583, 0, 0.707222462, -0.706991136, 1.60148153e-013, 0.706991136, 0.707222462, -1.60200642e-013, 2.25900477e-025, -2.26374475e-013, 1))
  2375. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.200000003))
  2376. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09959769, -0.40000391, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  2377. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
  2378. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  2379. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699993134, 1.09672546e-005, 0.200021386, -0.999997139, -5.88281814e-008, 2.74286049e-005, -2.76967985e-005, -7.53964502e-010, -0.999998033, 5.88349671e-008, -0.999996901, -2.88369467e-011))
  2380. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 0.460000008, 1))
  2381. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  2382. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 1.99907148, 0.400010586, 1, -2.3827215e-007, 4.58606735e-007, -2.38272577e-007, -1, -1.63917434e-007, 4.58606763e-007, 1.6391779e-007, -1))
  2383. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  2384. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.200000003))
  2385. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09944224, 0.399987221, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  2386. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
  2387. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  2388. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, 1.99895847, -0.399979591, 1, -2.38257996e-007, 4.58606735e-007, -2.38258409e-007, -1, -1.63927155e-007, 4.58606763e-007, 1.63927496e-007, -1))
  2389. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  2390. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  2391. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198883891, -0.399979591, 1, -2.38229688e-007, 4.58606735e-007, -2.38230101e-007, -1, -1.63946595e-007, 4.58606763e-007, 1.63946936e-007, -1))
  2392. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  2393. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  2394. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198892951, 0.400010586, 1, -2.38208457e-007, 4.58606735e-007, -2.3820887e-007, -1, -1.63961175e-007, 4.58606763e-007, 1.63961516e-007, -1))
  2395. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  2396. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  2397. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -0.199686766, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  2398. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
  2399. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  2400. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.99940848, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  2401. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
  2402. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.799999952, 0.600000024))
  2403. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.09965634, -7.15255737e-006, 1, 2.53450039e-013, -1.30451205e-015, 2.36963227e-013, 1, -2.26374475e-013, 1.30451205e-015, -2.26374475e-013, 1))
  2404. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2405. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  2406. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700004578, -2.67028809e-005, 0.699332714, -1, -1.60535947e-005, -1.59286301e-007, 1.58860217e-007, 2.65416365e-005, -1, 1.60535983e-005, -1, -2.65416347e-005))
  2407. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  2408. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  2409. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700019836, -1.66893005e-005, 1.49919093, -1, -1.60516884e-005, -1.59286301e-007, 1.58860317e-007, 2.65384861e-005, -1, 1.6051692e-005, -1, -2.65384842e-005))
  2410. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  2411. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  2412. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700023651, -4.29153442e-005, 1.89885879, -1, -1.60487161e-005, -1.59286301e-007, 1.58860473e-007, 2.65335711e-005, -1, 1.60487198e-005, -1, -2.65335693e-005))
  2413. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  2414. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.400000006, 0.600000024))
  2415. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -2.09877872, 0, 1, 2.63532252e-013, 2.20870009e-025, 2.26881014e-013, 1, -2.40585329e-013, 2.29174052e-025, -2.1216362e-013, 1))
  2416. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2417. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  2418. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700031281, -3.81469727e-005, 2.29907608, -1, -1.60496675e-005, -1.59286301e-007, 1.58860416e-007, 2.65351464e-005, -1, 1.60497293e-005, -0.999996424, -2.65352392e-005))
  2419. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  2420. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  2421. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.900005341, -2.09888887, 0.0100111961, 1, 2.6353919e-013, 2.20464535e-025, 2.26873208e-013, 0.999996424, -2.69013165e-013, 2.35117084e-025, -1.83734972e-013, 1))
  2422. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000036, 0.400000006))
  2423. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.09933496, 0.00994968414, -1.1000061, -7.43166083e-007, 0.999996424, 2.72369789e-007, 1.49011719e-008, -2.72368425e-007, 1, 1, 7.431629e-007, -1.49009649e-008))
  2424. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2425. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  2426. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -0.404999018, -3.0040741e-005, 1, 1.05336483e-010, -5.11527077e-021, 1.05335976e-010, 1, -9.92765453e-011, -5.11568477e-021, -9.9276018e-011, 1))
  2427. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  2428. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -1.60497594, -3.0040741e-005, 1, 1.12981839e-010, -5.89094849e-021, -1.12491558e-010, 1, -1.06496659e-010, -6.08833769e-021, 1.0604289e-010, 1))
  2429. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  2430. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -1.60497594, -3.0040741e-005, 1, 1.13225755e-010, -5.9168516e-021, -1.12735474e-010, 1, -1.06724032e-010, -6.11401341e-021, 1.06270263e-010, 1))
  2431. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  2432. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, 0.40499115, 1, 7.82292217e-011, -2.80034948e-021, -7.77389403e-011, 1, -7.37259559e-011, -2.93059226e-021, 7.32721869e-011, 1))
  2433. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  2434. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, -0.405024052, 1, 7.93888774e-011, -2.8813423e-021, -7.88986237e-011, 1, -7.48344303e-011, -3.02257208e-021, 7.43806614e-011, 1))
  2435. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  2436. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, -0.405024052, 1, 7.9389488e-011, -2.88135442e-021, 7.93889815e-011, 1, -7.48338752e-011, -2.88212869e-021, -7.48333479e-011, 1))
  2437. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  2438. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -0.404999018, -3.0040741e-005, 1, 3.79056439e-011, -6.35164548e-022, 3.79058382e-011, 1, -3.57250896e-011, -6.35662047e-022, -3.57250896e-011, 1))
  2439. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  2440. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, 0.40499115, 1, 7.82298046e-011, -2.80033434e-021, 7.8229298e-011, 1, -7.37254285e-011, -2.80000274e-021, -7.37249012e-011, 1))
  2441.  
  2442. function attackone()
  2443. attack = true
  2444. local con = LeftLeg.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end)
  2445. so("http://roblox.com/asset/?id=200632211",LeftLeg,1,1)
  2446. for i = 0,1,0.1 do
  2447. swait()
  2448. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-50),math.rad(0),math.rad(-90)),.3)
  2449. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(50),math.rad(0),math.rad(20)),.3)
  2450. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(40)), 0.3)
  2451. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
  2452. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  2453. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  2454. end
  2455. attack = false
  2456. con:disconnect()
  2457. end
  2458.  
  2459. function attacktwo()
  2460. attack = true
  2461. for i = 0,1,0.1 do
  2462. swait()
  2463. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
  2464. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  2465. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  2466. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), 0.3)
  2467. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
  2468. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
  2469. end
  2470. so("http://roblox.com/asset/?id=200632211",LeftArm,1,.9)
  2471. local con = LeftArm.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end)
  2472. for i = 0,1,0.1 do
  2473. swait()
  2474. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  2475. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  2476. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  2477. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  2478. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
  2479. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
  2480. end
  2481. attack = false
  2482. con:disconnect()
  2483. end
  2484.  
  2485. --[[remiders: PBPART1,PBPART2,PBPOLE,PBNEEDLE,HITBOX ]]--
  2486.  
  2487. function attackthree()
  2488. attack = true
  2489. for i = 0,1,0.1 do
  2490. swait()
  2491. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2492. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2493. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
  2494. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  2495. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0)),.3)
  2496. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0)),.3)
  2497. end
  2498. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end)
  2499. so("http://roblox.com/asset/?id=240429891",Hitbox,1,1)
  2500. so("http://roblox.com/asset/?id=240429289",Hitbox,1,1)
  2501. for i = 0,1,0.1 do
  2502. swait()
  2503. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  2504. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  2505. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  2506. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.3)
  2507. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0)),.3)
  2508. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(0)),.3)
  2509. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2510. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2511. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2512. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2513. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2514. end
  2515. attack = false
  2516. con:disconnect()
  2517. end
  2518.  
  2519. function attackfour()
  2520. attack = true
  2521. for i = 0,1,0.1 do
  2522. swait()
  2523. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
  2524. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  2525. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3)
  2526. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-50)), 0.3)
  2527. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
  2528. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
  2529. end
  2530. so("http://roblox.com/asset/?id=240429891",Hitbox,1,.9)
  2531. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.8)
  2532. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end)
  2533. for i = 0,1,0.1 do
  2534. swait()
  2535. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  2536. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  2537. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  2538. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-80)), 0.3)
  2539. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
  2540. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
  2541. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2542. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2543. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2544. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2545. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2546. end
  2547. attack = false
  2548. con:disconnect()
  2549. end
  2550.  
  2551. mouse.Button1Down:connect(function()
  2552. if attack == false and
  2553. attacktype == 1 then
  2554. attacktype = 2
  2555. attackone()
  2556. elseif attack == false and
  2557. attacktype == 2 then
  2558. attacktype = 3
  2559. attacktwo()
  2560. elseif attack == false and
  2561. attacktype == 3 then
  2562. attacktype = 4
  2563. attackthree()
  2564. elseif attack == false and
  2565. attacktype == 4 then
  2566. attacktype = 1
  2567. attackfour()
  2568. end
  2569. end)
  2570.  
  2571. mouse.KeyDown:connect(function(k)
  2572. k=k:lower()
  2573.  
  2574. end)
  2575.  
  2576.  
  2577. local sine = 0
  2578. local change = 1
  2579. local val = 0
  2580.  
  2581. while true do
  2582. swait()
  2583. sine = sine + change
  2584. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2585. local velderp=RootPart.Velocity.y
  2586. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2587. if equipped==true or equipped==false then
  2588. if attack==false then
  2589. idle=idle+1
  2590. else
  2591. idle=0
  2592. end
  2593. if idle>=500 then
  2594. if attack==false then
  2595. --Sheath()
  2596. end
  2597. end
  2598. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2599. Anim="Jump"
  2600. if attack==false then
  2601. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2602. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2603. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  2604. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2605. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  2606. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-15),math.rad(-90),math.rad(0)),.3)
  2607. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2608. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2609. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2610. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2611. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2612. end
  2613. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2614. Anim="Fall"
  2615. if attack==false then
  2616. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2617. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  2618. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
  2619. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  2620. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(20),math.rad(90),math.rad(0)),.3)
  2621. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
  2622. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2623. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2624. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2625. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2626. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2627. end
  2628. elseif torvel<1 and hitfloor~=nil then
  2629. Anim="Idle"
  2630. if attack==false then
  2631. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-20)),.3)
  2632. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2633. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  2634. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  2635. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  2636. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
  2637. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2638. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2639. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2640. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2641. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2642. end
  2643. elseif torvel>2 and hitfloor~=nil then
  2644. Anim="Walk"
  2645. if attack==false then
  2646. change=3
  2647. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2648. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2649. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(10)), 0.3)
  2650. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2651. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-15)),.3)
  2652. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-15)),.3)
  2653. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2654. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2655. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2656. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2657. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2658. end
  2659. end
  2660. end
  2661. if #Effects>0 then
  2662. --table.insert(Effects,{prt,"Block1",delay})
  2663. for e=1,#Effects do
  2664. if Effects[e]~=nil then
  2665. --for j=1,#Effects[e] do
  2666. local Thing=Effects[e]
  2667. if Thing~=nil then
  2668. local Part=Thing[1]
  2669. local Mode=Thing[2]
  2670. local Delay=Thing[3]
  2671. local IncX=Thing[4]
  2672. local IncY=Thing[5]
  2673. local IncZ=Thing[6]
  2674. if Thing[1].Transparency<=1 then
  2675. if Thing[2]=="Block1" then
  2676. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2677. Mesh=Thing[1].Mesh
  2678. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2679. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2680. elseif Thing[2]=="Cylinder" then
  2681. Mesh=Thing[1].Mesh
  2682. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2683. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2684. elseif Thing[2]=="Blood" then
  2685. Mesh=Thing[7]
  2686. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2687. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2688. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2689. elseif Thing[2]=="Elec" then
  2690. Mesh=Thing[1].Mesh
  2691. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2692. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2693. elseif Thing[2]=="Disappear" then
  2694. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2695. end
  2696. else
  2697. Part.Parent=nil
  2698. table.remove(Effects,e)
  2699. end
  2700. end
  2701. --end
  2702. end
  2703. end
  2704. end
  2705. end
  2706.  
  2707.  
  2708.  
  2709. if #Effects>0 then
  2710. --table.insert(Effects,{prt,"Block1",delay})
  2711. for e=1,#Effects do
  2712. if Effects[e]~=nil then
  2713. --for j=1,#Effects[e] do
  2714. local Thing=Effects[e]
  2715. if Thing~=nil then
  2716. local Part=Thing[1]
  2717. local Mode=Thing[2]
  2718. local Delay=Thing[3]
  2719. local IncX=Thing[4]
  2720. local IncY=Thing[5]
  2721. local IncZ=Thing[6]
  2722. if Thing[1].Transparency<=1 then
  2723. if Thing[2]=="Block1" then
  2724. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2725. Mesh=Thing[1].Mesh
  2726. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2727. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2728. elseif Thing[2]=="Cylinder" then
  2729. Mesh=Thing[1].Mesh
  2730. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2731. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2732. elseif Thing[2]=="Blood" then
  2733. Mesh=Thing[7]
  2734. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2735. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2736. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2737. elseif Thing[2]=="Elec" then
  2738. Mesh=Thing[1].Mesh
  2739. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2740. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2741. elseif Thing[2]=="Disappear" then
  2742. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2743. end
  2744. else
  2745. Part.Parent=nil
  2746. table.remove(Effects,e)
  2747. end
  2748. end
  2749. --end
  2750. end
  2751. end
  2752. end
  2753. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement