clubstar54

Mochi

Aug 31st, 2024 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. local backpack = script.Parent
  2. local player = backpack.Parent
  3. local char = player.Character
  4. local torso = char.Torso
  5.  
  6. local t = Instance.new("Tool")
  7. t.Name = "MochiFist"
  8. t.RequiresHandle = false
  9.  
  10. local canGo = true
  11.  
  12. t.Activated:connect(function()
  13. if not canGo then return end
  14. canGo = false
  15.  
  16. char["Right Arm"].Transparency = 1
  17.  
  18. local p = Instance.new("Part")
  19. p.BrickColor = BrickColor.new("White")
  20. p.Material = "SmoothPlastic"
  21. p.Size = Vector3.new(1,1,2)
  22. p.Anchored = false
  23. p.CanCollide = false
  24. p.Massless = true
  25. local v = Instance.new("BodyVelocity")
  26. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  27. v.Velocity = Vector3.new(0,0,0)
  28. v.Parent = p
  29.  
  30. local offset = CFrame.new(1.5,0.5,-0.5)
  31.  
  32. p.CFrame = char.Torso.CFrame*offset
  33. p.Parent = workspace
  34.  
  35. local debounce = false
  36. p.Touched:connect(function(hit)
  37. if not debounce and hit.Parent ~= char and hit.Parent:findFirstChild("Humanoid") then
  38. hit.Parent.Humanoid:TakeDamage(14)
  39. hit.Parent.Humanoid.Sit = true
  40. local mv = v:Clone()
  41. mv.Velocity = char.Torso.CFrame.LookVector*100
  42. mv.Parent = hit.Parent.Torso
  43. game.Debris:AddItem(mv,0.2)
  44. debounce = true
  45. end
  46. end)
  47.  
  48.  
  49. for i = 1,60 do
  50. local adjust = 5*(1-i/60)
  51. p.Size += Vector3.new(0,0,adjust)
  52. offset *= CFrame.new(0,0,-adjust/2)
  53. p.CFrame = char.HumanoidRootPart.CFrame*offset
  54. task.wait()
  55. end
  56. for i = 1,60 do
  57. local adjust = 5*(i/60)
  58. p.Size -= Vector3.new(0,0,adjust)
  59. offset *= CFrame.new(0,0,adjust/2)
  60. p.CFrame = char.HumanoidRootPart.CFrame*offset
  61. task.wait()
  62. end
  63.  
  64. p:Destroy()
  65. char["Right Arm"].Transparency = 0
  66.  
  67. task.wait(0.5)
  68. canGo = true
  69. end)
  70.  
  71. t.Parent = backpack
Advertisement
Add Comment
Please, Sign In to add comment