Kotyara19k-Official

.192831488

Apr 26th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character or player.CharacterAdded:Wait()
  3. local RunService = game:GetService("RunService")
  4. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  5. RequestCommand:InvokeServer(";hat me")
  6.  
  7.  
  8.  
  9. local Players = game:GetService("Players")
  10.  
  11. local UserInputService = game:GetService("UserInputService")
  12.  
  13. local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandModification
  14.  
  15. local tool
  16. for _, v in player:GetDescendants() do
  17. if v.Name == "SyncAPI" then
  18. tool = v.Parent
  19. end
  20. end
  21. for _, v in game.ReplicatedStorage:GetDescendants() do
  22. if v.Name == "SyncAPI" then
  23. tool = v.Parent
  24. end
  25. end
  26.  
  27. local remote = tool.SyncAPI.ServerEndpoint
  28.  
  29. function _(args)
  30. remote:InvokeServer(unpack(args))
  31. end
  32.  
  33. function CreateSyncWeld(part0, part1)
  34. local args = {
  35. [1] = "SyncWeld",
  36. [2] = {
  37. Part0 = part0,
  38. Part1 = part1,
  39. C0 = part0.CFrame:Inverse() * part1.CFrame,
  40. C1 = CFrame.new()
  41. }
  42. }
  43. _(args)
  44. end
  45.  
  46. function MovePart(part, cf)
  47. local args = {
  48. [1] = "SyncMove",
  49. [2] = {
  50. [1] = {
  51. ["Part"] = part,
  52. ["CFrame"] = cf
  53. }
  54. }
  55. }
  56. _(args)
  57. end
  58.  
  59. function KillTarget(target)
  60. if target and target.Character then
  61. local head = target.Character:FindFirstChild("Head")
  62. if head then
  63. local args = {
  64. [1] = "SetLocked",
  65. [2] = { [1] = head },
  66. [3] = false
  67. }
  68. _(args)
  69. task.wait(0.1)
  70. local args2 = {
  71. [1] = "Remove",
  72. [2] = { [1] = head }
  73. }
  74. _(args2)
  75. end
  76. end
  77. end
  78.  
  79. local humanoid = character:WaitForChild("Humanoid")
  80. local arm = character:FindFirstChild("Right Arm")
  81.  
  82. local holdAnimation = Instance.new("Animation")
  83. holdAnimation.AnimationId = "rbxassetid://48146273"
  84. local holdTrack = humanoid:LoadAnimation(holdAnimation)
  85.  
  86.  
  87.  
  88. local killAnimation = Instance.new("Animation")
  89. killAnimation.AnimationId = "rbxassetid://48146273"
  90. local killTrack = humanoid:LoadAnimation(killAnimation)
  91.  
  92. local function playKillAnimation()
  93. killTrack:Play()
  94. if killTrack.Length == 0 then
  95. killTrack:GetPropertyChangedSignal("Length"):Wait()
  96. end
  97. task.delay(killTrack.Length - 0.3, function()
  98. killTrack:Stop()
  99. end)
  100. end
  101.  
  102. local function playHoldAnimation()
  103. holdTrack:Play()
  104. task.wait(0.3)
  105. holdTrack:AdjustSpeed(0)
  106. end
  107.  
  108.  
  109.  
  110.  
  111. local isBusy = false
  112. local alignPosition
  113. local alignOrientation
  114.  
  115. local function attachBehind(targetChar)
  116. local root = character:FindFirstChild("HumanoidRootPart")
  117. local targetRoot = targetChar:FindFirstChild("HumanoidRootPart")
  118. if root and targetRoot then
  119. -- Attachments
  120. local attachment0 = root:FindFirstChild("Attachment") or Instance.new("Attachment", root)
  121. local attachment1 = targetRoot:FindFirstChild("Attachment") or Instance.new("Attachment", targetRoot)
  122.  
  123. -- AlignPosition
  124. alignPosition = Instance.new("AlignPosition")
  125. alignPosition.MaxForce = 1000000
  126. alignPosition.Responsiveness = 200
  127. alignPosition.Attachment0 = attachment0
  128. alignPosition.Attachment1 = attachment1
  129. alignPosition.Parent = root
  130.  
  131. -- AlignOrientation
  132. alignOrientation = Instance.new("AlignOrientation")
  133. alignOrientation.MaxTorque = 1000000
  134. alignOrientation.Responsiveness = 200
  135. alignOrientation.Attachment0 = attachment0
  136. alignOrientation.Attachment1 = attachment1
  137. alignOrientation.Parent = root
  138.  
  139. -- Ставим позади игрока
  140. attachment1.Position = Vector3.new(0, 0, 1) -- на 2 позиции сзади
  141. end
  142. end
  143.  
  144. local function detach()
  145. if alignPosition then
  146. alignPosition:Destroy()
  147. alignPosition = nil
  148. end
  149. if alignOrientation then
  150. alignOrientation:Destroy()
  151. alignOrientation = nil
  152. end
  153. end
  154.  
  155. local function attack()
  156. if isBusy then return end
  157. isBusy = true
  158.  
  159. local hitPlayer = nil
  160. local touchedConnection
  161.  
  162. local function onTouch(other)
  163. local otherPlayer = Players:GetPlayerFromCharacter(other.Parent)
  164. if otherPlayer and otherPlayer ~= player then
  165. hitPlayer = otherPlayer
  166. end
  167. end
  168.  
  169. touchedConnection = arm.Touched:Connect(onTouch)
  170. task.wait(0.15)
  171. if touchedConnection then
  172. touchedConnection:Disconnect()
  173. end
  174.  
  175. if hitPlayer and hitPlayer.Character then
  176. -- Притягиваемся к игроку
  177. attachBehind(hitPlayer.Character)
  178.  
  179.  
  180.  
  181. holdTrack:Play()
  182. task.wait(0.3)
  183. holdTrack:AdjustSpeed(0)
  184.  
  185. wait(3)
  186. holdTrack:Stop()
  187. wait(0.5)
  188. playKillAnimation()
  189. KillTarget(hitPlayer)
  190. RequestCommand:InvokeServer(";music 115478216144558")
  191. wait(1)
  192. RequestCommand:InvokeServer(";unmusic")
  193. detach()
  194. isBusy = false
  195.  
  196.  
  197. else
  198.  
  199. playKillAnimation()
  200. wait(0.4)
  201. isBusy = false
  202. end
  203. end
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211. UserInputService.TouchStarted:Connect(function(input, gameProcessed)
  212. if gameProcessed then return end
  213. attack()
  214. end)
  215.  
Advertisement
Add Comment
Please, Sign In to add comment