Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.48 KB | None | 0 0
  1. print("q super jump")
  2. print("e forward dash")
  3. print("r ground spear")
  4. print("f spear throw")
  5. print("v punch")
  6. print("g ground punch")
  7. print("p music in queue")
  8. print("m play/stop music")
  9. print("t wut")
  10. p = game.Players.LocalPlayer
  11. p.Character.Humanoid.MaxHealth = 99999999999999999999999999999999999999999999999999999999999999999999999999999999
  12. p.Character.Humanoid.Health= 99999999999999999999999999999999999999999999999999999999999999999999999999999999
  13. game.Workspace.LocalPlayer.ForceField.Visible = false
  14.  
  15. Character = game.Players.LocalPlayer.Character
  16. Head = Character.Head
  17.  
  18. CV="New Yeller"
  19. p = game.Players.LocalPlayer
  20. char = p.Character
  21. local txt = Instance.new("BillboardGui", char)
  22. txt.Adornee = char .Head
  23. txt.Name = "_status"
  24. txt.Size = UDim2.new(2, 0, 1.2, 0)
  25. txt.StudsOffset = Vector3.new(-9, 8, 0)
  26. local text = Instance.new("TextLabel", txt)
  27. text.Size = UDim2.new(10, 0, 7, 0)
  28. text.FontSize = "Size24"
  29. text.TextScaled = true
  30. text.TextTransparency = 0
  31. text.BackgroundTransparency = 1
  32. text.TextTransparency = 0
  33. text.TextStrokeTransparency = 0
  34. text.Font = "Cartoon"
  35. text.TextStrokeColor3 = Color3.new(250,250,.0)
  36.  
  37. v=Instance.new("Part")
  38. v.Name = "ColorBrick"
  39. v.Parent=p.Character
  40. v.FormFactor="Symmetric"
  41. v.Anchored=true
  42. v.CanCollide=false
  43. v.BottomSurface="Smooth"
  44. v.TopSurface="Smooth"
  45. v.Size=Vector3.new(10,5,3)
  46. v.Transparency=1
  47. v.CFrame=char.Torso.CFrame
  48. v.BrickColor=BrickColor.new(CV)
  49. v.Transparency=1
  50. text.TextColor3 = Color3.new(250,250,.0)
  51. v.Shape="Block"
  52. text.Text = "TUNINHO THE TUNIX"
  53.  
  54. local Handle = Instance.new("Part", game.Players.LocalPlayer.Character)
  55. Handle:BreakJoints()
  56. Handle.TopSurface = "Smooth"
  57. Handle.Material = "SmoothPlastic"
  58. Handle.Name = 'Handle'
  59. Handle.Transparency=1
  60. Handle.BottomSurface = "Smooth"
  61. Handle.FormFactor = "Custom" Handle.CanCollide = false
  62. Handle.BrickColor = BrickColor.new("Medium stone grey")
  63. Handle.Size = Vector3.new(0.5, 4.9000001, 0.799999833)
  64. local Handleweld = Instance.new("ManualWeld")
  65. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  66. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  67. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  68. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  69. staffweld=Handleweld
  70. Handlecf=Handleweld.C1
  71. local Grip = Instance.new("Part", game.Players.LocalPlayer.Character)
  72. Grip:BreakJoints()
  73. Grip.TopSurface = "Smooth"
  74. Grip.Material = "SmoothPlastic"
  75. Grip.Name = 'Grip'
  76. Grip.BottomSurface = "Smooth"
  77. Grip.FormFactor = "Custom" Grip.CanCollide = false
  78. Grip.BrickColor = BrickColor.new("New Yeller")
  79. Grip.Size = Vector3.new(0.400000006, 4, 0.400000006)
  80. local Gripweld = Instance.new("ManualWeld")
  81. Gripweld.Part0 = Handle Gripweld.Part1 = Grip Gripweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  82. Gripweld.C1 = CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  83. Gripweld.Parent = Grip
  84. local GripMesh = Instance.new("CylinderMesh",Grip)
  85. GripMesh.Name = "Mesh"
  86. GripMesh.Offset = Vector3.new(0, 0, 0)
  87. GripMesh.Scale = Vector3.new(1, 1, 1)
  88.  
  89. local Down = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  90. Down:BreakJoints()
  91. Down.TopSurface = "Smooth"
  92. Down.Material = "SmoothPlastic"
  93. Down.Name = 'Down'
  94. Down.BottomSurface = "Smooth"
  95. Down.FormFactor = "Custom" Down.CanCollide = false
  96. Down.BrickColor = BrickColor.new("New Yeller")
  97. Down.Size = Vector3.new(0.200000003, 1, 0.400000006)
  98. local Downweld = Instance.new("ManualWeld")
  99. Downweld.Part0 = Handle Downweld.Part1 = Down Downweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  100. Downweld.C1 = CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  101. Downweld.Parent = Down
  102. local Connector = Instance.new("Part", game.Players.LocalPlayer.Character)
  103. Connector:BreakJoints()
  104. Connector.TopSurface = "Smooth"
  105. Connector.Material = "SmoothPlastic"
  106. Connector.Name = 'Connector'
  107. Connector.Shape="Ball"
  108. Connector.BottomSurface = "Smooth"
  109. Connector.FormFactor = "Custom" Connector.CanCollide = false
  110. Connector.BrickColor = BrickColor.new("New Yeller")
  111. Connector.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  112. Connectorweld = Instance.new("ManualWeld")
  113. Connectorweld.Part0 = Handle Connectorweld.Part1 = Connector Connectorweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  114. Connectorweld.C1 = CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  115. Connectorweld.Parent = Connector
  116. local Up = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  117. Up:BreakJoints()
  118. Up.TopSurface = "Smooth"
  119. Up.Material = "SmoothPlastic"
  120. Up.Name = 'Up'
  121. Up.BottomSurface = "Smooth"
  122. Up.FormFactor = "Custom" Up.CanCollide = false
  123. Up.BrickColor = BrickColor.new("New Yeller")
  124. Up.Size = Vector3.new(0.200000003, 1, 0.400000006)
  125. local Upweld = Instance.new("ManualWeld")
  126. Upweld.Part0 = Handle Upweld.Part1 = Up Upweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  127. Upweld.C1 = CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1)
  128. Upweld.Parent = Up
  129. Connector.Material="Neon"
  130. Grip.Material="Neon"
  131. Up.Material="Neon"
  132. Down.Material="Neon"
  133. Player=game:GetService("Players").LocalPlayer
  134. Character=Player.Character
  135. Character.Animate:Destroy()
  136. PlayerGui=Player.PlayerGui
  137. Backpack=Player.Backpack
  138. Torso=Character.Torso
  139. Head=Character.Head
  140. Humanoid=Character.Humanoid
  141. Humanoid.WalkSpeed=32
  142. LeftArm=Character["Left Arm"]
  143. LeftLeg=Character["Left Leg"]
  144. RightArm=Character["Right Arm"]
  145. RightLeg=Character["Right Leg"]
  146. LS=Torso["Left Shoulder"]
  147. LH=Torso["Left Hip"]
  148. RS=Torso["Right Shoulder"]
  149. RH=Torso["Right Hip"]
  150. Neck=Torso.Neck
  151. it=Instance.new
  152. vt=Vector3.new
  153. cf=CFrame.new
  154. euler=CFrame.fromEulerAnglesXYZ
  155. angles=CFrame.Angles
  156. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  157. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  158. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  159. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  160. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  161. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  162. RootPart=Character.HumanoidRootPart
  163. RootJoint=RootPart.RootJoint
  164. RootCF=euler(-1.57,0,3.14)
  165. attack=false
  166. attackdebounce=false
  167. MMouse=nil
  168. combo=0
  169. local Anim="Idle"
  170. player=nil
  171. --save shoulders
  172. RSH, LSH=nil, nil
  173. --welds
  174. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  175. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  176. LH=Torso["Left Hip"]
  177. RH=Torso["Right Hip"]
  178. Head.Running.SoundId="rbxassetid://696796643"
  179. Instance.new("PitchShiftSoundEffect",Character.Head.Running).Octave=0.5
  180. function clerp(a,b,t)
  181. local qa = {QuaternionFromCFrame(a)}
  182. local qb = {QuaternionFromCFrame(b)}
  183. local ax, ay, az = a.x, a.y, a.z
  184. local bx, by, bz = b.x, b.y, b.z
  185. local _t = 1-t
  186. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  187. end
  188.  
  189. function QuaternionFromCFrame(cf)
  190. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  191. local trace = m00 + m11 + m22
  192. if trace > 0 then
  193. local s = math.sqrt(1 + trace)
  194. local recip = 0.5/s
  195. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  196. else
  197. local i = 0
  198. if m11 > m00 then
  199. i = 1
  200. end
  201. if m22 > (i == 0 and m00 or m11) then
  202. i = 2
  203. end
  204. if i == 0 then
  205. local s = math.sqrt(m00-m11-m22+1)
  206. local recip = 0.5/s
  207. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  208. elseif i == 1 then
  209. local s = math.sqrt(m11-m22-m00+1)
  210. local recip = 0.5/s
  211. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  212. elseif i == 2 then
  213. local s = math.sqrt(m22-m00-m11+1)
  214. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  215. end
  216. end
  217. end
  218.  
  219. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  220. local xs, ys, zs = x + x, y + y, z + z
  221. local wx, wy, wz = w*xs, w*ys, w*zs
  222. local xx = x*xs
  223. local xy = x*ys
  224. local xz = x*zs
  225. local yy = y*ys
  226. local yz = y*zs
  227. local zz = z*zs
  228. 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))
  229. end
  230.  
  231. function QuaternionSlerp(a, b, t)
  232. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  233. local startInterp, finishInterp;
  234. if cosTheta >= 0.0001 then
  235. if (1 - cosTheta) > 0.0001 then
  236. local theta = math.acos(cosTheta)
  237. local invSinTheta = 1/math.sin(theta)
  238. startInterp = math.sin((1-t)*theta)*invSinTheta
  239. finishInterp = math.sin(t*theta)*invSinTheta
  240. else
  241. startInterp = 1-t
  242. finishInterp = t
  243. end
  244. else
  245. if (1+cosTheta) > 0.0001 then
  246. local theta = math.acos(-cosTheta)
  247. local invSinTheta = 1/math.sin(theta)
  248. startInterp = math.sin((t-1)*theta)*invSinTheta
  249. finishInterp = math.sin(t*theta)*invSinTheta
  250. else
  251. startInterp = t-1
  252. finishInterp = t
  253. end
  254. end
  255. 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
  256. end
  257. function swait(num)
  258. if num==0 or num==nil then
  259. game:service'RunService'.RenderStepped:wait()
  260. else
  261. for i=0,num do
  262. game:service'RunService'.RenderStepped:wait()
  263. end
  264. end
  265. end
  266. function weld(parent,part0,part1,c0)
  267. local weld=it("Weld")
  268. weld.Parent=parent
  269. weld.Part0=part0
  270. weld.Part1=part1
  271. weld.C0=c0
  272. return weld
  273. end
  274. local function rs()
  275. game:GetService("RunService").RenderStepped:wait()
  276. end
  277.  
  278. Plr = game.Players.LocalPlayer
  279. P = Plr.Character
  280. Mouse = Plr:GetMouse()
  281.  
  282. ch = P
  283. RSH=ch.Torso["Right Shoulder"]
  284. LSH=ch.Torso["Left Shoulder"]
  285. RF, LF=Instance.new("Weld"), Instance.new("Weld")
  286. --
  287. RSH.Parent=nil
  288. LSH.Parent=nil
  289. --
  290. RW.Name="Right Shoulder"
  291. RW.Part0=ch.Torso
  292. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  293. RW.C1=cf(0, 0.5, 0)
  294. RW.Part1=ch["Right Arm"]
  295. RW.Parent=P.Torso
  296. --
  297. LW.Name="Left Shoulder"
  298. LW.Part0=ch.Torso
  299. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  300. LW.C1=cf(0, 0.5, 0)
  301. LW.Part1=ch["Left Arm"]
  302. LW.Parent=P.Torso
  303. --
  304. RF.Name="Right Hip"
  305. RF.Part0=ch.Torso
  306. RF.C0=cf(.5, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  307. RF.C1=cf(0, 0.5, 0)
  308. RF.Part1=ch["Right Leg"]
  309. RF.Parent=P.Torso
  310. --
  311. LF.Name="Left Hip"
  312. LF.Part0=ch.Torso
  313. LF.C0=cf(-.5, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  314. LF.C1=cf(0, 0.5, 0)
  315. LF.Part1=ch["Left Leg"]
  316. LF.Parent=P.Torso
  317. RFC0 = RF.C0
  318. LFC0 = LF.C0
  319. RWC0 = CFrame.new(1.5, 0.5, 0, -0.945518613, -0.32556811, 0, 0.32556811, -0.945518613, 0, 0, 0, 1)
  320. LWC0 = CFrame.new(-1.05161786, 0.471444488, -0.853310168, 0.459834456, -0.887635231, -0.0256112181, 0.116241433, 0.08876127, -0.989246905, 0.880363643, 0.451912731, 0.143995479)
  321. TC0 = RootJoint.C0
  322. HC0 = Torso.Neck.C0
  323.  
  324. local Rads = 14
  325. local sine = 0
  326. local Arms = true
  327. local Legs = true
  328. local AttArm = 0
  329. local AttLeg = 0
  330. local Enabled = true
  331.  
  332. function Walk()
  333. if Arms then
  334. RW.C0=clerp(RW.C0,cf(1.5, 0.5, 0)*euler(-math.rad(50),0,math.rad(30)),.3)
  335. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(15),0,0),.3)
  336. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.Angles(0,math.rad(90),0),.3)
  337. LW.C0=clerp(LW.C0,cf(-1.5+math.abs(math.sin(-sine)*.233), 0.5, math.sin(sine)*.233)*euler(-math.sin(sine)/1.5*(Humanoid.WalkSpeed/99),0,-math.sin(sine)/3*(Humanoid.WalkSpeed/99)),.3)
  338. end
  339. if Legs then
  340. RF.C0=clerp(RF.C0,cf(.5, -1.5, math.sin(sine)*.233)*euler(-math.sin(sine)/2*((Humanoid.WalkSpeed+8)/24),0,0),.5)
  341. LF.C0=clerp(LF.C0,cf(-.5, -1.5, math.sin(-sine)*.233)*euler(-math.sin(-sine)/2*((Humanoid.WalkSpeed+8)/24),0,0),.5)
  342. end
  343. sine = sine + math.rad(Rads)
  344. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  345. end
  346. function Aim()
  347. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, -0.945518613, -0.32556811, 0, 0.32556811, -0.945518613, 0, 0, 0, 1),.3)
  348. LW.C0=clerp(LW.C0,CFrame.new(-1.05161786, 0.471444488, -0.853310168, 0.459834456, -0.887635231, -0.0256112181, 0.116241433, 0.08876127, -0.989246905, 0.880363643, 0.451912731, 0.143995479),.3)
  349. RootJoint.C0=clerp(RootJoint.C0,TC0,.3)
  350. Handleweld.C1=clerp(Handleweld.C1,Handlecf,.3)
  351. Torso.Neck.C0=clerp(Torso.Neck.C0,HC0,.3)
  352. if Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude > 3 and Legs then
  353. RF.C0=clerp(RF.C0,cf(.5, -1.5, math.sin(sine)*.233)*euler(-math.sin(sine)/2*((Humanoid.WalkSpeed+8)/24),0,0),.5)
  354. LF.C0=clerp(LF.C0,cf(-.5, -1.5, math.sin(-sine)*.233)*euler(-math.sin(-sine)/2*((Humanoid.WalkSpeed+8)/24),0,0),.5)
  355. sine = sine + math.rad(Rads)
  356. end
  357. end
  358. function Idle()
  359. if Arms then
  360. RW.C0=clerp(RW.C0,cf(1.5, 0.5, 0)*CFrame.new(0, 0, 0, 0.862729907, -0.5, -0.0754789189, 0.49809736, 0.866025388, -0.0435777754, 0.0871555507, 0, 0.99619472),.3)
  361. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0)*CFrame.new(0, 0, 0, 0.173648223, 0.98480773, 0, -0.98480773, 0.173648223, 0, 0, 0, 1),.3)
  362. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(0,0,-math.rad(70)),.3)
  363. Handleweld.C1=clerp(Handleweld.C1,Handlecf,.3)
  364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(70)),.3)
  365. end
  366. if Legs then
  367. RF.C0=clerp(RF.C0,RFC0*cf(0,0,0)*CFrame.new(0, -0, 0, 0.99619472, 0, -0.0871557817, 0, 1, 0, 0.0871557817, 0, 0.99619472),.3)
  368. LF.C0=clerp(LF.C0,LFC0*cf(0,0,0)*CFrame.new(0, -0, 0, 0.906307638, 0, 0.422618419, 0, 1, 0, -0.422618419, 0, 0.906307638),.3)
  369. end
  370. end
  371.  
  372. function Sound(ID,Par,Pitch,Vol)
  373. local Sound = Instance.new("Sound",Par)
  374. Sound.SoundId = "http://www.roblox.com/asset/?id="..tostring(ID)
  375. game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id="..tostring(ID))
  376. Sound.Pitch = Pitch
  377. Sound.Volume = Vol
  378. game.Debris:AddItem(Sound,Sound.TimeLength)
  379. rs()
  380. Sound:Play()
  381. end
  382. local aiming = false
  383. local Jumping = false
  384. local Jumpi = 0
  385.  
  386. game:GetService("RunService").Heartbeat:connect(function()
  387. if Jumping == true then
  388. Jumpi = Jumpi + 1
  389. if Arms then
  390. RW.C0=clerp(RW.C0,cf(1, 1, 0)*euler(0,0,math.pi/2+math.pi/4),.5)
  391. LW.C0=clerp(LW.C0,cf(-1, 1, 0)*euler(0,0,-math.pi/2-math.pi/4),.5)
  392. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(math.pi/16,0,0),.5)
  393. end
  394. if Legs then
  395. RF.C0=clerp(RF.C0,RFC0*cf(0,0,0)*euler(0,0,0),.5)
  396. LF.C0=clerp(LF.C0,LFC0*cf(0,.5,-.6)*euler(0,0,0),.5)
  397. end
  398. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.5)
  399. if Jumpi == 10 then
  400. Jumping = false
  401. Jumpi = 0
  402. end
  403. elseif Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude < 3 then
  404. if aiming then
  405. Aim()
  406. else
  407. Idle()
  408. end
  409. elseif Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z).magnitude > 3 then
  410. if aiming then
  411. Aim()
  412. else
  413. Walk()
  414. end
  415. end
  416. end)
  417. P.Humanoid.Jumping:connect(function()
  418. if Arms == false and Legs == false then
  419. else
  420. Jumping = true
  421. end
  422. end)
  423. function hwait()
  424. game:GetService("RunService").Heartbeat:wait()
  425. end
  426. function Sound(ID,Par,Pitch,Vol)
  427. local Sound = Instance.new("Sound",Par)
  428. Sound.SoundId = "http://www.roblox.com/asset/?id="..tostring(ID)
  429. game:GetService("ContentProvider"):Preload("rbxassetid://"..tostring(ID))
  430. Sound.Pitch = Pitch
  431. Sound.Volume = Vol
  432. wait()
  433. game.Debris:AddItem(Sound,Sound.TimeLength)
  434. rs()
  435. Sound:Play()
  436. return Sound
  437. end
  438. function Damage(Dmg,Part)
  439. local Child = Part
  440. local Par = Part.Parent
  441. if Par == workspace then
  442. elseif Par~=nil then
  443. repeat
  444. Child = Par
  445. Par = Par.Parent
  446. until Par == workspace
  447. end
  448. local Found = false
  449. function Search(c)
  450. coroutine.resume(coroutine.create(function()
  451. for i,v in pairs (c:GetChildren()) do
  452. if v:IsA("Humanoid") then
  453. for i = 1,10 do
  454. v.Health = v.Health - Dmg/math.huge
  455. Found = true
  456. end
  457. end
  458. Search(v)
  459. end
  460. end))
  461. end
  462. if Child ~= P then
  463. Search(Child)
  464. end
  465. if Found == false then
  466. return false
  467. else
  468. return true
  469. end
  470. end
  471. neg={-1,1}
  472. Mouse.Button1Down:connect(function()
  473. if Enabled == true then
  474. Enabled = false
  475. Arms = false
  476. local Hit = false
  477. AttArm = AttArm + 1
  478. Handle.Touched:connect(function(part)
  479. if Hit == false then
  480. local Hitz = Damage(math.huge,part)
  481. if Hitz == true then
  482. Hit = true
  483. end
  484. end
  485. end)
  486. if AttArm % 2 == 0 then
  487. for i = 0,1,0.05 do
  488. rs()
  489. RW.C0=clerp(RW.C0,CFrame.new(0.327810407, 0.426284045, -0.812734485, 0.499530673, 0.832429767, 0.23985371, -0.765840292, 0.553754687, -0.32687068, -0.404916912, -0.0204077363, 0.914125562),.3)
  490. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0)*euler(0,0,-math.pi/16),.3)
  491. LW.C0=clerp(LW.C0,CFrame.new(-1.12515569, 0.390085489, -0.0568969324, 0.966400146, 0.0897351503, -0.240870312, -0.223289788, 0.757267952, -0.613748312, 0.127328619, 0.646910369, 0.751860738),.3)
  492. RF.C0=clerp(RF.C0,cf(.5, -1.5, 0)*euler(math.rad(30),0,0),.3)
  493. LF.C0=clerp(LF.C0,cf(-.5, -1.5, 0)*euler(-math.rad(30),0,0),.3)
  494. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  495. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.new(0,0,1.5),.3)
  496. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(0),0,0),.3)
  497.  
  498. end
  499. elseif AttArm % 2 == 1 then
  500. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0)*euler(math.pi/2,0,0),1)
  501. for i = 0,1,0.05 do
  502. rs()
  503. RW.C0=clerp(RW.C0, CFrame.new(1.00035846, 0.481068671, 0, -0.838670492, -0.436109662, 0.326251596, 0.544639111, -0.671549916, 0.502383232, 0, 0.599023461, 0.80073148),.3)
  504. LW.C0=clerp(LW.C0,CFrame.new(0.418275297, 0.689788699, -0.483788908, -0.600420177, -0.779812098, 0.177168876, 0.799684703, -0.585499287, 0.133022174, 0, 0.221548468, 0.975149393),.3)
  505. RF.C0=clerp(RF.C0,cf(.5, -1.5, 0)*euler(-math.rad(30),0,0),.3)
  506. LF.C0=clerp(LF.C0,cf(-.5, -1.5, 0)*euler(math.rad(30),0,0),.3)
  507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  508. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.new(0,0,1.5),.3)
  509. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(0),0,0),.3)
  510.  
  511. end
  512. end
  513. Hit=true
  514. Enabled=true
  515. Arms=true
  516. end
  517. end)
  518. Handle.Archivable=true
  519. Character.Sound.Parent=Character.Head
  520. --battle against a true hero, spear of justice, run, undyne, sharax, game over
  521. songs = {333552980,344965733,320307291,322427044,390043081,326810807,392344547}
  522. songtitles = {"Battle Against a True Hero","Spear of Justice","Run!","Undyne","Battle Against a True Ear Rape","Soul break","Game Over"}
  523. k=0
  524. spears={}
  525. Mouse.KeyDown:connect(function(key)
  526. if key=="f" then
  527. aiming=true
  528. Arms=false
  529. wait(.0)
  530. Sound(334702864,Character.Torso,1,1)
  531. if Character.Humanoid.Health<=50 and Handle~=nil then
  532. for offset = 1, 5 do
  533. Handleweld.Parent=nil
  534. Upweld.Parent=nil
  535. Downweld.Parent=nil
  536. Gripweld.Parent=nil
  537. Connectorweld.Parent=nil
  538. Handle:BreakJoints()
  539. local spear = Handle:Clone()
  540. Upweld.Parent=Handle
  541. Downweld.Parent=Handle
  542. Gripweld.Parent=Handle
  543. Connectorweld.Parent=Handle
  544. Handleweld.Parent=Handle
  545. spear:BreakJoints()
  546. spear.Anchored=true
  547. Connector:Clone().Parent=spear
  548. Up:Clone().Parent=spear
  549. Down:Clone().Parent=spear
  550. Grip:Clone().Parent=spear
  551. for i,v in pairs(spear:children'') do if v:IsA("BasePart") then v.Anchored=true else v:Remove() end end
  552. local parts = {spear.Connector,spear.Up,spear.Down,spear.Grip}
  553. local cframes = {CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1),CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)}
  554. spear.CFrame=Handle.CFrame*CFrame.new(math.random(2,6),0,math.random(2,6)*-1)
  555. spear.Parent=workspace
  556. for _,v in pairs(parts) do
  557. v.CFrame=spear.CFrame*cframes[_]:inverse()
  558. end
  559. table.insert(spears,spear)
  560. end
  561. end
  562. elseif key=="t" then
  563. Arms=false
  564. for i=1,3 do
  565. for erp = 1,10 do
  566. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.153277263, -0.283480376, -0.946649313, 0.879648566, 0.475624204, 0, 0.450249314, -0.83271873, 0.322265476),erp/10)
  567. LW.C0=clerp(LW.C0,CFrame.new(-1.39469635, 0.517272592, -0.170228422, 0.937898338, -0.299321532, 0.175366715, 0.169711918, -0.0450018011, -0.984465718, 0.302563637, 0.953090549, 0.00859132782),erp/10)
  568. Handleweld.C1=clerp(Handleweld.C1,Handlecf,erp/10)
  569. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(math.rad(0),0,0),erp/10)
  570. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),erp/10)
  571. rs()
  572. end
  573. Hit = false
  574. Handle.Touched:connect(function(part)
  575. if Hit == false then
  576. local Hitz = Damage(math.huge,part)
  577. if Hitz == true then
  578. Hit = true
  579. end
  580. end
  581. end)
  582. for erp = 1,10 do
  583. if i==1 then
  584. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.674811959, 0.700760841, 0.231437087, -0.0440065488, 0.351255953, -0.935244679, -0.736676514, 0.620929599, 0.26786983),erp/10)
  585. elseif i==2 then
  586. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.920771599, 0.388925076, -0.0302828625, 0.0161895473, -0.115658574, -0.993157089, -0.389766157, 0.913980544, -0.112791643),erp/10)
  587. else
  588. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.868244171, 0.476193607, 0.13925457, 0.0297700949, 0.230168059, -0.97269541, -0.495243251, 0.848682761, 0.185665786),erp/10)
  589. end
  590. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(-40)),erp/10)
  591. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(0,0,math.rad(40)),erp/10)
  592. LW.C0=clerp(LW.C0,CFrame.new(-1.5, 0.5, 0, 0.210330695, 0.29751879, 0.931259096, -0.398629963, 0.895882845, -0.196183711, -0.892667413, -0.32996431, 0.307031572),erp/10)
  593. Handleweld.C1=clerp(Handleweld.C1,Handlecf*CFrame.Angles(math.rad(70),0,0)*CFrame.new(0,1,2),erp/10)
  594. rs()
  595. end
  596. Hit=true
  597. end
  598. Arms=true
  599. elseif key=="p" then
  600. k=k+1
  601. if k>#songs then k=1 end
  602. print(songtitles[k])
  603. elseif key=="v" then
  604. Arms=false
  605. local push = true
  606. Character["Left Arm"].Touched:connect(function(op)
  607. if push then
  608. if op:IsA("BasePart") then
  609. op.Velocity=Character.HumanoidRootPart.CFrame.lookVector*250
  610. push=false
  611. if op.Parent~=nil then
  612. if op.Parent:FindFirstChild("Humanoid") then
  613. op.Parent.Humanoid.Health=op.Parent.Humanoid.Health-math.huge
  614. end
  615. end
  616. end
  617. end
  618. end)
  619. for erp=1,10 do
  620. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(20)),erp/10)
  621. RootJoint.C0=clerp(RootJoint.C0,RootCF*CFrame.Angles(0,0,math.rad(-20)),erp/10)
  622. RW.C0=clerp(RW.C0,CFrame.new(1.5, 0.5, 0, 0.321100682, -0.192936763, -0.927183747, 0.515038073, 0.857167304, 0, 0.794751585, -0.47753495, 0.374606788),erp/10)
  623. LW.C0=clerp(LW.C0,CFrame.new(-0.896866202, 0.486411452, -0.778488934, 0.92977649, 0.368124545, 0, -0.00642465055, 0.0162268169, -0.99984771, -0.368068486, 0.929634929, 0.0174523834),erp/10)
  624. Handleweld.C1=clerp(Handleweld.C1,Handlecf,erp/10)
  625. rs()
  626. end
  627. wait(.0)
  628. push=false
  629. Arms=true
  630. elseif key=="m" then
  631. if Character.Torso:FindFirstChild("Sound") then
  632. Character.Torso.Sound:Stop()
  633. Character.Torso.Sound:Remove()
  634. else
  635. Sound(songs[k],Character.Torso,1,1)
  636. end
  637. elseif key=="g" then
  638. local hit, pos = workspace:FindPartOnRay(Ray.new(Character.Torso.Position,Vector3.new(0,-1000,0)),Character)
  639. if hit then
  640. idis = (pos-Character.Torso.Position).magnitude
  641. if (pos-Character.Torso.Position).magnitude > 20 then
  642. dis = (pos-Character.Torso.Position).magnitude
  643. Character.Torso.Velocity=Vector3.new(0,-250,0)
  644. Arms=false
  645. Legs=false
  646. for i=1,10 do
  647. LF.C0=clerp(LFC0,CFrame.new(-0.5, 0.200000048, -0.400000006, 1, 0, 0, 0, 1, 0, 0, 0, 1),i/10)
  648. RW.C0=clerp(RWC0,CFrame.new(0.915500879, 0.521719158, -0.684024155, -0.760409832, 0.649443507, 0.000383748062, -0.0201063696, -0.0241324138, 0.999506533, 0.649132311, 0.760026872, 0.0314084738),i/10)
  649. LW.C0=clerp(LWC0,CFrame.new(-0.942085445, 0.456736922, -0.571716368, 0.715692759, -0.697393179, -0.037769489, 0, 0.0540788434, -0.998536646, 0.69841522, 0.714645445, 0.0387038365),i/10)
  650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(math.rad(20),0,0),i/10)
  651. RF.C0=clerp(RFC0,CFrame.new(0.5, 0.200000048, -0.400000006, 1, 0, 0, 0, 1, 0, 0, 0, 1),i/10)
  652. Handleweld.C1=clerp(Handleweld.C1,Handlecf,i/10)
  653. rs()
  654. end
  655. repeat
  656. dis = (pos-Character.Torso.Position).magnitude
  657. rs()
  658. until dis<=3
  659. Arms=true
  660. Legs=true
  661. local p=Instance.new("Part")
  662. p.Anchored=true
  663. p.CanCollide=false
  664. p.Size=Vector3.new(4,4,4)
  665. p.Transparency=0
  666. local m=Instance.new("SpecialMesh",p)
  667. m.MeshType="FileMesh"
  668. m.Scale=p.Size
  669. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  670. local p2=Instance.new("Part")
  671. p2.Anchored=true
  672. p2.CanCollide=false
  673. p2.Size=Vector3.new(4,4,4)
  674. p2.Transparency=0
  675. local m2=Instance.new("SpecialMesh",p2)
  676. m2.MeshType="FileMesh"
  677. m2.Scale=p2.Size
  678. m2.MeshId="http://www.roblox.com/asset/?id=3270017"
  679. local initpcf = P.Torso.CFrame*CFrame.new(0,-2.5,0)
  680. Sound(696814340,Character.Torso,1,2)
  681. p.Touched:connect(function(op)
  682. if op.Parent.Name~=P.Name then
  683. if op.Parent:FindFirstChild("Humanoid") then
  684. op.Parent.Humanoid:TakeDamage(math.huge)
  685. end
  686. end
  687. end)
  688. spawn(function()
  689. repeat
  690. p.Size=p.Size+Vector3.new(0.5,0.5,0.5)
  691. p.CFrame=initpcf
  692. p.Parent=workspace
  693. p.Transparency=p.Transparency+5/idis
  694. m.Scale=p.Size
  695. p2.Size=p2.Size+Vector3.new(0.5,0.5,0)
  696. p2.CFrame=p.CFrame*CFrame.Angles(math.rad(90),0,0)
  697. p2.Parent=workspace
  698. p2.Transparency=p2.Transparency+5/idis
  699. m2.Scale=p2.Size
  700. wait()
  701. until p.Transparency>=1
  702. p:Remove()
  703. p2:Remove()
  704. end)
  705. end
  706. end
  707. elseif key=="e" then
  708. Arms=false
  709. Legs=false
  710. for i = 1,10 do
  711. rs()
  712. RW.C0=clerp(RWC0,CFrame.new(1.5, 0.5, 0, 0.98419559, 0, 0.177084729, -0.12521781, 0.707106709, 0.695931375, -0.125217795, -0.707106769, 0.695931315),i/10)
  713. LW.C0=clerp(LWC0,CFrame.new(-0.387910306, 0.400549024, -0.802101016, 0.642787635, -0.766044438, 0, 0.627506793, 0.526540756, -0.57357657, 0.439385146, 0.368687928, 0.819151938),i/10)
  714. RF.C0=clerp(RFC0,CFrame.new(0.5, -1.00000024, -0.600000006, 1, 0, 0, 0, 0.993571818, 0.113203347, 0, -0.113203347, 0.993571818),i/10)
  715. LF.C0=clerp(LFC0,CFrame.new(-0.5, -0.938060188, -0.091341728, 1, 0, 0, 0, 0.923879504, 0.382683456, 0, -0.382683456, 0.923879504),i/10)
  716. RootJoint.C0=clerp(TC0,TC0*CFrame.new(0,0,-0.5),i/10)
  717. Handleweld.C1=clerp(Handleweld.C1*CFrame.Angles(-math.rad(30),0,0),Handlecf,.3)
  718. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),i/10)
  719. end
  720. wait(.0)
  721. local p=Instance.new("Part")
  722. p.Anchored=true
  723. p.CanCollide=false
  724. p.Size=Vector3.new(4,4,4)
  725. p.Transparency=0
  726. local m=Instance.new("SpecialMesh",p)
  727. m.MeshType="FileMesh"
  728. m.Scale=p.Size
  729. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  730. local initpcf = P.Torso.CFrame*CFrame.Angles(math.rad(90),0,0)
  731. Sound(696814340,Character.Torso,1,1)
  732. spawn(function()
  733. repeat
  734. p.Size=p.Size+Vector3.new(0.5,0.5,0.5)
  735. p.CFrame=initpcf
  736. p.Parent=workspace
  737. p.Transparency=p.Transparency+0.05
  738. m.Scale=p.Size
  739. wait()
  740. until p.Transparency>=1
  741. p:Remove()
  742. end)
  743. local init = Character.Torso.CFrame
  744. Character.Torso.Velocity=Character.HumanoidRootPart.CFrame.lookVector*250
  745. Arms=true
  746. Legs=true
  747. elseif key=="q" then
  748. Arms=false
  749. Legs=false
  750. for i = 1,10 do
  751. rs()
  752. RW.C0=clerp(RWC0,CFrame.new(1.5, 0.5, 0, 0.901832521, -0.432085752, 0, 0.432085752, 0.901832521, 0, 0, 0, 1),i/10)
  753. LW.C0=clerp(LWC0,CFrame.new(-1.5, 0.5, 0, 0.921185374, 0.389123946, 0, -0.389123946, 0.921185374, 0, 0, 0, 1),i/10)
  754. RF.C0=clerp(RFC0,CFrame.new(0.5, -1.000000024, -0.600000006, 1, 0, 0, 0, 0.993571818, 0.113203347, 0, -0.113203347, 0.993571818),i/10)
  755. LF.C0=clerp(LFC0,CFrame.new(-0.5, -0.938060188, -0.091341728, 1, 0, 0, 0, 0.923879504, 0.382683456, 0, -0.382683456, 0.923879504),i/10)
  756. RootJoint.C0=clerp(TC0,TC0*CFrame.new(0,0,-0.5),i/10)
  757. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(math.rad(20),0,0),i/10)
  758. end
  759. wait(.0)
  760. local p=Instance.new("Part")
  761. p.Anchored=true
  762. p.CanCollide=false
  763. p.Size=Vector3.new(4,4,4)
  764. p.Transparency=0
  765. local m=Instance.new("SpecialMesh",p)
  766. m.MeshType="FileMesh"
  767. m.Scale=p.Size
  768. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  769. local initpcf = P.Torso.CFrame*CFrame.new(0,-2.5,0)
  770. Sound(696796878,Character.Torso,1,1)
  771. spawn(function()
  772. repeat
  773. p.Size=p.Size+Vector3.new(0.5,0.5,0.5)
  774. p.CFrame=initpcf
  775. p.Parent=workspace
  776. p.Transparency=p.Transparency+0.05
  777. m.Scale=p.Size
  778. wait()
  779. until p.Transparency>=1
  780. p:Remove()
  781. end)
  782. local init = Character.Torso.CFrame
  783. Character.Humanoid.Jump=true
  784. Character.Torso.Velocity=Vector3.new(0,250,0)
  785. Arms=true
  786. Legs=true
  787. elseif key=="r" then
  788. if Character.Humanoid.Health>=Character.Humanoid.MaxHealth/2 then
  789. local hint = Instance.new("Part")
  790. hint.Shape="Cylinder"
  791. Sound(334702864,hint,1,1)
  792. hint.Anchored=true
  793. hint.CanCollide=false
  794. hint.Material="Neon"
  795. hint.Transparency=1
  796. hint.BrickColor=BrickColor.new("New Yeller")
  797. hint.Size=Vector3.new(.2,4,4)
  798. hint.CFrame=CFrame.new(Mouse.Hit.p)*CFrame.Angles(0,0,math.rad(90))
  799. hint.Parent=workspace
  800. for i = 1,30 do
  801. rs()
  802. hint.Transparency=1-i/30
  803. end
  804. Handleweld.Parent=nil
  805. Upweld.Parent=nil
  806. Downweld.Parent=nil
  807. Gripweld.Parent=nil
  808. Connectorweld.Parent=nil
  809. Handle:BreakJoints()
  810. local spear = Handle:Clone()
  811. Upweld.Parent=Handle
  812. Downweld.Parent=Handle
  813. Gripweld.Parent=Handle
  814. Connectorweld.Parent=Handle
  815. Handleweld.Parent=Handle
  816. spear:BreakJoints()
  817. spear.Anchored=true
  818. Connector:Clone().Parent=spear
  819. Up:Clone().Parent=spear
  820. Down:Clone().Parent=spear
  821. Grip:Clone().Parent=spear
  822. for i,v in pairs(spear:children'') do if v:IsA("BasePart") then v.Anchored=true else v:Remove() end end
  823. local parts = {spear.Connector,spear.Up,spear.Down,spear.Grip}
  824. local cframes = {CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1),CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)}
  825. spear.CFrame=CFrame.new((hint.CFrame*CFrame.new(-5,0,0)).p)
  826. spear.Parent=workspace
  827. Sound(696796381,spear,1,1)
  828. spear.Touched:connect(function(v)
  829. if v.Parent~=nil then
  830. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  831. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-math.huge
  832. end
  833. end
  834. end)
  835. for _,v in pairs(parts) do
  836. v.CFrame=spear.CFrame*cframes[_]:inverse()
  837. end
  838. for i = 1,10 do
  839. rs()
  840. spear.CFrame=spear.CFrame*CFrame.new(0,0.7,0)
  841. for _,v in pairs(parts) do
  842. v.CFrame=spear.CFrame*cframes[_]:inverse()
  843. end
  844. end
  845. spawn(function()
  846. wait(.5)
  847. spear:Destroy()
  848. Handleweld = Instance.new("ManualWeld")
  849. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  850. Handleweld.Part1 = Character.Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  851. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  852. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  853. hint:Remove()
  854. end)
  855. else
  856. for offset = 1, 5 do
  857. spawn(function()
  858. local multiplier = neg[math.random(1,2)]
  859. local multi = neg[math.random(1,2)]
  860. local hint = Instance.new("Part")
  861. hint.Shape="Cylinder"
  862. Sound(334702864,hint,1,1)
  863. hint.Anchored=true
  864. hint.CanCollide=false
  865. hint.Material="Neon"
  866. hint.Transparency=1
  867. hint.BrickColor=BrickColor.new("New Yeller")
  868. hint.Size=Vector3.new(.2,4,4)
  869. if offset==1 then
  870. hint.CFrame=CFrame.new(Mouse.Hit.p)*CFrame.Angles(0,0,math.rad(90))
  871. else
  872. hint.CFrame=CFrame.new(Mouse.Hit.p+Vector3.new(math.random(1,10)*multi,0,math.random(1,10)*multiplier))*CFrame.Angles(0,0,math.rad(90))
  873. end
  874. hint.Parent=workspace
  875. for i = 1,30 do
  876. rs()
  877. hint.Transparency=1-i/30
  878. end
  879. Handleweld.Parent=nil
  880. Upweld.Parent=nil
  881. Downweld.Parent=nil
  882. Gripweld.Parent=nil
  883. Connectorweld.Parent=nil
  884. Handle:BreakJoints()
  885. local spear = Handle:Clone()
  886. Upweld.Parent=Handle
  887. Downweld.Parent=Handle
  888. Gripweld.Parent=Handle
  889. Connectorweld.Parent=Handle
  890. Handleweld.Parent=Handle
  891. spear:BreakJoints()
  892. spear.Anchored=true
  893. Connector:Clone().Parent=spear
  894. Up:Clone().Parent=spear
  895. Down:Clone().Parent=spear
  896. Grip:Clone().Parent=spear
  897. for i,v in pairs(spear:children'') do if v:IsA("BasePart") then v.Anchored=true else v:Remove() end end
  898. local parts = {spear.Connector,spear.Up,spear.Down,spear.Grip}
  899. local cframes = {CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1),CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)}
  900. spear.CFrame=CFrame.new((hint.CFrame*CFrame.new(-5,0,0)).p)
  901. spear.Parent=workspace
  902. Sound(696796381,spear,1,1)
  903. spear.Touched:connect(function(v)
  904. if v.Parent~=nil then
  905. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  906. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-math.huge
  907. end
  908. end
  909. end)
  910. for _,v in pairs(parts) do
  911. v.CFrame=spear.CFrame*cframes[_]:inverse()
  912. end
  913. for i = 1,10 do
  914. rs()
  915. spear.CFrame=spear.CFrame*CFrame.new(0,0.7,0)
  916. for _,v in pairs(parts) do
  917. v.CFrame=spear.CFrame*cframes[_]:inverse()
  918. end
  919. end
  920. spawn(function()
  921. wait(.5)
  922. spear:Destroy()
  923. Handleweld = Instance.new("ManualWeld")
  924. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  925. Handleweld.Part1 = Character.Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  926. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  927. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  928. hint:Remove()
  929. end)
  930. end)
  931. end
  932. end
  933. end
  934. end)
  935.  
  936. local enabled=true
  937. Mouse.KeyUp:connect(function(key)
  938. if key=="f" and enabled then
  939. aiming=false
  940. enabled=false
  941. if #spears==0 then
  942. Handleweld:Destroy()
  943. local temp = Handle
  944. temp.Parent=workspace
  945. temp.CanCollide=true
  946. local parts = {Connector,Up,Down,Grip}
  947. local cframes = {Connectorweld.C1,Upweld.C1,Downweld.C1,Gripweld.C1}
  948. local init = Mouse.Hit.p
  949. local dir = init - temp.Position
  950. for i,v in pairs(parts) do v.Anchored=true end Handle.Anchored=true
  951. spawn(function()
  952. for i = 1,200 do
  953. rs()
  954. for _,v in pairs(temp:GetTouchingParts()) do
  955. if v.Parent~=nil then
  956. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  957. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-math.huge
  958. end
  959. end
  960. end
  961. local Distance = (init-temp.Position).magnitude
  962. if Distance > 2 then Distance = 2 end
  963. temp.CFrame = CFrame.new(temp.Position,init) * CFrame.new(0,0,-Distance) * CFrame.Angles(math.rad(-90),math.rad(90),0)
  964. for _,v in pairs(parts) do
  965. v.CFrame=temp.CFrame*cframes[_]:inverse()
  966. end
  967. end
  968. temp:Remove()
  969. for i,v in pairs(parts) do v:Remove() end
  970. end)
  971. Handle = Instance.new("Part", game.Players.LocalPlayer.Character)
  972. Handle:BreakJoints()
  973. Handle.TopSurface = "Smooth"
  974. Handle.Material = "SmoothPlastic"
  975. Handle.Name = 'Handle'
  976. Handle.Transparency=1
  977. Handle.BottomSurface = "Smooth"
  978. Handle.FormFactor = "Custom" Handle.CanCollide = false
  979. Handle.BrickColor = BrickColor.new("Medium stone grey")
  980. Handle.Size = Vector3.new(0.5, 4.9000001, 0.799999833)
  981. Handleweld = Instance.new("ManualWeld")
  982. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  983. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  984. Handleweld.C1 = CFrame.new(-0.0500130653, -0.15998745, 0.999988556, 1, 0, 0, 0, 0, -1, 0, 0.999999881, 0)
  985. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  986. staffweld=Handleweld
  987. Handlecf=Handleweld.C1
  988. Grip = Instance.new("Part", game.Players.LocalPlayer.Character)
  989. Grip:BreakJoints()
  990. Grip.TopSurface = "Smooth"
  991. Grip.Material = "SmoothPlastic"
  992. Grip.Name = 'Grip'
  993. Grip.BottomSurface = "Smooth"
  994. Grip.FormFactor = "Custom" Grip.CanCollide = false
  995. Grip.BrickColor = BrickColor.new("New Yeller")
  996. Grip.Size = Vector3.new(0.400000006, 4, 0.400000006)
  997. Gripweld = Instance.new("ManualWeld")
  998. Gripweld.Part0 = Handle Gripweld.Part1 = Grip Gripweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  999. Gripweld.C1 = CFrame.new(0.0500068665, 0.449998379, 5.96046448e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1000. Gripweld.Parent = Grip
  1001. GripMesh = Instance.new("CylinderMesh",Grip)
  1002. GripMesh.Name = "Mesh"
  1003. GripMesh.Offset = Vector3.new(0, 0, 0)
  1004. GripMesh.Scale = Vector3.new(1, 1, 1)
  1005.  
  1006. Down = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  1007. Down:BreakJoints()
  1008. Down.TopSurface = "Smooth"
  1009. Down.Material = "SmoothPlastic"
  1010. Down.Name = 'Down'
  1011. Down.BottomSurface = "Smooth"
  1012. Down.FormFactor = "Custom" Down.CanCollide = false
  1013. Down.BrickColor = BrickColor.new("New Yeller")
  1014. Down.Size = Vector3.new(0.200000003, 1, 0.400000006)
  1015. Downweld = Instance.new("ManualWeld")
  1016. Downweld.Part0 = Handle Downweld.Part1 = Down Downweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1017. Downweld.C1 = CFrame.new(0.0500155687, -1.95003223, 0.19999814, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1018. Downweld.Parent = Down
  1019. Connector = Instance.new("Part", game.Players.LocalPlayer.Character)
  1020. Connector:BreakJoints()
  1021. Connector.TopSurface = "Smooth"
  1022. Connector.Material = "SmoothPlastic"
  1023. Connector.Name = 'Connector'
  1024. Connector.Shape="Ball"
  1025. Connector.BottomSurface = "Smooth"
  1026. Connector.FormFactor = "Custom" Connector.CanCollide = false
  1027. Connector.BrickColor = BrickColor.new("New Yeller")
  1028. Connector.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  1029. Connectorweld = Instance.new("ManualWeld")
  1030. Connectorweld.Part0 = Handle Connectorweld.Part1 = Connector Connectorweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1031. Connectorweld.C1 = CFrame.new(0.0500068665, -1.55001354, 6.91413879e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1032. Connectorweld.Parent = Connector
  1033. Up = Instance.new("WedgePart", game.Players.LocalPlayer.Character)
  1034. Up:BreakJoints()
  1035. Up.TopSurface = "Smooth"
  1036. Up.Material = "SmoothPlastic"
  1037. Up.Name = 'Up'
  1038. Up.BottomSurface = "Smooth"
  1039. Up.FormFactor = "Custom" Up.CanCollide = false
  1040. Up.BrickColor = BrickColor.new("New Yeller")
  1041. Up.Size = Vector3.new(0.200000003, 1, 0.400000006)
  1042. Upweld = Instance.new("ManualWeld")
  1043. Upweld.Part0 = Handle Upweld.Part1 = Up Upweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1044. Upweld.C1 = CFrame.new(-0.0500155687, -1.95002747, 0.200003147, -1, 0, 0, 0, 1, 0, -0, 0, -1)
  1045. Upweld.Parent = Up
  1046. Connector.Material="Neon"
  1047. Grip.Material="Neon"
  1048. Up.Material="Neon"
  1049. Down.Material="Neon"
  1050. Handle.Archivable=true
  1051. else
  1052. local init = Mouse.Hit.p
  1053. for derp,rekt in pairs(spears) do
  1054. spawn(function()
  1055. local asd = rekt
  1056. asd:BreakJoints()
  1057. asd.Parent = workspace
  1058. asd.CanCollide = true
  1059. local parts = {asd.Connector,asd.Up,asd.Down,asd.Grip}
  1060. local cframes = {Connectorweld.C1,Upweld.C1,Downweld.C1,Gripweld.C1}
  1061. for i,v in pairs(parts) do v.Anchored=true end asd.Anchored=true
  1062. for i = 1,200 do
  1063. rs()
  1064. for _,v in pairs(asd:GetTouchingParts()) do
  1065. if v.Parent~=nil then
  1066. if v.Parent:FindFirstChild("Humanoid") and v.Parent~=Character then
  1067. v.Parent.Humanoid.Health=v.Parent.Humanoid.Health-math.huge
  1068. end
  1069. end
  1070. end
  1071. local Distance = (init-asd.Position).magnitude
  1072. if Distance > 2 then Distance = 2 end
  1073. asd.CFrame = CFrame.new(asd.Position,init) * CFrame.new(0,0,-Distance) * CFrame.Angles(math.rad(-90),math.rad(90),0)
  1074. for _,v in pairs(parts) do
  1075. v.CFrame=asd.CFrame*cframes[_]:inverse()
  1076. end
  1077. end
  1078. asd:Remove()
  1079. for i,v in pairs(parts) do v:Remove() end
  1080. end)
  1081. end
  1082. spears = {}
  1083. end
  1084. Sound(696796381,Handle,1,1)
  1085. for i = 1,10 do
  1086. rs()
  1087. RW.C0=clerp(RWC0,CFrame.new(1.5, 0.5, 0, -0.969445348, 0.175265431, 0.171632558, 0.245307371, 0.692642331, 0.678285301, 0, 0.699663281, -0.714472771),i/10)
  1088. LW.C0=clerp(LWC0,CFrame.new(-1.5, 0.5, 0, 0.880477369, 0.474088192, 0, -0.0928957462, 0.172526136, -0.980614662, -0.464897841, 0.863409042, 0.195946127),i/10)
  1089. end
  1090. enabled=true
  1091. Arms=true
  1092. end
  1093. end)
  1094. local part = game.Players.LocalPlayer.Character
  1095. local basetemplate = "http://www.roblox.com/asset/?id="
  1096. local shirt = 753778296
  1097. local pants = 762060894
  1098. local h = part:findFirstChild("Shirt")
  1099. if h ~= nil then
  1100. h.ShirtTemplate = basetemplate..shirt
  1101. else
  1102. local i = Instance.new("Shirt")
  1103. i.Name = "Shirt"
  1104. i.ShirtTemplate = basetemplate..shirt
  1105. i.Parent = part
  1106. end
  1107. local p = part:findFirstChild("Pants")
  1108. if p ~= nil then
  1109. p.PantsTemplate = basetemplate..pants
  1110. else
  1111. local np = Instance.new("Pants")
  1112. np.PantsTemplate = basetemplate..pants
  1113. np.Name = "Pants"
  1114. np.Parent = part
  1115. gui1=Instance.new("BillboardGui")
  1116. gui1.Parent= game.Workspace.LocalPlayer.Head
  1117. gui1.Adornee= game.Workspace.LocalPlayer.Head
  1118. gui1.Size=UDim2.new(2.5,0,2.5,0)
  1119. gui1.StudsOffset=Vector3.new(0,0,0)
  1120. gui1.AlwaysOnTop = true
  1121. text1=Instance.new("ImageLabel")
  1122. text1.Image = "http://www.roblox.com/asset/?id=187273044" --[[Face Image Source (If you wish to change the face to a different decal put it in there]]
  1123. text1.Size=UDim2.new(1,0,1,0)
  1124. text1.Position=UDim2.new(0,0,0,0)
  1125. text1.BackgroundTransparency = 1
  1126. text1.Parent=gui1
  1127. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement