Advertisement
Nathan_Gamings

Mm2 Fake Knife Script

Jun 4th, 2021 (edited)
8,617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. local lp = game.Players.LocalPlayer
  2. local tool;local handle;local knife;
  3. local animation1 = Instance.new("Animation")
  4. animation1.AnimationId = "rbxassetid://2467567750"
  5. local animation2 = Instance.new("Animation")
  6. animation2.AnimationId = "rbxassetid://1957890538"
  7. local anims = {animation1,animation2}
  8. tool = Instance.new("Tool")
  9. tool.Name = "Fake Knife"
  10. tool.Grip = CFrame.new(0, -1.16999984, 0.0699999481, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  11. tool.GripForward = Vector3.new(-0, -0, -1)
  12. tool.GripPos = Vector3.new(0,-1.17,0.0699999)
  13. tool.GripRight = Vector3.new(1,0,0)
  14. tool.GripUp = Vector3.new(0,1,0)
  15. handle = Instance.new("Part")
  16. handle.Size = Vector3.new(0.310638815, 3.42103457, 1.08775854)
  17. handle.Name = "Handle"
  18. handle.Transparency = 1
  19. handle.Parent = tool
  20. tool.Parent = lp.Backpack
  21. knife=lp.Character:WaitForChild("KnifeDisplay")
  22. knife.Massless = true
  23. lp:GetMouse().Button1Down:Connect(function()
  24. if tool and tool.Parent == lp.Character then
  25. local an = lp.Character.Humanoid:LoadAnimation(anims[math.random(1,2)])
  26. an:Play()
  27. end
  28. end)
  29. local aa = Instance.new("Attachment",handle)
  30. local ba = Instance.new("Attachment",knife)
  31. local hinge = Instance.new("HingeConstraint",knife)
  32. hinge.Attachment0=aa hinge.Attachment1=ba
  33. hinge.LimitsEnabled = true
  34. hinge.LowerAngle = 0
  35. hinge.Restitution = 0
  36. hinge.UpperAngle = 0
  37. for _,v in pairs(lp.Character:WaitForChild("UpperTorso"):GetChildren()) do if v:IsA"Weld" and v.Part1 == knife then v:Destroy() break end end
  38. game:GetService"RunService".Heartbeat:Connect(function()
  39. setsimulationradius(1/0,1/0)
  40. if tool.Parent == lp.Character then
  41. knife.CFrame = handle.CFrame
  42. elseif lp.Character and knife then
  43. knife.CFrame = lp.Character:WaitForChild"UpperTorso".CFrame * CFrame.new(-0.200027466, -0.399999619, 0.5, 3.22982669e-05, -0.707153201, 0.707060337, 1.33886933e-05, 0.707060337, 0.707153141, -1, -1.33812428e-05, 3.22982669e-05)
  44. end
  45. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement