fddddAV045

ZOMBIE OUTBREAK

May 15th, 2021
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.94 KB | None | 0 0
  1. clicktpon = true                    
  2. plr = game.Players.LocalPlayer
  3. hum = plr.Character.HumanoidRootPart
  4. mouse = plr:GetMouse()
  5. mouse.KeyDown:connect(function(key)
  6. if key == 'q' then
  7. if mouse.Target then
  8. if clicktpon then
  9. hum.CFrame = CFrame.new (mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  10. end
  11. end
  12. end
  13. end)
  14. local Plr = game:GetService('Players').LocalPlayer
  15. local Mouse = Plr:GetMouse()
  16. destroyon = true
  17. Mouse.Button1Down:connect(function()
  18. if not game: GetService('UserInputService'):IsKeyDown(Enum.KeyCode.Q) then return end
  19. if not Mouse.Target then return end
  20. if not destroyon then return end
  21. Mouse.Target:Destroy()
  22. end)
  23. -- Gui to Lua
  24. -- Version: 3.2
  25.  
  26. -- Instances:
  27.  
  28. local ScreenGui = Instance.new("ScreenGui")
  29. local main = Instance.new("Frame")
  30. local TextLabel = Instance.new("TextLabel")
  31. local Frame = Instance.new("Frame")
  32. local INFJUMP = Instance.new("TextButton")
  33. local TextLabel_2 = Instance.new("TextLabel")
  34.  
  35. --Properties:
  36.  
  37. ScreenGui.Parent = game.CoreGui
  38.  
  39. main.Name = "main"
  40. main.Parent = ScreenGui
  41. main.Active = true
  42. main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. main.BorderSizePixel = 0
  44. main.Position = UDim2.new(0.119258665, 0, 0, 0)
  45. main.Size = UDim2.new(0, 146, 0, 28)
  46. main.Active = true
  47. main.Draggable = false
  48.  
  49. TextLabel.Parent = main
  50. TextLabel.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  51. TextLabel.BorderSizePixel = 0
  52. TextLabel.Size = UDim2.new(0, 146, 0, 28)
  53. TextLabel.Font = Enum.Font.SciFi
  54. TextLabel.Text = "Misc"
  55. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  56. TextLabel.TextSize = 17.000
  57. TextLabel.TextWrapped = true
  58.  
  59. Frame.Parent = main
  60. Frame.BackgroundColor3 = Color3.fromRGB(86, 86, 86)
  61. Frame.BorderSizePixel = 0
  62. Frame.Position = UDim2.new(0, 0, 1, 0)
  63. Frame.Size = UDim2.new(0, 146, 0, 61)
  64.  
  65. INFJUMP.Name = "INFJUMP"
  66. INFJUMP.Parent = main
  67. INFJUMP.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  68. INFJUMP.BorderSizePixel = 0
  69. INFJUMP.Position = UDim2.new(0.794520497, 0, 1.6785717, 0)
  70. INFJUMP.Size = UDim2.new(0, 21, 0, 21)
  71. INFJUMP.Font = Enum.Font.SourceSans
  72. INFJUMP.Text = ""
  73. INFJUMP.TextColor3 = Color3.fromRGB(0, 0, 0)
  74. INFJUMP.TextSize = 14.000
  75. INFJUMP.MouseButton1Down:connect(function()
  76. local Player = game:GetService'Players'.LocalPlayer;
  77. local UIS = game:GetService'UserInputService';
  78.  
  79. _G.JumpHeight = 200;
  80.  
  81. function Action(Object, Function) if Object ~= nil then Function(Object); end end
  82.  
  83. UIS.InputBegan:connect(function(UserInput)
  84.     if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
  85.         Action(Player.Character.Humanoid, function(self)
  86.             if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
  87.                 Action(self.Parent.HumanoidRootPart, function(self)
  88.                     self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
  89.                 end)
  90.             end
  91.         end)
  92.     end
  93. end)
  94. end)
  95.  
  96. TextLabel_2.Parent = main
  97. TextLabel_2.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  98. TextLabel_2.BorderSizePixel = 0
  99. TextLabel_2.Position = UDim2.new(0.0547945201, 0, 1.57142854, 0)
  100. TextLabel_2.Size = UDim2.new(0, 94, 0, 28)
  101. TextLabel_2.Font = Enum.Font.SciFi
  102. TextLabel_2.Text = "Inf jump"
  103. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  104. TextLabel_2.TextSize = 17.000
  105. TextLabel_2.TextWrapped = true
  106.  
  107. -- Scripts:
  108.  
  109. local function TKDWQ_fake_script() -- INFJUMP.LocalScript
  110. local script = Instance.new('LocalScript', INFJUMP)
  111.  
  112. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  113.  
  114. counter = 0
  115.  
  116. while wait(0.1)do
  117. script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1)
  118.  
  119. counter = counter + 0.01
  120. end
  121. end
  122. coroutine.wrap(TKDWQ_fake_script)()
  123. local vu = game:GetService("VirtualUser")
  124. game:GetService("Players").LocalPlayer.Idled:connect(function()
  125.    vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  126.    wait(1)
  127.    vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  128. end)
Add Comment
Please, Sign In to add comment