IINaoki

Untitled

Feb 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.12 KB | None | 0 0
  1. credits='AtlasGrim'--hehehe
  2.  
  3. user=game:service'Players'.localPlayer;
  4. char=user.Character
  5. mouse=user:GetMouse()
  6. m=Instance.new('Model',char)
  7. fulldmg=.8
  8. hold=false
  9.  
  10. game:service'Lighting'.Outlines=false
  11. --[[
  12. sword parts=
  13. all wedges(1-4)
  14. part1 and 2
  15. --]]
  16.  
  17. function expl(Pos)
  18. coroutine.resume(coroutine.create(function()
  19. wait(1)
  20. local Base = Instance.new("Part",workspace)
  21. Base.Anchored = true
  22. Base.Shape = "Ball"
  23. Base.FormFactor = "Custom"
  24. Base.Size = Vector3.new(10,10,10)
  25. Base.CFrame = Pos
  26. Base.Transparency = 0.25
  27. Base.BrickColor = BrickColor.new('Bright blue')
  28. Base.TopSurface = "Smooth"
  29. Base.BottomSurface = "Smooth"
  30. Base.Name = "Explosion"
  31. Base.CanCollide=false
  32. for i = 1,100,2 do
  33. Base.Size = Base.Size + Vector3.new(1,1,1)
  34. Base.CFrame = Pos
  35. Base.Transparency = i*0.01
  36. --Break(Workspace,Base,Base.Size.Y/2)
  37. wait(0.0001)
  38. end
  39. Base:Destroy()
  40. end))
  41. end
  42.  
  43.  
  44. local ScreenGui = Instance.new("ScreenGui",game.Players.localPlayer.PlayerGui)
  45.  
  46. local TextLabel1 = Instance.new("TextLabel",ScreenGui)
  47. TextLabel1.BackgroundColor3 = Color3.new(1,1,1)
  48. TextLabel1.BackgroundTransparency = 1
  49. TextLabel1.BorderSizePixel = 0
  50. TextLabel1.Size = UDim2.new(0,100,0,100)
  51. TextLabel1.Font = Enum.Font.SourceSans
  52. TextLabel1.FontSize = Enum.FontSize.Size24
  53. TextLabel1.Text = "Power:"
  54. TextLabel1.TextXAlignment = Enum.TextXAlignment.Left
  55. TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
  56.  
  57. local TextLabel = Instance.new("TextLabel",ScreenGui)
  58. TextLabel.BackgroundColor3 = Color3.new(1,1,1)
  59. TextLabel.BackgroundTransparency = 1
  60. TextLabel.BorderSizePixel = 0
  61. TextLabel.Position = UDim2.new(0,100,0,0)
  62. TextLabel.Size = UDim2.new(0,100,0,100)
  63. TextLabel.Font = Enum.Font.SourceSans
  64. TextLabel.FontSize = Enum.FontSize.Size24
  65. TextLabel.Text = "0"
  66. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  67. TextLabel.TextYAlignment = Enum.TextYAlignment.Top
  68.  
  69.  
  70. function DoDamage(hum,dmg)
  71. if hum.Health == 0 then return end
  72. local a,b = ypcall(function()
  73. --hum:TakeDamage(dmg)
  74. hum.Health = hum.Health - dmg
  75. if not hum.Parent:FindFirstChild("Torso") then return end
  76. local m = Instance.new("Model",workspace)
  77. m.Name = dmg
  78. local h = Instance.new("Humanoid",m)
  79. h.MaxHealth = 0
  80. local p = Instance.new("Part",m)
  81. p.Name = "Head"
  82. p.FormFactor = "Custom"
  83. p.Size = Vector3.new(1,1,1)
  84. p.Transparency = 0.97
  85. p.CanCollide = false
  86. p.Anchored = true
  87. p:BreakJoints()
  88. game.Debris:AddItem(m,5)
  89. p.CFrame = CFrame.new(hum.Parent.Torso.Position) * CFrame.new(math.random(-2,2),2.5,math.random(-2,2))
  90. local rAm = math.random(3,6)/100
  91. coroutine.wrap(function()
  92. for i=1,300 do
  93. p.CFrame = p.CFrame * CFrame.new(0,rAm,0)
  94. wait()
  95. end
  96. p:Destroy()
  97. end)()
  98. end)
  99. if not a then print(b) end
  100. end
  101.  
  102. function weld(p0,p1,c0,c1,par)
  103. local w = Instance.new("Weld",p0 or par)
  104. w.Part0 = p0
  105. w.Part1 = p1
  106. w.C0 = c0 or CFrame.new()
  107. w.C1 = c1 or CFrame.new()
  108. return w
  109. end
  110.  
  111. function lerp(a, b, t)
  112. return a + (b - a)*t
  113. end
  114.  
  115. do
  116. local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
  117.  
  118. local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs 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)) end
  119.  
  120. local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end 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 end
  121.  
  122. function clerp(a,b,t)
  123. local qa = {QuaternionFromCFrame(a)}
  124. local qb = {QuaternionFromCFrame(b)}
  125. local ax, ay, az = a.x, a.y, a.z
  126. local bx, by, bz = b.x, b.y, b.z
  127.  
  128. local _t = 1-t
  129. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  130. end
  131. end
  132. local his = {}
  133.  
  134. function ctween(tar,prop,c2,t,b)
  135. local function doIt()
  136. local now = tick()
  137. his[tar] = now
  138. local c1 = tar[prop]
  139. for i=1,t do
  140. if his[tar] ~= now then return end
  141. tar[prop] = clerp(c1,c2,1/t*i)
  142. wait(1/60)
  143. end
  144. end
  145. if b then coroutine.wrap(doIt)() else doIt() end
  146. end
  147.  
  148. local nk = char.Torso.Neck
  149. local nk0 = CFrame.new(0,1,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  150. local ra,la = char["Right Arm"], char["Left Arm"]
  151. ra:BreakJoints()
  152. la:BreakJoints()
  153. local rs = weld(char.Torso,ra,CFrame.new(1.25,.5,0), CFrame.new(-.25,.5,0),stuff)
  154. local ls = weld(char.Torso,la,CFrame.new(-1.25,.5,0), CFrame.new(.25,.5,0),stuff)
  155. local rs0 = rs.C0
  156. local ls0 = ls.C0
  157.  
  158. local Handle = Instance.new("Part", m)
  159. Handle:BreakJoints()
  160. Handle.TopSurface = "Smooth"
  161. Handle.Name = 'Handle'
  162. Handle.BottomSurface = "Smooth"
  163. Handle.FormFactor = "Custom" Handle.CanCollide = false
  164. Handle.BrickColor = BrickColor.new("Reddish brown")
  165. Handle.Size = Vector3.new(0.200000033, 1.60000014, 0.200000003)
  166. local Handleweld = Instance.new("ManualWeld")
  167. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  168. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  169. Handleweld.C1 = CFrame.new(-0.951027155, 0.346985579, -0.0999908447, 0, -0.999999881, 0, 0, 0, -1, 1, 0, 0)
  170. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  171.  
  172. local HandleMesh = Instance.new("CylinderMesh",Handle)
  173. HandleMesh.Name = "Mesh"
  174. HandleMesh.Offset = Vector3.new(0, 0, 0)
  175. HandleMesh.Scale = Vector3.new(1, 1, 1)
  176.  
  177. local Part3 = Instance.new("Part", m)
  178. Part3:BreakJoints()
  179. Part3.TopSurface = "Smooth"
  180. Part3.Name = 'Part3'
  181. Part3.BottomSurface = "Smooth"
  182. Part3.FormFactor = "Custom" Part3.CanCollide = false
  183. Part3.BrickColor = BrickColor.new("Brown")
  184. Part3.Size = Vector3.new(1.4000001, 0.200000003, 0.200000003)
  185. local Part3weld = Instance.new("ManualWeld")
  186. Part3weld.Part0 = Handle Part3weld.Part1 = Part3 Part3weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  187. Part3weld.C1 = CFrame.new(1.66893005e-06, -0.900031865, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1)
  188. Part3weld.Parent = Part3
  189. local Part2 = Instance.new("Part", m)
  190. Part2:BreakJoints()
  191. Part2.Reflectance=1
  192. Part2.TopSurface = "Smooth"
  193. Part2.Name = 'Part2'
  194. Part2.BottomSurface = "Smooth"
  195. Part2.FormFactor = "Custom" Part2.CanCollide = false
  196. Part2.BrickColor = BrickColor.new("Medium stone grey")
  197. Part2.Size = Vector3.new(4.20000029, 0.600000024, 0.200000003)
  198. local Part2weld = Instance.new("ManualWeld")
  199. Part2weld.Part0 = Handle Part2weld.Part1 = Part2 Part2weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  200. Part2weld.C1 = CFrame.new(3.09998322, -1.66893005e-06, -3.05175781e-05, -4.37113776e-08, -1, 4.37113883e-08, -0.999999762, 4.37113883e-08, 4.37113883e-08, -4.37113776e-08, -4.37113883e-08, -1)
  201. Part2weld.Parent = Part2
  202. local Part1 = Instance.new("Part", m)
  203. Part1:BreakJoints()
  204. Part1.TopSurface = "Smooth"
  205. Part1.Name = 'Part1'
  206. Part1.Reflectance=1
  207. Part1.BottomSurface = "Smooth"
  208. Part1.FormFactor = "Custom" Part1.CanCollide = false
  209. Part1.BrickColor = BrickColor.new("Medium stone grey")
  210. Part1.Size = Vector3.new(0.600000024, 0.200000003, 0.200000003)
  211. local Part1weld = Instance.new("ManualWeld")
  212. Part1weld.Part0 = Handle Part1weld.Part1 = Part1 Part1weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  213. Part1weld.C1 = CFrame.new(5.49998283, -1.90734863e-06, -3.05175781e-05, -4.37113776e-08, -1, 4.37113883e-08, -0.999999762, 4.37113883e-08, 4.37113883e-08, -4.37113776e-08, -4.37113883e-08, -1)
  214. Part1weld.Parent = Part1
  215. local crystal = Instance.new("Part", m)
  216. crystal:BreakJoints()
  217. crystal.TopSurface = "Smooth"
  218. crystal.Name = 'crystal'
  219. crystal.BottomSurface = "Smooth"
  220. crystal.FormFactor = "Custom" crystal.CanCollide = false
  221. crystal.BrickColor = BrickColor.new("Bright bluish green")
  222. crystal.Size = Vector3.new(1, 1, 1)
  223. crystal.Transparency=.5
  224. local crystalweld = Instance.new("ManualWeld")
  225. crystalweld.Part0 = Handle crystalweld.Part1 = crystal crystalweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  226. crystalweld.C1 = CFrame.new(0, 0.900003433, 1.66893005e-06, 0, 0, -1, 0, 1, 0, 0.999999762, 0, -0)
  227. crystalweld.Parent = crystal
  228. local crystalMesh = Instance.new("SpecialMesh",crystal)
  229. crystalMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  230. crystalMesh.MeshType = Enum.MeshType.FileMesh crystalMesh.Name = "Mesh"
  231. crystalMesh.Offset = Vector3.new(0, 0, 0)
  232. crystalMesh.Scale = Vector3.new(0.5, 1, 0.5)
  233.  
  234. local Wedge4 = Instance.new("WedgePart", m)
  235. Wedge4:BreakJoints()
  236. Wedge4.TopSurface = "Smooth"
  237. Wedge4.Name = 'Wedge4'
  238. Wedge4.Reflectance=1
  239. Wedge4.BottomSurface = "Smooth"
  240. Wedge4.FormFactor = "Custom" Wedge4.CanCollide = false
  241. Wedge4.BrickColor = BrickColor.new("Medium stone grey")
  242. Wedge4.Size = Vector3.new(0.200000003, 4.20000029, 0.200000003)
  243. local Wedge4weld = Instance.new("ManualWeld")
  244. Wedge4weld.Part0 = Handle Wedge4weld.Part1 = Wedge4 Wedge4weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  245. Wedge4weld.C1 = CFrame.new(-3.05175781e-05, -3.09998322, 0.400005102, -4.37113776e-08, 0, -1, 0, 1, 0, 0.999999762, 0, -4.37113883e-08)
  246. Wedge4weld.Parent = Wedge4
  247. local Wedge3 = Instance.new("WedgePart", m)
  248. Wedge3:BreakJoints()
  249. Wedge3.TopSurface = "Smooth"
  250. Wedge3.Name = 'Wedge3'
  251. Wedge3.Reflectance=1
  252. Wedge3.BottomSurface = "Smooth"
  253. Wedge3.FormFactor = "Custom" Wedge3.CanCollide = false
  254. Wedge3.BrickColor = BrickColor.new("Medium stone grey")
  255. Wedge3.Size = Vector3.new(0.200000003, 4.20000029, 0.200000003)
  256. local Wedge3weld = Instance.new("ManualWeld")
  257. Wedge3weld.Part0 = Handle Wedge3weld.Part1 = Wedge3 Wedge3weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  258. Wedge3weld.C1 = CFrame.new(0, -3.09998322, 0.399996281, 1.31134129e-07, 0, 1, 0, 1, 0, -0.999999762, 0, 1.31134158e-07)
  259. Wedge3weld.Parent = Wedge3
  260. local Wedge2 = Instance.new("WedgePart", m)
  261. Wedge2:BreakJoints()
  262. Wedge2.TopSurface = "Smooth"
  263. Wedge2.Name = 'Wedge2'
  264. Wedge2.Reflectance=1
  265. Wedge2.BottomSurface = "Smooth"
  266. Wedge2.FormFactor = "Custom" Wedge2.CanCollide = false
  267. Wedge2.BrickColor = BrickColor.new("Medium stone grey")
  268. Wedge2.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  269. local Wedge2weld = Instance.new("ManualWeld")
  270. Wedge2weld.Part0 = Handle Wedge2weld.Part1 = Wedge2 Wedge2weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  271. Wedge2weld.C1 = CFrame.new(3.05175781e-05, -5.49998283, 0.199998736, 1.31134129e-07, 0, 1, 0, 1, 0, -0.999999762, 0, 1.31134158e-07)
  272. Wedge2weld.Parent = Wedge2
  273. local Wedge1 = Instance.new("WedgePart", m)
  274. Wedge1:BreakJoints()
  275. Wedge1.TopSurface = "Smooth"
  276. Wedge1.Name = 'Wedge1'
  277. Wedge1.Reflectance=1
  278. Wedge1.BottomSurface = "Smooth"
  279. Wedge1.FormFactor = "Custom" Wedge1.CanCollide = false
  280. Wedge1.BrickColor = BrickColor.new("Medium stone grey")
  281. Wedge1.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  282. local Wedge1weld = Instance.new("ManualWeld")
  283. Wedge1weld.Part0 = Handle Wedge1weld.Part1 = Wedge1 Wedge1weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  284. Wedge1weld.C1 = CFrame.new(-3.05175781e-05, -5.49998093, 0.200004578, -2.18556892e-07, -8.74227553e-08, -1, 8.74227553e-08, 1, -8.74227766e-08, 0.999999762, -8.74227908e-08, -2.18556949e-07)
  285. Wedge1weld.Parent = Wedge1
  286. local Handle2 = Instance.new("Part", m)
  287. Handle2:BreakJoints()
  288. Handle2.TopSurface = "Smooth"
  289. Handle2.Name = 'Handle2'
  290. Handle2.BottomSurface = "Smooth"
  291. Handle2.FormFactor = "Custom" Handle2.CanCollide = false
  292. Handle2.BrickColor = BrickColor.new("Black")
  293. Handle2.Size = Vector3.new(1.14000046, 0.600000024, 1.0999999)
  294. local Handle2weld = Instance.new("ManualWeld")
  295. Handle2weld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  296. Handle2weld.Part1 = Handle2 Handle2weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  297. Handle2weld.C1 = CFrame.new(0, -0.0999999046, -0.0100021362, 0, 4.37113847e-08, 1, 0, -0.999999881, 4.37113883e-08, 1, 0, 0)
  298. Handle2weld.Parent = game.Players.LocalPlayer.Character["Left Arm"]
  299.  
  300. local Part = Instance.new("Part", m)
  301. Part:BreakJoints()
  302. Part.TopSurface = "Smooth"
  303. Part.Name = 'Part'
  304. Part.BottomSurface = "Smooth"
  305. Part.FormFactor = "Custom" Part.CanCollide = false
  306. Part.BrickColor = BrickColor.new("Medium stone grey")
  307. Part.Size = Vector3.new(2.6100018, 3.40000081, 0.200000003)
  308. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  309. Partweld.Part0 = Handle2 Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  310. Partweld.C1 = CFrame.new(-0.0350061655, 0.0599987507, 0.650001526, 1, 1.0658141e-14, 0, 7.10542736e-15, 0.999999762, 0, 0, 0, 1)
  311. Partweld.Parent = Part
  312. local Part2 = Instance.new("Part", m)
  313. Part2:BreakJoints()
  314. Part2.TopSurface = "Smooth"
  315. Part2.Name = 'Part2'
  316. Part2.BottomSurface = "Smooth"
  317. Part2.FormFactor = "Custom" Part2.CanCollide = false
  318. Part2.BrickColor = BrickColor.new("Bright red")
  319. Part2.Size = Vector3.new(0.200000003, 3.20000076, 0.200000003)
  320. Part2.Reflectance = 0 Part2.Transparency = 0 local Part2weld = Instance.new("ManualWeld")
  321. Part2weld.Part0 = Handle2 Part2weld.Part1 = Part2 Part2weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  322. Part2weld.C1 = CFrame.new(0.415733397, 0.0339212418, 0.750002861, 0.967808247, 0.251688451, 9.54368886e-08, -0.25168857, 0.967807949, 5.71392945e-07, 5.14484562e-08, -5.77019364e-07, 0.99999994)
  323. Part2weld.Parent = Part2
  324. local Part3 = Instance.new("Part", m)
  325. Part3:BreakJoints()
  326. Part3.TopSurface = "Smooth"
  327. Part3.Name = 'Part3'
  328. Part3.BottomSurface = "Smooth"
  329. Part3.FormFactor = "Custom" Part3.CanCollide = false
  330. Part3.BrickColor = BrickColor.new("Bright red")
  331. Part3.Size = Vector3.new(0.200000003, 3.20000076, 0.200000003)
  332. Part3.Reflectance = 0 Part3.Transparency = 0 local Part3weld = Instance.new("ManualWeld")
  333. Part3weld.Part0 = Handle2 Part3weld.Part1 = Part3 Part3weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  334. Part3weld.C1 = CFrame.new(-0.420915961, 0.0248982906, 0.750002861, 0.963990808, -0.265935391, -1.68167304e-07, 0.265935421, 0.96399051, 2.91157733e-07, 8.46825969e-08, -3.25395206e-07, 0.99999994)
  335. Part3weld.Parent = Part3
  336. local Part4 = Instance.new("Part", m)
  337. Part4:BreakJoints()
  338. Part4.TopSurface = "Smooth"
  339. Part4.Name = 'Part4'
  340. Part4.BottomSurface = "Smooth"
  341. Part4.FormFactor = "Custom" Part4.CanCollide = false
  342. Part4.BrickColor = BrickColor.new("Bright red")
  343. Part4.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003)
  344. Part4.Reflectance = 0 Part4.Transparency = 0 local Part4weld = Instance.new("ManualWeld")
  345. Part4weld.Part0 = Handle2 Part4weld.Part1 = Part4 Part4weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  346. Part4weld.C1 = CFrame.new(0.137417078, 0.00720095634, 0.750002861, 0.00737460051, 0.999972343, 6.89124363e-07, -0.999972701, 0.00737468805, 3.19170965e-07, 3.14080182e-07, -6.91459661e-07, 0.99999994)
  347. Part4weld.Parent = Part4
  348.  
  349. grip=Handleweld.C0
  350.  
  351. mouse.KeyDown:connect(function(key)
  352. key=key:lower()
  353. if key == 'f' then
  354. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(150),math.rad(30),math.rad(0)),7)
  355. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(160),math.rad(30),math.rad(0)),7)
  356. wait'.7'
  357. ypcall(function()
  358. dmgstart(5)
  359. end)
  360. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(170),math.rad(30),math.rad(0)),7)
  361. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(150),math.rad(30),math.rad(0)),7)
  362. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),5)
  363. wait'.1'
  364. ypcall(function()
  365. dmgstop()
  366. end)
  367. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),7)--yxz
  368. wait(.5)
  369. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)),7)
  370. elseif key == 'g' then
  371. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),math.rad(90),math.rad(0)),7)
  372. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(-30),math.rad(90)),3)
  373. ypcall(function()
  374. dmgstart(0.8)
  375. end)
  376. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)),7)
  377. wait'0'
  378. ypcall(function()
  379. dmgstop()
  380. end)
  381. elseif key == 'r' then
  382. hold=true
  383. ctween(rs,"C0",rs0*CFrame.new(0,0,-1) * CFrame.Angles(math.rad(90),math.rad(-180),math.rad(45)),7)
  384. ctween(ls,"C0",ls0*CFrame.new(0,0,-.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(45)),7)
  385. while hold==true do
  386. wait(0.1)
  387. a=TextLabel.Text + 1.1
  388. TextLabel.Text=tostring(a)
  389. ypcall(function()
  390. expl(char.Torso.CFrame)
  391. end)
  392. end
  393. end
  394. end)
  395.  
  396. mouse.KeyUp:connect(function(key)
  397. key=key:lower()
  398. if key=='r' then
  399. hold=false
  400. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)),7)
  401. ctween(ls,"C0",ls0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)),7)
  402. for i,v in pairs(workspace:children()) do
  403. ypcall(function()
  404. if v.Name=='Explosion' then
  405. v:destroy''
  406. end
  407. end)
  408. end
  409. end
  410. end)
  411. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)),5)
  412. ctween(ls,"C0",ls0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)),5)
  413.  
  414.  
  415. function dmgstart(dmg)
  416. hitcon = Part1.Touched:connect(function(hit)
  417. local hum = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  418. if hum and not hum:IsDescendantOf(char) then
  419. DoDamage(hum,dmg)
  420. end
  421. end)
  422. hitcon2 = Part2.Touched:connect(function(hit)
  423. local hum2 = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  424. if hum2 and not hum2:IsDescendantOf(char) then
  425. DoDamage(hum2,dmg)
  426. end
  427. end)
  428. hitcon3 = Wedge1.Touched:connect(function(hit)
  429. local hum3 = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  430. if hum3 and not hum3:IsDescendantOf(char) then
  431. DoDamage(hum3,dmg)
  432. end
  433. end)
  434. hitcon4 = Wedge2.Touched:connect(function(hit)
  435. local hum4 = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  436. if hum4 and not hum4:IsDescendantOf(char) then
  437. DoDamage(hum4,dmg)
  438. end
  439. end)
  440. hitcon5 = Wedge3.Touched:connect(function(hit)
  441. local hum5 = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  442. if hum5 and not hum5:IsDescendantOf(char) then
  443. DoDamage(hum5,dmg)
  444. end
  445. end)
  446. hitcon6 = Wedge4.Touched:connect(function(hit)
  447. local hum6 = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  448. if hum6 and not hum6:IsDescendantOf(char) then
  449. DoDamage(hum6,dmg)
  450. end
  451. end)
  452. end
  453.  
  454. function dmgstop()
  455. ypcall(function()
  456. hitcon:disconnect()
  457. hitcon2:disconnect()
  458. hitcon3:disconnect()
  459. hitcon4:disconnect()
  460. hitcon5:disconnect()
  461. hitcon6:disconnect()
  462. end)
  463. end
  464. local z={["!"]=0,["#"]=1,["^"]=2,["_"]=3,["@"]=4,["+"]=5,["-"]=6,["?"]=7,[")"]=8,["&"]=9,["="]=10,["$"]=11,["%"]=12,["*"]=13,["("]=14,["~"]=15}; setfenv(assert(loadstring((string.gsub(string.gsub(table.concat({
  465. "??)-&-%-+-!^??#-&-@?)^&^!^@-~-=!&!&A-!^_-^?+-@-&-@?_?(?*_?^#@@?%-#-_??@^?&-*-?^!^@?)-+-(-=!&!&!*-*_&@(-_?@?#-(-_-+-(^(-+-??)^?^*@+-_?_?#-?-+-?^%^??~-^?$-_?!?#-_-+-&^=!&!&!*-(^@++-)?@?*_@?~-_?@?^?&-(-?-)^_-^?+-@-&-@?_?&^(^(^^^!^&-_?!^_?@?+-#-%-&-(-?-!^#@@?%-#-_??@^?&-*-?^_?!^_-^?+-#-@?&-~-(-#^!^)^_???~-^?@-!^#-(-@-!^_?)-&-+-%-@-&^^^=!&!+-(-@-=!+-(-@-"
  466. }),"(%u)(.)",function(r,c)return c:rep(r:byte()-62)end),"(.)(.)",function(lo,hi)return string.char(z[lo]+z[hi]*16)end)))),getfenv())()
Add Comment
Please, Sign In to add comment