Advertisement
lafur

Untitled

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