Advertisement
TheUnknownDiscord

ghost runne

Jul 3rd, 2022
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.25 KB | None | 0 0
  1. local i1 = false
  2. local i2 = false
  3. local i3 = false
  4. e = Instance.new("RemoteEvent",owner.PlayerGui)
  5. NLS([[
  6. e = script.Parent
  7. local dead = false
  8. e.OnClientEvent:Connect(function()
  9. dead = true
  10. end)
  11. local lastcf = CFrame.new()
  12. local wruns = nil
  13. local wrun = false
  14. local lres = nil
  15. local rres = nil
  16. local params = RaycastParams.new()
  17. params.FilterDescendantsInstances = {owner.Character,script}
  18. params.FilterType = Enum.RaycastFilterType.Blacklist
  19. local left,right = false,false
  20. local lru,rru = false,false
  21. function jump()
  22. wrun = false
  23. if rru then
  24. left = true
  25. e:FireServer()
  26. owner.Character.Humanoid.AutoRotate = true
  27. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.rightVector * -50 + owner.Character.HumanoidRootPart.CFrame.lookVector * 28 + Vector3.new(0,30,0)
  28. elseif lru then
  29. right = true
  30. e:FireServer()
  31. owner.Character.Humanoid.AutoRotate = true
  32. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.rightVector * 50 + owner.Character.HumanoidRootPart.CFrame.lookVector * 28 + Vector3.new(0,30,0)
  33. end
  34. coroutine.wrap(function()
  35. wait(0.5)
  36. left = false
  37. right = false
  38. end)()
  39. game:GetService("Debris"):AddItem(wruns,0.2)
  40. end
  41. game:GetService("RunService").RenderStepped:Connect(function()
  42. if not dead then
  43. if owner.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  44. local lr, rr = nil,nil
  45. if not wrun then
  46. if not left then
  47. lr = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.rightVector * -3, params)
  48. end
  49. if not right then
  50. rr = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.rightVector * 3, params)
  51. end
  52. else
  53. if not left then
  54. lr = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.rightVector * -8, params)
  55. end
  56. if not right then
  57. rr = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.rightVector * 8, params)
  58. end
  59. end
  60. if lr and rr and not wrun then
  61. local shortest = (lr.Position - owner.Character.HumanoidRootPart.Position).Magnitude > (rr.Position - owner.Character.HumanoidRootPart.Position).Magnitude
  62. local whatwall = lr
  63. if shortest then
  64. whatwall = rr
  65. end
  66. if not (whatwall.Instance:FindFirstAncestorWhichIsA("Model") and whatwall.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
  67. if whatwall == lr then
  68. lru = true
  69. e:FireServer(-15,"run")
  70. else
  71. rru = true
  72. e:FireServer(15,"run")
  73. end
  74. wrun = true
  75. if whatwall == lr then
  76. lres = lr.Instance
  77. else
  78. rres = rr.Instance
  79. end
  80. wruns = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
  81. wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  82. owner.Character.Humanoid.AutoRotate = false
  83. local pos,surface = whatwall.Position,whatwall.Normal
  84. if whatwall == lr then
  85. local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  86. owner.Character.HumanoidRootPart.CFrame = CFrame.new(whatwall.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1.8,0,0)
  87. lastcf = cf
  88. else
  89. local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  90. owner.Character.HumanoidRootPart.CFrame = CFrame.new(whatwall.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(-1.8,0,0)
  91. lastcf = cf
  92. end
  93. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
  94. end
  95. elseif lr and not wrun then
  96. if not (lr.Instance:FindFirstAncestorWhichIsA("Model") and lr.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
  97. lru = true
  98. e:FireServer(-15,"run")
  99. wrun = true
  100. lres = lr.Instance
  101. wruns = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
  102. wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  103. owner.Character.Humanoid.AutoRotate = false
  104. local pos,surface = lr.Position,lr.Normal
  105. local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  106. owner.Character.HumanoidRootPart.CFrame = CFrame.new(lr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1.8,0,0)
  107. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
  108. lastcf = cf
  109. end
  110. elseif not lr and wrun and not rr then
  111. lru = false
  112. rru = false
  113. e:FireServer()
  114. owner.Character.Humanoid.AutoRotate = true
  115. wruns:Destroy()
  116. wruns = nil
  117. rres = nil
  118. lres = nil
  119. wrun = false
  120. elseif lr and wrun and lres then
  121. if lr.Instance ~= lres then
  122. if not (lr.Instance:FindFirstAncestorWhichIsA("Model") and lr.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
  123. lres = lr.Instance
  124. wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  125. local pos,surface = lr.Position,lr.Normal
  126. local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  127. owner.Character.HumanoidRootPart.CFrame = CFrame.new(lr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1.8,0,0)
  128. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
  129. lastcf = cf
  130. else
  131. e:FireServer()
  132. owner.Character.Humanoid.AutoRotate = true
  133. end
  134. else
  135. lres = lr.Instance
  136. wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  137. local pos,surface = lr.Position,lr.Normal
  138. local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  139. if cf:ToEulerAnglesXYZ() ~= lastcf:ToEulerAnglesXYZ() then
  140. owner.Character.HumanoidRootPart.CFrame = CFrame.new(lr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1.8,0,0)
  141. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
  142. lastcf = cf
  143. end
  144. end
  145. elseif rr and not wrun then
  146. if not (rr.Instance:FindFirstAncestorWhichIsA("Model") and rr.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
  147. rru = true
  148. e:FireServer(15,"run")
  149. rres = rr.Instance
  150. wrun = true
  151. wruns = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
  152. wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  153. owner.Character.Humanoid.AutoRotate = false
  154. local pos,surface = rr.Position,rr.Normal
  155. local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  156. owner.Character.HumanoidRootPart.CFrame = CFrame.new(rr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(-1.8,0,0)
  157. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
  158. lastcf = cf
  159. end
  160. elseif rr and wrun and rres then
  161. if rr.Instance ~= rres then
  162. if not (rr.Instance:FindFirstAncestorWhichIsA("Model") and rr.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
  163. rres = rr.Instance
  164. wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  165. local pos,surface = rr.Position,rr.Normal
  166. local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  167. owner.Character.HumanoidRootPart.CFrame = CFrame.new(rr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1-.8,0,0)
  168. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
  169. else
  170. e:FireServer()
  171. owner.Character.Humanoid.AutoRotate = true
  172. end
  173. else
  174. rres = rr.Instance
  175. wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  176. local pos,surface = rr.Position,rr.Normal
  177. local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  178. if cf:ToEulerAnglesXYZ() ~= lastcf:ToEulerAnglesXYZ() then
  179. owner.Character.HumanoidRootPart.CFrame = CFrame.new(rr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1-.8,0,0)
  180. wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
  181. lastcf = cf
  182. end
  183. end
  184. end
  185. end
  186. end
  187. end)
  188. local UserInputService = game:GetService("UserInputService")
  189. UserInputService.JumpRequest:Connect(function()
  190. if wrun then
  191. jump()
  192. wrun = false
  193. end
  194. end)
  195. ]],e)
  196. function ragdoll(who)
  197. pcall(function()
  198. local limbcollider = Instance.new("Part", who:FindFirstChild("Right Arm"))
  199. limbcollider.Size = Vector3.new(1.4,1,1)
  200. limbcollider.Transparency = 1
  201. limbcollider.Name = "LimbCollider"
  202. local limbcolliderweld = Instance.new("Weld", limbcollider)
  203. limbcolliderweld.Part0 = who:FindFirstChild("Right Arm")
  204. limbcolliderweld.Part1 = limbcollider
  205. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  206. local limbcollider2 = Instance.new("Part", who:FindFirstChild("Left Arm"))
  207. limbcollider2.Size = Vector3.new(1.4,1,1)
  208. limbcollider2.Transparency = 1
  209. limbcollider2.Name = "LimbCollider"
  210. local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
  211. limbcolliderweld2.Part0 = who:FindFirstChild("Left Arm")
  212. limbcolliderweld2.Part1 = limbcollider2
  213. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  214. local limbcollider3 = Instance.new("Part", who.Head)
  215. limbcollider3.Size = Vector3.new(0.5,0.5,0.5)
  216. limbcollider3.Shape = "Ball"
  217. limbcollider3.Transparency = 1
  218. limbcollider3.Name = "LimbCollider"
  219. local limbcolliderweld = Instance.new("Weld", limbcollider3)
  220. limbcolliderweld.Part0 = who.Head
  221. limbcolliderweld.Part1 = limbcollider3
  222. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  223. local Socket = Instance.new("BallSocketConstraint")
  224. local a1 = Instance.new("Attachment")
  225. local a2 = Instance.new("Attachment")
  226. a1.Parent = who["Left Arm"]
  227. a2.Parent = who.Torso
  228. Socket.Parent = who["Left Arm"]
  229. Socket.Attachment0 = a1
  230. Socket.Attachment1 = a2
  231. a1.CFrame = CFrame.new(0,0.5,0)
  232. a2.CFrame = CFrame.new(-1.5,0.5,0)
  233. Socket.LimitsEnabled = true
  234. local Socket = Instance.new("BallSocketConstraint")
  235. local a1 = Instance.new("Attachment")
  236. local a2 = Instance.new("Attachment")
  237. a1.Parent = who["Left Leg"]
  238. a2.Parent = who.Torso
  239. Socket.Parent = who["Left Leg"]
  240. Socket.Attachment0 = a1
  241. Socket.Attachment1 = a2
  242. a1.CFrame = CFrame.new(0,0.5,0)
  243. a2.CFrame = CFrame.new(-0.5,-1.5,0)
  244. Socket.LimitsEnabled = true
  245. local Socket = Instance.new("BallSocketConstraint")
  246. local a1 = Instance.new("Attachment")
  247. local a2 = Instance.new("Attachment")
  248. a1.Parent = who["Right Leg"]
  249. a2.Parent = who.Torso
  250. Socket.Parent = who["Right Leg"]
  251. Socket.Attachment0 = a1
  252. Socket.Attachment1 = a2
  253. Socket.LimitsEnabled = true
  254. a1.CFrame = CFrame.new(0,0.5,0)
  255. a2.CFrame =CFrame.new(0.5,-1.5,0)
  256. local limbcollider = Instance.new("Part", who:FindFirstChild("Right Leg"))
  257. limbcollider.Size = Vector3.new(1.4,1,1)
  258. limbcollider.Transparency = 1
  259. limbcollider.Name = "LimbCollider"
  260. local limbcolliderweld = Instance.new("Weld", limbcollider)
  261. limbcolliderweld.Part0 = who:FindFirstChild("Right Leg")
  262. limbcolliderweld.Part1 = limbcollider
  263. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  264. local limbcollider2 = Instance.new("Part", who:FindFirstChild("Left Leg"))
  265. limbcollider2.Size = Vector3.new(1.4,1,1)
  266. limbcollider2.Transparency = 1
  267. limbcollider2.Name = "LimbCollider"
  268. local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
  269. limbcolliderweld2.Part0 = who:FindFirstChild("Left Leg")
  270. limbcolliderweld2.Part1 = limbcollider2
  271. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  272. local Socket = Instance.new("BallSocketConstraint")
  273. local a1 = Instance.new("Attachment")
  274. local a2 = Instance.new("Attachment")
  275. a1.Parent = who.Head
  276. a2.Parent = who.Torso
  277. Socket.Parent = who.Head
  278. Socket.Attachment0 = a1
  279. Socket.Attachment1 = a2
  280. a1.CFrame = CFrame.new(0,-0.5,0)
  281. a2.CFrame = CFrame.new(0,1.0625,0)
  282. Socket.TwistLimitsEnabled = true
  283. Socket.LimitsEnabled = true
  284. local Socket = Instance.new("BallSocketConstraint")
  285. local a1 = Instance.new("Attachment")
  286. local a2 = Instance.new("Attachment")
  287. a1.Parent = who["Right Arm"]
  288. a2.Parent = who.Torso
  289. Socket.Parent = who["Right Arm"]
  290. Socket.Attachment0 = a1
  291. Socket.Attachment1 = a2
  292. a1.CFrame = CFrame.new(0,0.5,0)
  293. a2.CFrame = CFrame.new(1.5,0.5,0)
  294. Socket.LimitsEnabled = true
  295. end)
  296. end
  297. function monar(WHAT, duration)
  298. game:GetService("Debris"):AddItem(WHAT, duration)
  299. end
  300. function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, du)
  301. local connection = Instance.new('BallSocketConstraint', limb)
  302. local bone = Instance.new("Part", limb)
  303. connection.LimitsEnabled = true
  304. connection.Attachment0 = attachementone
  305. connection.Attachment1 = attachmenttwo
  306. connection.TwistLimitsEnabled = true
  307. connection.TwistLowerAngle = twistlower
  308. connection.TwistUpperAngle = twistupper
  309. bone:BreakJoints()
  310. local bonew = Instance.new("Weld", bone)
  311. bonew.Part0 = limb
  312. bonew.Part1 = bone
  313. bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
  314. bone.Size = Vector3.new(limb.Size.y/4,limb.Size.z,limb.Size.x)
  315. bone.Transparency = 1
  316. bone.Shape = "Cylinder"
  317. bone.Name = "bon"
  318. local noc = Instance.new("NoCollisionConstraint", bone)
  319. noc.Part0 = attachementone.Parent
  320. noc.Part1 = attachmenttwo.Parent
  321. monar(bone, du)
  322. monar(connection, du)
  323. end
  324. function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper, du)
  325. local connection = Instance.new('HingeConstraint', limb)
  326. local bone = Instance.new("Part", limb)
  327. bone.Name = "bon"
  328. connection.LimitsEnabled = true
  329. connection.Attachment0 = attachementone
  330. connection.Attachment1 = attachmenttwo
  331. connection.LimitsEnabled = true
  332. connection.LowerAngle = lower
  333. connection.UpperAngle = upper
  334. bone:BreakJoints()
  335. local bonew = Instance.new("Weld", bone)
  336. bonew.Part0 = limb
  337. bonew.Part1 = bone
  338. bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
  339. bone.Size = Vector3.new(limb.Size.y/4,limb.Size.z,limb.Size.x)
  340. bone.Transparency = 1
  341. bone.Shape = "Cylinder"
  342. local noc = Instance.new("NoCollisionConstraint", bone)
  343. noc.Part0 = attachementone.Parent
  344. noc.Part1 = attachmenttwo.Parent
  345. monar(bone, du)
  346. monar(connection, du)
  347. end
  348. function par()
  349. return script
  350. end
  351. function makeragdolllimbr6(limb, dudetorso, at1pos, at2pos, lowt, upt, duratio)
  352. local at1 = Instance.new("Attachment", dudetorso)
  353. local at2 = Instance.new("Attachment", limb)
  354. at1.Position = at1pos
  355. at2.Position = at2pos
  356. makeballconnections(limb, at1, at2, lowt, upt, duratio)
  357. game.Debris:AddItem(at1, duratio)
  358. game.Debris:AddItem(at2, duratio)
  359. end
  360. owner.Character.Humanoid.MaxHealth = 0.1
  361. task.wait()
  362. local dead = false
  363. owner.Character.AncestryChanged:Connect(function(_, parent)
  364. if parent == nil or parent == NULL then
  365. dead = true
  366. e:FireClient(owner)
  367. end
  368. end)
  369. owner.Character.Humanoid.HealthChanged:Connect(function()
  370. if owner.Character.Humanoid.Health ~= 0.01 then
  371. owner.Character.Humanoid.Health = 0
  372. dead = true
  373. e:FireClient(owner)
  374. else
  375. dead = true
  376. e:FireClient(owner)
  377. end
  378. end)
  379. tool = Instance.new("Tool",owner.Backpack)
  380. tool.Grip = CFrame.new(0,0,0) * CFrame.Angles(math.rad(-90),0,math.rad(-90))
  381. local part = Instance.new("Part",tool)
  382. part.Name = "Handle"
  383. part.Transparency = 1
  384. part.Size = Vector3.new(0.01,0.01,0.01)
  385. local ka = Instance.new("Part",part)
  386. ka.Size = Vector3.new(0.478, 0.623,0.058)
  387. ka.Color = Color3.fromRGB(163, 162, 165)
  388. ka.Material = "Metal"
  389. ka.Massless = true
  390. ka.CanCollide = false
  391. local m = Instance.new("SpecialMesh",ka)
  392. m.MeshId = "rbxassetid://9311200171"
  393. m.Scale = Vector3.new(0.125,0.125,0.125)
  394. local text = Instance.new("Texture",ka)
  395. text.Texture = "rbxassetid://6199682276"
  396. local ka2 = Instance.new("Part",part)
  397. ka2.Size = Vector3.new(4.845, 0.763,0.008)
  398. ka2.Color = Color3.fromRGB(255, 238, 0)
  399. ka2.Material = "Neon"
  400. ka2.Massless = true
  401. ka2.CanCollide = false
  402. local m2 = Instance.new("SpecialMesh",ka2)
  403. m2.MeshId = "rbxassetid://9311200406"
  404. m2.Scale = Vector3.new(0.125,0.125,0.125)
  405. local ka3 = Instance.new("Part",part)
  406. ka3.Size = Vector3.new(2.042, 0.448,0.128)
  407. ka3.Color = Color3.fromRGB(27, 42, 53)
  408. ka3.Material = "Metal"
  409. ka3.Massless = true
  410. ka3.CanCollide = false
  411. local m3 = Instance.new("SpecialMesh",ka3)
  412. m3.MeshId = "rbxassetid://9311199901"
  413. m3.Scale = Vector3.new(0.125,0.125,0.125)
  414. local text = Instance.new("Texture",ka3)
  415. text.Texture = "rbxassetid://6199682276"
  416. local ka4 = Instance.new("Part",part)
  417. ka4.Size = Vector3.new(5.354, 0.781,0.033)
  418. ka4.Color = Color3.fromRGB(99, 95, 98)
  419. ka4.Material = "Metal"
  420. ka4.Massless = true
  421. ka4.CanCollide = false
  422. local m4 = Instance.new("SpecialMesh",ka4)
  423. m4.MeshId = "rbxassetid://9311200636"
  424. m4.Scale = Vector3.new(0.125,0.125,0.125)
  425. local text = Instance.new("Texture",ka4)
  426. text.Texture = "rbxassetid://6199682276"
  427. local kwel = Instance.new("Weld",part)
  428. kwel.Part0 = ka
  429. kwel.Part1 = part
  430. kwel.C0 = CFrame.new(-0.735,0.0625,0)
  431. local kwel2 = Instance.new("Weld",part)
  432. kwel2.Part0 = ka2
  433. kwel2.Part1 = part
  434. kwel2.C0 = CFrame.new(-3.25,-0.325,0)
  435. local kwel3 = Instance.new("Weld",part)
  436. kwel3.Part0 = ka3
  437. kwel3.Part1 = part
  438. local kwel4 = Instance.new("Weld",part)
  439. kwel4.Part0 = ka4
  440. kwel4.Part1 = part
  441. kwel4.C0 = CFrame.new(-2.8,-0.285,0)
  442. local sound = Instance.new("Sound",part)
  443. sound.Volume = 1
  444. local sound2 = Instance.new("Sound",part)
  445. sound2.Volume = 1
  446. local m = Instance.new("SpecialMesh",part)
  447. m.MeshId = "rbxassetid://443853663"
  448. m.Scale = Vector3.new(4, 5.9523801803589, 4.7500004768372)
  449. m.TextureId = "rbxassetid://443853675"
  450. canattack = false
  451. function test()
  452. local params = OverlapParams.new()
  453. params.FilterDescendantsInstances = {owner.Character:GetDescendants(), script}
  454. params.FilterType = Enum.RaycastFilterType.Blacklist
  455. coroutine.wrap(function()
  456. local attackcount = 0
  457. while canattack and task.wait() do
  458. for _, what in pairs(workspace:GetPartBoundsInBox(CFrame.new(owner.Character.Head.Position + owner.Character.Head.Velocity * owner:GetNetworkPing()) * CFrame.Angles(owner.Character.Head.CFrame:ToEulerAnglesXYZ()) * CFrame.new(0,-1,-4), Vector3.new(7,7,7), params)) do
  459. if what:FindFirstAncestorWhichIsA("Model") and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") and canattack and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health > 0.01 then
  460. attackcount += 1
  461. if attackcount == 3 then
  462. canattack = false
  463. end
  464. sound2.TimePosition = 0
  465. local st = {"9067237166","7171761940"}
  466. sound2.SoundId = "rbxassetid://"..st[math.random(1,2)]
  467. sound2:Play()
  468. local arc = false
  469. if what:FindFirstAncestorWhichIsA("Model").Archivable == false then
  470. what:FindFirstAncestorWhichIsA("Model").Archivable = true
  471. arc = true
  472. end
  473. local c = what:FindFirstAncestorWhichIsA("Model")
  474. local c2 = c:Clone()
  475. c2.Parent = c
  476. if arc then
  477. c.Archivable = false
  478. end
  479. task.wait()
  480. if c:FindFirstChild("Torso") then
  481. c2.Humanoid.RequiresNeck = false
  482. c.Humanoid.RequiresNeck = false
  483. ragdoll(c)
  484. ragdoll(c2)
  485. c2.Humanoid.Health = 0.01
  486. c.Humanoid.Health = 0.01
  487. c.Humanoid.PlatformStand = true
  488. c2.Humanoid.PlatformStand = true
  489. game:GetService("Debris"):AddItem(c,5)
  490. game:GetService("Debris"):AddItem(c2,5)
  491. if c:FindFirstChild("Health") then
  492. c:FindFirstChild("Health"):Destroy()
  493. end
  494. if c2:FindFirstChild("Health") then
  495. c2:FindFirstChild("Health"):Destroy()
  496. end
  497. if c2:FindFirstChild("Head") then
  498. c2.Head:Destroy()
  499. end
  500. if c2:FindFirstChild("Left Arm") then
  501. c2["Left Arm"]:Destroy()
  502. end
  503. if c2:FindFirstChild("Right Arm") then
  504. c2["Right Arm"]:Destroy()
  505. end
  506. if c2:FindFirstChild("Torso") then
  507. c2.Torso.Transparency = 1
  508. end
  509. if c:FindFirstChild("Left Leg") then
  510. c["Left Leg"]:Destroy()
  511. end
  512. if c2:FindFirstChild("Right Leg") then
  513. c["Right Leg"]:Destroy()
  514. end
  515. pcall(function()
  516. local bottomred = Instance.new("Part",c.Torso)
  517. bottomred.Size = Vector3.new(c.Torso.Size.X/1.1,0.2,c.Torso.Size.Z/1.2)
  518. bottomred.Material = "Pebble"
  519. bottomred.CanCollide = false
  520. bottomred.CFrame = c.Torso.CFrame
  521. bottomred.Massless = true
  522. bottomred.BrickColor = BrickColor.new("Maroon")
  523. local w2 = Instance.new("Weld",c.Torso)
  524. w2.Part0 = bottomred
  525. w2.Part1 = c.Torso
  526. w2.C0 = CFrame.new(0,((c.Torso.Size.Y/2) + 0.0125),0)
  527. local topred = Instance.new("Part",c2.Torso)
  528. topred.Size = Vector3.new(c2.Torso.Size.X/1.1,0.2,c2.Torso.Size.Z/1.2)
  529. topred.Material = "Pebble"
  530. topred.CanCollide = false
  531. topred.Massless = true
  532. topred.CFrame = c2.Torso.CFrame
  533. topred.BrickColor = BrickColor.new("Maroon")
  534. local w = Instance.new("Weld",c2.Torso)
  535. w.Part0 = topred
  536. w.Part1 = c2.Torso
  537. w.C0 = CFrame.new(0,((c2.Torso.Size.Y/2) - 0.025),0)
  538. local slivertors = Instance.new("Part",c2.Torso)
  539. slivertors.Size = Vector3.new(c2.Torso.Size.X,0.2,c2.Torso.Size.Z)
  540. slivertors.Material = c2.Torso.Material
  541. slivertors.CanCollide = false
  542. slivertors.Massless = true
  543. slivertors.CFrame = c2.Torso.CFrame
  544. slivertors.Color = c2.Torso.Color
  545. local mes = Instance.new("SpecialMesh",slivertors)
  546. mes.MeshId = "rbxasset://fonts//torso.mesh"
  547. mes.Scale = Vector3.new(c2.Torso.Size.X/2,0.1,c2.Torso.Size.Z)
  548. local w3 = Instance.new("Weld",c2.Torso)
  549. w3.Part0 = slivertors
  550. w3.Part1 = c2.Torso
  551. w3.C0 = CFrame.new(0,((c2.Torso.Size.Y/2)),0)
  552. local ma = 0
  553. local ma2 = 0
  554. for i,v in pairs(c:GetDescendants()) do
  555. if v:IsA("BasePart") then
  556. ma = ma + v:GetMass()
  557. v:SetNetworkOwner(owner)
  558. end
  559. end
  560. for i,v in pairs(c2:GetDescendants()) do
  561. if v:IsA("BasePart") then
  562. ma2 = ma2 + v:GetMass()
  563. v:SetNetworkOwner(owner)
  564. end
  565. end
  566. c2.slivertors:ApplyImpulse(owner.Character.Head.CFrame.lookVector * (ma * 0.75) + Vector3.new(0,ma * 0.125,0))
  567. c.Torso:ApplyImpulse(owner.Character.Head.CFrame.lookVector * (ma * 0.85) + Vector3.new(0,ma * 0.75,0))
  568. end)
  569. for i,v in pairs(c:GetDescendants()) do
  570. pcall(function()
  571. if v:IsA("Motor6D") or v:IsA("Motor") and (v.Part0.Name ~= "HumanoidRootPart") then
  572. v.Enabled = false
  573. elseif v:IsA("BasePart") and v.Name ~= "LimbCollider" and v.Name ~= "HumanoidRootPart" and v.Name ~= "Torso" then
  574. v.CanCollide = false
  575. end
  576. end)
  577. end
  578. for i,v in pairs(c2:GetDescendants()) do
  579. pcall(function()
  580. if v:IsA("Motor6D") or v:IsA("Motor") and (v.Part0.Name ~= "HumanoidRootPart") then
  581. v.Enabled = false
  582. elseif v:IsA("BasePart") and v.Name ~= "LimbCollider" and v.Name ~= "HumanoidRootPart" and v.Name ~= "Torso" then
  583. v.CanCollide = false
  584. end
  585. end)
  586. end
  587. elseif c:FindFirstChild("UpperTorso") or c:FindFirstChild("LowerTorso") then
  588. local ch = c
  589. local duration = 5
  590. makehingeconnections(ch.LowerTorso, ch.LowerTorso.WaistRigAttachment, ch.UpperTorso.WaistRigAttachment, -50, 50, duration)
  591. makeballconnections(ch.LeftUpperArm, ch.LeftUpperArm.LeftShoulderRigAttachment, ch.UpperTorso.LeftShoulderRigAttachment, -200, 200, duration)
  592. makehingeconnections(ch.LeftLowerArm, ch.LeftLowerArm.LeftElbowRigAttachment, ch.LeftUpperArm.LeftElbowRigAttachment, 0, -60, duration)
  593. makehingeconnections(ch.LeftHand, ch.LeftHand.LeftWristRigAttachment, ch.LeftLowerArm.LeftWristRigAttachment, -20, 20, duration)
  594. --
  595. makeballconnections(ch.RightUpperArm, ch.RightUpperArm.RightShoulderRigAttachment, ch.UpperTorso.RightShoulderRigAttachment, -200, 200, duration)
  596. makehingeconnections(ch.RightLowerArm, ch.RightLowerArm.RightElbowRigAttachment, ch.RightUpperArm.RightElbowRigAttachment, 0, -60, duration)
  597. makehingeconnections(ch.RightHand, ch.RightHand.RightWristRigAttachment, ch.RightLowerArm.RightWristRigAttachment, -20, 20, duration)
  598. --
  599. makeballconnections(ch.RightUpperLeg, ch.RightUpperLeg.RightHipRigAttachment, ch.LowerTorso.RightHipRigAttachment, -80, 80, duration)
  600. makehingeconnections(ch.RightLowerLeg, ch.RightLowerLeg.RightKneeRigAttachment, ch.RightUpperLeg.RightKneeRigAttachment, 0, 60, duration)
  601. makehingeconnections(ch.RightFoot, ch.RightFoot.RightAnkleRigAttachment, ch.RightLowerLeg.RightAnkleRigAttachment, -20, 20, duration)
  602. --
  603. makeballconnections(ch.LeftUpperLeg, ch.LeftUpperLeg.LeftHipRigAttachment, ch.LowerTorso.LeftHipRigAttachment, -80, 80, duration)
  604. makehingeconnections(ch.LeftLowerLeg, ch.LeftLowerLeg.LeftKneeRigAttachment, ch.LeftUpperLeg.LeftKneeRigAttachment, 0, 60, duration)
  605. makehingeconnections(ch.LeftFoot, ch.LeftFoot.LeftAnkleRigAttachment, ch.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20, duration)
  606. local headattachment = Instance.new("Attachment", ch.Head)
  607. headattachment.Position = Vector3.new(0,-ch.Head.Size.y/2,0)
  608. local headattachment2 = Instance.new("Attachment", ch.UpperTorso)
  609. headattachment2.Position = Vector3.new(0,ch.UpperTorso.Size.y/2,0)
  610. makehingeconnections(ch.Head, headattachment, headattachment2, -50, 50, duration)
  611. local ch = c2
  612. local duration = 5
  613. makehingeconnections(ch.LowerTorso, ch.LowerTorso.WaistRigAttachment, ch.UpperTorso.WaistRigAttachment, -50, 50, duration)
  614. makeballconnections(ch.LeftUpperArm, ch.LeftUpperArm.LeftShoulderRigAttachment, ch.UpperTorso.LeftShoulderRigAttachment, -200, 200, duration)
  615. makehingeconnections(ch.LeftLowerArm, ch.LeftLowerArm.LeftElbowRigAttachment, ch.LeftUpperArm.LeftElbowRigAttachment, 0, -60, duration)
  616. makehingeconnections(ch.LeftHand, ch.LeftHand.LeftWristRigAttachment, ch.LeftLowerArm.LeftWristRigAttachment, -20, 20, duration)
  617. --
  618. makeballconnections(ch.RightUpperArm, ch.RightUpperArm.RightShoulderRigAttachment, ch.UpperTorso.RightShoulderRigAttachment, -200, 200, duration)
  619. makehingeconnections(ch.RightLowerArm, ch.RightLowerArm.RightElbowRigAttachment, ch.RightUpperArm.RightElbowRigAttachment, 0, -60, duration)
  620. makehingeconnections(ch.RightHand, ch.RightHand.RightWristRigAttachment, ch.RightLowerArm.RightWristRigAttachment, -20, 20, duration)
  621. --
  622. makeballconnections(ch.RightUpperLeg, ch.RightUpperLeg.RightHipRigAttachment, ch.LowerTorso.RightHipRigAttachment, -80, 80, duration)
  623. makehingeconnections(ch.RightLowerLeg, ch.RightLowerLeg.RightKneeRigAttachment, ch.RightUpperLeg.RightKneeRigAttachment, 0, 60, duration)
  624. makehingeconnections(ch.RightFoot, ch.RightFoot.RightAnkleRigAttachment, ch.RightLowerLeg.RightAnkleRigAttachment, -20, 20, duration)
  625. --
  626. makeballconnections(ch.LeftUpperLeg, ch.LeftUpperLeg.LeftHipRigAttachment, ch.LowerTorso.LeftHipRigAttachment, -80, 80, duration)
  627. makehingeconnections(ch.LeftLowerLeg, ch.LeftLowerLeg.LeftKneeRigAttachment, ch.LeftUpperLeg.LeftKneeRigAttachment, 0, 60, duration)
  628. makehingeconnections(ch.LeftFoot, ch.LeftFoot.LeftAnkleRigAttachment, ch.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20, duration)
  629. local headattachment = Instance.new("Attachment", ch.Head)
  630. headattachment.Position = Vector3.new(0,-ch.Head.Size.y/2,0)
  631. local headattachment2 = Instance.new("Attachment", ch.UpperTorso)
  632. headattachment2.Position = Vector3.new(0,ch.UpperTorso.Size.y/2,0)
  633. makehingeconnections(ch.Head, headattachment, headattachment2, -50, 50, duration)
  634. if c:WaitForChild("Head") then
  635. c:WaitForChild("Head"):Destroy()
  636. end
  637. if c:WaitForChild("UpperTorso") then
  638. c:WaitForChild("UpperTorso"):Destroy()
  639. end
  640. if c:WaitForChild("LeftUpperArm") then
  641. c:WaitForChild("LeftUpperArm"):Destroy()
  642. end
  643. if c:WaitForChild("LeftLowerArm") then
  644. c:WaitForChild("LeftLowerArm"):Destroy()
  645. end
  646. if c:WaitForChild("RightUpperArm") then
  647. c:WaitForChild("RightUpperArm"):Destroy()
  648. end
  649. if c:WaitForChild("RightLowerArm") then
  650. c:WaitForChild("RightLowerArm"):Destroy()
  651. end
  652. if c:WaitForChild("RightHand") then
  653. c:WaitForChild("RightHand"):Destroy()
  654. end
  655. if c:WaitForChild("LeftHand") then
  656. c:WaitForChild("LeftHand"):Destroy()
  657. end
  658. if c2:WaitForChild("LeftUpperLeg") then
  659. c2:WaitForChild("LeftUpperLeg"):Destroy()
  660. end
  661. if c2:WaitForChild("LeftLowerLeg") then
  662. c2:WaitForChild("LeftLowerLeg"):Destroy()
  663. end
  664. if c2:WaitForChild("RightUpperLeg") then
  665. c2:WaitForChild("RightUpperLeg"):Destroy()
  666. end
  667. if c2:WaitForChild("RightLowerLeg") then
  668. c2:WaitForChild("RightLowerLeg"):Destroy()
  669. end
  670. if c2:WaitForChild("LeftFoot") then
  671. c2:WaitForChild("LeftFoot"):Destroy()
  672. end
  673. if c2:WaitForChild("RightFoot") then
  674. c2:WaitForChild("RightFoot"):Destroy()
  675. end
  676. if c2:WaitForChild("LowerTorso") then
  677. c2:WaitForChild("LowerTorso"):Destroy()
  678. end
  679. pcall(function()
  680. local bottomred = Instance.new("Part",c.LowerTorso)
  681. bottomred.Size = Vector3.new(c.LowerTorso.Size.X/1.1,c.LowerTorso.Size.Y/3,c.LowerTorso.Size.Z/1.2)
  682. bottomred.Material = "Pebble"
  683. bottomred.CanCollide = false
  684. bottomred.CFrame = c.LowerTorso.CFrame
  685. bottomred.Massless = true
  686. bottomred.BrickColor = BrickColor.new("Maroon")
  687. local w2 = Instance.new("Weld",c.LowerTorso)
  688. w2.Part0 = bottomred
  689. w2.Part1 = c.LowerTorso
  690. w2.C0 = CFrame.new(0,-((c.LowerTorso.Size.Y/3) + 0.025),0)
  691. local topred = Instance.new("Part",c2.UpperTorso)
  692. topred.Size = Vector3.new(c2.UpperTorso.Size.X/1.1,c.LowerTorso.Size.Y/3,c2.UpperTorso.Size.Z/1.2)
  693. topred.Material = "Pebble"
  694. topred.CanCollide = false
  695. topred.Massless = true
  696. topred.CFrame = c2.UpperTorso.CFrame
  697. topred.BrickColor = BrickColor.new("Maroon")
  698. local w = Instance.new("Weld",c2.UpperTorso)
  699. w.Part0 = topred
  700. w.Part1 = c2.UpperTorso
  701. w.C0 = CFrame.new(0,((c2.UpperTorso.Size.Y/2) + 0.025),0)
  702. local at1 = Instance.new("Attachment",topred)
  703. local at0 = Instance.new("Attachment",bottomred)
  704. local ma = 0
  705. local ma2 = 0
  706. for i,v in pairs(c:GetDescendants()) do
  707. if v:IsA("BasePart") then
  708. ma = ma + v:GetMass()
  709. v:SetNetworkOwner(owner)
  710. end
  711. end
  712. for i,v in pairs(c2:GetDescendants()) do
  713. if v:IsA("BasePart") then
  714. ma2 = ma2 + v:GetMass()
  715. v:SetNetworkOwner(owner)
  716. end
  717. end
  718. c.LowerTorso:ApplyImpulse(owner.Character.Head.CFrame.lookVector * (ma * 0.75) + Vector3.new(0,ma * 0.125,0))
  719. c.UpperTorso:ApplyImpulse(owner.Character.Head.CFrame.lookVector * (ma * 0.85) + Vector3.new(0,ma * 0.75,0))
  720. end)
  721. c2.Humanoid.Health = 0.01
  722. c.Humanoid.Health = 0.01
  723. c.Humanoid.PlatformStand = true
  724. c2.Humanoid.PlatformStand = true
  725. c2.Humanoid.RequiresNeck = false
  726. c.Humanoid.RequiresNeck = false
  727. game:GetService("Debris"):AddItem(c,5)
  728. game:GetService("Debris"):AddItem(c2,5)
  729. if c:FindFirstChild("Health") then
  730. c:FindFirstChild("Health"):Destroy()
  731. end
  732. if c2:FindFirstChild("Health") then
  733. c2:FindFirstChild("Health"):Destroy()
  734. end
  735. for i,v in pairs(c:GetDescendants()) do
  736. pcall(function()
  737. if v:IsA("Motor6D") and (v.Part0.Name ~= "HumanoidRootPart") then
  738. v.Enabled = false
  739. elseif v:IsA("BasePart") and v.Name ~= "bon" and v.Name ~= "HumanoidRootPart" and v.Name ~= "UpperTorso" and v.Name ~= "LowerTorso" then
  740. v.CanCollide = false
  741. end
  742. end)
  743. end
  744. for i,v in pairs(c2:GetDescendants()) do
  745. pcall(function()
  746. if v:IsA("Motor6D") and (v.Part0.Name ~= "HumanoidRootPart") then
  747. v.Enabled = false
  748. elseif v:IsA("BasePart") and v.Name ~= "bon" and v.Name ~= "HumanoidRootPart" and v.Name ~= "UpperTorso" and v.Name ~= "LowerTorso" then
  749. v.CanCollide = false
  750. end
  751. end)
  752. end
  753. end
  754. end
  755. end
  756. end
  757. end)()
  758. end
  759. tool.Activated:Connect(test)
  760. local equipwel = Instance.new("Weld",owner.Character.Torso)
  761. equipwel.Part0 = owner.Character["Right Arm"]
  762. equipwel.Part1 = owner.Character.Torso
  763. equipwel.C1 = CFrame.new(1.5,0.5,0)
  764. equipwel.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,math.rad(-90))
  765. equipwel.Enabled = false
  766. local rootwel = Instance.new("Weld",owner.Character.Torso)
  767. rootwel.Part0 = owner.Character.HumanoidRootPart
  768. rootwel.Part1 = owner.Character.Torso
  769. object2 = rootwel
  770. local tweenService = game:GetService("TweenService")
  771. local timeToFade = 3
  772. local object = equipwel
  773. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
  774. local goal = {}
  775. goal.C0 = CFrame.new(0.15,0.5,0.05) * CFrame.Angles(math.rad(-90),0,math.rad(-92))
  776. local idle1 = tweenService:Create(object, tweenInfo, goal)
  777. local tweenInfo = TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
  778. local goal = {}
  779. goal.C0 = CFrame.new(0.125,0.5,-0.025) * CFrame.Angles(math.rad(-90),0,math.rad(-90))
  780. local idle2 = tweenService:Create(object, tweenInfo, goal)
  781. local goal = {}
  782. goal.C0 = CFrame.new(0.1,0.5,-0.05) * CFrame.Angles(math.rad(-90),0,math.rad(-88))
  783. local idle3 = tweenService:Create(object, tweenInfo, goal)
  784. tool.Equipped:Connect(function()
  785. equipwel.Enabled = true
  786. end)
  787. tool.Unequipped:Connect(function()
  788. equipwel.Enabled = false
  789. end)
  790. local i1 = true
  791. local timer = 6
  792. local lasttext = nil
  793. local tb = nil
  794. hud = Instance.new("Sound")
  795. hud.Volume = 2
  796. hud.SoundId = "rbxassetid://4499400560"
  797. hud.PlayOnRemove = true
  798. owner.Chatted:Connect(function(msg)
  799. if timer == 6 then
  800. local billboard = Instance.new("BillboardGui", owner.Character.Head)
  801. billboard.Adornee = owner.Character.Head
  802. billboard.Size = UDim2.new(6,0,1.5,0)
  803. billboard.ExtentsOffset = Vector3.new(0,2.5,0)
  804. local frame2 = Instance.new("Frame",billboard)
  805. frame2.Size = UDim2.new(1.25,0,1.3,0)
  806. frame2.BorderColor3 = Color3.new(54/255, 54/255, 54/255)
  807. frame2.BackgroundColor3 = Color3.new(54/255, 54/255, 54/255)
  808. frame2.Position = UDim2.new(0.5, 0, 0.5, 0)
  809. frame2.AnchorPoint = Vector2.new(0.5, 0.5)
  810. local frame = Instance.new("Frame",billboard)
  811. frame.Size = UDim2.new(1.2,0,1.2,0)
  812. frame.AnchorPoint = Vector2.new(0.5, 0.5)
  813. frame.BorderColor3 = Color3.new(255/255, 238/255, 0/255)
  814. frame.BackgroundColor3 = Color3.new(71/255, 71/255, 71/255)
  815. frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  816. tb = Instance.new("TextBox")
  817. tb.BackgroundTransparency = 0.999
  818. tb.TextStrokeTransparency = 0
  819. tb.TextEditable = false
  820. tb.TextColor3 = Color3.new(255/255, 238/255, 0/255)
  821. tb.Font = "TitilliumWeb"
  822. tb.Size = UDim2.new(1,0,1,0)
  823. tb.AnchorPoint = Vector2.new(0.5, 0.35)
  824. tb.Position = UDim2.new(0.5, 0, 0.35, 0)
  825. tb.Text = msg
  826. tb.TextWrapped = true
  827. tb.TextScaled = true
  828. tb.MultiLine = true
  829. tb.TextXAlignment = "Left"
  830. tb.TextYAlignment = "Top"
  831. tb.Parent = billboard
  832. local tb2 = Instance.new("TextBox")
  833. tb2.BackgroundTransparency = 0.999
  834. tb2.TextStrokeTransparency = 0
  835. tb2.TextEditable = false
  836. tb2.TextColor3 = Color3.new(255/255, 238/255, 0/255)
  837. tb2.Font = "Arcade"
  838. tb2.Size = UDim2.new(0.25,0,0.25,0)
  839. tb2.AnchorPoint = Vector2.new(-0.1, -0.2)
  840. tb2.Position = UDim2.new(-0.1, 0, -0.2, 0)
  841. tb2.Text = "GhostRunner"
  842. tb2.TextWrapped = true
  843. tb2.TextScaled = true
  844. tb2.MultiLine = true
  845. tb2.TextXAlignment = "Left"
  846. tb2.TextYAlignment = "Top"
  847. tb2.Parent = billboard
  848. lasttext = msg
  849. coroutine.wrap(function()
  850. local split = msg:split(" ")
  851. if #split ~= 0 then
  852. for i = 1,#split do
  853. hud.Pitch = Random.new():NextNumber(0.9,1.1)
  854. hud.Parent = owner.Character.Head
  855. hud.Parent = nil
  856. wait(0.05)
  857. end
  858. end
  859. end)()
  860. coroutine.wrap(function()
  861. repeat
  862. timer -= 1
  863. wait(1)
  864. until timer == 0
  865. billboard:Destroy()
  866. timer = 6
  867. end)()
  868. else
  869. timer = 5
  870. tb.Text = lasttext.." "..msg
  871. lasttext = lasttext.." "..msg
  872. coroutine.wrap(function()
  873. local split = msg:split(" ")
  874. if #split ~= 0 then
  875. for i = 1,#split do
  876. hud.Pitch = Random.new():NextNumber(0.9,1.1)
  877. hud.Parent = owner.Character.Head
  878. hud.Parent = nil
  879. wait(0.05)
  880. end
  881. end
  882. end)()
  883. end
  884. end)
  885. idle1:Play()
  886. idle1.Completed:Connect(function()
  887. idle2:Play()
  888. i1 = false
  889. i2 = true
  890. end)
  891. idle2.Completed:Connect(function()
  892. idle3:Play()
  893. i2 = false
  894. i3 = true
  895. end)
  896. idle3.Completed:Connect(function()
  897. idle1:Play()
  898. i3 = false
  899. i1 = true
  900. end)
  901. local run = false
  902. local slicing = false
  903. tool.Activated:Connect(function()
  904. if not slicing then
  905. canattack = true
  906. slicing = true
  907. idle3:Cancel()
  908. idle2:Cancel()
  909. idle1:Cancel()
  910. sound.TimePosition = 0
  911. sound.SoundId = "rbxassetid://8680211166"
  912. sound:Play()
  913. local rand = math.random(10,40)
  914. local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  915. local goal = {}
  916. goal.C1 = CFrame.new(1.6,0.5,-0.05) * CFrame.Angles(0,math.rad(20),math.rad(-rand))
  917. local slash1 = tweenService:Create(object, tweenInfo, goal)
  918. slash1:Play()
  919. slash1.Completed:Wait()
  920. local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
  921. local goal = {}
  922. goal.C1 = CFrame.new(1.4,0.5,-0.05) * CFrame.Angles(0,math.rad(-70),math.rad(rand + 10))
  923. local slashs = tweenService:Create(object, tweenInfo, goal)
  924. slashs:Play()
  925. slashs.Completed:Wait()
  926. local goal = {}
  927. goal.C1 = CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,0)
  928. local tweenInfo = TweenInfo.new(0.19,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  929. local slash4 = tweenService:Create(object, tweenInfo, goal)
  930. slash4:Play()
  931. canattack = false
  932. if i1 then
  933. idle1:Play()
  934. elseif i2 then
  935. idle2:Play()
  936. elseif i3 then
  937. idle3:Play()
  938. end
  939. slash4.Completed:Wait()
  940. slicing = false
  941. end
  942. end)
  943. owner.Character.Humanoid.WalkSpeed = 24
  944. local tweenservice = game:GetService("TweenService")
  945. local weld = Instance.new("Weld",owner.Character.Torso)
  946. weld.Part0 = owner.Character["Left Leg"]
  947. weld.Part1 = weld.Parent
  948. weld.C1 = CFrame.new(-0.5,-1,0)
  949. weld.C0 = CFrame.new(0,1,0)
  950. local weld2 = Instance.new("Weld",owner.Character.Torso)
  951. weld2.Part0 = owner.Character["Right Leg"]
  952. weld2.Part1 = weld2.Parent
  953. weld2.C1 = CFrame.new(0.5,-1,0)
  954. weld2.C0 = CFrame.new(0,1,0)
  955. weld2.Enabled = false
  956. weld.Enabled = false
  957. e.OnServerEvent:Connect(function(_,rot,what)
  958. if not dead then
  959. if what == "run" then
  960. weld2.Enabled = true
  961. weld.Enabled = true
  962. rootwel.C0 = CFrame.Angles(0,0,math.rad(rot))
  963. elseif what ~= "run" then
  964. weld2.Enabled = false
  965. weld.Enabled = false
  966. rootwel.C0 = CFrame.Angles(0,0,math.rad(0))
  967. end
  968. end
  969. end)
  970. local info = TweenInfo.new(.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 0)
  971. local info2 = TweenInfo.new(.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 0)
  972. local savedBaseCFrame = weld.C0
  973. local savedBaseCFrame2 = weld2.C0
  974. local goal = {}
  975. local goal2 = {}
  976. goal.C0 = savedBaseCFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  977. goal2.C0 = savedBaseCFrame2 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  978. tween = tweenservice:Create(weld, info, goal)
  979. tween2 = tweenservice:Create(weld, info, goal)
  980. count = 0
  981. coroutine.wrap(function()
  982. while true do
  983. if not dead then
  984. count += 1
  985. if count == 1 then
  986. goal2.C0 = savedBaseCFrame2 * CFrame.new(0,0.15,0.25) * CFrame.Angles(math.rad(-15), math.rad(0), 0)
  987. info2 = TweenInfo.new(2/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0)
  988. tween2 = tweenservice:Create(weld2, info2, goal2) --Loading the second keyframe.
  989. tween2:Play()
  990. tween2.Completed:Wait()
  991. tween2:Cancel()
  992. goal2.C0 = savedBaseCFrame2 * CFrame.new(0,-0.0625,-0.125) * CFrame.Angles(math.rad(20), math.rad(0), 0)
  993. info2 = TweenInfo.new(2.66666666667/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)
  994. tween2 = tweenservice:Create(weld2, info2, goal2) --Loading the second keyframe.
  995. tween2:Play()
  996. tween2.Completed:Wait()
  997. tween2:Cancel()
  998. goal2.C0 = savedBaseCFrame2 * CFrame.new(0,-0.125,0.25) * CFrame.Angles(math.rad(-15), math.rad(0), 0)
  999. info2 = TweenInfo.new(5.3333333/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, false, 0)
  1000. tween2 = tweenservice:Create(weld2, info2, goal2) --Loading the second keyframe.
  1001. tween2:Play()
  1002. elseif count == 2 then
  1003. count = 0
  1004. goal.C0 = savedBaseCFrame * CFrame.new(0,0.15,0.25) * CFrame.Angles(math.rad(-15), math.rad(0), 0)
  1005. info = TweenInfo.new(2/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0)
  1006. tween = tweenservice:Create(weld, info, goal) --Loading the second keyframe.
  1007. tween:Play()
  1008. tween.Completed:Wait()
  1009. tween:Cancel()
  1010. goal.C0 = savedBaseCFrame * CFrame.new(0,-0.0625,-0.125) * CFrame.Angles(math.rad(20), math.rad(0), 0)
  1011. info = TweenInfo.new(2.66666666667/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)
  1012. tween = tweenservice:Create(weld, info, goal) --Loading the second keyframe.
  1013. tween:Play()
  1014. tween.Completed:Wait()
  1015. tween:Cancel()
  1016. goal.C0 = savedBaseCFrame * CFrame.new(0,-0.125,0.25) * CFrame.Angles(math.rad(-15), math.rad(0), 0)
  1017. info = TweenInfo.new(5.3333333/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, false, 0)
  1018. tween = tweenservice:Create(weld, info, goal) --Loading the second keyframe.
  1019. tween:Play()
  1020. end
  1021. else
  1022. task.wait()
  1023. end
  1024. end
  1025. end)()
  1026. while task.wait() do
  1027. if not dead then
  1028. if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and not run then
  1029. run = true
  1030. idle3:Cancel()
  1031. idle2:Cancel()
  1032. idle1:Cancel()
  1033. local tweenInfo = TweenInfo.new(3.5/owner.Character.Humanoid.WalkSpeed,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  1034. local goal = {}
  1035. goal.C1 = CFrame.new(1.5,0.525,-0.05) * CFrame.Angles(math.rad(-5),math.rad(7),0)
  1036. local bump = tweenService:Create(object, tweenInfo, goal)
  1037. bump:Play()
  1038. bump.Completed:Wait()
  1039. elseif owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
  1040. if run then
  1041. run = false
  1042. local tweenInfo = TweenInfo.new(0.2,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  1043. local goal = {}
  1044. goal.C1 = CFrame.new(1.5,0.5,0)
  1045. local bump = tweenService:Create(object, tweenInfo, goal)
  1046. if i1 then
  1047. idle1:Play()
  1048. elseif i2 then
  1049. idle2:Play()
  1050. elseif i3 then
  1051. idle3:Play()
  1052. end
  1053. bump:Play()
  1054. bump.Completed:Wait()
  1055. end
  1056. elseif owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and run then
  1057. local tweenInfo = TweenInfo.new(2.5/owner.Character.Humanoid.WalkSpeed,Enum.EasingStyle.Quart,Enum.EasingDirection.In)
  1058. local goal = {}
  1059. goal.C1 = CFrame.new(0,0.025,0)
  1060. local bump = tweenService:Create(object2, tweenInfo, goal)
  1061. bump:Play()
  1062. if not slicing then
  1063. local goal = {}
  1064. goal.C1 = CFrame.new(1.5,0.5,-0.05) * CFrame.Angles(math.rad(-7),math.rad(7),0)
  1065. local bump = tweenService:Create(object, tweenInfo, goal)
  1066. bump:Play()
  1067. end
  1068. bump.Completed:Wait()
  1069. wait(1/owner.Character.Humanoid.WalkSpeed)
  1070. local tweenInfo = TweenInfo.new(2.5/owner.Character.Humanoid.WalkSpeed,Enum.EasingStyle.Quart,Enum.EasingDirection.Out)
  1071. local goal = {}
  1072. goal.C1 = CFrame.new(0,0,0)
  1073. local bump = tweenService:Create(object2, tweenInfo, goal)
  1074. bump:Play()
  1075. if not slicing then
  1076. local goal = {}
  1077. goal.C1 = CFrame.new(1.5,0.525,-0.05) * CFrame.Angles(math.rad(-5),math.rad(7),0)
  1078. local bump = tweenService:Create(object, tweenInfo, goal)
  1079. bump:Play()
  1080. end
  1081. bump.Completed:Wait()
  1082. end
  1083. end
  1084. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement