Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- RESIST Technology
- _ __ _ _
- | | / _| | | | |
- | | __ _ | |_ __ _ _ _ ___ | |_ | |_ ___
- | | / _` || _|/ _` || | | | / _ \| __|| __|/ _ \
- | |____| (_| || | | (_| || |_| || __/| |_ | |_| __/
- |______|\__,_||_| \__,_| \__, | \___| \__| \__|\___|
- __/ |
- |___/
- Scripted by Tayseri & ThatsJustGreat
- --]]
- repeat wait(1) until game.Players.LocalPlayer.Character~=nil and game.Players.LocalPlayer.Character.Humanoid~=nil
- local Tool=script.Parent
- local Player=game.Players.LocalPlayer
- local Character=Player.Character
- local GUI=Player.PlayerGui:WaitForChild('Client')
- local Mouse=Player:GetMouse()
- local Settings=require(script.myToolSettings)
- Settings.Connect(Player,Character)
- local Shoot
- local EndShoot
- local RegisterKeys
- local MouseDown=false
- Tool.Equipped:connect(function()
- Mouse.Move:connect(function()
- if Player:WaitForChild("PlayerGui"):FindFirstChild("Client") then
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Hit.Position = UDim2.new(0, Mouse.X-22.5, 0, Mouse.Y-22.5)
- end end)
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.TopArea.Title.Text="Conduit F3"
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.TopArea.Shade.Text="Conduit F3"
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.Ammo.Text=Settings.Values.Ammo.Value
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.Ammo.Shade.Text=Settings.Values.Ammo.Value
- Settings.WeaponAnimations('GUI',true,GUI)
- Settings.WeaponAnimations('Stance',false,Character)
- Settings.Values.Equipped=true
- Mouse.Icon="http://www.roblox.com/asset/?id=184264156"
- Shoot=Mouse.Button1Down:connect(function()
- 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
- if Settings.Values.Stanced==true then Settings.WeaponSprint(false) end
- MouseDown=true
- while Settings.Values.Ammo.Value>Settings.Values.Ammo.MinValue and Settings.Values.Equipped and Settings.Values.Firing==false and MouseDown==true do
- Settings.Values.Firing=true
- Settings.WeaponFire(Mouse.Hit.p)
- script.Parent.Barrel.Light.Angle = math.random(90, 180)
- Settings.Values.Ammo.Value=Settings.Values.Ammo.Value-1
- script.Parent.Barrel.Flash.Enabled=true
- Settings.Handle.Fire:Play()
- Settings.UpdateGui()
- wait(Settings.FireRate)
- script.Parent.Barrel.Flash.Enabled=false
- script.Parent.Barrel.Light.Enabled=false
- Settings.Values.Firing=false
- if Settings.Values.Ammo.Value<=Settings.Values.Ammo.MinValue then Settings.WeaponReload() end
- end
- end
- end)
- EndShoot=Mouse.Button1Up:connect(function()
- MouseDown=false
- script.Parent.Barrel.Flash.Enabled=false
- script.Parent.Barrel.Light.Enabled=false
- if Settings.Values.Ammo.Value<=Settings.Values.Ammo.MinValue then
- if not Settings.Values.Reloading then
- Settings.WeaponReload()
- end
- end
- end)
- RegisterKeys=Mouse.KeyDown:connect(function(Key)
- if Settings.Values.Equipped then
- Settings.BindKeys(Key)
- end
- end)
- Character.Humanoid.Changed:connect(function(A)
- if A=='WalkSpeed' and Settings.Values.Stanced==true and Character.Humanoid.WalkSpeed==16 then
- Settings.WeaponSprint(true)
- end
- end)
- Character.Humanoid.Died:connect(function()
- Character.Humanoid:UnequipTools()
- end)
- end)
- Tool.Unequipped:connect(function()
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.TopArea.Title.Text="n/a"
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.TopArea.Shade.Text="n/a"
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.Ammo.Text="n/a"
- Player:WaitForChild("PlayerGui"):FindFirstChild("Client").Main.Ammo.Shade.Text="n/a"
- Mouse.Icon = " "
- script.Parent.Barrel.Light.Enabled=false
- script.Parent.Barrel.Flash.Enabled=false
- Settings.Values.Stanced=false
- Settings.Values.Firing=false
- Settings.Values.Reloading=false
- Settings.Values.Equipped=false
- Settings.WeaponSprint(Settings.Values.Stanced)
- Settings.WeaponAnimations('GUI',false,GUI)
- Settings.WeaponAnimations('UnequipAll',true,Character)
- Shoot:disconnect()
- EndShoot:disconnect()
- RegisterKeys:disconnect()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement