Advertisement
KrYn0MoRe

kick boot

Apr 7th, 2021
1,370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.78 KB | None | 0 0
  1. local plr = owner
  2. local char = plr.Character
  3. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  4.  
  5. Tool0 = Instance.new("Tool")
  6. Part1 = Instance.new("Part")
  7. SpecialMesh2 = Instance.new("SpecialMesh")
  8. Tool0.Name = "Boot"
  9. Tool0.Parent = plr.Backpack
  10. Tool0.Grip = CFrame.new(0, -0.222201347, -0.905359745, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  11. Part1.Name = "Handle"
  12. Part1.Parent = Tool0
  13. Part1.CFrame = CFrame.new(-22.43046, 2.26852894, -68.1637268, -9.28728914e-05, -0.677499533, -0.735523343, 0.0380967073, 0.734986424, -0.677010179, 0.999273837, -0.0280841347, 0.0257421304)
  14. Part1.Orientation = Vector3.new(42.6100006, -88, 2.97000003)
  15. Part1.Position = Vector3.new(-22.43046, 2.26852894, -68.1637268)
  16. Part1.Rotation = Vector3.new(87.8199997, -47.3499985, 90.0100021)
  17. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  18. Part1.Size = Vector3.new(1.7, 1.832, 2.676)
  19. Part1.BottomSurface = Enum.SurfaceType.Smooth
  20. Part1.BrickColor = BrickColor.new("Dark stone grey")
  21. Part1.TopSurface = Enum.SurfaceType.Smooth
  22. Part1.brickColor = BrickColor.new("Dark stone grey")
  23. Part1.FormFactor = Enum.FormFactor.Plate
  24. Part1.formFactor = Enum.FormFactor.Plate
  25. SpecialMesh2.Parent = Part1
  26. SpecialMesh2.MeshId = "rbxassetid://454371988"
  27. SpecialMesh2.Scale = Vector3.new(0.002, 0.002, 0.002)
  28. SpecialMesh2.TextureId = "rbxassetid://454371992"
  29. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  30.  
  31. local handle = Tool0.Handle
  32.  
  33. local slap = Instance.new("Sound")
  34. slap.Parent = Part1
  35. slap.SoundId = "rbxassetid://173818824"
  36. slap.Volume = 0.5
  37.  
  38. local equipped = false
  39. local using = false
  40.  
  41. handle.Touched:Connect(function(obj)
  42.     if using then else return end
  43.     local targchar,targtorso,targhum
  44.     pcall(function()
  45.         targchar = obj.Parent
  46.     end)
  47.     pcall(function()
  48.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart") or targchar:FindFirstChild("Head")
  49.     end)
  50.     pcall(function()
  51.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  52.     end)
  53.     if targchar and not obj:IsDescendantOf(char) and targtorso and targhum and not targhum:FindFirstChild("Got hit with KrY's Hammer") then
  54.         local tempval = Instance.new("IntValue")
  55.         tempval.Parent = targhum
  56.         tempval.Name = "Got hit with KrY's Hammer"
  57.         local force = Instance.new("BodyVelocity")
  58.         force.Parent = targtorso
  59.         force.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  60.         force.Velocity = torso.CFrame.lookVector*50+Vector3.new(0,10,0)
  61.         local or_force = Instance.new("BodyAngularVelocity")
  62.         or_force.Parent = targtorso
  63.         or_force.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  64.         or_force.P = math.huge
  65.         or_force.AngularVelocity = Vector3.new(math.random(-360,360),math.random(-360,360),math.random(-360,360)) --torso.CFrame.lookVector*1000+Vector3.new(0,100,0)
  66.         game:GetService("Debris"):AddItem(force,0.5)
  67.         game:GetService("Debris"):AddItem(tempval,0.5)
  68.         game:GetService("Debris"):AddItem(or_force,0.5)
  69.         slap:Play()
  70.     end
  71. end)
  72.  
  73. Tool0.Equipped:Connect(function()
  74.     pcall(function()
  75.         char = Tool0.Parent
  76.     end)
  77.     pcall(function()
  78.         plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  79.     end)
  80.     pcall(function()
  81.         torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  82.     end)
  83.     if plr and char and torso then else Tool0.Parent = workspace; return; end
  84.     equipped = true
  85. end)
  86.  
  87. Tool0.Unequipped:Connect(function()
  88.     equipped = false
  89. end)
  90.  
  91. Tool0.Activated:Connect(function()
  92.     using = true
  93.     game:GetService("TweenService"):Create(Tool0,TweenInfo.new(0.1),{Grip = CFrame.new(0, -0.222201347, -0.905359745, -1, 0, 0, 0, 0.455556929, 0.890206635, 0, 0.890206635, -0.455556929)}):Play()
  94.     wait(0.3)
  95.     game:GetService("TweenService"):Create(Tool0,TweenInfo.new(0.2),{Grip = CFrame.new(0, -0.222201347, -0.905359745, -1, 0, 0, 0, 1, 0, 0, 0, -1)}):Play()
  96.     using = false
  97. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement