SHARE
TWEET

Untitled

a guest Jul 17th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. RESIST Technology
  3.   _              __                     _    _        
  4.  | |            / _|                   | |  | |      
  5.  | |      __ _ | |_  __ _  _   _   ___ | |_ | |_  ___
  6.  | |     / _` ||  _|/ _` || | | | / _ \| __|| __|/ _ \
  7.  | |____| (_| || | | (_| || |_| ||  __/| |_ | |_|  __/
  8.  |______|\__,_||_|  \__,_| \__, | \___| \__| \__|\___|
  9.                             __/ |                    
  10.                            |___/                      
  11.  
  12. Scripted by Tayseri & ThatsJustGreat
  13. --]]
  14.  
  15. repeat wait(1) until game.Players.LocalPlayer.Character~=nil and game.Players.LocalPlayer.Character.Humanoid~=nil
  16.  
  17. local Tool=script.Parent
  18. local Player=game.Players.LocalPlayer
  19. local Character=Player.Character
  20. local GUI=Player.PlayerGui:WaitForChild('Client')
  21. local Mouse=Player:GetMouse()
  22.  
  23. local Settings=require(script.myToolSettings)
  24. Settings.Connect(Player,Character)
  25. local Shoot
  26. local EndShoot
  27. local RegisterKeys
  28. local MouseDown=false
  29.  
  30. Tool.Equipped:connect(function()
  31. Mouse.Move:connect(function()
  32. if Player:WaitForChild("PlayerGui"):FindFirstChild("Client") then
  33. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Hit.Position = UDim2.new(0, Mouse.X-22.5, 0, Mouse.Y-22.5)
  34. end end)
  35. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.TopArea.Title.Text="Conduit F3"
  36. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.TopArea.Shade.Text="Conduit F3"
  37. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.Ammo.Text=Settings.Values.Ammo.Value
  38. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.Ammo.Shade.Text=Settings.Values.Ammo.Value
  39. Settings.WeaponAnimations('GUI',true,GUI)
  40. Settings.WeaponAnimations('Stance',false,Character)
  41. Settings.Values.Equipped=true
  42. Mouse.Icon="http://www.roblox.com/asset/?id=184264156"
  43. Shoot=Mouse.Button1Down:connect(function()
  44. if Settings.Values.Equipped==true and not Settings.Values.Reloading and Settings.Values.Ammo.Value>Settings.Values.Ammo.MinValue and not Settings.Values.Firing then
  45. if Settings.Values.Stanced==true then Settings.WeaponSprint(false) end
  46. MouseDown=true
  47. while Settings.Values.Ammo.Value>Settings.Values.Ammo.MinValue and Settings.Values.Equipped and Settings.Values.Firing==false and MouseDown==true do
  48. Settings.Values.Firing=true
  49. Settings.WeaponFire(Mouse.Hit.p)
  50. script.Parent.Barrel.Light.Angle = math.random(90, 180)
  51. Settings.Values.Ammo.Value=Settings.Values.Ammo.Value-1
  52. script.Parent.Barrel.Flash.Enabled=true
  53. Settings.Handle.Fire:Play()
  54. Settings.UpdateGui()
  55. wait(Settings.FireRate)
  56. script.Parent.Barrel.Flash.Enabled=false
  57. script.Parent.Barrel.Light.Enabled=false
  58. Settings.Values.Firing=false
  59. if Settings.Values.Ammo.Value<=Settings.Values.Ammo.MinValue then Settings.WeaponReload() end
  60. end
  61. end
  62. end)
  63. EndShoot=Mouse.Button1Up:connect(function()
  64. MouseDown=false
  65. script.Parent.Barrel.Flash.Enabled=false
  66. script.Parent.Barrel.Light.Enabled=false
  67. if Settings.Values.Ammo.Value<=Settings.Values.Ammo.MinValue then
  68. if not Settings.Values.Reloading then
  69. Settings.WeaponReload()
  70. end
  71. end
  72. end)
  73. RegisterKeys=Mouse.KeyDown:connect(function(Key)
  74. if Settings.Values.Equipped then
  75. Settings.BindKeys(Key)
  76. end
  77. end)
  78. Character.Humanoid.Changed:connect(function(A)
  79. if A=='WalkSpeed' and Settings.Values.Stanced==true and Character.Humanoid.WalkSpeed==16 then
  80. Settings.WeaponSprint(true)
  81. end
  82. end)
  83. Character.Humanoid.Died:connect(function()
  84. Character.Humanoid:UnequipTools()
  85. end)
  86. end)
  87.  
  88.  
  89. Tool.Unequipped:connect(function()
  90. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.TopArea.Title.Text="n/a"
  91. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.TopArea.Shade.Text="n/a"
  92. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.Ammo.Text="n/a"
  93. Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.Ammo.Shade.Text="n/a"
  94. Mouse.Icon = " "
  95. script.Parent.Barrel.Light.Enabled=false
  96. script.Parent.Barrel.Flash.Enabled=false
  97. Settings.Values.Stanced=false
  98. Settings.Values.Firing=false
  99. Settings.Values.Reloading=false
  100. Settings.Values.Equipped=false
  101. Settings.WeaponSprint(Settings.Values.Stanced)
  102. Settings.WeaponAnimations('GUI',false,GUI)
  103. Settings.WeaponAnimations('UnequipAll',true,Character)
  104. Shoot:disconnect()
  105. EndShoot:disconnect()
  106. RegisterKeys:disconnect()
  107. end)
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top