Advertisement
koreanhackerman

Kitchen gun fe

Nov 30th, 2019
1,935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.70 KB | None | 0 0
  1. -- Credit to wafflesareverygood --  
  2. local plr = game.Players.LocalPlayer
  3. local char = plr.Character
  4. local mouse = plr:GetMouse()
  5. local torso = char.Torso
  6. local rs = torso["Right Shoulder"]
  7. local ls = torso["Left Shoulder"]
  8. local rh = torso["Right Hip"]
  9. local lh = torso["Left Hip"]
  10. local rj = char.HumanoidRootPart.RootJoint
  11. local neck = torso.Neck
  12. local animpose = "Idle"
  13. local attacking = false
  14. local cananim = true
  15. local rage = false
  16. local shield
  17. local sprint = false
  18. local canrage = true
  19. local legs = true
  20. local bc = char:WaitForChild("Body Colors")
  21. local multiplier = 1
  22. local lac = char["Body Colors"].LeftArmColor
  23. local rac = char["Body Colors"].RightArmColor
  24. local rlc = char["Body Colors"].RightArmColor
  25. local llc = char["Body Colors"].LeftLegColor
  26. local hc = char["Body Colors"].HeadColor
  27. local tc = char["Body Colors"].TorsoColor
  28. local humanoid = char:FindFirstChildOfClass("Humanoid")
  29. local huge = Vector3.new(math.huge, math.huge, math.huge)
  30. local mobs = Instance.new("Sound", char)
  31. mobs.SoundId = "rbxassetid://245913129"
  32. mobs.Looped = true
  33. mobs.Volume = 3
  34. humanoid.MaxHealth = math.huge
  35. wait()
  36. humanoid.Health = math.huge
  37. humanoid.Name = "BOOM BOOM BOOOMMMM!"
  38. mobs:Play()
  39. if char:FindFirstChild("Animate") then
  40.   char.Animate:Destroy()
  41. end
  42. if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then
  43.   char:FindFirstChildOfClass("Humanoid").Animator:Destroy()
  44. end
  45. function legsonly()
  46.   spawn(function()
  47.     for i = 0, 10 do
  48.       wait(0.001)
  49.       if attacking then
  50.         break
  51.       end
  52.     end
  53.     if not attacking then
  54.       legs = false
  55.     end
  56.   end)
  57. end
  58. function swait(t)
  59.   if t == nil or t == 0 then
  60.     game:service("RunService").Stepped:wait(0)
  61.   else
  62.     for i = 0, t do
  63.       game:service("RunService").Stepped:wait(0)
  64.     end
  65.   end
  66. end
  67. function KICK(PLAYER)
  68.   spawn(function()
  69.     local function SKICK()
  70.       if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") and PLAYER.Character:FindFirstChild("Torso") then
  71.         PLAYER.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  72.         do
  73.           local SP = Instance.new("SkateboardPlatform", PLAYER.Character)
  74.           SP.Position = PLAYER.Character.HumanoidRootPart.Position
  75.           SP.Transparency = 1
  76.           spawn(function()
  77.             repeat
  78.               swait()
  79.               if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") then
  80.                 SP.Position = PLAYER.Character.HumanoidRootPart.Position
  81.               end
  82.             until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
  83.           end)
  84.           PLAYER.Character.Torso.Anchored = true
  85.         end
  86.       end
  87.     end
  88.     spawn(function()
  89.       repeat
  90.         wait()
  91.         if PLAYER ~= nil then
  92.           SKICK()
  93.         end
  94.       until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
  95.       if not game:GetService("Players"):FindFirstChild(PLAYER.Name) then
  96.         print("REMOVED " .. PLAYER.Name)
  97.       end
  98.     end)
  99.   end)
  100. end
  101. function hurt(hit, dmg)
  102.   if hit.Parent then
  103.     if hit.Parent:IsA("LocalScript") then
  104.       print("bocks!11")
  105.       hit.Parent:Destroy()
  106.     end
  107.     local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  108.     if hum and hum.Parent.Name ~= plr.Name then
  109.       if dmg == "Kill" or hum.Health > 100000 then
  110.         hit.Parent:BreakJoints()
  111.         return true
  112.       else
  113.         if math.random(0, 100) == 50 then
  114.           hum.Health = hum.Health - dmg * multiplier * 2.5
  115.         else
  116.           hum.Health = hum.Health - dmg * multiplier
  117.         end
  118.         return true
  119.       end
  120.     end
  121.   end
  122. end
  123. function soundeffect(id, volume, speed, parent)
  124.   spawn(function()
  125.     local s = Instance.new("Sound")
  126.     s.SoundId = id
  127.     s.Volume = volume
  128.     s.PlaybackSpeed = speed
  129.     s.Parent = parent
  130.     s:Play()
  131.     repeat
  132.       wait()
  133.     until not s.Playing
  134.     s:Destroy()
  135.   end)
  136. end
  137. function gethum(obj)
  138.   if obj.Parent and obj.Parent:FindFirstChild("Humanoid") and obj.Parent.Name ~= plr.Name then
  139.     return obj.Parent:FindFirstChildOfClass("Humanoid")
  140.   end
  141. end
  142. function smooth(obj)
  143.   local sides = {
  144.     "Left",
  145.     "Right",
  146.     "Top",
  147.     "Bottom",
  148.     "Front",
  149.     "Back"
  150.   }
  151.   for i, v in pairs(sides) do
  152.     obj[v .. "Surface"] = "SmoothNoOutlines"
  153.   end
  154. end
  155. function fade(obj, dest, grow)
  156.   spawn(function()
  157.     local oldcf = obj.CFrame
  158.     for i = 0, 10 do
  159.       if grow then
  160.         obj.Size = obj.Size + Vector3.new(1, 1, 1)
  161.         obj.CFrame = oldcf
  162.       end
  163.       obj.Transparency = obj.Transparency + 0.1
  164.       swait()
  165.     end
  166.     if dest then
  167.       obj:Destroy()
  168.     end
  169.   end)
  170. end
  171. local keyamount = 0
  172. mouse.KeyDown:connect(function(key)
  173.   if key == "w" or key == "a" or key == "s" or key == "d" then
  174.     keyamount = keyamount + 1
  175.     if animpose ~= "Falling" then
  176.       if keyamount > 3 then
  177.         keyamount = 0
  178.       end
  179.       animpose = "Walking"
  180.     end
  181.   end
  182. end)
  183. mouse.KeyUp:connect(function(key)
  184.   if key == "w" or key == "a" or key == "s" or key == "d" then
  185.     keyamount = keyamount - 1
  186.     if keyamount < 0 then
  187.       keyamount = 0
  188.     end
  189.     if keyamount == 0 then
  190.       animpose = "Idle"
  191.     end
  192.   end
  193. end)
  194. local gun = Instance.new("Part")
  195. gun.Size = Vector3.new(3.175, 1.916, 0.465)
  196. gun.CanCollide = false
  197. local m = Instance.new("SpecialMesh", gun)
  198. m.MeshId = "rbxassetid://468351345"
  199. m.TextureId = "rbxassetid://468351348"
  200. m.Scale = Vector3.new(0.1, 0.1, 0.1)
  201. gun.CFrame = char.Torso.CFrame
  202. gun.Parent = char
  203. local gunw = Instance.new("Weld", gun)
  204. gunw.Part0 = gun
  205. gunw.Part1 = char["Right Arm"]
  206. gunw.C0 = CFrame.new(-1.7838248, -0.410839319, 0, -0.0871557146, -0.996194541, 0, 0.996194541, -0.0871557146, 0, 0, 0, 1)
  207. mouse.Button1Down:connect(function()
  208.   local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  209.   local mag = (gun.Position - mouse.Hit.p).magnitude
  210.   local p = Instance.new("Part")
  211.   p.CanCollide = false
  212.   p.Anchored = false
  213.   p.BrickColor = BrickColor.new("Institutional white")
  214.   p.Size = Vector3.new(0.2, 0.2, mag)
  215.   smooth(p)
  216.   p.Material = "Neon"
  217.   p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  218.   local m = Instance.new("SpecialMesh", p)
  219.   m.MeshType = "Brick"
  220.   p.Parent = workspace
  221.   p.Touched:connect(function(hit)
  222.     hurt(hit, "Kill")
  223.     if hit.Size.X > 100 and 100 < hit.Size.Z and hit.Size.Y < 3 then
  224.     elseif hit.Parent and hit.Parent.Name ~= plr.Name then
  225.       fade(hit, true)
  226.     end
  227.   end)
  228.   local bp = Instance.new("BodyPosition", p)
  229.   bp.MaxForce = huge
  230.   bp.Position = p.Position
  231.   local saved = p.CFrame
  232.   for i = 1, 10 do
  233.     p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  234.     p.CFrame = saved
  235.     p.Velocity = Vector3.new(0, 0, 100)
  236.     p.Transparency = p.Transparency + 0.1
  237.     wait()
  238.   end
  239.   p:Destroy()
  240. end)
  241. mouse.KeyDown:connect(function(key)
  242.   if key == "l" then
  243.     function a(b)
  244.       pcall(function()
  245.         for i, v in pairs(b:children()) do
  246.           pcall(function()
  247.             if v:IsA("BasePart") and v.Parent and v.Parent.Name == "WafflesAreVeryGood" and v.Anchored then
  248.               v.Anchored = false
  249.             end
  250.             if v:IsA("Sound") and v.Parent.Name ~= "WafflesAreVeryGood" then
  251.               v:Destroy()
  252.             end
  253.             if v:IsA("ParticleEmitter") then
  254.               v:Destroy()
  255.             end
  256.             a(v)
  257.           end)
  258.         end
  259.       end)
  260.     end
  261.     a(game)
  262.   end
  263.   if key == "q" then
  264.     local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  265.     local mag = (gun.Position - mouse.Hit.p).magnitude
  266.     local p = Instance.new("Part")
  267.     p.CanCollide = false
  268.     p.Anchored = false
  269.     p.BrickColor = BrickColor.new("Really red")
  270.     p.Size = Vector3.new(0.2, 0.2, mag)
  271.     smooth(p)
  272.     p.Material = "Neon"
  273.     p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  274.     local m = Instance.new("SpecialMesh", p)
  275.     m.MeshType = "Brick"
  276.     p.Parent = workspace
  277.     p.Touched:connect(function(hit)
  278.       if gethum(hit) then
  279.         for i, v in pairs(hit.Parent:children()) do
  280.           if v:IsA("Model") then
  281.             v:BreakJoints()
  282.           end
  283.           local ok = false
  284.           for i, e in pairs({
  285.             "Right Arm",
  286.             "Left Arm",
  287.             "Right Leg",
  288.             "Left Leg",
  289.             "Head",
  290.             "Torso",
  291.             "HumanoidRootPart"
  292.           }) do
  293.             if v.Name == e then
  294.               ok = true
  295.             end
  296.           end
  297.           if v:IsA("BasePart") and not ok then
  298.             fade(v, true)
  299.           end
  300.         end
  301.       end
  302.       if hit:FindFirstChildOfClass("TouchTransmitter") then
  303.         hit:FindFirstChildOfClass("TouchTransmitter"):Destroy()
  304.       end
  305.     end)
  306.     local bp = Instance.new("BodyPosition", p)
  307.     bp.MaxForce = huge
  308.     bp.Position = p.Position
  309.     local saved = p.CFrame
  310.     for i = 1, 10 do
  311.       p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  312.       p.CFrame = saved
  313.       p.Velocity = Vector3.new(0, 0, 100)
  314.       p.Transparency = p.Transparency + 0.1
  315.       wait()
  316.     end
  317.     p:Destroy()
  318.   end
  319.   if key == "e" then
  320.     local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  321.     local mag = (gun.Position - mouse.Hit.p).magnitude
  322.     local p = Instance.new("Part")
  323.     p.CanCollide = false
  324.     p.Anchored = false
  325.     p.BrickColor = BrickColor.new("New Yeller")
  326.     p.Size = Vector3.new(0.2, 0.2, mag)
  327.     smooth(p)
  328.     p.Material = "Neon"
  329.     p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  330.     local m = Instance.new("SpecialMesh", p)
  331.     m.MeshType = "Brick"
  332.     p.Parent = workspace
  333.     p.Touched:connect(function(hit)
  334.       if gethum(hit) then
  335.         local target = game.Players:FindFirstChild(hit.Parent.Name)
  336.         if target then
  337.           KICK(target)
  338.         end
  339.       end
  340.     end)
  341.     local bp = Instance.new("BodyPosition", p)
  342.     bp.MaxForce = huge
  343.     bp.Position = p.Position
  344.     local saved = p.CFrame
  345.     for i = 1, 10 do
  346.       p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  347.       p.CFrame = saved
  348.       p.Velocity = Vector3.new(0, 0, 100)
  349.       p.Transparency = p.Transparency + 0.1
  350.       wait()
  351.     end
  352.     p:Destroy()
  353.   end
  354.   if key == "r" then
  355.     local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  356.     local mag = (gun.Position - mouse.Hit.p).magnitude
  357.     local p = Instance.new("Part")
  358.     p.CanCollide = false
  359.     p.Anchored = false
  360.     p.BrickColor = BrickColor.new("Lime green")
  361.     p.Size = Vector3.new(0.2, 0.2, mag)
  362.     smooth(p)
  363.     p.Material = "Neon"
  364.     p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  365.     local m = Instance.new("SpecialMesh", p)
  366.     m.MeshType = "Brick"
  367.     p.Parent = workspace
  368.     p.Touched:connect(function(hit)
  369.       local hum = gethum(hit)
  370.       if hum then
  371.         hum.Health = hum.MaxHealth
  372.       end
  373.     end)
  374.     local bp = Instance.new("BodyPosition", p)
  375.     bp.MaxForce = huge
  376.     bp.Position = p.Position
  377.     local saved = p.CFrame
  378.     for i = 1, 10 do
  379.       p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  380.       p.CFrame = saved
  381.       p.Velocity = Vector3.new(0, 0, 100)
  382.       p.Transparency = p.Transparency + 0.1
  383.       wait()
  384.     end
  385.     p:Destroy()
  386.   end
  387. end)
  388. game:GetService("RunService").Stepped:connect(function()
  389.   local x, z
  390.   local dir = CFrame.new(char.HumanoidRootPart.Position, mouse.Hit.p).lookVector
  391.   x = dir.X
  392.   z = dir.Z
  393.   local cf = CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position + Vector3.new(x, 0, z))
  394.   char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame:Lerp(cf, 0.5)
  395.   humanoid.AutoRotate = false
  396. end)
  397. while wait() do
  398.   if animpose == "Walking" and cananim and legs then
  399.     for i = 0, 0.7, 0.1 do
  400.       if animpose == "Walking" and cananim and legs then
  401.         ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  402.         rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  403.         neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  404.         rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  405.         lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0219629817, 0.02712203, -0.999390841, -0.628937364, 0.776673257, 0.0348994955, 0.777146697, 0.6293208, 0), 0.4)
  406.         rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0238014236, -0.0255239103, 0.999390841, -0.681583524, 0.73090899, 0.0348994955, -0.731354535, -0.681998909, 0), 0.4)
  407.         wait()
  408.       else
  409.         break
  410.       end
  411.     end
  412.     for i = 0, 0.7, 0.1 do
  413.       if animpose == "Walking" and cananim and legs then
  414.         ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  415.         rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  416.         neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  417.         rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  418.         lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.0205134545, 0.0282343514, -0.999390841, 0.587428331, 0.808525503, 0.0348994955, 0.809018135, -0.587786257, 0), 0.4)
  419.         rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0224330258, -0.0267346334, 0.999390841, 0.642397523, 0.765579402, 0.0348994955, -0.76604569, 0.642788768, 0), 0.4)
  420.         wait()
  421.       else
  422.         break
  423.       end
  424.     end
  425.   end
  426.   if animpose == "Idle" and cananim and legs then
  427.     ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  428.     rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  429.     neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  430.     rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  431.     lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0), 0.5)
  432.     rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0523359627, 0.998629689, 0, 0.998629689, 0.0523359627, -1, 0, 0), 0.5)
  433.   end
  434. end
  435.  
  436. -- hi i was here --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement