Dark_EccentricYT

Untitled

Jul 9th, 2018
1,353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.11 KB | None | 0 0
  1. --//Harley Quinn created by WaverlyCole
  2. player = game:service'Players'.LocalPlayer
  3. mouse = player:GetMouse()
  4. char = player.Character
  5. humanoid = char.Humanoid
  6. rootpart = char.HumanoidRootPart
  7. torso = char.Torso
  8. hitdbtime = .5
  9. --//Joints
  10. N=torso:FindFirstChild("Neck")
  11. RS=torso:FindFirstChild("Right Shoulder")
  12. LS=torso:FindFirstChild("Left Shoulder")
  13. RH=torso:FindFirstChild("Right Hip")
  14. LH=torso:FindFirstChild("Left Hip")
  15. RJ=rootpart:FindFirstChild("RootJoint")
  16. --//Default C0's
  17. NC0=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  18. RSC0=CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  19. LSC0=CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  20. RHC0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  21. LHC0=CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  22. RJC0=CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  23. --//Cheats
  24. cframe = CFrame.new
  25. angle = CFrame.Angles
  26. radian = math.rad
  27. random = math.random
  28. --//Variables
  29. local idle,walk,fall,jump = false,false,false,false
  30. local jumpcheck = false
  31. local specialanim = nil
  32. --//Functions
  33. local function weldBetween(a, b)
  34. local weld = Instance.new("ManualWeld")
  35. weld.Part0 = a
  36. weld.Part1 = b
  37. weld.C0 = CFrame.new()
  38. weld.C1 = b.CFrame:inverse() * a.CFrame
  39. weld.Parent = a
  40. return weld;
  41. end
  42. local animate = function(joint,prop,cfrmz,alp)
  43. joint[prop]=joint[prop]:lerp(cfrmz,alp)
  44. end
  45. --//Harley Quinn created by WaverlyCole
  46. local movedb,hitting = false,false
  47. local keyDown = function(key)
  48. if movedb then return end
  49. if key == 'q' then
  50. movedb = true
  51. char.Humanoid.WalkSpeed = 0
  52. specialanim = function()
  53. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.1)
  54. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(-90),radian(90 + math.sin(tick()*2)*5)),0.1)
  55. animate(LS,'C0',LSC0*cframe(0,0,-.5)*angle(radian(0),radian(-30),radian(-90 + math.sin(tick()*2)*-5)),0.1)
  56. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.1)
  57. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.1)
  58. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(-50)),0.1)
  59. animate(BATWELD,'C0',BATC0*cframe(-1.5,-1.5,0)*angle(radian(0),radian(0),radian(90)),0.5)
  60. end
  61. wait(.5)
  62. hitting = true
  63. specialanim = function()
  64. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  65. animate(RS,'C0',RSC0*cframe(0,0,-.5)*angle(radian(0),radian(20),radian(90 + math.sin(tick()*2)*5)),0.3)
  66. animate(LS,'C0',LSC0*cframe(0,0,-.5)*angle(radian(0),radian(-45),radian(-90 + math.sin(tick()*2)*-5)),0.3)
  67. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  68. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  69. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(90)),0.3)
  70. animate(BATWELD,'C0',BATC0*cframe(-1.5,-2,0)*angle(radian(90),radian(0),radian(100)),0.3)
  71. end
  72. wait(.5)
  73. specialanim = nil
  74. hitting = false
  75. movedb = false
  76. char.Humanoid.WalkSpeed = 20
  77. elseif key =='e' then
  78. hitdbtime = .01
  79. movedb = true
  80. hitting = true
  81. char.Humanoid.WalkSpeed = 0
  82. for i = 1,360,20 do
  83. specialanim = function()
  84. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  85. animate(RS,'C0',RSC0*cframe(0,0,-.5)*angle(radian(0),radian(20),radian(90 + math.sin(tick()*2)*5)),0.3)
  86. animate(LS,'C0',LSC0*cframe(0,0,-.5)*angle(radian(0),radian(-45),radian(-90 + math.sin(tick()*2)*-5)),0.3)
  87. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  88. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  89. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(i)),0.3)
  90. animate(BATWELD,'C0',BATC0*cframe(-1.5,-2,0)*angle(radian(90),radian(0),radian(100)),0.3)
  91. end
  92. game:service'RunService'.RenderStepped:wait()
  93. end
  94. movedb = false
  95. hitting = false
  96. hitdbtime = .5
  97. specialanim = nil
  98. char.Humanoid.WalkSpeed = 20
  99. elseif key == 'f' then
  100. movedb = true
  101. char.Humanoid.WalkSpeed = 0
  102. specialanim = function()
  103. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  104. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(-10),radian(60 + math.sin(tick()*2)*5)),0.3)
  105. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(10),radian(0),radian(0)),0.1)
  106. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  107. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  108. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(math.sin(tick()*(char.Humanoid.WalkSpeed/2))/3),radian(0)),0.3)
  109. animate(BATWELD,'C0',BATC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  110. end
  111. wait(.2)
  112. local ball = Instance.new'Part'
  113. local ballmesh = Instance.new('SpecialMesh',ball)
  114. ballmesh.MeshId = 'http://www.roblox.com/asset/?id=55021861'
  115. ballmesh.TextureId = 'http://www.roblox.com/asset/?id=188135984'
  116. ballmesh.Scale = Vector3.new(3,3,3)
  117. ball.Shape = 'Ball'
  118. ball.Size = Vector3.new(1,1,1)
  119. ball.CanCollide = false
  120. ball.CFrame = char['Left Arm'].CFrame * CFrame.new(0,-1,0)
  121. ball.Parent = char
  122. local ballweld = weldBetween(ball,char['Left Arm'])
  123. specialanim = function()
  124. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  125. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(-10),radian(60 + math.sin(tick()*2)*5)),0.3)
  126. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(-30),radian(0),radian(0)),0.1)
  127. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  128. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  129. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(math.sin(tick()*(char.Humanoid.WalkSpeed/2))/3),radian(0)),0.3)
  130. animate(BATWELD,'C0',BATC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  131. end
  132. wait(.1)
  133. specialanim = function()
  134. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  135. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(-10),radian(60 + math.sin(tick()*2)*5)),0.3)
  136. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(-85)),0.5)
  137. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  138. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  139. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(math.sin(tick()*(char.Humanoid.WalkSpeed/2))/3),radian(0)),0.3)
  140. animate(BATWELD,'C0',BATC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  141. end
  142. wait(.1)
  143. ballweld:Destroy()
  144. ball.Anchored = true
  145. spawn(function()
  146. for i = 1,20 do
  147. ball.CFrame = ball.CFrame * CFrame.new(.1,-.1,0)
  148. game:service'RunService'.RenderStepped:wait()
  149. end
  150. end)
  151. wait(.1)
  152. specialanim = function()
  153. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.1)
  154. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(-90),radian(90 + math.sin(tick()*2)*5)),0.1)
  155. animate(LS,'C0',LSC0*cframe(0,0,-.5)*angle(radian(0),radian(-20),radian(-90)),0.1)
  156. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.1)
  157. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.1)
  158. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(-50)),0.1)
  159. animate(BATWELD,'C0',BATC0*cframe(-1.5,-1.5,0)*angle(radian(0),radian(0),radian(90)),0.5)
  160. end
  161. wait(.2)
  162. specialanim = function()
  163. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  164. animate(RS,'C0',RSC0*cframe(0,0,-.5)*angle(radian(0),radian(20),radian(90 + math.sin(tick()*2)*5)),0.3)
  165. animate(LS,'C0',LSC0*cframe(0,0,-.5)*angle(radian(0),radian(-45),radian(-90 + math.sin(tick()*2)*-5)),0.3)
  166. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  167. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  168. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(90)),0.3)
  169. animate(BATWELD,'C0',BATC0*cframe(-1.5,-2,0)*angle(radian(90),radian(0),radian(100)),0.3)
  170. end
  171. local force = Instance.new('BodyForce',ball)
  172. force.Force = CFrame.new(ball.CFrame.p,mouse.Hit.p).lookVector*200 + Vector3.new(0,60,0)
  173. batsound.TimePosition = .7
  174. batsound:Play()
  175. ball.Anchored=false
  176. ball.Touched:connect(function(ob)
  177. if ob.Name ~= 'Base' and not ob:IsDescendantOf(char) then
  178. ob:Destroy()
  179. ball:Destroy()
  180. end
  181. end)
  182. wait(.5)
  183. movedb = false
  184. specialanim = nil
  185. char.Humanoid.WalkSpeed = 20
  186. elseif key == 'c' then
  187. movedb = true
  188. char.Humanoid.WalkSpeed = 0
  189.  
  190. end
  191. end
  192. --//Movement
  193. game:service'RunService'.RenderStepped:connect(function()
  194. if rootpart.Velocity.y < -1 and not idle then
  195. idle,walk,fall,jump = false,false,true,false
  196. elseif jumpcheck then
  197. idle,walk,fall,jump = false,false,false,true
  198. elseif humanoid.MoveDirection ~= Vector3.new(0,0,0) then
  199. idle,walk,fall,jump = false,true,false,false
  200. elseif humanoid.MoveDirection == Vector3.new(0,0,0) then
  201. idle,walk,fall,jump = true,false,false,false
  202. end
  203. end)
  204. --//Harley Quinn created by WaverlyCole
  205. humanoid.StateChanged:connect(function(state)
  206. if state == Enum.HumanoidStateType.Jumping then
  207. jumpcheck = true
  208. else
  209. jumpcheck = false
  210. end
  211. end)
  212. --//Animate
  213. char.Animate.Disabled = true
  214. humanoid.Animator:Destroy()
  215. local playAnimation = coroutine.wrap(function()
  216. while true do
  217. game:service'RunService'.RenderStepped:wait()
  218. if specialanim then
  219. specialanim()
  220. elseif idle then
  221. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  222. animate(RS,'C0',RSC0*cframe(.6,0,-.5)*angle(radian(40),radian(-40),radian(20 + math.sin(tick()*2)*1)),0.3)
  223. animate(LS,'C0',LSC0*cframe(0,0,-.7)*angle(radian(0),radian(-40),radian(-20 + math.sin(tick()*2)*1)),0.3)
  224. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(-1 + math.sin(tick()))*5,radian(0),radian(0)),0.3)
  225. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  226. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  227. animate(BATWELD,'C0',BATC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  228. elseif walk then
  229. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  230. animate(RS,'C0',RSC0*cframe(0,0,-.5)*angle(radian(0),radian(5),radian(60 + math.sin(tick()*2)*5)),0.3)
  231. animate(LS,'C0',LSC0*cframe(0,0,-.8)*angle(radian(0),radian(-50),radian(-60 + math.sin(tick()*2)*-5)),0.3)
  232. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(math.sin(tick()*(char.Humanoid.WalkSpeed/2))*40)),0.3)
  233. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(math.sin(tick()*-(char.Humanoid.WalkSpeed/2))*-40)),0.3)
  234. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(math.sin(tick()*(char.Humanoid.WalkSpeed/2))/3),radian(0)),0.3)
  235. animate(BATWELD,'C0',BATC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  236. elseif fall then
  237. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  238. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  239. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  240. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  241. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  242. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  243. animate(BATWELD,'C0',BATC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  244. elseif jump then
  245. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  246. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  247. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  248. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  249. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  250. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  251. animate(BATWELD,'C0',BATC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  252. end
  253. end
  254. end)
  255. --//Outfit
  256. repeat wait() until char:FindFirstChild'Pants'
  257. char.Pants.PantsTemplate = 'http://www.roblox.com/asset/?id=476061531'
  258. char.Shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=476061468'
  259. char.Head.face.Texture = 'http://www.roblox.com/asset/?id=519345419'
  260. for i,v in pairs(char:children()) do
  261. if v:IsA'Accessory' then
  262. v:Destroy()
  263. end
  264. end
  265. hair = Instance.new('Part')
  266. local mesh = Instance.new('SpecialMesh',hair)
  267. mesh.MeshId = 'rbxassetid://443042960'
  268. mesh.Scale = Vector3.new(0.032, 0.032, 0.032)
  269. mesh.TextureId = 'http://www.roblox.com/asset/?id=442391693'
  270. hair.Size = Vector3.new(.1,.1,.1)
  271. hair.CanCollide=false
  272. hair.CFrame = char.Head.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,-.8,.4)
  273. hair.Parent=char.Head
  274. weldBetween(hair,char.Head)
  275. bat = Instance.new('Part')
  276. batmesh = Instance.new('SpecialMesh',bat)
  277. batmesh.MeshId = 'rbxassetid://491941089'
  278. batmesh.Scale = Vector3.new(0.032, 0.02, 0.032)
  279. batmesh.TextureId = 'rbxassetid://491941393'
  280. bat.Size = Vector3.new(.4,4,.4)
  281. bat.CanCollide=false
  282. bat.CFrame = char['Right Arm'].CFrame * CFrame.Angles(math.rad(-90),0,0) * CFrame.new(0,1.5,-1)
  283. bat.Parent = char
  284. local weld = weldBetween(bat,char['Right Arm'])
  285. BATC0 = weld.C0
  286. BATWELD = weld
  287. batsound = Instance.new('Sound',bat)
  288. batsound.SoundId = 'rbxassetid://724537174'
  289. batsound.Volume = 10
  290. batsound.Pitch = .8
  291.  
  292. char.Humanoid.WalkSpeed = 20
  293. --//Harley Quinn created by WaverlyCole
  294. playAnimation()
  295. local db = false
  296. bat.Touched:connect(function(obj)
  297. local direction = CFrame.new(bat.CFrame.p,obj.CFrame.p)
  298. if obj.Name == 'HumanoidRootPart' or obj.Name == 'Base' then return end
  299. if not hitting or db then return end
  300. if not obj:IsDescendantOf(char) then
  301. print('hit '..obj.Name)
  302. db = true
  303. obj:BreakJoints()
  304. obj.Anchored=false
  305. local force = Instance.new('BodyForce',obj)
  306. force.Force = bat.CFrame.lookVector*500+Vector3.new(0,100,0)
  307. batsound.TimePosition = .7
  308. batsound:Play()
  309. wait(hitdbtime)
  310. force:Destroy()
  311. db = false
  312. end
  313. end)
  314. --//Harley Quinn created by WaverlyCole
  315. mouse.KeyDown:connect(keyDown)
Add Comment
Please, Sign In to add comment