Advertisement
Qamyz

Untitled

Apr 20th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. fireuzi = false
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3.  
  4. mouse.KeyDown:Connect(function(key)
  5. if key == "f" then
  6.  
  7.  
  8. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  9. if (v:IsA("Tool")and v.Name == "Uzi") then
  10. v.Parent = game.Players.LocalPlayer.Character
  11. end
  12. end
  13. fireuzi = true
  14.  
  15. end
  16. end)
  17.  
  18. mouse.KeyUp:Connect(function(key)
  19. if key == "f" then
  20.  
  21. fireuzi = false
  22. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  23. if (v:IsA("Tool")and v.Name == "Uzi") then
  24. v:Deactivate()
  25. v.Parent = game.Players.LocalPlayer.Backpack
  26. end
  27. end
  28.  
  29. end
  30. end)
  31.  
  32.  
  33.  
  34.  
  35. debounce = false
  36. game:GetService('RunService').Stepped:connect(function()
  37. if fireuzi == true and debounce == false then
  38. debounce = true
  39. game.Players.LocalPlayer.Character.Uzi.Fire:FireServer(mouse.Hit)
  40. wait()
  41. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  42. if (v:IsA("Tool")) then
  43. v.Parent = game.Players.LocalPlayer.Backpack
  44. v.Parent = game.Players.LocalPlayer
  45. v.Parent = game.Players.LocalPlayer.Backpack
  46. v.Parent = game.Players.LocalPlayer.Character
  47. end
  48. end
  49. debounce = false
  50. end
  51. end)
  52.  
  53. -- Made by Vortexturize | aidez moi#4192 | Aidez
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement