SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Player = game:GetService("Players"):FindFirstChild("myalt1562")
|
| 1 | + | -- This script has been converted to FE by iPxter |
| 2 | - | Name = "AK-47" |
| 2 | + | |
| 3 | - | selected = false |
| 3 | + | |
| 4 | - | canDual = false |
| 4 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 5 | - | dual = false |
| 5 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 6 | - | Button1Down = false |
| 6 | + | do |
| 7 | - | damage = 40 |
| 7 | + | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 8 | - | canFire = true |
| 8 | + | script.Parent = Player.Character |
| 9 | - | canFire2 = false |
| 9 | + | |
| 10 | - | readyTime = 0.040 |
| 10 | + | --RemoteEvent for communicating |
| 11 | - | automatic = true |
| 11 | + | local Event = Instance.new("RemoteEvent")
|
| 12 | - | burst = false |
| 12 | + | Event.Name = "UserInput_Event" |
| 13 | - | burstCount = 0 |
| 13 | + | |
| 14 | - | burstCountMax = 7 |
| 14 | + | --Fake event to make stuff like Mouse.KeyDown work |
| 15 | - | canSilence = true |
| 15 | + | local function fakeEvent() |
| 16 | - | silenced = false |
| 16 | + | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
|
| 17 | - | canZoom = false |
| 17 | + | t.connect = t.Connect |
| 18 | - | zoom = false |
| 18 | + | return t |
| 19 | - | switchToSingle = true |
| 19 | + | end |
| 20 | - | switchToBurst = false |
| 20 | + | |
| 21 | - | switchToAutomatic = true |
| 21 | + | --Creating fake input objects with fake variables |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | - | ammoGui = Instance.new("ScreenGui")
|
| 24 | + | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
|
| 25 | - | ammoGui.Name = Name |
| 25 | + | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 26 | - | local frame = Instance.new("Frame")
|
| 26 | + | end} |
| 27 | - | frame.Name = "Frame" |
| 27 | + | --Merged 2 functions into one by checking amount of arguments |
| 28 | - | frame.Size = UDim2.new(0, 165, 0, 60) |
| 28 | + | CAS.UnbindAction = CAS.BindAction |
| 29 | - | frame.Position = UDim2.new(0, 0, 1, -60) |
| 29 | + | |
| 30 | - | frame.BackgroundColor3 = Color3.new(1, 1, 1) |
| 30 | + | --This function will trigger the events that have been :Connect()'ed |
| 31 | - | frame.BorderColor3 = Color3.new(0, 0, 0) |
| 31 | + | local function te(self,ev,...) |
| 32 | - | frame.Parent = ammoGui |
| 32 | + | local t = m[ev] |
| 33 | - | local label = Instance.new("TextLabel")
|
| 33 | + | if t and t._fakeEvent and t.Function then |
| 34 | - | label.Name = "Weapon" |
| 34 | + | t.Function(...) |
| 35 | - | label.Text = "Weapon: " ..Name |
| 35 | + | end |
| 36 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 36 | + | end |
| 37 | - | label.Position = UDim2.new(0, 0, 0, 0) |
| 37 | + | m.TrigEvent = te |
| 38 | - | label.BackgroundColor3 = Color3.new(1, 0, 0) |
| 38 | + | UIS.TrigEvent = te |
| 39 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 39 | + | |
| 40 | - | label.Parent = frame |
| 40 | + | Event.OnServerEvent:Connect(function(plr,io) |
| 41 | - | local label = Instance.new("TextLabel")
|
| 41 | + | if plr~=Player then return end |
| 42 | - | label.Name = "MagazinePrefix" |
| 42 | + | if io.isMouse then |
| 43 | - | label.Text = " Magazine:" |
| 43 | + | m.Target = io.Target |
| 44 | - | label.TextXAlignment = "Left" |
| 44 | + | m.Hit = io.Hit |
| 45 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 45 | + | else |
| 46 | - | label.Position = UDim2.new(0, 0, 0, 20) |
| 46 | + | local b = io.UserInputState == Enum.UserInputState.Begin |
| 47 | - | label.BackgroundColor3 = Color3.new(1, 1, 1) |
| 47 | + | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 48 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 48 | + | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
| 49 | - | label.Parent = frame |
| 49 | + | end |
| 50 | - | local label = Instance.new("TextLabel")
|
| 50 | + | for _,t in pairs(CAS.Actions) do |
| 51 | - | label.Name = "Magazine" |
| 51 | + | for _,k in pairs(t.Keys) do |
| 52 | - | label.Text = "0/0" |
| 52 | + | if k==io.KeyCode then |
| 53 | - | label.TextXAlignment = "Right" |
| 53 | + | t.Function(t.Name,io.UserInputState,io) |
| 54 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 54 | + | end |
| 55 | - | label.Position = UDim2.new(0, -10, 0, 20) |
| 55 | + | end |
| 56 | - | label.BackgroundTransparency = 1 |
| 56 | + | end |
| 57 | - | label.BorderSizePixel = 0 |
| 57 | + | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 58 | - | label.Parent = frame |
| 58 | + | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
| 59 | - | local label = Instance.new("TextLabel")
|
| 59 | + | end |
| 60 | - | label.Name = "AmmoPrefix" |
| 60 | + | end) |
| 61 | - | label.Text = " Ammunition:" |
| 61 | + | Event.Parent = NLS([==[ |
| 62 | - | label.TextXAlignment = "Left" |
| 62 | + | local Player = game:GetService("Players").owner
|
| 63 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 63 | + | local Event = script:WaitForChild("UserInput_Event")
|
| 64 | - | label.Position = UDim2.new(0, 0, 0, 40) |
| 64 | + | |
| 65 | - | label.BackgroundColor3 = Color3.new(1, 1, 1) |
| 65 | + | local UIS = game:GetService("UserInputService")
|
| 66 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 66 | + | local input = function(io,a) |
| 67 | - | label.Parent = frame |
| 67 | + | if a then return end |
| 68 | - | local label = Instance.new("TextLabel")
|
| 68 | + | --Since InputObject is a client-side instance, we create and pass table instead |
| 69 | - | label.Name = "Ammo" |
| 69 | + | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
|
| 70 | - | label.Text = "0/0" |
| 70 | + | end |
| 71 | - | label.TextXAlignment = "Right" |
| 71 | + | UIS.InputBegan:Connect(input) |
| 72 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 72 | + | UIS.InputEnded:Connect(input) |
| 73 | - | label.Position = UDim2.new(0, -10, 0, 40) |
| 73 | + | |
| 74 | - | label.BackgroundTransparency = 1 |
| 74 | + | local Mouse = Player:GetMouse() |
| 75 | - | label.BorderSizePixel = 0 |
| 75 | + | local h,t |
| 76 | - | label.Parent = frame |
| 76 | + | --Give the server mouse data 30 times every second, but only if the values changed |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | - | function updateGui() |
| 79 | + | if h~=Mouse.Hit or t~=Mouse.Target then |
| 80 | - | if selected == false then return end |
| 80 | + | h,t=Mouse.Hit,Mouse.Target |
| 81 | - | if Player:FindFirstChild("PlayerGui") == nil then Instance.new("PlayerGui").Parent = Player end
|
| 81 | + | Event:FireServer({isMouse=true,Target=t,Hit=h})
|
| 82 | - | if Player.PlayerGui:FindFirstChild(Name) == nil then |
| 82 | + | end |
| 83 | - | ammoGui:Clone().Parent = Player.PlayerGui |
| 83 | + | end]==],Player.Character) |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | - | Player.PlayerGui[Name].Frame.Magazine.Text = tostring(magazine.Value).. "/" ..tostring(magazineMax.Value) |
| 85 | + | |
| 86 | - | Player.PlayerGui[Name].Frame.Ammo.Text = tostring(ammo.Value).. "/" ..tostring(ammoMax.Value) |
| 86 | + | |
| 87 | ||
| 88 | --Made by N3xul | |
| 89 | local runDummyScript = function(f,scri) | |
| 90 | - | function makeParts(format) |
| 90 | + | local oldenv = getfenv(f) |
| 91 | - | local model = Instance.new("Model")
|
| 91 | + | local newenv = setmetatable({}, {
|
| 92 | - | model.Name = Name |
| 92 | + | __index = function(_, k) |
| 93 | - | local pm = Instance.new("Part")
|
| 93 | + | if k:lower() == 'script' then |
| 94 | - | pm.Name = "Handle" |
| 94 | + | return scri |
| 95 | - | pm.FormFactor = "Custom" |
| 95 | + | |
| 96 | - | pm.Size = Vector3.new(1, 1, 1) |
| 96 | + | return oldenv[k] |
| 97 | - | pm.BrickColor = BrickColor.new("Navy blue")
|
| 97 | + | |
| 98 | - | pm.Locked = true |
| 98 | + | |
| 99 | - | pm.TopSurface = 0 |
| 99 | + | }) |
| 100 | - | pm.BottomSurface = 0 |
| 100 | + | setfenv(f, newenv) |
| 101 | - | pm.Parent = model |
| 101 | + | ypcall(function() f() end) |
| 102 | - | local m = Instance.new("SpecialMesh")
|
| 102 | + | |
| 103 | - | m.MeshType = "Brick" |
| 103 | + | cors = {}
|
| 104 | - | m.Scale = Vector3.new(0.3, 1.25, 0.5) |
| 104 | + | mas = Instance.new("Model",game:GetService("Lighting"))
|
| 105 | - | m.Parent = pm |
| 105 | + | mas.Name = "CompiledModel" |
| 106 | - | if format ~= nil then |
| 106 | + | o1 = Instance.new("Tool")
|
| 107 | - | local w = Instance.new("Weld")
|
| 107 | + | o2 = Instance.new("Part")
|
| 108 | - | w.Part0 = pm |
| 108 | + | o3 = Instance.new("CylinderMesh")
|
| 109 | - | if format == "RightHand" then |
| 109 | + | o4 = Instance.new("Part")
|
| 110 | - | w.Part1 = Player.Character:FindFirstChild("Right Arm")
|
| 110 | + | o5 = Instance.new("IntValue")
|
| 111 | - | w.C0 = CFrame.new(0, 1.4, 0.8) |
| 111 | + | o6 = Instance.new("BlockMesh")
|
| 112 | - | w.C1 = CFrame.new() |
| 112 | + | o7 = Instance.new("Part")
|
| 113 | - | elseif format == "RightHolster" then |
| 113 | + | o8 = Instance.new("BlockMesh")
|
| 114 | - | w.Part1 = Player.Character:FindFirstChild("Torso")
|
| 114 | + | o9 = Instance.new("Part")
|
| 115 | - | w.C0 = CFrame.new(-0.65, -0.1, 0.85) * CFrame.fromEulerAnglesXYZ(math.rad(10), math.rad(90), 0) |
| 115 | + | o10 = Instance.new("CylinderMesh")
|
| 116 | - | w.C1 = CFrame.new() |
| 116 | + | o11 = Instance.new("Part")
|
| 117 | - | model.Name = Name.. " (Holstered)" |
| 117 | + | o12 = Instance.new("SpecialMesh")
|
| 118 | o13 = Instance.new("Part")
| |
| 119 | - | w.Parent = pm |
| 119 | + | o14 = Instance.new("BlockMesh")
|
| 120 | - | model.Parent = Player.Character |
| 120 | + | o15 = Instance.new("Part")
|
| 121 | o16 = Instance.new("BlockMesh")
| |
| 122 | - | --[[ |
| 122 | + | o17 = Instance.new("Part")
|
| 123 | - | sniper1 http://www.roblox.com/Asset/?id=1868836 |
| 123 | + | o18 = Instance.new("CylinderMesh")
|
| 124 | - | equip http://www.roblox.com/Asset/?id=13510737 |
| 124 | + | o19 = Instance.new("Part")
|
| 125 | - | fire1 http://www.roblox.com/Asset/?id=2760979 |
| 125 | + | o20 = Instance.new("BlockMesh")
|
| 126 | - | fire2 http://www.roblox.com/Asset/?id=13510352 |
| 126 | + | o21 = Instance.new("Part")
|
| 127 | - | fire3 http://www.roblox.com/Asset/?id=2692806 |
| 127 | + | o22 = Instance.new("SpecialMesh")
|
| 128 | - | fire4 http://www.roblox.com/Asset/?id=2691586 |
| 128 | + | o23 = Instance.new("Part")
|
| 129 | - | fire5 http://www.roblox.com/Asset/?id=2920959 |
| 129 | + | o24 = Instance.new("CylinderMesh")
|
| 130 | - | fire6 http://www.roblox.com/Asset/?id=2697431 |
| 130 | + | o25 = Instance.new("Part")
|
| 131 | - | fire7 http://www.roblox.com/Asset/?id=2920959 |
| 131 | + | o26 = Instance.new("BlockMesh")
|
| 132 | - | reload1 http://www.roblox.com/Asset/?id=2691591 |
| 132 | + | o27 = Instance.new("Part")
|
| 133 | - | reload2 http://www.roblox.com/Asset/?id=2697432 |
| 133 | + | o28 = Instance.new("BlockMesh")
|
| 134 | - | reload3 http://www.roblox.com/Asset/?id=2920960 |
| 134 | + | o29 = Instance.new("Part")
|
| 135 | - | reload4 http://www.roblox.com/Asset/?id=2761842 |
| 135 | + | o30 = Instance.new("BlockMesh")
|
| 136 | - | shotgun1 http://www.roblox.com/Asset/?id=2697294 |
| 136 | + | o31 = Instance.new("Part")
|
| 137 | - | --]] |
| 137 | + | o32 = Instance.new("BlockMesh")
|
| 138 | - | local s = Instance.new("Sound")
|
| 138 | + | o33 = Instance.new("Part")
|
| 139 | - | s.Name = "Fire" |
| 139 | + | o34 = Instance.new("CylinderMesh")
|
| 140 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2760979" |
| 140 | + | o35 = Instance.new("Part")
|
| 141 | - | s.Volume = 1 |
| 141 | + | o36 = Instance.new("CylinderMesh")
|
| 142 | - | s.Pitch = 1 |
| 142 | + | o37 = Instance.new("Part")
|
| 143 | - | s.Looped = false |
| 143 | + | o38 = Instance.new("BlockMesh")
|
| 144 | - | s.Parent = pm |
| 144 | + | o39 = Instance.new("Part")
|
| 145 | - | local s = Instance.new("Sound")
|
| 145 | + | o40 = Instance.new("BlockMesh")
|
| 146 | - | s.Name = "Reload" |
| 146 | + | o41 = Instance.new("Part")
|
| 147 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2697432" |
| 147 | + | o42 = Instance.new("CylinderMesh")
|
| 148 | - | s.Volume = 1 |
| 148 | + | o43 = Instance.new("Part")
|
| 149 | - | s.Pitch = 1 |
| 149 | + | o44 = Instance.new("BlockMesh")
|
| 150 | - | s.Looped = false |
| 150 | + | o45 = Instance.new("Part")
|
| 151 | - | s.Parent = pm |
| 151 | + | o46 = Instance.new("BlockMesh")
|
| 152 | - | local s = Instance.new("Sound")
|
| 152 | + | o47 = Instance.new("Part")
|
| 153 | - | s.Name = "Empty" |
| 153 | + | o48 = Instance.new("BlockMesh")
|
| 154 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2697295" |
| 154 | + | o49 = Instance.new("Part")
|
| 155 | - | s.Volume = 1 |
| 155 | + | o50 = Instance.new("BlockMesh")
|
| 156 | - | s.Pitch = 5 |
| 156 | + | o51 = Instance.new("Part")
|
| 157 | - | s.Looped = false |
| 157 | + | o52 = Instance.new("BlockMesh")
|
| 158 | - | s.Parent = pm |
| 158 | + | o53 = Instance.new("Part")
|
| 159 | - | local s = Instance.new("Sound")
|
| 159 | + | o54 = Instance.new("BlockMesh")
|
| 160 | - | s.Name = "Switch" |
| 160 | + | o55 = Instance.new("Part")
|
| 161 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2697295" |
| 161 | + | o56 = Instance.new("SpecialMesh")
|
| 162 | - | s.Volume = 1 |
| 162 | + | o57 = Instance.new("Part")
|
| 163 | - | s.Pitch = 10 |
| 163 | + | o58 = Instance.new("BlockMesh")
|
| 164 | - | s.Looped = false |
| 164 | + | o59 = Instance.new("Part")
|
| 165 | - | s.Parent = pm |
| 165 | + | o60 = Instance.new("SpecialMesh")
|
| 166 | - | local p = Instance.new("Part")
|
| 166 | + | o61 = Instance.new("Part")
|
| 167 | - | p.Name = "ShellOut" |
| 167 | + | o62 = Instance.new("CylinderMesh")
|
| 168 | - | p.FormFactor = "Custom" |
| 168 | + | o63 = Instance.new("Part")
|
| 169 | - | p.Size = Vector3.new(1, 1, 1) |
| 169 | + | o64 = Instance.new("BlockMesh")
|
| 170 | - | p.Transparency = 1 |
| 170 | + | o65 = Instance.new("Part")
|
| 171 | - | p.Locked = true |
| 171 | + | o66 = Instance.new("BlockMesh")
|
| 172 | - | p.CanCollide = false |
| 172 | + | o67 = Instance.new("Part")
|
| 173 | - | p.TopSurface = 0 |
| 173 | + | o68 = Instance.new("BlockMesh")
|
| 174 | - | p.BottomSurface = 0 |
| 174 | + | o69 = Instance.new("Part")
|
| 175 | - | p.Parent = model |
| 175 | + | o70 = Instance.new("SpecialMesh")
|
| 176 | - | local w = Instance.new("Weld")
|
| 176 | + | o71 = Instance.new("Part")
|
| 177 | - | w.Part0 = p |
| 177 | + | o72 = Instance.new("BlockMesh")
|
| 178 | - | w.Part1 = pm |
| 178 | + | o73 = Instance.new("Part")
|
| 179 | - | w.C0 = CFrame.new(0, 0, 1) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 179 | + | o74 = Instance.new("BlockMesh")
|
| 180 | - | w.C1 = CFrame.new() |
| 180 | + | o75 = Instance.new("Part")
|
| 181 | - | w.Parent = p |
| 181 | + | o76 = Instance.new("Sound")
|
| 182 | - | local p = Instance.new("Part")
|
| 182 | + | o77 = Instance.new("Sound")
|
| 183 | - | p.Name = "Grip" |
| 183 | + | o79 = Instance.new("Part")
|
| 184 | - | p.FormFactor = "Custom" |
| 184 | + | o80 = Instance.new("Part")
|
| 185 | - | p.Size = Vector3.new(1, 1, 1) |
| 185 | + | o81 = Instance.new("SpecialMesh")
|
| 186 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 186 | + | o82 = Instance.new("Part")
|
| 187 | - | p.Locked = true |
| 187 | + | o83 = Instance.new("SpecialMesh")
|
| 188 | - | p.TopSurface = 0 |
| 188 | + | o84 = Instance.new("Part")
|
| 189 | - | p.BottomSurface = 0 |
| 189 | + | o85 = Instance.new("SpecialMesh")
|
| 190 | - | p.Parent = model |
| 190 | + | o86 = Instance.new("Part")
|
| 191 | - | local m = Instance.new("SpecialMesh")
|
| 191 | + | o87 = Instance.new("BlockMesh")
|
| 192 | - | m.MeshType = "Brick" |
| 192 | + | o88 = Instance.new("Part")
|
| 193 | - | m.Scale = Vector3.new(0.29, 0.5, 0.9) |
| 193 | + | o89 = Instance.new("SpecialMesh")
|
| 194 | - | m.Parent = p |
| 194 | + | o90 = Instance.new("Part")
|
| 195 | - | local w = Instance.new("Weld")
|
| 195 | + | o91 = Instance.new("SpecialMesh")
|
| 196 | - | w.Part0 = p |
| 196 | + | o92 = Instance.new("Part")
|
| 197 | - | w.Part1 = pm |
| 197 | + | o93 = Instance.new("SpecialMesh")
|
| 198 | - | w.C0 = CFrame.new(0, -0.25, -0.6) * CFrame.fromEulerAnglesXYZ(math.rad(15), 0, 0) |
| 198 | + | o94 = Instance.new("Part")
|
| 199 | - | w.C1 = CFrame.new() |
| 199 | + | o95 = Instance.new("SpecialMesh")
|
| 200 | - | w.Parent = p |
| 200 | + | o96 = Instance.new("Part")
|
| 201 | - | local p = Instance.new("Part")
|
| 201 | + | o97 = Instance.new("BlockMesh")
|
| 202 | - | p.Name = "Magazine Housing" |
| 202 | + | o98 = Instance.new("Part")
|
| 203 | - | p.FormFactor = "Custom" |
| 203 | + | o99 = Instance.new("BlockMesh")
|
| 204 | - | p.Size = Vector3.new(1, 1, 1) |
| 204 | + | o100 = Instance.new("Part")
|
| 205 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 205 | + | o101 = Instance.new("BlockMesh")
|
| 206 | - | p.Locked = true |
| 206 | + | o102 = Instance.new("LocalScript")
|
| 207 | - | p.TopSurface = 0 |
| 207 | + | o103 = Instance.new("LocalScript")
|
| 208 | - | p.BottomSurface = 0 |
| 208 | + | o104 = Instance.new("NumberValue")
|
| 209 | - | p.Parent = model |
| 209 | + | o105 = Instance.new("NumberValue")
|
| 210 | - | local m = Instance.new("SpecialMesh")
|
| 210 | + | o106 = Instance.new("ScreenGui")
|
| 211 | - | m.MeshType = "Brick" |
| 211 | + | o107 = Instance.new("Frame")
|
| 212 | - | m.Scale = Vector3.new(0.3, 0.6, 0.3) |
| 212 | + | o108 = Instance.new("TextLabel")
|
| 213 | - | m.Parent = p |
| 213 | + | o109 = Instance.new("Smoke")
|
| 214 | - | local w = Instance.new("Weld")
|
| 214 | + | o110 = Instance.new("Smoke")
|
| 215 | - | w.Part0 = p |
| 215 | + | o1.Name = "AK74" |
| 216 | - | w.Part1 = pm |
| 216 | + | o1.Parent = mas |
| 217 | - | w.C0 = CFrame.new(0, 0.525, -0.31) * CFrame.fromEulerAnglesXYZ(math.rad(-10), 0, 0) |
| 217 | + | o2.Name = "SmokePart" |
| 218 | - | w.C1 = CFrame.new() |
| 218 | + | o2.Parent = o1 |
| 219 | - | w.Parent = p |
| 219 | + | o2.BrickColor = BrickColor.new("Black")
|
| 220 | - | local p = Instance.new("Part")
|
| 220 | + | o2.Transparency = 1 |
| 221 | - | p.Name = "Magazine" |
| 221 | + | o2.Position = Vector3.new(69.2977066, 3.61904788, 201.51828) |
| 222 | - | p.FormFactor = "Custom" |
| 222 | + | o2.Rotation = Vector3.new(90, -90, 0) |
| 223 | - | p.Size = Vector3.new(1, 1, 1) |
| 223 | + | o2.Anchored = true |
| 224 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 224 | + | o2.CanCollide = false |
| 225 | - | p.Locked = true |
| 225 | + | o2.FormFactor = Enum.FormFactor.Custom |
| 226 | - | p.TopSurface = 0 |
| 226 | + | o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 227 | - | p.BottomSurface = 0 |
| 227 | + | o2.CFrame = CFrame.new(69.2977066, 3.61904788, 201.51828, -3.19382108e-014, 0, -1, -0.999999762, -2.4158453e-013, -3.19382108e-014, 2.4158453e-013, 0.999999762, 0) |
| 228 | - | p.Parent = model |
| 228 | + | o2.BottomSurface = Enum.SurfaceType.Smooth |
| 229 | - | local m = Instance.new("SpecialMesh")
|
| 229 | + | o2.TopSurface = Enum.SurfaceType.Smooth |
| 230 | - | m.MeshType = "Brick" |
| 230 | + | o2.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 231 | - | m.Scale = Vector3.new(0.25, 0.55, 1) |
| 231 | + | o2.Position = Vector3.new(69.2977066, 3.61904788, 201.51828) |
| 232 | - | m.Parent = p |
| 232 | + | o3.Parent = o2 |
| 233 | - | local w = Instance.new("Weld")
|
| 233 | + | o3.Scale = Vector3.new(0.600000024, 1, 0.600000024) |
| 234 | - | w.Part0 = p |
| 234 | + | o4.Name = "NoSight" |
| 235 | - | w.Part1 = pm |
| 235 | + | o4.Parent = o1 |
| 236 | - | w.C0 = CFrame.new(0, 0.485, -0.9) * CFrame.fromEulerAnglesXYZ(math.rad(-15), 0, 0) |
| 236 | + | o4.BrickColor = BrickColor.new("White")
|
| 237 | - | w.C1 = CFrame.new() |
| 237 | + | o4.Transparency = 1 |
| 238 | - | w.Parent = p |
| 238 | + | o4.Position = Vector3.new(69.2977066, 3.9342339, 201.089035) |
| 239 | - | local p = Instance.new("Part")
|
| 239 | + | o4.Rotation = Vector3.new(-0.00323153776, -0.00099320442, 0.0216091424) |
| 240 | - | p.Name = "Trigger Housing" |
| 240 | + | o4.Anchored = true |
| 241 | - | p.FormFactor = "Custom" |
| 241 | + | o4.CanCollide = false |
| 242 | - | p.Size = Vector3.new(1, 1, 1) |
| 242 | + | o4.Elasticity = 0 |
| 243 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 243 | + | o4.FormFactor = Enum.FormFactor.Custom |
| 244 | - | p.Locked = true |
| 244 | + | o4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 245 | - | p.TopSurface = 0 |
| 245 | + | o4.CFrame = CFrame.new(69.2977066, 3.9342339, 201.089035, 0.999998569, -0.000377150165, -1.73346871e-005, 0.000377151184, 1, 5.64008951e-005, 1.73282315e-005, -5.66393137e-005, 0.999998569) |
| 246 | - | p.BottomSurface = 0 |
| 246 | + | o4.BottomSurface = Enum.SurfaceType.Smooth |
| 247 | - | p.Parent = model |
| 247 | + | o4.TopSurface = Enum.SurfaceType.Smooth |
| 248 | - | local m = Instance.new("SpecialMesh")
|
| 248 | + | o4.Color = Color3.new(0.94902, 0.952941, 0.952941) |
| 249 | - | m.MeshType = "Brick" |
| 249 | + | o4.Position = Vector3.new(69.2977066, 3.9342339, 201.089035) |
| 250 | - | m.Scale = Vector3.new(0.1, 0.4, 0.025) |
| 250 | + | o5.Name = "lenspart" |
| 251 | - | m.Parent = p |
| 251 | + | o5.Parent = o4 |
| 252 | - | local w = Instance.new("Weld")
|
| 252 | + | o6.Parent = o4 |
| 253 | - | w.Part0 = p |
| 253 | + | o6.Scale = Vector3.new(0.0476190485, 0.0476190485, 0.0476190485) |
| 254 | - | w.Part1 = pm |
| 254 | + | o7.Parent = o1 |
| 255 | - | w.C0 = CFrame.new(0, 0.1, -0.4) |
| 255 | + | o7.BrickColor = BrickColor.new("Black")
|
| 256 | - | w.C1 = CFrame.new() |
| 256 | + | o7.Position = Vector3.new(69.2977066, 3.6842339, 200.654068) |
| 257 | - | w.Parent = p |
| 257 | + | o7.Rotation = Vector3.new(-135.001236, -0.0161826368, 89.9821167) |
| 258 | - | local p = Instance.new("Part")
|
| 258 | + | o7.Anchored = true |
| 259 | - | p.Name = "Trigger" |
| 259 | + | o7.CanCollide = false |
| 260 | - | p.FormFactor = "Custom" |
| 260 | + | o7.Elasticity = 0 |
| 261 | - | p.Size = Vector3.new(1, 1, 1) |
| 261 | + | o7.FormFactor = Enum.FormFactor.Symmetric |
| 262 | - | p.BrickColor = BrickColor.new("Black")
|
| 262 | + | o7.Size = Vector3.new(1, 1, 1) |
| 263 | - | p.Locked = true |
| 263 | + | o7.CFrame = CFrame.new(69.2977066, 3.6842339, 200.654068, 0.000312114571, -0.999998689, -0.000282440305, -0.707122445, -0.000420430471, 0.707091093, -0.707089782, -2.10231665e-005, -0.707121611) |
| 264 | - | p.TopSurface = 0 |
| 264 | + | o7.BottomSurface = Enum.SurfaceType.Smooth |
| 265 | - | p.BottomSurface = 0 |
| 265 | + | o7.TopSurface = Enum.SurfaceType.Smooth |
| 266 | - | p.Parent = model |
| 266 | + | o7.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 267 | - | local m = Instance.new("SpecialMesh")
|
| 267 | + | o7.Position = Vector3.new(69.2977066, 3.6842339, 200.654068) |
| 268 | - | m.MeshType = "Brick" |
| 268 | + | o8.Parent = o7 |
| 269 | - | m.Scale = Vector3.new(0.1, 0.05, 0.15) |
| 269 | + | o8.Scale = Vector3.new(0.0476190485, 0.0476190485, 0.142857149) |
| 270 | - | m.Parent = p |
| 270 | + | o9.Name = "Cylinder" |
| 271 | - | local w = Instance.new("Weld")
|
| 271 | + | o9.Parent = o1 |
| 272 | - | w.Part0 = p |
| 272 | + | o9.BrickColor = BrickColor.new("Black")
|
| 273 | - | w.Part1 = pm |
| 273 | + | o9.Position = Vector3.new(69.2977066, 3.62031507, 200.737213) |
| 274 | - | w.C0 = CFrame.new(0, 0.03, -0.275) |
| 274 | + | o9.Rotation = Vector3.new(-90.006012, -0.0233571213, -0.00436751125) |
| 275 | - | w.C1 = CFrame.new() |
| 275 | + | o9.Anchored = true |
| 276 | - | w.Parent = p |
| 276 | + | o9.CanCollide = false |
| 277 | - | local p = Instance.new("Part")
|
| 277 | + | o9.Elasticity = 0 |
| 278 | - | p.Name = "Barrel 2" |
| 278 | + | o9.FormFactor = Enum.FormFactor.Symmetric |
| 279 | - | p.CanCollide = false |
| 279 | + | o9.Size = Vector3.new(1, 1, 1) |
| 280 | - | p.FormFactor = "Custom" |
| 280 | + | o9.CFrame = CFrame.new(69.2977066, 3.62031507, 200.737213, 0.999998629, 7.62273485e-005, -0.000407658663, 0.000407666783, -0.000104725361, 0.999999881, 7.61873307e-005, -0.99999845, -0.000104993582) |
| 281 | - | p.Size = Vector3.new(1, 1, 1) |
| 281 | + | o9.BottomSurface = Enum.SurfaceType.Smooth |
| 282 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 282 | + | o9.TopSurface = Enum.SurfaceType.Smooth |
| 283 | - | p.Locked = true |
| 283 | + | o9.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 284 | - | p.TopSurface = 0 |
| 284 | + | o9.Position = Vector3.new(69.2977066, 3.62031507, 200.737213) |
| 285 | - | p.BottomSurface = 0 |
| 285 | + | o10.Parent = o9 |
| 286 | - | p.Parent = model |
| 286 | + | o10.Scale = Vector3.new(0.142857149, 0.90476191, 0.095238097) |
| 287 | - | local m = Instance.new("SpecialMesh")
|
| 287 | + | o11.Name = "NoSight" |
| 288 | - | m.MeshType = "Brick" |
| 288 | + | o11.Parent = o1 |
| 289 | - | m.Scale = Vector3.new(0.3, 1.1, 0.35) |
| 289 | + | o11.BrickColor = BrickColor.new("Black")
|
| 290 | - | m.Parent = p |
| 290 | + | o11.Position = Vector3.new(69.2977066, 3.93926787, 201.118301) |
| 291 | - | local w = Instance.new("Weld")
|
| 291 | + | o11.Rotation = Vector3.new(-179.995514, -0.000882029475, -90.0216064) |
| 292 | - | w.Part0 = p |
| 292 | + | o11.Anchored = true |
| 293 | - | w.Part1 = pm |
| 293 | + | o11.CanCollide = false |
| 294 | - | w.C0 = CFrame.new(0, 1.15, 0.075) |
| 294 | + | o11.Elasticity = 0 |
| 295 | - | w.C1 = CFrame.new() |
| 295 | + | o11.FormFactor = Enum.FormFactor.Symmetric |
| 296 | - | w.Parent = p |
| 296 | + | o11.Size = Vector3.new(1, 1, 1) |
| 297 | - | local p = Instance.new("Part")
|
| 297 | + | o11.CFrame = CFrame.new(69.2977066, 3.93926787, 201.118301, -0.000377148564, 0.99999851, -1.53943183e-005, 1.00000024, 0.000377149729, 7.84248114e-005, 7.82907009e-005, -1.53648507e-005, -0.999998689) |
| 298 | - | p.Name = "Barrel 1" |
| 298 | + | o11.BottomSurface = Enum.SurfaceType.Smooth |
| 299 | - | p.FormFactor = "Custom" |
| 299 | + | o11.TopSurface = Enum.SurfaceType.Smooth |
| 300 | - | p.Size = Vector3.new(1, 1, 1) |
| 300 | + | o11.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 301 | - | p.BrickColor = BrickColor.new("Black")
|
| 301 | + | o11.Position = Vector3.new(69.2977066, 3.93926787, 201.118301) |
| 302 | - | p.CanCollide = false |
| 302 | + | o12.Parent = o11 |
| 303 | - | p.Locked = true |
| 303 | + | o12.MeshId = "http://www.roblox.com/asset/?id=3270017" |
| 304 | - | p.TopSurface = 0 |
| 304 | + | o12.Scale = Vector3.new(0.0571428612, 0.0571428612, 0.428571433) |
| 305 | - | p.BottomSurface = 0 |
| 305 | + | o12.MeshType = Enum.MeshType.FileMesh |
| 306 | - | p.Parent = model |
| 306 | + | o13.Name = "NoSight" |
| 307 | - | local m = Instance.new("CylinderMesh")
|
| 307 | + | o13.Parent = o1 |
| 308 | - | m.Scale = Vector3.new(0.15, 0.6, 0.15) |
| 308 | + | o13.BrickColor = BrickColor.new("Black")
|
| 309 | - | m.Parent = p |
| 309 | + | o13.Position = Vector3.new(69.2977066, 3.76237607, 200.990097) |
| 310 | - | local w = Instance.new("Weld")
|
| 310 | + | o13.Rotation = Vector3.new(-45.0002937, -0.0168264471, 90.0145645) |
| 311 | - | w.Part0 = p |
| 311 | + | o13.Anchored = true |
| 312 | - | w.Part1 = pm |
| 312 | + | o13.CanCollide = false |
| 313 | - | w.C0 = CFrame.new(0, 2, 0.075) |
| 313 | + | o13.Elasticity = 0 |
| 314 | - | w.C1 = CFrame.new() |
| 314 | + | o13.FormFactor = Enum.FormFactor.Symmetric |
| 315 | - | w.Parent = p |
| 315 | + | o13.Size = Vector3.new(1, 1, 1) |
| 316 | - | local p = Instance.new("Part")
|
| 316 | + | o13.CFrame = CFrame.new(69.2977066, 3.76237607, 200.990097, -0.00025420732, -0.999998689, -0.000293676887, 0.707103848, -0.000387427688, 0.707109749, -0.707108736, -2.78929874e-005, 0.707102537) |
| 317 | - | p.Name = "Muzzle" |
| 317 | + | o13.BottomSurface = Enum.SurfaceType.Smooth |
| 318 | - | p.FormFactor = "Custom" |
| 318 | + | o13.TopSurface = Enum.SurfaceType.Smooth |
| 319 | - | p.Size = Vector3.new(1, 1, 1) |
| 319 | + | o13.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 320 | - | p.BrickColor = BrickColor.new("Black")
|
| 320 | + | o13.Position = Vector3.new(69.2977066, 3.76237607, 200.990097) |
| 321 | - | p.CanCollide = false |
| 321 | + | o14.Parent = o13 |
| 322 | - | p.Locked = true |
| 322 | + | o14.Scale = Vector3.new(0.0476190485, 0.0238095243, 0.380952388) |
| 323 | - | p.TopSurface = 0 |
| 323 | + | o15.Name = "NoSight" |
| 324 | - | p.BottomSurface = 0 |
| 324 | + | o15.Parent = o1 |
| 325 | - | p.Parent = model |
| 325 | + | o15.BrickColor = BrickColor.new("Black")
|
| 326 | - | local m = Instance.new("CylinderMesh")
|
| 326 | + | o15.Position = Vector3.new(69.2977066, 3.76721001, 201.118103) |
| 327 | - | m.Scale = Vector3.new(0.2, 0.2, 0.2) |
| 327 | + | o15.Rotation = Vector3.new(0.00099977036, -0.00261890306, 90.0216064) |
| 328 | - | m.Parent = p |
| 328 | + | o15.Anchored = true |
| 329 | - | local w = Instance.new("Weld")
|
| 329 | + | o15.CanCollide = false |
| 330 | - | w.Part0 = p |
| 330 | + | o15.Elasticity = 0 |
| 331 | - | w.Part1 = pm |
| 331 | + | o15.FormFactor = Enum.FormFactor.Symmetric |
| 332 | - | w.C0 = CFrame.new(0, 2.4, 0.075) |
| 332 | + | o15.Size = Vector3.new(1, 1, 1) |
| 333 | - | w.C1 = CFrame.new() |
| 333 | + | o15.CFrame = CFrame.new(69.2977066, 3.76721001, 201.118103, -0.000377149496, -0.999998689, -4.57084789e-005, 0.99999994, -0.000377148739, -1.74492598e-005, 1.71065331e-005, -4.57148781e-005, 0.999998629) |
| 334 | - | w.Parent = p |
| 334 | + | o15.BottomSurface = Enum.SurfaceType.Smooth |
| 335 | - | local s = Instance.new("Smoke")
|
| 335 | + | o15.TopSurface = Enum.SurfaceType.Smooth |
| 336 | - | s.Enabled = false |
| 336 | + | o15.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 337 | - | s.Name = "Smoke" |
| 337 | + | o15.Position = Vector3.new(69.2977066, 3.76721001, 201.118103) |
| 338 | - | s.RiseVelocity = -5 |
| 338 | + | o16.Parent = o15 |
| 339 | - | s.Opacity = 0.3 |
| 339 | + | o16.Scale = Vector3.new(0.285714298, 0.0238095243, 0.0476190485) |
| 340 | - | s.Color = Color3.new(75 / 225, 75 / 225, 75 / 225) |
| 340 | + | o17.Name = "Cylinder" |
| 341 | - | s.Size = 1 |
| 341 | + | o17.Parent = o1 |
| 342 | - | s.Parent = p |
| 342 | + | o17.BrickColor = BrickColor.new("Really black")
|
| 343 | - | local f = Instance.new("Fire")
|
| 343 | + | o17.Position = Vector3.new(69.2977066, 3.62030005, 201.19812) |
| 344 | - | f.Enabled = false |
| 344 | + | o17.Rotation = Vector3.new(-85.7927856, 89.9051285, 175.788956) |
| 345 | - | f.Name = "Fire" |
| 345 | + | o17.Anchored = true |
| 346 | - | f.Heat = -35 |
| 346 | + | o17.CanCollide = false |
| 347 | - | f.Size = 1 |
| 347 | + | o17.Elasticity = 0 |
| 348 | - | f.Parent = p |
| 348 | + | o17.FormFactor = Enum.FormFactor.Plate |
| 349 | - | local p = Instance.new("Part")
|
| 349 | + | o17.Size = Vector3.new(1, 0.400000006, 1) |
| 350 | - | p.Name = "Silencer" |
| 350 | + | o17.CFrame = CFrame.new(69.2977066, 3.62030005, 201.19812, -0.000377150776, -2.77693744e-005, 0.999998629, 0.99999994, 6.66379929e-005, 0.000377152697, -6.6831708e-005, 0.99999851, 2.77441432e-005) |
| 351 | - | p.FormFactor = "Custom" |
| 351 | + | o17.BottomSurface = Enum.SurfaceType.Smooth |
| 352 | - | p.Size = Vector3.new(1, 1, 1) |
| 352 | + | o17.TopSurface = Enum.SurfaceType.Smooth |
| 353 | - | p.BrickColor = BrickColor.new("Black")
|
| 353 | + | o17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
| 354 | - | p.CanCollide = false |
| 354 | + | o17.Position = Vector3.new(69.2977066, 3.62030005, 201.19812) |
| 355 | - | p.Transparency = 1 |
| 355 | + | o18.Parent = o17 |
| 356 | - | p.Locked = true |
| 356 | + | o18.Offset = Vector3.new(0, -0.0185714271, 0) |
| 357 | - | p.TopSurface = 0 |
| 357 | + | o18.Scale = Vector3.new(0.0666666627, 0.0476190485, 0.099999994) |
| 358 | - | p.BottomSurface = 0 |
| 358 | + | o19.Parent = o1 |
| 359 | - | p.Parent = model |
| 359 | + | o19.BrickColor = BrickColor.new("Black")
|
| 360 | - | local m = Instance.new("CylinderMesh")
|
| 360 | + | o19.Position = Vector3.new(69.2977066, 3.7292459, 200.451019) |
| 361 | - | m.Scale = Vector3.new(0.4, 1, 0.4) |
| 361 | + | o19.Rotation = Vector3.new(-90.0007782, -0.0234805904, 89.9984131) |
| 362 | - | m.Parent = p |
| 362 | + | o19.Anchored = true |
| 363 | - | local w = Instance.new("Weld")
|
| 363 | + | o19.CanCollide = false |
| 364 | - | w.Part0 = p |
| 364 | + | o19.Elasticity = 0 |
| 365 | - | w.Part1 = pm |
| 365 | + | o19.FormFactor = Enum.FormFactor.Symmetric |
| 366 | - | w.C0 = CFrame.new(0, 2.8, 0.075) |
| 366 | + | o19.Size = Vector3.new(1, 1, 1) |
| 367 | - | w.C1 = CFrame.new() |
| 367 | + | o19.CFrame = CFrame.new(69.2977066, 3.7292459, 200.451019, 2.7749209e-005, -0.999998629, -0.000409813598, -1.32024288e-005, -0.000409814005, 0.999999881, -0.999998629, -2.7773538e-005, -1.34557486e-005) |
| 368 | - | w.Parent = p |
| 368 | + | o19.BottomSurface = Enum.SurfaceType.Smooth |
| 369 | - | local p = Instance.new("Part")
|
| 369 | + | o19.TopSurface = Enum.SurfaceType.Smooth |
| 370 | - | p.Name = "Stock 1" |
| 370 | + | o19.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 371 | - | p.CanCollide = false |
| 371 | + | o19.Position = Vector3.new(69.2977066, 3.7292459, 200.451019) |
| 372 | - | p.FormFactor = "Custom" |
| 372 | + | o20.Parent = o19 |
| 373 | - | p.Size = Vector3.new(1, 1, 1) |
| 373 | + | o20.Scale = Vector3.new(0.333333343, 0.0476190485, 0.0476190485) |
| 374 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 374 | + | o21.Name = "Wedge" |
| 375 | - | p.Locked = true |
| 375 | + | o21.Parent = o1 |
| 376 | - | p.TopSurface = 0 |
| 376 | + | o21.BrickColor = BrickColor.new("Brown")
|
| 377 | - | p.BottomSurface = 0 |
| 377 | + | o21.Position = Vector3.new(69.2977066, 3.524261, 199.884064) |
| 378 | - | p.Parent = model |
| 378 | + | o21.Rotation = Vector3.new(179.999237, 0.000992271816, -0.024081884) |
| 379 | - | local m = Instance.new("SpecialMesh")
|
| 379 | + | o21.Anchored = true |
| 380 | - | m.MeshType = "Brick" |
| 380 | + | o21.CanCollide = false |
| 381 | - | m.Scale = Vector3.new(0.3, 0.9, 0.35) |
| 381 | + | o21.Elasticity = 0 |
| 382 | - | m.Parent = p |
| 382 | + | o21.FormFactor = Enum.FormFactor.Symmetric |
| 383 | - | local w = Instance.new("Weld")
|
| 383 | + | o21.Size = Vector3.new(1, 1, 1) |
| 384 | - | w.Part0 = p |
| 384 | + | o21.CFrame = CFrame.new(69.2977066, 3.524261, 199.884064, 0.999998629, 0.000420307595, 1.73184108e-005, 0.000420307886, -0.999999881, -1.32024288e-005, 1.73127846e-005, 1.34557486e-005, -0.999998629) |
| 385 | - | w.Part1 = pm |
| 385 | + | o21.BottomSurface = Enum.SurfaceType.Smooth |
| 386 | - | w.C0 = CFrame.new(0, -1.05, -0.1) |
| 386 | + | o21.TopSurface = Enum.SurfaceType.Smooth |
| 387 | - | w.C1 = CFrame.new() |
| 387 | + | o21.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 388 | - | w.Parent = p |
| 388 | + | o21.Position = Vector3.new(69.2977066, 3.524261, 199.884064) |
| 389 | - | local p = Instance.new("Part")
|
| 389 | + | o22.Parent = o21 |
| 390 | - | p.Name = "Stock 1 Angle" |
| 390 | + | o22.Scale = Vector3.new(0.238095239, 0.0476190485, 0.476190478) |
| 391 | - | p.CanCollide = false |
| 391 | + | o22.MeshType = Enum.MeshType.Wedge |
| 392 | - | p.FormFactor = "Custom" |
| 392 | + | o23.Name = "Cylinder" |
| 393 | - | p.Size = Vector3.new(1, 1, 1) |
| 393 | + | o23.Parent = o1 |
| 394 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 394 | + | o23.BrickColor = BrickColor.new("Brown")
|
| 395 | - | p.Locked = true |
| 395 | + | o23.Position = Vector3.new(69.2977066, 3.73920989, 200.074005) |
| 396 | - | p.TopSurface = 0 |
| 396 | + | o23.Rotation = Vector3.new(-85.7927856, 89.9051285, 175.788956) |
| 397 | - | p.BottomSurface = 0 |
| 397 | + | o23.Anchored = true |
| 398 | - | p.Parent = model |
| 398 | + | o23.CanCollide = false |
| 399 | - | local m = Instance.new("SpecialMesh")
|
| 399 | + | o23.Elasticity = 0 |
| 400 | - | m.MeshType = "Wedge" |
| 400 | + | o23.FormFactor = Enum.FormFactor.Symmetric |
| 401 | - | m.Scale = Vector3.new(0.3, 0.9, 0.18) |
| 401 | + | o23.Size = Vector3.new(1, 1, 1) |
| 402 | - | m.Parent = p |
| 402 | + | o23.CFrame = CFrame.new(69.2977066, 3.73920989, 200.074005, -0.000377150776, -2.77693744e-005, 0.999998629, 0.99999994, 6.66379929e-005, 0.000377152697, -6.6831708e-005, 0.99999851, 2.77441432e-005) |
| 403 | - | local w = Instance.new("Weld")
|
| 403 | + | o23.BottomSurface = Enum.SurfaceType.Smooth |
| 404 | - | w.Part0 = p |
| 404 | + | o23.TopSurface = Enum.SurfaceType.Smooth |
| 405 | - | w.Part1 = pm |
| 405 | + | o23.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 406 | - | w.C0 = CFrame.new(0, -1.05, 0.1625) |
| 406 | + | o23.Position = Vector3.new(69.2977066, 3.73920989, 200.074005) |
| 407 | - | w.C1 = CFrame.new() |
| 407 | + | o24.Parent = o23 |
| 408 | - | w.Parent = p |
| 408 | + | o24.Scale = Vector3.new(0.285714298, 0.476190478, 0.238095239) |
| 409 | - | local p = Instance.new("Part")
|
| 409 | + | o25.Parent = o1 |
| 410 | - | p.Name = "Stock 2" |
| 410 | + | o25.BrickColor = BrickColor.new("Brown")
|
| 411 | - | p.CanCollide = false |
| 411 | + | o25.Position = Vector3.new(69.2977066, 3.71525598, 199.979019) |
| 412 | - | p.FormFactor = "Custom" |
| 412 | + | o25.Rotation = Vector3.new(-89.9990234, -0.0198604949, -179.993881) |
| 413 | - | p.Size = Vector3.new(1, 1, 1) |
| 413 | + | o25.Anchored = true |
| 414 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 414 | + | o25.CanCollide = false |
| 415 | - | p.Locked = true |
| 415 | + | o25.Elasticity = 0 |
| 416 | - | p.TopSurface = 0 |
| 416 | + | o25.FormFactor = Enum.FormFactor.Symmetric |
| 417 | - | p.BottomSurface = 0 |
| 417 | + | o25.Size = Vector3.new(1, 1, 1) |
| 418 | - | p.Parent = model |
| 418 | + | o25.CFrame = CFrame.new(69.2977066, 3.71525598, 199.979019, -0.999998569, 0.000106894113, -0.000346631015, -0.000346632791, -1.7285347e-005, 0.99999994, 0.000106887252, 0.999998331, 1.71065331e-005) |
| 419 | - | local m = Instance.new("SpecialMesh")
|
| 419 | + | o25.BottomSurface = Enum.SurfaceType.Smooth |
| 420 | - | m.MeshType = "Brick" |
| 420 | + | o25.TopSurface = Enum.SurfaceType.Smooth |
| 421 | - | m.Scale = Vector3.new(0.2, 0.5, 0.3) |
| 421 | + | o25.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 422 | - | m.Parent = p |
| 422 | + | o25.Position = Vector3.new(69.2977066, 3.71525598, 199.979019) |
| 423 | - | local w = Instance.new("Weld")
|
| 423 | + | o26.Parent = o25 |
| 424 | - | w.Part0 = p |
| 424 | + | o26.Scale = Vector3.new(0.238095239, 0.666666687, 0.0476190485) |
| 425 | - | w.Part1 = pm |
| 425 | + | o27.Parent = o1 |
| 426 | - | w.C0 = CFrame.new(0, -1.7, -0.1) |
| 426 | + | o27.BrickColor = BrickColor.new("Brown")
|
| 427 | - | w.C1 = CFrame.new() |
| 427 | + | o27.Position = Vector3.new(69.2977066, 3.6673429, 199.97905) |
| 428 | - | w.Parent = p |
| 428 | + | o27.Rotation = Vector3.new(-89.9990158, -0.0408415273, -179.993881) |
| 429 | - | local p = Instance.new("Part")
|
| 429 | + | o27.Anchored = true |
| 430 | - | p.Name = "Stock 2 Angle" |
| 430 | + | o27.CanCollide = false |
| 431 | - | p.CanCollide = false |
| 431 | + | o27.Elasticity = 0 |
| 432 | - | p.FormFactor = "Custom" |
| 432 | + | o27.FormFactor = Enum.FormFactor.Symmetric |
| 433 | - | p.Size = Vector3.new(1, 1, 1) |
| 433 | + | o27.Size = Vector3.new(1, 1, 1) |
| 434 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 434 | + | o27.CFrame = CFrame.new(69.2977066, 3.6673429, 199.97905, -0.999998391, 0.000106894106, -0.000712819048, -0.000712821377, -1.7285347e-005, 0.999999821, 0.000106862339, 0.999998331, 1.73002481e-005) |
| 435 | - | p.Locked = true |
| 435 | + | o27.BottomSurface = Enum.SurfaceType.Smooth |
| 436 | - | p.TopSurface = 0 |
| 436 | + | o27.TopSurface = Enum.SurfaceType.Smooth |
| 437 | - | p.BottomSurface = 0 |
| 437 | + | o27.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 438 | - | p.Parent = model |
| 438 | + | o27.Position = Vector3.new(69.2977066, 3.6673429, 199.97905) |
| 439 | - | local m = Instance.new("SpecialMesh")
|
| 439 | + | o28.Parent = o27 |
| 440 | - | m.MeshType = "Wedge" |
| 440 | + | o28.Scale = Vector3.new(0.238095239, 0.095238097, 0.0476190485) |
| 441 | - | m.Scale = Vector3.new(0.2, 0.5, 0.3) |
| 441 | + | o29.Parent = o1 |
| 442 | - | m.Parent = p |
| 442 | + | o29.BrickColor = BrickColor.new("Brown")
|
| 443 | - | local w = Instance.new("Weld")
|
| 443 | + | o29.Position = Vector3.new(69.2977066, 3.66725087, 200.21788) |
| 444 | - | w.Part0 = p |
| 444 | + | o29.Rotation = Vector3.new(-89.9780426, -0.0233572777, 179.999146) |
| 445 | - | w.Part1 = pm |
| 445 | + | o29.Anchored = true |
| 446 | - | w.C0 = CFrame.new(0, -0.5, -1.8) * CFrame.fromEulerAnglesXYZ(math.rad(270), 0, math.rad(180)) |
| 446 | + | o29.CanCollide = false |
| 447 | - | w.C1 = CFrame.new() |
| 447 | + | o29.Elasticity = 0 |
| 448 | - | w.Parent = p |
| 448 | + | o29.FormFactor = Enum.FormFactor.Symmetric |
| 449 | - | local p = Instance.new("Part")
|
| 449 | + | o29.Size = Vector3.new(1, 1, 1) |
| 450 | - | p.Name = "Stock 3" |
| 450 | + | o29.CFrame = CFrame.new(69.2977066, 3.66725087, 200.21788, -0.999998629, -1.50081187e-005, -0.000407661399, -0.000407697604, -0.000383511186, 1, -1.51522909e-005, 0.999998629, 0.000383272767) |
| 451 | - | p.CanCollide = false |
| 451 | + | o29.BottomSurface = Enum.SurfaceType.Smooth |
| 452 | - | p.FormFactor = "Custom" |
| 452 | + | o29.TopSurface = Enum.SurfaceType.Smooth |
| 453 | - | p.Size = Vector3.new(1, 1, 1) |
| 453 | + | o29.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 454 | - | p.BrickColor = BrickColor.new("Navy blue")
|
| 454 | + | o29.Position = Vector3.new(69.2977066, 3.66725087, 200.21788) |
| 455 | - | p.Locked = true |
| 455 | + | o30.Parent = o29 |
| 456 | - | p.TopSurface = 0 |
| 456 | + | o30.Scale = Vector3.new(0.238095239, 0.190476194, 0.0476190485) |
| 457 | - | p.BottomSurface = 0 |
| 457 | + | o31.Parent = o1 |
| 458 | - | p.Parent = model |
| 458 | + | o31.BrickColor = BrickColor.new("Brown")
|
| 459 | - | local m = Instance.new("SpecialMesh")
|
| 459 | + | o31.Position = Vector3.new(69.2977066, 3.5962379, 199.978958) |
| 460 | - | m.MeshType = "Brick" |
| 460 | + | o31.Rotation = Vector3.new(-89.9990234, -0.0198604949, -179.993881) |
| 461 | - | m.Scale = Vector3.new(0.2, 0.05, 0.8) |
| 461 | + | o31.Anchored = true |
| 462 | - | m.Parent = p |
| 462 | + | o31.CanCollide = false |
| 463 | - | local w = Instance.new("Weld")
|
| 463 | + | o31.Elasticity = 0 |
| 464 | - | w.Part0 = p |
| 464 | + | o31.FormFactor = Enum.FormFactor.Symmetric |
| 465 | - | w.Part1 = pm |
| 465 | + | o31.Size = Vector3.new(1, 1, 1) |
| 466 | - | w.C0 = CFrame.new(0, -1.975, -0.349) |
| 466 | + | o31.CFrame = CFrame.new(69.2977066, 3.5962379, 199.978958, -0.999998569, 0.000106894113, -0.000346631015, -0.000346632791, -1.7285347e-005, 0.99999994, 0.000106887252, 0.999998331, 1.71065331e-005) |
| 467 | - | w.C1 = CFrame.new() |
| 467 | + | o31.BottomSurface = Enum.SurfaceType.Smooth |
| 468 | - | w.Parent = p |
| 468 | + | o31.TopSurface = Enum.SurfaceType.Smooth |
| 469 | - | local p = Instance.new("Part")
|
| 469 | + | o31.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 470 | - | p.Name = "Stock 4" |
| 470 | + | o31.Position = Vector3.new(69.2977066, 3.5962379, 199.978958) |
| 471 | - | p.CanCollide = false |
| 471 | + | o32.Parent = o31 |
| 472 | - | p.FormFactor = "Custom" |
| 472 | + | o32.Scale = Vector3.new(0.238095239, 0.666666687, 0.095238097) |
| 473 | - | p.Size = Vector3.new(1, 1, 1) |
| 473 | + | o33.Name = "Cylinder" |
| 474 | - | p.BrickColor = BrickColor.new("Black")
|
| 474 | + | o33.Parent = o1 |
| 475 | - | p.Locked = true |
| 475 | + | o33.BrickColor = BrickColor.new("Black")
|
| 476 | - | p.TopSurface = 0 |
| 476 | + | o33.Position = Vector3.new(69.2977066, 3.75830197, 198.932236) |
| 477 | - | p.BottomSurface = 0 |
| 477 | + | o33.Rotation = Vector3.new(-85.7927856, 89.9051285, 175.788956) |
| 478 | - | p.Parent = model |
| 478 | + | o33.Anchored = true |
| 479 | - | local m = Instance.new("SpecialMesh")
|
| 479 | + | o33.CanCollide = false |
| 480 | - | m.MeshType = "Brick" |
| 480 | + | o33.Elasticity = 0 |
| 481 | - | m.Scale = Vector3.new(0.25, 0.05, 0.85) |
| 481 | + | o33.FormFactor = Enum.FormFactor.Symmetric |
| 482 | - | m.Parent = p |
| 482 | + | o33.Size = Vector3.new(1, 1, 1) |
| 483 | - | local w = Instance.new("Weld")
|
| 483 | + | o33.CFrame = CFrame.new(69.2977066, 3.75830197, 198.932236, -0.000377150776, -2.77693744e-005, 0.999998629, 0.99999994, 6.66379929e-005, 0.000377152697, -6.6831708e-005, 0.99999851, 2.77441432e-005) |
| 484 | - | w.Part0 = p |
| 484 | + | o33.BottomSurface = Enum.SurfaceType.Smooth |
| 485 | - | w.Part1 = pm |
| 485 | + | o33.TopSurface = Enum.SurfaceType.Smooth |
| 486 | - | w.C0 = CFrame.new(0, -2.025, -0.349) |
| 486 | + | o33.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 487 | - | w.C1 = CFrame.new() |
| 487 | + | o33.Position = Vector3.new(69.2977066, 3.75830197, 198.932236) |
| 488 | - | w.Parent = p |
| 488 | + | o34.Parent = o33 |
| 489 | - | local p = Instance.new("Part")
|
| 489 | + | o34.Scale = Vector3.new(0.285714298, 1.23809528, 0.238095239) |
| 490 | - | p.Name = "Stock 4 Bottom" |
| 490 | + | o35.Name = "NoSight" |
| 491 | - | p.CanCollide = false |
| 491 | + | o35.Parent = o1 |
| 492 | - | p.FormFactor = "Custom" |
| 492 | + | o35.BrickColor = BrickColor.new("Black")
|
| 493 | - | p.Size = Vector3.new(1, 1, 1) |
| 493 | + | o35.Position = Vector3.new(69.254982, 3.91026211, 199.527023) |
| 494 | - | p.BrickColor = BrickColor.new("Black")
|
| 494 | + | o35.Rotation = Vector3.new(-90.0007782, -0.0234805904, 89.9984131) |
| 495 | - | p.Locked = true |
| 495 | + | o35.Anchored = true |
| 496 | - | p.TopSurface = 0 |
| 496 | + | o35.CanCollide = false |
| 497 | - | p.BottomSurface = 0 |
| 497 | + | o35.Elasticity = 0 |
| 498 | - | p.Parent = model |
| 498 | + | o35.FormFactor = Enum.FormFactor.Custom |
| 499 | - | local m = Instance.new("SpecialMesh")
|
| 499 | + | o35.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 500 | - | m.MeshType = "Wedge" |
| 500 | + | o35.CFrame = CFrame.new(69.254982, 3.91026211, 199.527023, 2.7749209e-005, -0.999998629, -0.000409813598, -1.32024288e-005, -0.000409814005, 0.999999881, -0.999998629, -2.7773538e-005, -1.34557486e-005) |
| 501 | - | m.Scale = Vector3.new(0.25, 0.1, 0.45) |
| 501 | + | o35.BottomSurface = Enum.SurfaceType.Smooth |
| 502 | - | m.Parent = p |
| 502 | + | o35.TopSurface = Enum.SurfaceType.Smooth |
| 503 | - | local w = Instance.new("Weld")
|
| 503 | + | o35.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 504 | - | w.Part0 = p |
| 504 | + | o35.Position = Vector3.new(69.254982, 3.91026211, 199.527023) |
| 505 | - | w.Part1 = pm |
| 505 | + | o36.Parent = o35 |
| 506 | - | w.C0 = CFrame.new(0, -2.1, -0.55) |
| 506 | + | o36.Scale = Vector3.new(0.238095134, 0.190476194, 0.285714239) |
| 507 | - | w.C1 = CFrame.new() |
| 507 | + | o37.Name = "NoSight" |
| 508 | - | w.Parent = p |
| 508 | + | o37.Parent = o1 |
| 509 | - | local p = Instance.new("Part")
|
| 509 | + | o37.BrickColor = BrickColor.new("Black")
|
| 510 | - | p.Name = "Stock 4 Top" |
| 510 | + | o37.Position = Vector3.new(69.3396988, 3.9203341, 199.403091) |
| 511 | - | p.CanCollide = false |
| 511 | + | o37.Rotation = Vector3.new(94.2072678, -89.9051285, -175.793839) |
| 512 | - | p.FormFactor = "Custom" |
| 512 | + | o37.Anchored = true |
| 513 | - | p.Size = Vector3.new(1, 1, 1) |
| 513 | + | o37.CanCollide = false |
| 514 | - | p.BrickColor = BrickColor.new("Black")
|
| 514 | + | o37.Elasticity = 0 |
| 515 | - | p.Locked = true |
| 515 | + | o37.FormFactor = Enum.FormFactor.Custom |
| 516 | - | p.TopSurface = 0 |
| 516 | + | o37.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 517 | - | p.BottomSurface = 0 |
| 517 | + | o37.CFrame = CFrame.new(69.3396988, 3.9203341, 199.403091, -0.000377149467, 2.77368908e-005, -0.999998629, 0.99999994, 1.94311142e-005, -0.000377149001, 1.92373991e-005, -0.999998629, -2.77441795e-005) |
| 518 | - | p.Parent = model |
| 518 | + | o37.BottomSurface = Enum.SurfaceType.Smooth |
| 519 | - | local m = Instance.new("SpecialMesh")
|
| 519 | + | o37.TopSurface = Enum.SurfaceType.Smooth |
| 520 | - | m.MeshType = "Wedge" |
| 520 | + | o37.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 521 | - | m.Scale = Vector3.new(0.25, 0.1, 0.45) |
| 521 | + | o37.Position = Vector3.new(69.3396988, 3.9203341, 199.403091) |
| 522 | - | m.Parent = p |
| 522 | + | o38.Parent = o37 |
| 523 | - | local w = Instance.new("Weld")
|
| 523 | + | o38.Scale = Vector3.new(0.19047603, 0.142857149, 0.285714239) |
| 524 | - | w.Part0 = p |
| 524 | + | o39.Parent = o1 |
| 525 | - | w.Part1 = pm |
| 525 | + | o39.BrickColor = BrickColor.new("Brown")
|
| 526 | - | w.C0 = CFrame.new(0, -2.1, 0.15) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, math.rad(180)) |
| 526 | + | o39.Position = Vector3.new(69.2977066, 3.66739011, 199.741104) |
| 527 | - | w.C1 = CFrame.new() |
| 527 | + | o39.Rotation = Vector3.new(-89.9990158, -0.0408415273, -179.993881) |
| 528 | - | w.Parent = p |
| 528 | + | o39.Anchored = true |
| 529 | - | return model |
| 529 | + | o39.CanCollide = false |
| 530 | o39.Elasticity = 0 | |
| 531 | o39.FormFactor = Enum.FormFactor.Symmetric | |
| 532 | o39.Size = Vector3.new(1, 1, 1) | |
| 533 | - | function removeParts(format) |
| 533 | + | o39.CFrame = CFrame.new(69.2977066, 3.66739011, 199.741104, -0.999998391, 0.000106894106, -0.000712819048, -0.000712821377, -1.7285347e-005, 0.999999821, 0.000106862339, 0.999998331, 1.73002481e-005) |
| 534 | - | if format == "RightHand" then |
| 534 | + | o39.BottomSurface = Enum.SurfaceType.Smooth |
| 535 | - | pcall(function() Player.Character[Name]:Remove() end) |
| 535 | + | o39.TopSurface = Enum.SurfaceType.Smooth |
| 536 | - | elseif format == "LeftHand" then |
| 536 | + | o39.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 537 | - | pcall(function() Player.Character[Name.. " (Left)"]:Remove() end) |
| 537 | + | o39.Position = Vector3.new(69.2977066, 3.66739011, 199.741104) |
| 538 | - | elseif format == "RightHolster" then |
| 538 | + | o40.Parent = o39 |
| 539 | - | pcall(function() Player.Character[Name.. " (Holstered)"]:Remove() end) |
| 539 | + | o40.Scale = Vector3.new(0.238095239, 0.190476194, 0.0476190485) |
| 540 | - | elseif format == "LeftHolster" then |
| 540 | + | o41.Name = "Cylinder" |
| 541 | - | pcall(function() Player.Character[Name.. " (Holstered, Left)"]:Remove() end) |
| 541 | + | o41.Parent = o1 |
| 542 | o41.BrickColor = BrickColor.new("Brown")
| |
| 543 | o41.Position = Vector3.new(69.2977066, 3.52424788, 199.718033) | |
| 544 | o41.Rotation = Vector3.new(89.9967575, 0.0246726405, -90.0008774) | |
| 545 | o41.Anchored = true | |
| 546 | - | function SetAngle(Joint, Angle, Character) |
| 546 | + | o41.CanCollide = false |
| 547 | - | if Character == nil then return false end |
| 547 | + | o41.Elasticity = 0 |
| 548 | - | local Joints = {
|
| 548 | + | o41.FormFactor = Enum.FormFactor.Symmetric |
| 549 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 549 | + | o41.Size = Vector3.new(1, 1, 1) |
| 550 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 550 | + | o41.CFrame = CFrame.new(69.2977066, 3.52424788, 199.718033, -1.53435158e-005, 0.99999851, 0.000430618791, -5.63710928e-005, 0.000430618064, -1, -0.99999845, -1.53656074e-005, 5.66393137e-005) |
| 551 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 551 | + | o41.BottomSurface = Enum.SurfaceType.Smooth |
| 552 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 552 | + | o41.TopSurface = Enum.SurfaceType.Smooth |
| 553 | o41.Color = Color3.new(0.486275, 0.360784, 0.27451) | |
| 554 | - | if Joints[Joint] == nil then return false end |
| 554 | + | o41.Position = Vector3.new(69.2977066, 3.52424788, 199.718033) |
| 555 | - | if Joint == 1 or Joint == 3 then |
| 555 | + | o42.Parent = o41 |
| 556 | - | Joints[Joint].DesiredAngle = Angle |
| 556 | + | o42.Scale = Vector3.new(0.142857149, 0.238095239, 0.142857149) |
| 557 | o43.Name = "NoSight" | |
| 558 | - | if Joint == 2 or Joint == 4 then |
| 558 | + | o43.Parent = o1 |
| 559 | - | Joints[Joint].DesiredAngle = -Angle |
| 559 | + | o43.BrickColor = BrickColor.new("Black")
|
| 560 | o43.Position = Vector3.new(69.2977066, 3.9103539, 199.532043) | |
| 561 | o43.Rotation = Vector3.new(94.2072678, -89.9051285, -175.793839) | |
| 562 | o43.Anchored = true | |
| 563 | o43.CanCollide = false | |
| 564 | - | function ForceAngle(Joint, Angle, Character) |
| 564 | + | o43.Elasticity = 0 |
| 565 | - | if Character == nil then return false end |
| 565 | + | o43.FormFactor = Enum.FormFactor.Custom |
| 566 | - | local Joints = {
|
| 566 | + | o43.Size = Vector3.new(0.200000003, 0.285714298, 0.200000003) |
| 567 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 567 | + | o43.CFrame = CFrame.new(69.2977066, 3.9103539, 199.532043, -0.000377149467, 2.77368908e-005, -0.999998629, 0.99999994, 1.94311142e-005, -0.000377149001, 1.92373991e-005, -0.999998629, -2.77441795e-005) |
| 568 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 568 | + | o43.BottomSurface = Enum.SurfaceType.Smooth |
| 569 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 569 | + | o43.TopSurface = Enum.SurfaceType.Smooth |
| 570 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 570 | + | o43.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 571 | o43.Position = Vector3.new(69.2977066, 3.9103539, 199.532043) | |
| 572 | - | if Joints[Joint] == nil then return false end |
| 572 | + | o44.Parent = o43 |
| 573 | - | if Joint == 1 or Joint == 3 then |
| 573 | + | o44.Scale = Vector3.new(0.095238097, 1, 0.238095224) |
| 574 | - | Joints[Joint].DesiredAngle = Angle |
| 574 | + | o45.Parent = o1 |
| 575 | - | Joints[Joint].CurrentAngle = Angle |
| 575 | + | o45.BrickColor = BrickColor.new("Black")
|
| 576 | o45.Position = Vector3.new(69.2977066, 3.81024194, 199.693863) | |
| 577 | - | if Joint == 2 or Joint == 4 then |
| 577 | + | o45.Rotation = Vector3.new(-89.9990234, -0.0198604949, -179.993881) |
| 578 | - | Joints[Joint].DesiredAngle = -Angle |
| 578 | + | o45.Anchored = true |
| 579 | - | Joints[Joint].CurrentAngle = -Angle |
| 579 | + | o45.CanCollide = false |
| 580 | o45.Elasticity = 0 | |
| 581 | o45.FormFactor = Enum.FormFactor.Symmetric | |
| 582 | o45.Size = Vector3.new(1, 1, 1) | |
| 583 | o45.CFrame = CFrame.new(69.2977066, 3.81024194, 199.693863, -0.999998569, 0.000106894113, -0.000346631015, -0.000346632791, -1.7285347e-005, 0.99999994, 0.000106887252, 0.999998331, 1.71065331e-005) | |
| 584 | - | function SetSpeed(Joint, Speed, Character) |
| 584 | + | o45.BottomSurface = Enum.SurfaceType.Smooth |
| 585 | - | if Character == nil then return false end |
| 585 | + | o45.TopSurface = Enum.SurfaceType.Smooth |
| 586 | - | local Joints = {
|
| 586 | + | o45.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 587 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 587 | + | o45.Position = Vector3.new(69.2977066, 3.81024194, 199.693863) |
| 588 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 588 | + | o46.Parent = o45 |
| 589 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 589 | + | o46.Scale = Vector3.new(0.238095239, 0.285714298, 0.142857149) |
| 590 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 590 | + | o47.Name = "NoSight" |
| 591 | o47.Parent = o1 | |
| 592 | - | if Joints[Joint] == nil then return false end |
| 592 | + | o47.BrickColor = BrickColor.new("Black")
|
| 593 | - | Joints[Joint].MaxVelocity = Speed |
| 593 | + | o47.Position = Vector3.new(69.2977066, 3.8913281, 199.656097) |
| 594 | o47.Rotation = Vector3.new(94.2072678, -89.9051285, -175.793839) | |
| 595 | o47.Anchored = true | |
| 596 | o47.CanCollide = false | |
| 597 | - | function DisableLimb(Limb, Character) |
| 597 | + | o47.Elasticity = 0 |
| 598 | - | if Character == nil then return false end |
| 598 | + | o47.FormFactor = Enum.FormFactor.Custom |
| 599 | - | if Character:FindFirstChild("Torso") == nil then return false end
|
| 599 | + | o47.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 600 | - | local Joints = {
|
| 600 | + | o47.CFrame = CFrame.new(69.2977066, 3.8913281, 199.656097, -0.000377149467, 2.77368908e-005, -0.999998629, 0.99999994, 1.94311142e-005, -0.000377149001, 1.92373991e-005, -0.999998629, -2.77441795e-005) |
| 601 | - | Character.Torso:FindFirstChild("Right Shoulder"),
|
| 601 | + | o47.BottomSurface = Enum.SurfaceType.Smooth |
| 602 | - | Character.Torso:FindFirstChild("Left Shoulder"),
|
| 602 | + | o47.TopSurface = Enum.SurfaceType.Smooth |
| 603 | - | Character.Torso:FindFirstChild("Right Hip"),
|
| 603 | + | o47.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 604 | - | Character.Torso:FindFirstChild("Left Hip")
|
| 604 | + | o47.Position = Vector3.new(69.2977066, 3.8913281, 199.656097) |
| 605 | o48.Parent = o47 | |
| 606 | - | local Limbs = {
|
| 606 | + | o48.Scale = Vector3.new(0.095237948, 0.285714298, 0.523809493) |
| 607 | - | Character:FindFirstChild("Right Arm"),
|
| 607 | + | o49.Name = "Mag1" |
| 608 | - | Character:FindFirstChild("Left Arm"),
|
| 608 | + | o49.Parent = o1 |
| 609 | - | Character:FindFirstChild("Right Leg"),
|
| 609 | + | o49.BrickColor = BrickColor.new("Black")
|
| 610 | - | Character:FindFirstChild("Left Leg")
|
| 610 | + | o49.Position = Vector3.new(69.298439, 2.97143507, 198.956085) |
| 611 | o49.Rotation = Vector3.new(-120.001633, -0.0194266811, 179.986145) | |
| 612 | - | if Joints[Limb] == nil then return false end |
| 612 | + | o49.Anchored = true |
| 613 | - | if Limbs[Limb] == nil then return false end |
| 613 | + | o49.CanCollide = false |
| 614 | - | local Joint = Instance.new("Motor")
|
| 614 | + | o49.Elasticity = 0 |
| 615 | - | Joint.Parent = Character.Torso |
| 615 | + | o49.FormFactor = Enum.FormFactor.Symmetric |
| 616 | - | Joint.Part0 = Character.Torso |
| 616 | + | o49.Size = Vector3.new(1, 1, 1) |
| 617 | - | Joint.Part1 = Limbs[Limb] |
| 617 | + | o49.CFrame = CFrame.new(69.298439, 2.97143507, 198.956085, -0.99999851, -0.000241882386, -0.000339059538, -0.000414613256, 0.500024915, 0.866010785, -3.9932791e-005, 0.866009295, -0.500024438) |
| 618 | - | if Limb == 1 then |
| 618 | + | o49.BottomSurface = Enum.SurfaceType.Smooth |
| 619 | - | Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 619 | + | o49.TopSurface = Enum.SurfaceType.Smooth |
| 620 | - | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 620 | + | o49.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 621 | - | Joint.Name = "Right Shoulder 2" |
| 621 | + | o49.Position = Vector3.new(69.298439, 2.97143507, 198.956085) |
| 622 | - | elseif Limb == 2 then |
| 622 | + | o50.Parent = o49 |
| 623 | - | Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 623 | + | o50.Scale = Vector3.new(0.142857149, 0.333333343, 0.238095239) |
| 624 | - | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 624 | + | o51.Name = "Mag1" |
| 625 | - | Joint.Name = "Left Shoulder 2" |
| 625 | + | o51.Parent = o1 |
| 626 | - | elseif Limb == 3 then |
| 626 | + | o51.BrickColor = BrickColor.new("Black")
|
| 627 | - | Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 627 | + | o51.Position = Vector3.new(69.2974625, 2.80036998, 199.091232) |
| 628 | - | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 628 | + | o51.Rotation = Vector3.new(-135.00087, -0.0141806351, 179.980392) |
| 629 | - | Joint.Name = "Right Hip 2" |
| 629 | + | o51.Anchored = true |
| 630 | - | elseif Limb == 4 then |
| 630 | + | o51.CanCollide = false |
| 631 | - | Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 631 | + | o51.Elasticity = 0 |
| 632 | - | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 632 | + | o51.FormFactor = Enum.FormFactor.Symmetric |
| 633 | - | Joint.Name = "Left Hip 2" |
| 633 | + | o51.Size = Vector3.new(1, 1, 1) |
| 634 | o51.CFrame = CFrame.new(69.2974625, 2.80036998, 199.091232, -0.999998569, -0.00034218331, -0.00024749877, -0.000416969444, 0.707117915, 0.707095742, -6.68740104e-005, 0.707094431, -0.70711714) | |
| 635 | - | Joint.MaxVelocity = Joints[Limb].MaxVelocity |
| 635 | + | o51.BottomSurface = Enum.SurfaceType.Smooth |
| 636 | - | Joint.CurrentAngle = Joints[Limb].CurrentAngle |
| 636 | + | o51.TopSurface = Enum.SurfaceType.Smooth |
| 637 | - | Joint.DesiredAngle = Joints[Limb].DesiredAngle |
| 637 | + | o51.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 638 | - | Joints[Limb]:Remove() |
| 638 | + | o51.Position = Vector3.new(69.2974625, 2.80036998, 199.091232) |
| 639 | o52.Parent = o51 | |
| 640 | o52.Scale = Vector3.new(0.142857149, 0.333333343, 0.285714298) | |
| 641 | o53.Name = "NoSight" | |
| 642 | - | function ResetLimbCFrame(Limb, Character) |
| 642 | + | o53.Parent = o1 |
| 643 | - | if Character == nil then return false end |
| 643 | + | o53.BrickColor = BrickColor.new("Black")
|
| 644 | - | if Character.Parent == nil then return false end |
| 644 | + | o53.Position = Vector3.new(69.254982, 3.9203341, 199.403091) |
| 645 | - | if Character:FindFirstChild("Torso") == nil then return false end
|
| 645 | + | o53.Rotation = Vector3.new(94.2072678, -89.9051285, -175.793839) |
| 646 | - | local Joints = {
|
| 646 | + | o53.Anchored = true |
| 647 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 647 | + | o53.CanCollide = false |
| 648 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 648 | + | o53.Elasticity = 0 |
| 649 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 649 | + | o53.FormFactor = Enum.FormFactor.Custom |
| 650 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 650 | + | o53.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 651 | o53.CFrame = CFrame.new(69.254982, 3.9203341, 199.403091, -0.000377149467, 2.77368908e-005, -0.999998629, 0.99999994, 1.94311142e-005, -0.000377149001, 1.92373991e-005, -0.999998629, -2.77441795e-005) | |
| 652 | - | local Limbs = {
|
| 652 | + | o53.BottomSurface = Enum.SurfaceType.Smooth |
| 653 | - | Character:FindFirstChild("Right Arm"),
|
| 653 | + | o53.TopSurface = Enum.SurfaceType.Smooth |
| 654 | - | Character:FindFirstChild("Left Arm"),
|
| 654 | + | o53.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 655 | - | Character:FindFirstChild("Right Leg"),
|
| 655 | + | o53.Position = Vector3.new(69.254982, 3.9203341, 199.403091) |
| 656 | - | Character:FindFirstChild("Left Leg")
|
| 656 | + | o54.Parent = o53 |
| 657 | o54.Scale = Vector3.new(0.19047603, 0.142857149, 0.285714239) | |
| 658 | - | if Joints[Limb] == nil then return false end |
| 658 | + | o55.Name = "NoSight" |
| 659 | - | if Limbs[Limb] == nil then return false end |
| 659 | + | o55.Parent = o1 |
| 660 | - | if Limb == 1 then |
| 660 | + | o55.BrickColor = BrickColor.new("Black")
|
| 661 | - | Joints[Limb].C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 661 | + | o55.Position = Vector3.new(69.301857, 3.92929196, 199.402985) |
| 662 | - | Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 662 | + | o55.Rotation = Vector3.new(-87.8713989, 89.9051285, 87.8690186) |
| 663 | - | elseif Limb == 2 then |
| 663 | + | o55.Anchored = true |
| 664 | - | Joints[Limb].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 664 | + | o55.CanCollide = false |
| 665 | - | Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 665 | + | o55.Elasticity = 0 |
| 666 | - | elseif Limb == 3 then |
| 666 | + | o55.FormFactor = Enum.FormFactor.Custom |
| 667 | - | Joints[Limb].C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 667 | + | o55.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 668 | - | Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 668 | + | o55.CFrame = CFrame.new(69.301857, 3.92929196, 199.402985, 1.51692539e-005, -0.00040766751, 0.999998629, -4.36753035e-005, 1.00000012, 0.000407668209, -0.999998569, -4.3913722e-005, 1.51522545e-005) |
| 669 | - | elseif Limb == 4 then |
| 669 | + | o55.BottomSurface = Enum.SurfaceType.Smooth |
| 670 | - | Joints[Limb].C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 670 | + | o55.TopSurface = Enum.SurfaceType.Smooth |
| 671 | - | Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) |
| 671 | + | o55.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 672 | o55.Position = Vector3.new(69.301857, 3.92929196, 199.402985) | |
| 673 | o56.Parent = o55 | |
| 674 | o56.Scale = Vector3.new(0.142857105, 0.0952381045, 0.0952381343) | |
| 675 | o56.MeshType = Enum.MeshType.Wedge | |
| 676 | - | function EnableLimb(Limb, Character) |
| 676 | + | o57.Parent = o1 |
| 677 | - | if Character == nil then return false end |
| 677 | + | o57.BrickColor = BrickColor.new("Black")
|
| 678 | - | if Character:FindFirstChild("Torso") == nil then return false end
|
| 678 | + | o57.Position = Vector3.new(69.2977066, 3.810256, 198.9561) |
| 679 | - | local Joints = {
|
| 679 | + | o57.Rotation = Vector3.new(-90.006012, -0.0233571213, -0.00436751125) |
| 680 | - | Character.Torso:FindFirstChild("Right Shoulder 2"),
|
| 680 | + | o57.Anchored = true |
| 681 | - | Character.Torso:FindFirstChild("Left Shoulder 2"),
|
| 681 | + | o57.CanCollide = false |
| 682 | - | Character.Torso:FindFirstChild("Right Hip 2"),
|
| 682 | + | o57.Elasticity = 0 |
| 683 | - | Character.Torso:FindFirstChild("Left Hip 2")
|
| 683 | + | o57.FormFactor = Enum.FormFactor.Symmetric |
| 684 | o57.Size = Vector3.new(1, 1, 1) | |
| 685 | - | local Limbs = {
|
| 685 | + | o57.CFrame = CFrame.new(69.2977066, 3.810256, 198.9561, 0.999998629, 7.62273485e-005, -0.000407658663, 0.000407666783, -0.000104725361, 0.999999881, 7.61873307e-005, -0.99999845, -0.000104993582) |
| 686 | - | Character:FindFirstChild("Right Arm"),
|
| 686 | + | o57.BottomSurface = Enum.SurfaceType.Smooth |
| 687 | - | Character:FindFirstChild("Left Arm"),
|
| 687 | + | o57.TopSurface = Enum.SurfaceType.Smooth |
| 688 | - | Character:FindFirstChild("Right Leg"),
|
| 688 | + | o57.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 689 | - | Character:FindFirstChild("Left Leg")
|
| 689 | + | o57.Position = Vector3.new(69.2977066, 3.810256, 198.9561) |
| 690 | o58.Parent = o57 | |
| 691 | - | if Joints[Limb] == nil then return false end |
| 691 | + | o58.Scale = Vector3.new(0.238095239, 1.38095236, 0.0476190485) |
| 692 | - | if Limbs[Limb] == nil then return false end |
| 692 | + | o59.Name = "NoSight" |
| 693 | - | if Limb == 1 then |
| 693 | + | o59.Parent = o1 |
| 694 | - | Joints[Limb].Name = "Right Shoulder" |
| 694 | + | o59.BrickColor = BrickColor.new("Black")
|
| 695 | - | elseif Limb == 2 then |
| 695 | + | o59.Position = Vector3.new(69.2930603, 3.92929196, 199.402985) |
| 696 | - | Joints[Limb].Name = "Left Shoulder" |
| 696 | + | o59.Rotation = Vector3.new(92.5030975, -89.9051285, 92.5057678) |
| 697 | - | elseif Limb == 3 then |
| 697 | + | o59.Anchored = true |
| 698 | - | Joints[Limb].Name = "Right Hip" |
| 698 | + | o59.CanCollide = false |
| 699 | - | elseif Limb == 4 then |
| 699 | + | o59.Elasticity = 0 |
| 700 | - | Joints[Limb].Name = "Left Hip" |
| 700 | + | o59.FormFactor = Enum.FormFactor.Custom |
| 701 | o59.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 702 | - | Animate = Character:FindFirstChild("Animate")
|
| 702 | + | o59.CFrame = CFrame.new(69.2930603, 3.92929196, 199.402985, -1.51692557e-005, -0.000346632412, -0.999998629, 4.36753035e-005, 1.00000012, -0.000346633111, 0.999998569, -4.3913722e-005, -1.51530912e-005) |
| 703 | - | if Animate == nil then return false end |
| 703 | + | o59.BottomSurface = Enum.SurfaceType.Smooth |
| 704 | - | Animate = Animate:Clone() |
| 704 | + | o59.TopSurface = Enum.SurfaceType.Smooth |
| 705 | - | Character.Animate:Remove() |
| 705 | + | o59.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 706 | - | Animate.Parent = Character |
| 706 | + | o59.Position = Vector3.new(69.2930603, 3.92929196, 199.402985) |
| 707 | o60.Parent = o59 | |
| 708 | o60.Scale = Vector3.new(0.142857119, 0.095238097, 0.0952381045) | |
| 709 | o60.MeshType = Enum.MeshType.Wedge | |
| 710 | - | function playAnimation(format, mouse) |
| 710 | + | o61.Name = "NoSight" |
| 711 | - | if format == "equip" then |
| 711 | + | o61.Parent = o1 |
| 712 | - | Player.Character[Name.. " (Holstered)"].Handle.Weld:Remove() |
| 712 | + | o61.BrickColor = BrickColor.new("Black")
|
| 713 | - | local w = Instance.new("Weld")
|
| 713 | + | o61.Position = Vector3.new(69.3396988, 3.91026211, 199.527023) |
| 714 | - | w.Part0 = Player.Character[Name.. " (Holstered)"].Handle |
| 714 | + | o61.Rotation = Vector3.new(-90.0007782, -0.0234805904, 89.9984131) |
| 715 | - | w.Part1 = Player.Character:FindFirstChild("Right Arm")
|
| 715 | + | o61.Anchored = true |
| 716 | - | w.C0 = CFrame.new(0, 1.2, 0.7) |
| 716 | + | o61.CanCollide = false |
| 717 | - | w.C1 = CFrame.new() |
| 717 | + | o61.Elasticity = 0 |
| 718 | - | w.Parent = Player.Character[Name.. " (Holstered)"].Handle |
| 718 | + | o61.FormFactor = Enum.FormFactor.Custom |
| 719 | - | for i = 0.01, 1, 0.1 do |
| 719 | + | o61.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 720 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 720 | + | o61.CFrame = CFrame.new(69.3396988, 3.91026211, 199.527023, 2.7749209e-005, -0.999998629, -0.000409813598, -1.32024288e-005, -0.000409814005, 0.999999881, -0.999998629, -2.7773538e-005, -1.34557486e-005) |
| 721 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 721 | + | o61.BottomSurface = Enum.SurfaceType.Smooth |
| 722 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 722 | + | o61.TopSurface = Enum.SurfaceType.Smooth |
| 723 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new((-0.5 * i) + (1.5 * (1 - i)), 1.2 * i, 0.8 * i) * CFrame.fromEulerAnglesXYZ(math.rad(300 + ((1 - i) * 50)), math.rad(10), math.rad(-90) * i) |
| 723 | + | o61.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 724 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 724 | + | o61.Position = Vector3.new(69.3396988, 3.91026211, 199.527023) |
| 725 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new((-0.9 * i) + (-1.5 * (1 - i)), -0.35 * i, 0.51 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), math.rad(-5 * i), 0) |
| 725 | + | o62.Parent = o61 |
| 726 | o62.Scale = Vector3.new(0.238095134, 0.190476194, 0.285714298) | |
| 727 | - | else return false end |
| 727 | + | o63.Parent = o1 |
| 728 | - | else return false end |
| 728 | + | o63.BrickColor = BrickColor.new("Black")
|
| 729 | o63.Position = Vector3.new(69.2977066, 3.64428711, 198.884186) | |
| 730 | - | return playAnimation("hold")
|
| 730 | + | o63.Rotation = Vector3.new(-90.006012, -0.0233571213, -0.00436751125) |
| 731 | o63.Anchored = true | |
| 732 | - | if format == "unequip" then |
| 732 | + | o63.CanCollide = false |
| 733 | - | for i = 1, 0.01, -0.1 do |
| 733 | + | o63.Elasticity = 0 |
| 734 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 734 | + | o63.FormFactor = Enum.FormFactor.Symmetric |
| 735 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 735 | + | o63.Size = Vector3.new(1, 2, 1) |
| 736 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 736 | + | o63.CFrame = CFrame.new(69.2977066, 3.64428711, 198.884186, 0.999998629, 7.62273485e-005, -0.000407658663, 0.000407666783, -0.000104725361, 0.999999881, 7.61873307e-005, -0.99999845, -0.000104993582) |
| 737 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new((-0.5 * i) + (1.5 * (1 - i)), 1.2 * i, 0.8 * i) * CFrame.fromEulerAnglesXYZ(math.rad(300 + ((1 - i) * 50)), math.rad(10), math.rad(-90) * i) |
| 737 | + | o63.BottomSurface = Enum.SurfaceType.Smooth |
| 738 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 738 | + | o63.TopSurface = Enum.SurfaceType.Smooth |
| 739 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new((-0.9 * i) + (-1.5 * (1 - i)), -0.35 * i, 0.51 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), math.rad(-5 * i), 0) |
| 739 | + | o63.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 740 | o63.Position = Vector3.new(69.2977066, 3.64428711, 198.884186) | |
| 741 | - | else return false end |
| 741 | + | o64.Parent = o63 |
| 742 | - | else return false end |
| 742 | + | o64.Scale = Vector3.new(0.238095239, 0.761904776, 0.285714298) |
| 743 | o65.Name = "Mag1" | |
| 744 | - | return true |
| 744 | + | o65.Parent = o1 |
| 745 | o65.BrickColor = BrickColor.new("Black")
| |
| 746 | - | if format == "hold" then |
| 746 | + | o65.Position = Vector3.new(69.2977066, 3.39128089, 198.845901) |
| 747 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 747 | + | o65.Rotation = Vector3.new(-89.9990234, -0.0198604949, -179.993881) |
| 748 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 748 | + | o65.Anchored = true |
| 749 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 749 | + | o65.CanCollide = false |
| 750 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.5, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(10), math.rad(-90)) |
| 750 | + | o65.Elasticity = 0 |
| 751 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 751 | + | o65.FormFactor = Enum.FormFactor.Symmetric |
| 752 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0) |
| 752 | + | o65.Size = Vector3.new(1, 1, 1) |
| 753 | - | else return false end |
| 753 | + | o65.CFrame = CFrame.new(69.2977066, 3.39128089, 198.845901, -0.999998569, 0.000106894113, -0.000346631015, -0.000346632791, -1.7285347e-005, 0.99999994, 0.000106887252, 0.999998331, 1.71065331e-005) |
| 754 | - | else return false end |
| 754 | + | o65.BottomSurface = Enum.SurfaceType.Smooth |
| 755 | o65.TopSurface = Enum.SurfaceType.Smooth | |
| 756 | - | if format == "reload" then |
| 756 | + | o65.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 757 | - | Player.Character[Name].Handle.Reload:Play() |
| 757 | + | o65.Position = Vector3.new(69.2977066, 3.39128089, 198.845901) |
| 758 | - | for i = 0, 25, 5 do |
| 758 | + | o66.Parent = o65 |
| 759 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 759 | + | o66.Scale = Vector3.new(0.142857149, 0.333333343, 0.285714298) |
| 760 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 760 | + | o67.Name = "Mag1" |
| 761 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 761 | + | o67.Parent = o1 |
| 762 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.5 + (i / 60), 1.2 - (i / 20), 0.8 + (i / 35)) * CFrame.fromEulerAnglesXYZ(math.rad(300 - i), math.rad(10 + -i * 3.5), math.rad(-90)) |
| 762 | + | o67.BrickColor = BrickColor.new("Black")
|
| 763 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 763 | + | o67.Position = Vector3.new(69.298439, 3.167238, 198.874069) |
| 764 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90 + i), math.rad(-5), 0) |
| 764 | + | o67.Rotation = Vector3.new(-105.001732, -0.0219448488, 179.990829) |
| 765 | o67.Anchored = true | |
| 766 | - | else return false end |
| 766 | + | o67.CanCollide = false |
| 767 | - | else return false end |
| 767 | + | o67.Elasticity = 0 |
| 768 | o67.FormFactor = Enum.FormFactor.Symmetric | |
| 769 | - | Player.Character[Name].Magazine.Transparency = 1 |
| 769 | + | o67.Size = Vector3.new(1, 1, 1) |
| 770 | - | magazineDrop = Player.Character[Name].Magazine:Clone() |
| 770 | + | o67.CFrame = CFrame.new(69.298439, 3.167238, 198.874069, -0.999998689, -0.000160119409, -0.000383009872, -0.000411395158, 0.258848459, 0.965918124, -5.55789957e-005, 0.965916514, -0.25884822) |
| 771 | - | magazineDrop.Transparency = 0 |
| 771 | + | o67.BottomSurface = Enum.SurfaceType.Smooth |
| 772 | - | magazineDrop.Parent = game.Workspace |
| 772 | + | o67.TopSurface = Enum.SurfaceType.Smooth |
| 773 | - | coroutine.resume(coroutine.create(function(part) wait(4.5) for i = 0, 1, 0.1 do part.Transparency = i wait() end part:Remove() end), magazineDrop) |
| 773 | + | o67.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 774 | - | delay(0.1, function() magazineDrop.CanCollide = true end) |
| 774 | + | o67.Position = Vector3.new(69.298439, 3.167238, 198.874069) |
| 775 | - | magazineNew = Player.Character[Name].Magazine:Clone() |
| 775 | + | o68.Parent = o67 |
| 776 | - | magazineNew.Name = "New Magazine" |
| 776 | + | o68.Scale = Vector3.new(0.142857149, 0.333333343, 0.285714298) |
| 777 | - | magazineNew.Transparency = 0 |
| 777 | + | o69.Name = "Wedge" |
| 778 | - | magazineNew.Parent = Player.Character[Name] |
| 778 | + | o69.Parent = o1 |
| 779 | - | local w = Instance.new("Weld")
|
| 779 | + | o69.BrickColor = BrickColor.new("Black")
|
| 780 | - | w.Part0 = magazineNew |
| 780 | + | o69.Position = Vector3.new(69.2977066, 3.76335192, 198.07431) |
| 781 | - | w.Part1 = Player.Character:FindFirstChild("Left Arm")
|
| 781 | + | o69.Rotation = Vector3.new(-0.00323153776, -0.00099320442, 0.0216091424) |
| 782 | - | w.C0 = CFrame.new(0, 1.1, 0) |
| 782 | + | o69.Anchored = true |
| 783 | - | w.C1 = CFrame.new() * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) |
| 783 | + | o69.CanCollide = false |
| 784 | - | w.Parent = magazineNew |
| 784 | + | o69.Elasticity = 0 |
| 785 | - | for i = 25, 0, -5 do |
| 785 | + | o69.FormFactor = Enum.FormFactor.Symmetric |
| 786 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 786 | + | o69.Size = Vector3.new(1, 1, 1) |
| 787 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 787 | + | o69.CFrame = CFrame.new(69.2977066, 3.76335192, 198.07431, 0.999998569, -0.000377150165, -1.73346871e-005, 0.000377151184, 1, 5.64008951e-005, 1.73282315e-005, -5.66393137e-005, 0.999998569) |
| 788 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 788 | + | o69.BottomSurface = Enum.SurfaceType.Smooth |
| 789 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.5 + ((i + 10) / 60), 1.2 - ((i + 10) / 20), 0.8 + (i / 35)) * CFrame.fromEulerAnglesXYZ(math.rad(300 - (i - 10)), math.rad(10 + -i * 3.5), math.rad(-90)) |
| 789 | + | o69.TopSurface = Enum.SurfaceType.Smooth |
| 790 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 790 | + | o69.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 791 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90 + i), math.rad(-5), 0) |
| 791 | + | o69.Position = Vector3.new(69.2977066, 3.76335192, 198.07431) |
| 792 | o70.Parent = o69 | |
| 793 | - | else return false end |
| 793 | + | o70.Scale = Vector3.new(0.238095239, 0.0476190485, 0.095238097) |
| 794 | - | else return false end |
| 794 | + | o70.MeshType = Enum.MeshType.Wedge |
| 795 | o71.Parent = o1 | |
| 796 | - | Player.Character[Name].Magazine.Transparency = 0 |
| 796 | + | o71.BrickColor = BrickColor.new("Brown")
|
| 797 | - | Player.Character[Name]["New Magazine"]:Remove() |
| 797 | + | o71.Position = Vector3.new(69.2977066, 3.24830794, 198.278915) |
| 798 | - | wait(0.4) |
| 798 | + | o71.Rotation = Vector3.new(-80.0031891, -0.0194450561, -179.99498) |
| 799 | - | for i = 0, 10, 5 do |
| 799 | + | o71.Anchored = true |
| 800 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 800 | + | o71.CanCollide = false |
| 801 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil then
|
| 801 | + | o71.Elasticity = 0 |
| 802 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 802 | + | o71.FormFactor = Enum.FormFactor.Symmetric |
| 803 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.5 - (i / 25), 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300 - i), math.rad(10 - i), math.rad(-90)) |
| 803 | + | o71.Size = Vector3.new(1, 1, 1) |
| 804 | o71.CFrame = CFrame.new(69.2977066, 3.24830794, 198.278915, -0.999998629, 8.76361664e-005, -0.000339380262, -0.000349432928, -0.173593849, 0.984817386, 2.74343911e-005, 0.984815717, 0.173593327) | |
| 805 | - | else return false end |
| 805 | + | o71.BottomSurface = Enum.SurfaceType.Smooth |
| 806 | - | else return false end |
| 806 | + | o71.TopSurface = Enum.SurfaceType.Smooth |
| 807 | o71.Color = Color3.new(0.486275, 0.360784, 0.27451) | |
| 808 | - | wait(0.1) |
| 808 | + | o71.Position = Vector3.new(69.2977066, 3.24830794, 198.278915) |
| 809 | - | for i = 0, 10, 1.5 do |
| 809 | + | o72.Parent = o71 |
| 810 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 810 | + | o72.Scale = Vector3.new(0.190476194, 0.238095239, 0.619047642) |
| 811 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil then
|
| 811 | + | o73.Name = "Block" |
| 812 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 812 | + | o73.Parent = o1 |
| 813 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.9, 1.2 - (i / 25), 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90)) |
| 813 | + | o73.BrickColor = BrickColor.new("Black")
|
| 814 | o73.Position = Vector3.new(69.2977066, 3.47234988, 198.498016) | |
| 815 | - | else return false end |
| 815 | + | o73.Rotation = Vector3.new(134.106293, -89.9030914, -105.903885) |
| 816 | - | else return false end |
| 816 | + | o73.Anchored = true |
| 817 | o73.CanCollide = false | |
| 818 | - | for i = 10, 0, -1.5 do |
| 818 | + | o73.Elasticity = 0 |
| 819 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 819 | + | o73.FormFactor = Enum.FormFactor.Plate |
| 820 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil then
|
| 820 | + | o73.Size = Vector3.new(1, 0.400000006, 1) |
| 821 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 821 | + | o73.CFrame = CFrame.new(69.2977066, 3.47234988, 198.498016, -0.000150461565, 0.000528063392, -0.999998569, 0.866048634, -0.499959767, -0.00039429497, -0.499959201, -0.866047323, -0.000382182479) |
| 822 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.9, 1.2 - (i / 25), 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90)) |
| 822 | + | o73.BottomSurface = Enum.SurfaceType.Smooth |
| 823 | o73.TopSurface = Enum.SurfaceType.Smooth | |
| 824 | - | else return false end |
| 824 | + | o73.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 825 | - | else return false end |
| 825 | + | o73.Position = Vector3.new(69.2977066, 3.47234988, 198.498016) |
| 826 | o74.Parent = o73 | |
| 827 | - | for i = 10, 0, -5 do |
| 827 | + | o74.Scale = Vector3.new(0.095238097, 0.0476190485, 0.0476190485) |
| 828 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 828 | + | o75.Name = "Handle" |
| 829 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil then
|
| 829 | + | o75.Parent = o1 |
| 830 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 830 | + | o75.Transparency = 1 |
| 831 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.5 - (i / 25), 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300 - i), math.rad(10 - i), math.rad(-90)) |
| 831 | + | o75.Position = Vector3.new(69.2974625, 3.28031993, 198.045059) |
| 832 | o75.Rotation = Vector3.new(179.999237, -0.000880051288, 179.978394) | |
| 833 | - | else return false end |
| 833 | + | o75.Anchored = true |
| 834 | - | else return false end |
| 834 | + | o75.CanCollide = false |
| 835 | o75.Elasticity = 0 | |
| 836 | o75.FormFactor = Enum.FormFactor.Plate | |
| 837 | - | if format == "fire" then |
| 837 | + | o75.Size = Vector3.new(1, 0.400000006, 1) |
| 838 | - | makeShell(Player.Character[Name]:FindFirstChild("ShellOut"))
|
| 838 | + | o75.CFrame = CFrame.new(69.2974625, 3.28031993, 198.045059, -0.99999851, -0.000377149961, -1.53597921e-005, -0.000377149729, 0.999999881, -1.32918358e-005, 1.53648507e-005, -1.34557486e-005, -0.99999845) |
| 839 | - | if Player.Character[Name]:FindFirstChild("Handle") ~= nil then
|
| 839 | + | o75.BottomSurface = Enum.SurfaceType.Smooth |
| 840 | - | if silenced then |
| 840 | + | o75.FrontSurface = Enum.SurfaceType.Universal |
| 841 | - | Player.Character[Name].Handle.Fire.Volume = math.random(3, 8) / 10 |
| 841 | + | o75.TopSurface = Enum.SurfaceType.Smooth |
| 842 | - | Player.Character[Name].Handle.Fire.Pitch = math.random(20, 25) / 10 |
| 842 | + | o75.Position = Vector3.new(69.2974625, 3.28031993, 198.045059) |
| 843 | - | Player.Character[Name].Handle.Fire:Play() |
| 843 | + | o76.Name = "Reload" |
| 844 | - | CamShake(5, 50000) |
| 844 | + | o76.Parent = o75 |
| 845 | o76.SoundId = "http://www.roblox.com/asset/?id=2691591" | |
| 846 | - | Player.Character[Name].Handle.Fire.Volume = math.random(9, 10) / 10 |
| 846 | + | o76.Volume = 0.099999994039536 |
| 847 | - | Player.Character[Name].Handle.Fire.Pitch = 1 |
| 847 | + | o77.Name = "Shoot" |
| 848 | - | Player.Character[Name].Handle.Fire:Play() |
| 848 | + | o77.Parent = o75 |
| 849 | - | CamShake(10, 25000) |
| 849 | + | o77.SoundId = "http://www.roblox.com/asset/?id=2920959" |
| 850 | o77.Volume = 1 | |
| 851 | - | else return false end |
| 851 | + | o79.Name = "AimPart" |
| 852 | - | if Player.Character[Name]:FindFirstChild("Muzzle") ~= nil then
|
| 852 | + | o79.Parent = o1 |
| 853 | - | coroutine.resume(coroutine.create(function() Player.Character[Name].Muzzle.Smoke.Enabled = true Player.Character[Name].Muzzle.Fire.Enabled = true wait(0.1) Player.Character[Name].Muzzle.Smoke.Enabled = false Player.Character[Name].Muzzle.Fire.Enabled = false end)) |
| 853 | + | o79.BrickColor = BrickColor.new("Black")
|
| 854 | - | else return false end |
| 854 | + | o79.Transparency = 1 |
| 855 | - | for i = 0, 10, 5 do |
| 855 | + | o79.Position = Vector3.new(69.2974625, 3.940202, 197.956024) |
| 856 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 856 | + | o79.Rotation = Vector3.new(-180, 0, -180) |
| 857 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 857 | + | o79.Anchored = true |
| 858 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 858 | + | o79.CanCollide = false |
| 859 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.5, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(10 + i), math.rad(-90)) |
| 859 | + | o79.FormFactor = Enum.FormFactor.Custom |
| 860 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 860 | + | o79.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
| 861 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90 - i), math.rad(-5), 0) |
| 861 | + | o79.CFrame = CFrame.new(69.2974625, 3.940202, 197.956024, -1, 3.19382108e-014, 0, -3.19382108e-014, 0.999999762, 2.4158453e-013, -0, -2.4158453e-013, -0.999999762) |
| 862 | o79.BottomSurface = Enum.SurfaceType.Smooth | |
| 863 | - | else return false end |
| 863 | + | o79.TopSurface = Enum.SurfaceType.Smooth |
| 864 | - | else return false end |
| 864 | + | o79.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 865 | o79.Position = Vector3.new(69.2974625, 3.940202, 197.956024) | |
| 866 | - | for i = 10, 0, -5 do |
| 866 | + | o80.Name = "Wedge" |
| 867 | - | if Player.Character:FindFirstChild("Torso") ~= nil then
|
| 867 | + | o80.Parent = o1 |
| 868 | - | if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
|
| 868 | + | o80.BrickColor = BrickColor.new("Brown")
|
| 869 | - | Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new() |
| 869 | + | o80.Position = Vector3.new(69.2977066, 3.41328406, 198.16423) |
| 870 | - | Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.5, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(10 + i), math.rad(-90)) |
| 870 | + | o80.Rotation = Vector3.new(-80.0008011, -0.0228117164, 0.00421439391) |
| 871 | - | Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new() |
| 871 | + | o80.Anchored = true |
| 872 | - | Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90 - i), math.rad(-5), 0) |
| 872 | + | o80.CanCollide = false |
| 873 | o80.Elasticity = 0 | |
| 874 | - | else return false end |
| 874 | + | o80.FormFactor = Enum.FormFactor.Symmetric |
| 875 | - | else return false end |
| 875 | + | o80.Size = Vector3.new(1, 1, 1) |
| 876 | o80.CFrame = CFrame.new(69.2977066, 3.41328406, 198.16423, 0.999998569, -7.35549474e-005, -0.000398139557, 0.000404866703, 0.173634678, 0.984809995, -3.2952812e-006, -0.984808683, 0.173634306) | |
| 877 | o80.BottomSurface = Enum.SurfaceType.Smooth | |
| 878 | - | return true |
| 878 | + | o80.TopSurface = Enum.SurfaceType.Smooth |
| 879 | o80.Color = Color3.new(0.486275, 0.360784, 0.27451) | |
| 880 | o80.Position = Vector3.new(69.2977066, 3.41328406, 198.16423) | |
| 881 | o81.Parent = o80 | |
| 882 | - | function CamShake(time, freq) |
| 882 | + | o81.Scale = Vector3.new(0.190476194, 0.0476190485, 0.142857149) |
| 883 | - | coroutine.resume(coroutine.create(function() |
| 883 | + | o81.MeshType = Enum.MeshType.Wedge |
| 884 | - | local cam = Workspace.CurrentCamera |
| 884 | + | o82.Name = "Wedge" |
| 885 | - | local time = 10 |
| 885 | + | o82.Parent = o1 |
| 886 | - | local seed = Vector3.new(math.random(100, 200) / freq, math.random(100, 200) / freq, 0) |
| 886 | + | o82.BrickColor = BrickColor.new("Brown")
|
| 887 | - | if math.random(1, 2) == 1 then seed = Vector3.new(-seed.x, seed.y, 0) end |
| 887 | + | o82.Position = Vector3.new(69.298439, 3.22434807, 197.384155) |
| 888 | - | if math.random(1, 2) == 1 then seed = Vector3.new(seed.x, -seed.y, 0) end |
| 888 | + | o82.Rotation = Vector3.new(179.999237, 0.000992271816, -0.024081884) |
| 889 | - | cam.CoordinateFrame = (CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(seed.x * time, seed.y * time, 0)) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude) |
| 889 | + | o82.Anchored = true |
| 890 | - | for i = 1, time do |
| 890 | + | o82.CanCollide = false |
| 891 | - | cam.CoordinateFrame = (CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(-seed.x, -seed.y, 0)) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude) |
| 891 | + | o82.Elasticity = 0 |
| 892 | o82.FormFactor = Enum.FormFactor.Symmetric | |
| 893 | o82.Size = Vector3.new(1, 1, 1) | |
| 894 | o82.CFrame = CFrame.new(69.298439, 3.22434807, 197.384155, 0.999998629, 0.000420307595, 1.73184108e-005, 0.000420307886, -0.999999881, -1.32024288e-005, 1.73127846e-005, 1.34557486e-005, -0.999998629) | |
| 895 | o82.BottomSurface = Enum.SurfaceType.Smooth | |
| 896 | o82.TopSurface = Enum.SurfaceType.Smooth | |
| 897 | o82.Color = Color3.new(0.486275, 0.360784, 0.27451) | |
| 898 | - | function makeShell(part) |
| 898 | + | o82.Position = Vector3.new(69.298439, 3.22434807, 197.384155) |
| 899 | - | if part == nil then return false end |
| 899 | + | o83.Parent = o82 |
| 900 | - | local casing = Instance.new("Part")
|
| 900 | + | o83.Scale = Vector3.new(0.238095239, 0.428571433, 1.28571427) |
| 901 | - | casing.Name = "Shell" |
| 901 | + | o83.MeshType = Enum.MeshType.Wedge |
| 902 | - | casing.FormFactor = "Custom" |
| 902 | + | o84.Name = "Wedge" |
| 903 | - | casing.Size = Vector3.new(1, 1, 1) |
| 903 | + | o84.Parent = o1 |
| 904 | - | casing.CFrame = CFrame.new(part.Position) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0, 360)), math.rad(math.random(0, 360)), math.rad(math.random(0, 360))) |
| 904 | + | o84.BrickColor = BrickColor.new("Black")
|
| 905 | - | casing.BrickColor = BrickColor.new("New Yeller")
|
| 905 | + | o84.Position = Vector3.new(69.2977066, 3.81024194, 198.194107) |
| 906 | - | local mesh = Instance.new("CylinderMesh")
|
| 906 | + | o84.Rotation = Vector3.new(-0.00323153776, -0.00099320442, 0.0216091424) |
| 907 | - | mesh.Scale = Vector3.new(0.1, 0.3, 0.1) |
| 907 | + | o84.Anchored = true |
| 908 | - | mesh.Parent = casing |
| 908 | + | o84.CanCollide = false |
| 909 | - | casing.Parent = Workspace |
| 909 | + | o84.Elasticity = 0 |
| 910 | - | casing:BreakJoints() |
| 910 | + | o84.FormFactor = Enum.FormFactor.Symmetric |
| 911 | - | casing.Velocity = (part.CFrame.lookVector * 50) + Vector3.new(0, 10, 0) |
| 911 | + | o84.Size = Vector3.new(1, 1, 1) |
| 912 | - | coroutine.resume(coroutine.create(function() wait(4.5) for i = 0, 1, 0.1 do casing.Transparency = i wait() end casing:Remove() end)) |
| 912 | + | o84.CFrame = CFrame.new(69.2977066, 3.81024194, 198.194107, 0.999998569, -0.000377150165, -1.73346871e-005, 0.000377151184, 1, 5.64008951e-005, 1.73282315e-005, -5.66393137e-005, 0.999998569) |
| 913 | o84.BottomSurface = Enum.SurfaceType.Smooth | |
| 914 | o84.TopSurface = Enum.SurfaceType.Smooth | |
| 915 | o84.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 916 | - | function Weld(x, y) |
| 916 | + | o84.Position = Vector3.new(69.2977066, 3.81024194, 198.194107) |
| 917 | - | local weld = Instance.new("Weld")
|
| 917 | + | o85.Parent = o84 |
| 918 | - | weld.Part0 = x |
| 918 | + | o85.Scale = Vector3.new(0.238095239, 0.0476190485, 0.142857149) |
| 919 | - | weld.Part1 = y |
| 919 | + | o85.MeshType = Enum.MeshType.Wedge |
| 920 | - | CJ = CFrame.new(x.Position) |
| 920 | + | o86.Parent = o1 |
| 921 | - | C0 = x.CFrame:inverse() * CJ |
| 921 | + | o86.BrickColor = BrickColor.new("Brown")
|
| 922 | - | C1 = y.CFrame:inverse() * CJ |
| 922 | + | o86.Position = Vector3.new(69.2977066, 3.53424001, 197.12207) |
| 923 | - | weld.C0 = C0 |
| 923 | + | o86.Rotation = Vector3.new(-0.00323153776, -0.00099320442, 0.0216091424) |
| 924 | - | weld.C1 = C1 |
| 924 | + | o86.Anchored = true |
| 925 | - | weld.Parent = x |
| 925 | + | o86.CanCollide = false |
| 926 | o86.Elasticity = 0 | |
| 927 | o86.FormFactor = Enum.FormFactor.Symmetric | |
| 928 | o86.Size = Vector3.new(1, 1, 1) | |
| 929 | - | function tagHumanoid(humanoid) |
| 929 | + | o86.CFrame = CFrame.new(69.2977066, 3.53424001, 197.12207, 0.999998569, -0.000377150165, -1.73346871e-005, 0.000377151184, 1, 5.64008951e-005, 1.73282315e-005, -5.66393137e-005, 0.999998569) |
| 930 | - | local tag = Instance.new("ObjectValue")
|
| 930 | + | o86.BottomSurface = Enum.SurfaceType.Smooth |
| 931 | - | tag.Name = "creator" |
| 931 | + | o86.TopSurface = Enum.SurfaceType.Smooth |
| 932 | - | tag.Value = Player |
| 932 | + | o86.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 933 | - | tag.Parent = humanoid |
| 933 | + | o86.Position = Vector3.new(69.2977066, 3.53424001, 197.12207) |
| 934 | - | local tag = Instance.new("StringValue")
|
| 934 | + | o87.Parent = o86 |
| 935 | - | tag.Name = "creatorType1" |
| 935 | + | o87.Scale = Vector3.new(0.238095239, 0.190476194, 1.0476191) |
| 936 | - | tag.Value = Name |
| 936 | + | o88.Name = "Wedge" |
| 937 | - | tag.Parent = humanoid |
| 937 | + | o88.Parent = o1 |
| 938 | - | local tag = Instance.new("StringValue")
|
| 938 | + | o88.BrickColor = BrickColor.new("Black")
|
| 939 | - | tag.Name = "creatorType2" |
| 939 | + | o88.Position = Vector3.new(69.2977066, 3.47733998, 198.479065) |
| 940 | - | tag.Value = "shot" |
| 940 | + | o88.Rotation = Vector3.new(179.999237, 0.000992271816, -0.024081884) |
| 941 | - | tag.Parent = humanoid |
| 941 | + | o88.Anchored = true |
| 942 | o88.CanCollide = false | |
| 943 | o88.Elasticity = 0 | |
| 944 | o88.FormFactor = Enum.FormFactor.Symmetric | |
| 945 | - | function untagHumanoid(humanoid) |
| 945 | + | o88.Size = Vector3.new(1, 1, 1) |
| 946 | - | if humanoid ~= nil then |
| 946 | + | o88.CFrame = CFrame.new(69.2977066, 3.47733998, 198.479065, 0.999998629, 0.000420307595, 1.73184108e-005, 0.000420307886, -0.999999881, -1.32024288e-005, 1.73127846e-005, 1.34557486e-005, -0.999998629) |
| 947 | - | local tag = humanoid:FindFirstChild("creator")
|
| 947 | + | o88.BottomSurface = Enum.SurfaceType.Smooth |
| 948 | - | if tag ~= nil then |
| 948 | + | o88.TopSurface = Enum.SurfaceType.Smooth |
| 949 | - | tag:Remove() |
| 949 | + | o88.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 950 | o88.Position = Vector3.new(69.2977066, 3.47733998, 198.479065) | |
| 951 | - | local tag = humanoid:FindFirstChild("creatorType1")
|
| 951 | + | o89.Parent = o88 |
| 952 | - | if tag ~= nil then |
| 952 | + | o89.Scale = Vector3.new(0.238095239, 0.0476190485, 0.714285731) |
| 953 | - | tag:Remove() |
| 953 | + | o89.MeshType = Enum.MeshType.Wedge |
| 954 | o90.Name = "Wedge" | |
| 955 | - | local tag = humanoid:FindFirstChild("creatorType2")
|
| 955 | + | o90.Parent = o1 |
| 956 | - | if tag ~= nil then |
| 956 | + | o90.BrickColor = BrickColor.new("Brown")
|
| 957 | - | tag:Remove() |
| 957 | + | o90.Position = Vector3.new(69.2977066, 3.60525489, 197.718201) |
| 958 | o90.Rotation = Vector3.new(179.999237, 0.00218755309, 179.975922) | |
| 959 | o90.Anchored = true | |
| 960 | o90.CanCollide = false | |
| 961 | o90.Elasticity = 0 | |
| 962 | o90.FormFactor = Enum.FormFactor.Symmetric | |
| 963 | - | function fire(startPoint, endPoint, hit) |
| 963 | + | o90.Size = Vector3.new(1, 1, 1) |
| 964 | - | local trail = Instance.new("Part")
|
| 964 | + | o90.CFrame = CFrame.new(69.2977066, 3.60525489, 197.718201, -0.999998689, -0.000420309458, 3.81800055e-005, -0.000420310069, 0.999999881, -1.32620335e-005, -3.81743303e-005, -1.34557486e-005, -0.999998629) |
| 965 | - | trail.Name = "Bullet Trail" |
| 965 | + | o90.BottomSurface = Enum.SurfaceType.Smooth |
| 966 | - | trail.BrickColor = BrickColor.new("New Yeller")
|
| 966 | + | o90.TopSurface = Enum.SurfaceType.Smooth |
| 967 | - | trail.TopSurface = 0 |
| 967 | + | o90.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 968 | - | trail.BottomSurface = 0 |
| 968 | + | o90.Position = Vector3.new(69.2977066, 3.60525489, 197.718201) |
| 969 | - | trail.FormFactor = 0 |
| 969 | + | o91.Parent = o90 |
| 970 | - | trail.Size = Vector3.new(1, 1, 1) |
| 970 | + | o91.Scale = Vector3.new(0.238095239, 0.0476190485, 0.142857149) |
| 971 | - | trail.Transparency = 0.3 |
| 971 | + | o91.MeshType = Enum.MeshType.Wedge |
| 972 | - | trail.Anchored = true |
| 972 | + | o92.Name = "Wedge" |
| 973 | - | trail.CanCollide = false |
| 973 | + | o92.Parent = o1 |
| 974 | - | trail.CFrame = CFrame.new((startPoint + endPoint) / 2, endPoint) |
| 974 | + | o92.BrickColor = BrickColor.new("Brown")
|
| 975 | - | trail.Parent = Workspace |
| 975 | + | o92.Position = Vector3.new(69.2977066, 3.6534121, 197.908035) |
| 976 | - | local mesh = Instance.new("SpecialMesh")
|
| 976 | + | o92.Rotation = Vector3.new(-0.00323153776, -0.00099320442, 0.0216091424) |
| 977 | - | mesh.MeshType = "Brick" |
| 977 | + | o92.Anchored = true |
| 978 | - | mesh.Scale = Vector3.new(0.1, 0.1, (startPoint - endPoint).magnitude) |
| 978 | + | o92.CanCollide = false |
| 979 | - | mesh.Parent = trail |
| 979 | + | o92.Elasticity = 0 |
| 980 | - | coroutine.resume(coroutine.create(function(part) for i = 1, 10 do part.Mesh.Scale = Vector3.new(part.Mesh.Scale.x - 0.01, part.Mesh.Scale.y - 0.01, part.Mesh.Scale.z) wait() end part:Remove() end), trail) |
| 980 | + | o92.FormFactor = Enum.FormFactor.Symmetric |
| 981 | - | if hit ~= nil then |
| 981 | + | o92.Size = Vector3.new(1, 1, 1) |
| 982 | - | if hit.Parent == nil then return end |
| 982 | + | o92.CFrame = CFrame.new(69.2977066, 3.6534121, 197.908035, 0.999998569, -0.000377150165, -1.73346871e-005, 0.000377151184, 1, 5.64008951e-005, 1.73282315e-005, -5.66393137e-005, 0.999998569) |
| 983 | - | if hit.Parent:FindFirstChild("Humanoid") ~= nil then
|
| 983 | + | o92.BottomSurface = Enum.SurfaceType.Smooth |
| 984 | - | tagHumanoid(hit.Parent.Humanoid) |
| 984 | + | o92.TopSurface = Enum.SurfaceType.Smooth |
| 985 | - | if hit.Name == "Head" then |
| 985 | + | o92.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 986 | - | hit.Parent.Humanoid:TakeDamage(damage * 10) |
| 986 | + | o92.Position = Vector3.new(69.2977066, 3.6534121, 197.908035) |
| 987 | - | elseif hit.Name == "Torso" then |
| 987 | + | o93.Parent = o92 |
| 988 | - | hit.Parent.Humanoid:TakeDamage(damage * 2) |
| 988 | + | o93.Scale = Vector3.new(0.238095239, 0.142857149, 0.238095239) |
| 989 | o93.MeshType = Enum.MeshType.Wedge | |
| 990 | - | hit.Parent.Humanoid:TakeDamage(damage) |
| 990 | + | o94.Name = "Ring" |
| 991 | o94.Parent = o1 | |
| 992 | - | if math.random(1, 10) == 1 then |
| 992 | + | o94.BrickColor = BrickColor.new("Black")
|
| 993 | - | hit.Parent.Humanoid.Sit = true |
| 993 | + | o94.Position = Vector3.new(69.2977066, 3.47724891, 198.503067) |
| 994 | o94.Rotation = Vector3.new(92.1286011, -89.9051285, -87.8722458) | |
| 995 | - | delay(0.1, function() untagHumanoid(hit.Parent.Humanoid) end) |
| 995 | + | o94.Anchored = true |
| 996 | o94.CanCollide = false | |
| 997 | - | if hit.Anchored == false then |
| 997 | + | o94.Elasticity = 0 |
| 998 | - | hit.Velocity = hit.Velocity + ((endPoint - startPoint).unit * (damage * 2)) |
| 998 | + | o94.FormFactor = Enum.FormFactor.Symmetric |
| 999 | o94.Size = Vector3.new(1, 1, 1) | |
| 1000 | o94.CFrame = CFrame.new(69.2977066, 3.47724891, 198.503067, 1.51462345e-005, 0.00040766751, -0.999998629, 1.73449516e-005, -0.99999994, -0.000407667307, -0.999998569, -1.71065331e-005, -1.5152269e-005) | |
| 1001 | o94.BottomSurface = Enum.SurfaceType.Smooth | |
| 1002 | o94.TopSurface = Enum.SurfaceType.Smooth | |
| 1003 | o94.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 1004 | - | function onButton1Down(mouse) |
| 1004 | + | o94.Position = Vector3.new(69.2977066, 3.47724891, 198.503067) |
| 1005 | - | if selected == false then return end |
| 1005 | + | o95.Parent = o94 |
| 1006 | - | if Player.Character:FindFirstChild(Name) ~= nil and Button1Down == false and canFire == true and (function() if dual == true then if Player.Character:FindFirstChild(Name.. " (Left)") ~= nil then return true else return false end else return true end end)() == true then |
| 1006 | + | o95.MeshId = "http://www.roblox.com/asset/?id=3270017" |
| 1007 | - | if Player.Character[Name]:FindFirstChild("Handle") == nil then return end
|
| 1007 | + | o95.Scale = Vector3.new(0.190476194, 0.142857149, 0.142857149) |
| 1008 | - | if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
|
| 1008 | + | o95.MeshType = Enum.MeshType.FileMesh |
| 1009 | - | if dual == true then if Player.Character[Name.. " (Left)"]:FindFirstChild("Handle") == nil then return end end
|
| 1009 | + | o96.Parent = o1 |
| 1010 | - | if dual == true then if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end end
|
| 1010 | + | o96.BrickColor = BrickColor.new("Black")
|
| 1011 | - | mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" |
| 1011 | + | o96.Position = Vector3.new(69.2977066, 3.59620595, 198.074112) |
| 1012 | - | Button1Down = true |
| 1012 | + | o96.Rotation = Vector3.new(-90.0060196, -0.00237609027, -0.00436409656) |
| 1013 | - | canFire = false |
| 1013 | + | o96.Anchored = true |
| 1014 | - | canFire2 = true |
| 1014 | + | o96.CanCollide = false |
| 1015 | - | while canFire2 == true do |
| 1015 | + | o96.Elasticity = 0 |
| 1016 | - | local humanoid = Player.Character:FindFirstChild("Humanoid")
|
| 1016 | + | o96.FormFactor = Enum.FormFactor.Symmetric |
| 1017 | - | if humanoid == nil then |
| 1017 | + | o96.Size = Vector3.new(1, 1, 1) |
| 1018 | - | canFire2 = false |
| 1018 | + | o96.CFrame = CFrame.new(69.2977066, 3.59620595, 198.074112, 0.999998629, 7.61677511e-005, -4.14705974e-005, 4.14781134e-005, -0.000104755163, 1, 7.61922347e-005, -0.999998391, -0.000105023384) |
| 1019 | - | break |
| 1019 | + | o96.BottomSurface = Enum.SurfaceType.Smooth |
| 1020 | o96.TopSurface = Enum.SurfaceType.Smooth | |
| 1021 | - | if humanoid.Health <= 0 then |
| 1021 | + | o96.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 1022 | - | canFire2 = false |
| 1022 | + | o96.Position = Vector3.new(69.2977066, 3.59620595, 198.074112) |
| 1023 | - | break |
| 1023 | + | o97.Parent = o96 |
| 1024 | o97.Scale = Vector3.new(0.238095239, 0.095238097, 0.285714298) | |
| 1025 | - | local fireLeft = false |
| 1025 | + | o98.Parent = o1 |
| 1026 | - | if automatic == false and burst == false then |
| 1026 | + | o98.BrickColor = BrickColor.new("Brown")
|
| 1027 | - | canFire2 = false |
| 1027 | + | o98.Position = Vector3.new(69.2977066, 3.51039195, 197.836105) |
| 1028 | - | elseif automatic == false and burst == true then |
| 1028 | + | o98.Rotation = Vector3.new(-0.00323153776, -0.00099320442, 0.0216091424) |
| 1029 | - | if burstCount >= burstCountMax then |
| 1029 | + | o98.Anchored = true |
| 1030 | - | canFire2 = false |
| 1030 | + | o98.CanCollide = false |
| 1031 | - | burstCount = 0 |
| 1031 | + | o98.Elasticity = 0 |
| 1032 | - | break |
| 1032 | + | o98.FormFactor = Enum.FormFactor.Symmetric |
| 1033 | o98.Size = Vector3.new(1, 1, 1) | |
| 1034 | - | burstCount = burstCount + 1 |
| 1034 | + | o98.CFrame = CFrame.new(69.2977066, 3.51039195, 197.836105, 0.999998569, -0.000377150165, -1.73346871e-005, 0.000377151184, 1, 5.64008951e-005, 1.73282315e-005, -5.66393137e-005, 0.999998569) |
| 1035 | - | elseif automatic == true and burst == false then |
| 1035 | + | o98.BottomSurface = Enum.SurfaceType.Smooth |
| 1036 | - | fireLeft = true |
| 1036 | + | o98.TopSurface = Enum.SurfaceType.Smooth |
| 1037 | o98.Color = Color3.new(0.486275, 0.360784, 0.27451) | |
| 1038 | - | if magazine.Value > 0 then |
| 1038 | + | o98.Position = Vector3.new(69.2977066, 3.51039195, 197.836105) |
| 1039 | - | magazine.Value = magazine.Value - 1 |
| 1039 | + | o99.Parent = o98 |
| 1040 | - | updateGui() |
| 1040 | + | o99.Scale = Vector3.new(0.238095239, 0.142857149, 0.380952388) |
| 1041 | - | fire(Player.Character[Name].Muzzle.Position, mouse.Hit.p, mouse.Target) |
| 1041 | + | o100.Parent = o1 |
| 1042 | - | coroutine.resume(coroutine.create(function() |
| 1042 | + | o100.BrickColor = BrickColor.new("Brown")
|
| 1043 | - | if dual == true then |
| 1043 | + | o100.Position = Vector3.new(69.2977066, 3.22426009, 196.67012) |
| 1044 | - | playAnimation("rightFire")
|
| 1044 | + | o100.Rotation = Vector3.new(-0.00323153776, -0.00099320442, 0.0216091424) |
| 1045 | - | elseif dual == false then |
| 1045 | + | o100.Anchored = true |
| 1046 | - | playAnimation("fire")
|
| 1046 | + | o100.CanCollide = false |
| 1047 | o100.Elasticity = 0 | |
| 1048 | o100.FormFactor = Enum.FormFactor.Symmetric | |
| 1049 | o100.Size = Vector3.new(1, 1, 1) | |
| 1050 | - | Player.Character[Name].Handle.Empty:Play() |
| 1050 | + | o100.CFrame = CFrame.new(69.2977066, 3.22426009, 196.67012, 0.999998569, -0.000377150165, -1.73346871e-005, 0.000377151184, 1, 5.64008951e-005, 1.73282315e-005, -5.66393137e-005, 0.999998569) |
| 1051 | o100.BottomSurface = Enum.SurfaceType.Smooth | |
| 1052 | - | if fireLeft == true and dual == true and automatic == true then |
| 1052 | + | o100.TopSurface = Enum.SurfaceType.Smooth |
| 1053 | - | if magazine.Value > 0 then |
| 1053 | + | o100.Color = Color3.new(0.486275, 0.360784, 0.27451) |
| 1054 | - | coroutine.resume(coroutine.create(function() |
| 1054 | + | o100.Position = Vector3.new(69.2977066, 3.22426009, 196.67012) |
| 1055 | - | wait(readyTime / 2) |
| 1055 | + | o101.Parent = o100 |
| 1056 | - | magazine.Value = magazine.Value - 1 |
| 1056 | + | o101.Scale = Vector3.new(0.238095239, 0.428571433, 0.142857149) |
| 1057 | - | updateGui() |
| 1057 | + | o102.Name = "Coloring" |
| 1058 | - | fire(Player.Character[Name.. " (Left)"].Muzzle.Position, mouse.Hit.p, mouse.Target) |
| 1058 | + | o102.Parent = o1 |
| 1059 | - | playAnimation("leftFire")
|
| 1059 | + | table.insert(cors,coroutine.create(function() |
| 1060 | wait() | |
| 1061 | runDummyScript(function() | |
| 1062 | - | coroutine.resume(coroutine.create(function() |
| 1062 | + | repeat |
| 1063 | - | wait(readyTime / 2) |
| 1063 | + | |
| 1064 | - | Player.Character[Name].Handle.Empty:Play() |
| 1064 | + | until script.Parent.Parent.Parent.ClassName == "Player" |
| 1065 | g = script.Parent:GetChildren() | |
| 1066 | for i = 1,#g do | |
| 1067 | if g[i].Name == "Color" then | |
| 1068 | - | wait(readyTime) |
| 1068 | + | g[i].BrickColor = script.Parent.Parent.Parent.TeamColor |
| 1069 | end | |
| 1070 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
| 1070 | + | |
| 1071 | - | canFire = true |
| 1071 | + | |
| 1072 | end,o102) | |
| 1073 | end)) | |
| 1074 | o103.Name = "Gun_Script" | |
| 1075 | o103.Parent = o1 | |
| 1076 | - | function onButton1Up(mouse) |
| 1076 | + | table.insert(cors,coroutine.create(function() |
| 1077 | - | if selected == false then return end |
| 1077 | + | |
| 1078 | - | Button1Down = false |
| 1078 | + | runDummyScript(function() |
| 1079 | - | canFire2 = false |
| 1079 | + | wait(0.5) |
| 1080 | - | burstCount = 0 |
| 1080 | + | --Edit settings below-- |
| 1081 | - | while canFire == false do wait() end |
| 1081 | + | local Tool = script.Parent |
| 1082 | - | if dual == true and automatic == false then |
| 1082 | + | local Settings = {
|
| 1083 | - | if Player.Character[Name.. " (Left)"]:FindFirstChild("Handle") == nil then return end
|
| 1083 | + | Range = 700 |
| 1084 | - | if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
|
| 1084 | + | ,Spread = 5 |
| 1085 | - | mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" |
| 1085 | + | ,Damage = {18, 35}
|
| 1086 | - | canFire = false |
| 1086 | + | ,HeadShotDamage = {13, 14}
|
| 1087 | - | canFire2 = true |
| 1087 | + | ,Bullets = 1 |
| 1088 | - | while canFire2 == true do |
| 1088 | + | ,FireRate = 0.10 |
| 1089 | - | local humanoid = Player.Character:FindFirstChild("Humanoid")
|
| 1089 | + | ,Automatic = true |
| 1090 | - | if humanoid == nil then |
| 1090 | + | ,AntiTK = false |
| 1091 | - | canFire2 = false |
| 1091 | + | ,ImpactDuration = 3 |
| 1092 | - | break |
| 1092 | + | --Reload |
| 1093 | ,ReloadKey = "R" | |
| 1094 | - | if humanoid.Health <= 0 then |
| 1094 | + | ,ReloadTime = 3 |
| 1095 | - | canFire2 = false |
| 1095 | + | ,Ammo = 30 |
| 1096 | - | break |
| 1096 | + | ,IncludeChamberedBullet = true |
| 1097 | --Gui | |
| 1098 | - | if burst == false then |
| 1098 | + | ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale) |
| 1099 | - | canFire2 = false |
| 1099 | + | --Arms |
| 1100 | - | elseif burst == true then |
| 1100 | + | ,OneHanded = false |
| 1101 | - | if burstCount >= burstCountMax then |
| 1101 | + | ,FakeArms = true |
| 1102 | - | canFire2 = false |
| 1102 | + | ,FakeArmTransparency = 1 |
| 1103 | - | burstCount = 0 |
| 1103 | + | ,RightPos = CFrame.new(-0.75, -0.25, 0.5) * CFrame.Angles(math.rad(-90), 0, 0) |
| 1104 | - | break |
| 1104 | + | ,LeftPos = CFrame.new(1, 0.5, 0.5) * CFrame.Angles(math.rad(-90), math.rad(45), 0) |
| 1105 | ,AimPart = Tool.AimPart | |
| 1106 | - | burstCount = burstCount + 1 |
| 1106 | + | ,AimPartOffset = CFrame.new() |
| 1107 | ,AimGripOffset = Vector3.new(0, 0, 0) | |
| 1108 | - | if magazine.Value <= 0 then |
| 1108 | + | ,LeftAimPos = CFrame.new(1, 0.5, 0.5) * CFrame.Angles(math.rad(-100), math.rad(45), 0) |
| 1109 | - | Player.Character[Name].Handle.Empty:Play() |
| 1109 | + | ,AimAnim = {
|
| 1110 | Enabled = false | |
| 1111 | - | coroutine.resume(coroutine.create(function() |
| 1111 | + | ,Frames = 50 |
| 1112 | - | playAnimation("leftFire")
|
| 1112 | + | ,Time = 0.1 |
| 1113 | } | |
| 1114 | - | magazine.Value = magazine.Value - 1 |
| 1114 | + | ,ChangeFOV = {true, 60}
|
| 1115 | - | updateGui() |
| 1115 | + | ,SpreadReduction = 3 |
| 1116 | - | fire(Player.Character[Name.. " (Left)"].Muzzle.Position, mouse.Hit.p, mouse.Target) |
| 1116 | + | --Weld |
| 1117 | ,Weld = true | |
| 1118 | - | wait(readyTime) |
| 1118 | + | --Mouse |
| 1119 | ,Icons = {
| |
| 1120 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
| 1120 | + | Idle = "rbxassetid://70288585" |
| 1121 | - | canFire = true |
| 1121 | + | ,Fire1 = "rbxassetid://70288578" |
| 1122 | ,Fire2 = "rbxassetid://70288572" | |
| 1123 | ,Fire3 = "rbxassetid://70288578" | |
| 1124 | ,Reload = "rbxassetid://70288599" | |
| 1125 | ,Aim = "rbxasset://textures/Blank.png" | |
| 1126 | - | function onKeyDown(key, mouse) |
| 1126 | + | } |
| 1127 | - | if selected == false then return end |
| 1127 | + | ,FireMouseAnimTime = 0.15 |
| 1128 | - | key = key:lower() |
| 1128 | + | --Recoil |
| 1129 | - | if key == "q" and Button1Down == false and canFire == true then |
| 1129 | + | ,Recoil = math.rad(1.2) |
| 1130 | - | if mouse.Target == nil then return end |
| 1130 | + | --Smoke |
| 1131 | - | if game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent) ~= nil then
|
| 1131 | + | ,Smoke = true |
| 1132 | - | if dual == true then onKeyDown("t", mouse) end
|
| 1132 | + | ,SmokePart = Tool.SmokePart |
| 1133 | - | onDeselected(mouse) |
| 1133 | + | ,Smokes = {{script.Smoke, 6, 0.1}, {script.Smoke1, 0.1}, {script.Smoke1, 0.1}}
|
| 1134 | - | removeParts("RightHolster")
|
| 1134 | + | --Sprint |
| 1135 | - | script.Parent.Parent = game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent).Backpack
|
| 1135 | + | ,Sprint = true |
| 1136 | ,SprintSpeed = 25 | |
| 1137 | ,SprintKey = "0" | |
| 1138 | - | if key == "e" and Button1Down == false and canFire == true and canSilence == true then |
| 1138 | + | ,SprintSpreadIncrease = 40 |
| 1139 | - | if silenced then |
| 1139 | + | ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0) |
| 1140 | - | silenced = false |
| 1140 | + | --Other |
| 1141 | - | if Player.Character:FindFirstChild(Name) == nil then return end |
| 1141 | + | ,DropHats = false |
| 1142 | - | if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
|
| 1142 | + | |
| 1143 | - | if Player.Character[Name]:FindFirstChild("Muzzle 2") == nil then return end
|
| 1143 | + | |
| 1144 | - | Player.Character[Name].Muzzle.Transparency = 1 |
| 1144 | + | --Do not edit below this lign-- |
| 1145 | - | Player.Character[Name].Muzzle.Name = "Silencer" |
| 1145 | + | |
| 1146 | - | Player.Character[Name]["Muzzle 2"].Name = "Muzzle" |
| 1146 | + | local Orig_Spread = Settings.Spread |
| 1147 | - | if dual == true then |
| 1147 | + | local Orig_Grip = Tool.GripPos |
| 1148 | - | if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
|
| 1148 | + | |
| 1149 | - | if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle 2") == nil then return end
|
| 1149 | + | local Player = game.Players.Speedyfox |
| 1150 | - | Player.Character[Name.. " (Left)"].Muzzle.Transparency = 1 |
| 1150 | + | local Character = Player.Character |
| 1151 | - | Player.Character[Name.. " (Left)"].Muzzle.Name = "Silencer" |
| 1151 | + | |
| 1152 | - | Player.Character[Name.. " (Left)"]["Muzzle 2"].Name = "Muzzle" |
| 1152 | + | local Camera = Workspace.CurrentCamera |
| 1153 | ||
| 1154 | local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo | |
| 1155 | - | silenced = true |
| 1155 | + | |
| 1156 | - | if Player.Character:FindFirstChild(Name) == nil then return end |
| 1156 | + | local Gui, CanUpdateGui = nil, true |
| 1157 | - | if Player.Character[Name]:FindFirstChild("Silencer") == nil then return end
|
| 1157 | + | |
| 1158 | - | if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
|
| 1158 | + | local Sprinting, Equipped |
| 1159 | - | Player.Character[Name].Silencer.Transparency = 0 |
| 1159 | + | |
| 1160 | - | Player.Character[Name].Muzzle.Name = "Muzzle 2" |
| 1160 | + | function Update_Gui() |
| 1161 | - | Player.Character[Name].Silencer.Name = "Muzzle" |
| 1161 | + | if Gui and CanUpdateGui then |
| 1162 | - | if dual == true then |
| 1162 | + | Gui.Frame.AmmoDisplay.Text = Ammo.Value .. "|" .. StoredAmmo.Value |
| 1163 | - | if Player.Character[Name.. " (Left)"]:FindFirstChild("Silencer") == nil then return end
|
| 1163 | + | end |
| 1164 | - | if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
|
| 1164 | + | |
| 1165 | - | Player.Character[Name.. " (Left)"].Silencer.Transparency = 0 |
| 1165 | + | |
| 1166 | - | Player.Character[Name.. " (Left)"].Muzzle.Name = "Muzzle 2" |
| 1166 | + | local Welded |
| 1167 | - | Player.Character[Name.. " (Left)"].Silencer.Name = "Muzzle" |
| 1167 | + | if Settings.Weld then |
| 1168 | Delay(0, function() | |
| 1169 | local weldC0s = {}
| |
| 1170 | for i, v in pairs(Tool:GetChildren()) do | |
| 1171 | - | if key == "r" and Button1Down == false and canFire == true then |
| 1171 | + | if v:IsA("BasePart") and v ~= Tool.Handle then
|
| 1172 | - | if ammo.Value > 0 and magazine.Value ~= magazineMax.Value then |
| 1172 | + | table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
|
| 1173 | - | canFire = false |
| 1173 | + | v.Anchored = false |
| 1174 | - | burstCount = 0 |
| 1174 | + | end |
| 1175 | - | mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" |
| 1175 | + | end |
| 1176 | - | if magazine.Value > 0 then ammo.Value = ammo.Value + magazine.Value magazine.Value = 0 end |
| 1176 | + | Tool.Handle.Anchored = false |
| 1177 | - | updateGui() |
| 1177 | + | local welds = {}
|
| 1178 | - | if dual == true then |
| 1178 | + | Tool.Equipped:connect(function() |
| 1179 | - | playAnimation("reloadDual")
|
| 1179 | + | for i, v in ipairs(welds) do |
| 1180 | - | elseif dual == false then |
| 1180 | + | v.Part1 = nil |
| 1181 | - | playAnimation("reload")
|
| 1181 | + | v:Destroy() |
| 1182 | end | |
| 1183 | - | if ammo.Value - magazineMax.Value < 0 then |
| 1183 | + | for i, v in ipairs(weldC0s) do |
| 1184 | - | magazine.Value = ammo.Value |
| 1184 | + | if v[1] and v[2] then |
| 1185 | - | ammo.Value = 0 |
| 1185 | + | local w = Instance.new("Weld", Tool.Handle)
|
| 1186 | - | elseif ammo.Value - magazineMax.Value >= 0 then |
| 1186 | + | w.Part0 = Tool.Handle |
| 1187 | - | ammo.Value = ammo.Value - magazineMax.Value |
| 1187 | + | w.Part1 = v[1] |
| 1188 | - | magazine.Value = magazineMax.Value |
| 1188 | + | w.C0 = v[2] |
| 1189 | table.insert(welds, w) | |
| 1190 | - | updateGui() |
| 1190 | + | end |
| 1191 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
| 1191 | + | end |
| 1192 | - | canFire = true |
| 1192 | + | end) |
| 1193 | wait() | |
| 1194 | Welded = true | |
| 1195 | - | if key == "t" and Button1Down == false and canFire == true and canDual == true then |
| 1195 | + | end) |
| 1196 | - | canFire = false |
| 1196 | + | |
| 1197 | - | if dual == false then |
| 1197 | + | |
| 1198 | - | local weapon = nil |
| 1198 | + | local Left_Weld, Right_Weld |
| 1199 | - | for _, p in pairs(Player.Backpack:GetChildren()) do |
| 1199 | + | |
| 1200 | - | if p.Name == Name and p ~= script.Parent then weapon = p break end |
| 1200 | + | Ammo.Changed:connect(Update_Gui) |
| 1201 | StoredAmmo.Changed:connect(Update_Gui) | |
| 1202 | - | if weapon ~= nil then |
| 1202 | + | |
| 1203 | - | dual = true |
| 1203 | + | Settings.Range = math.min(Settings.Range, 999) |
| 1204 | - | weapon.Name = "Dual" |
| 1204 | + | |
| 1205 | - | weapon.Parent = script |
| 1205 | + | local Ignore_Model = Workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", Workspace)
|
| 1206 | - | silenced = false |
| 1206 | + | Ignore_Model.Name = "Ray_Ignore" |
| 1207 | - | removeParts("RightHand")
|
| 1207 | + | |
| 1208 | - | makeParts("RightHand")
|
| 1208 | + | local Ray_Ignore = {Character, Ignore_Model, Camera}
|
| 1209 | - | removeParts("RightHolster")
|
| 1209 | + | |
| 1210 | - | makeParts("LeftHolster")
|
| 1210 | + | Character.Humanoid.Died:connect(function() |
| 1211 | - | playAnimation("leftEquip")
|
| 1211 | + | Tool.Parent = Player.Backpack |
| 1212 | - | removeParts("LeftHolster")
|
| 1212 | + | end) |
| 1213 | - | makeParts("LeftHand")
|
| 1213 | + | |
| 1214 | - | magazineMax.Value = math.ceil(magazineMax.Value * 2) |
| 1214 | + | function Fire(Mouse) |
| 1215 | - | ammoMax.Value = math.ceil(ammoMax.Value * 2) |
| 1215 | + | local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10)) |
| 1216 | - | magazine.Value = magazine.Value + weapon.Magazine.Value |
| 1216 | + | local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range) |
| 1217 | - | ammo.Value = ammo.Value + weapon.Ammo.Value |
| 1217 | + | local Hit, Pos = Workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore) |
| 1218 | - | updateGui() |
| 1218 | + | if Hit and Hit.Parent:FindFirstChild("Humanoid") then
|
| 1219 | local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent) | |
| 1220 | - | elseif dual == true then |
| 1220 | + | if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then |
| 1221 | - | local weapon = script:FindFirstChild("Dual")
|
| 1221 | + | return |
| 1222 | - | if weapon ~= nil then |
| 1222 | + | end |
| 1223 | - | dual = false |
| 1223 | + | local Humanoid = Hit.Parent.Humanoid |
| 1224 | - | weapon.Name = Name |
| 1224 | + | local c = Instance.new("ObjectValue")
|
| 1225 | - | weapon.Parent = Player.Backpack |
| 1225 | + | c.Name = "creator" |
| 1226 | - | silenced = false |
| 1226 | + | c.Value = Player |
| 1227 | - | removeParts("RightHand")
|
| 1227 | + | game.Debris:AddItem(c, 3) |
| 1228 | - | makeParts("RightHand")
|
| 1228 | + | c.Parent = Humanoid |
| 1229 | - | playAnimation("leftUnequip")
|
| 1229 | + | if Hit.Name == "Head" then |
| 1230 | - | removeParts("LeftHand")
|
| 1230 | + | Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2]) |
| 1231 | - | makeParts("RightHolster")
|
| 1231 | + | else |
| 1232 | - | playAnimation("hold")
|
| 1232 | + | Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2]) |
| 1233 | - | weapon.Magazine.Value = math.floor(magazine.Value / 2) |
| 1233 | + | end |
| 1234 | - | weapon.Ammo.Value = math.floor(ammo.Value / 2) |
| 1234 | + | elseif Hit then |
| 1235 | - | magazineMax.Value = math.ceil(magazineMax.Value / 2) |
| 1235 | + | local Hit_Part = Instance.new("Part", Ignore_Model)
|
| 1236 | - | ammoMax.Value = math.ceil(ammoMax.Value / 2) |
| 1236 | + | Hit_Part.FormFactor = "Custom" |
| 1237 | - | magazine.Value = math.ceil(magazine.Value / 2) |
| 1237 | + | Hit_Part.TopSurface = 0 |
| 1238 | - | ammo.Value = math.ceil(ammo.Value / 2) |
| 1238 | + | Hit_Part.BottomSurface = 0 |
| 1239 | - | updateGui() |
| 1239 | + | Hit_Part.Anchored = true |
| 1240 | Hit_Part.CanCollide = false | |
| 1241 | Hit_Part.Size = Vector3.new() | |
| 1242 | - | canFire = true |
| 1242 | + | Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360)) |
| 1243 | Hit_Part.BrickColor = BrickColor.new("Black")
| |
| 1244 | - | if key == "y" and canZoom == true then |
| 1244 | + | game.Debris:AddItem(Hit_Part, Settings.ImpactDuration) |
| 1245 | - | if zoom == false then |
| 1245 | + | if not Hit.Anchored then |
| 1246 | - | zoom = true |
| 1246 | + | local w = Instance.new("Weld", Hit_Part)
|
| 1247 | - | local pos = mouse.Hit.p |
| 1247 | + | w.Part0 = Hit |
| 1248 | - | local target = mouse.Target |
| 1248 | + | w.Part1 = Hit_Part |
| 1249 | - | local cam = Workspace.CurrentCamera |
| 1249 | + | w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame) |
| 1250 | - | focus = Instance.new("Part", Workspace)
|
| 1250 | + | Hit_Part.Anchored = false |
| 1251 | - | focus.Anchored = true |
| 1251 | + | end |
| 1252 | - | focus.CanCollide = false |
| 1252 | + | if Hit.Parent:IsA("Hat") and Settings.DropHats then
|
| 1253 | - | focus.Transparency = 1 |
| 1253 | + | Hit.Parent.Parent = workspace |
| 1254 | - | focus.TopSurface = 0 |
| 1254 | + | game.Debris:AddItem(Hit, 3) |
| 1255 | - | focus.BottomSurface = 0 |
| 1255 | + | end |
| 1256 | - | focus.FormFactor = "Plate" |
| 1256 | + | end |
| 1257 | - | focus.Size = Vector3.new(0, 0, 0) |
| 1257 | + | |
| 1258 | - | focus.CFrame = CFrame.new(pos) * (CFrame.new(Player.Character.Torso.Position, pos) - CFrame.new(Player.Character.Torso.Position, pos).p) |
| 1258 | + | |
| 1259 | - | cam.CameraSubject = focus |
| 1259 | + | local Can_Shoot = true |
| 1260 | - | cam.CameraType = "Attach" |
| 1260 | + | local Reloading = false |
| 1261 | - | while zoom == true and selected == true do |
| 1261 | + | |
| 1262 | - | local set = false |
| 1262 | + | local First_Person = false |
| 1263 | - | if target ~= nil then |
| 1263 | + | |
| 1264 | - | if target.Parent ~= nil then |
| 1264 | + | local Mouse_Held |
| 1265 | - | if target.Anchored == false then |
| 1265 | + | |
| 1266 | - | focus.CFrame = CFrame.new(target.Position) * (CFrame.new(Player.Character.Torso.Position, target.Position) - CFrame.new(Player.Character.Torso.Position, target.Position).p) |
| 1266 | + | Tool.Equipped:connect(function(Mouse) |
| 1267 | - | set = true |
| 1267 | + | Equipped = true |
| 1268 | if Settings.Weld and not Welded then | |
| 1269 | wait() | |
| 1270 | Tool.Parent = Player.Backpack | |
| 1271 | - | if set == false then |
| 1271 | + | end |
| 1272 | - | focus.CFrame = CFrame.new(pos) * (CFrame.new(Player.Character.Torso.Position, pos) - CFrame.new(Player.Character.Torso.Position, pos).p) |
| 1272 | + | Character = Player.Character |
| 1273 | if Gui then | |
| 1274 | return | |
| 1275 | end | |
| 1276 | - | if focus ~= nil then focus:Remove() focus = nil end |
| 1276 | + | Ray_Ignore = {Character, Ignore_Model, Camera}
|
| 1277 | - | local cam = Workspace.CurrentCamera |
| 1277 | + | Mouse.Icon = Settings.Icons.Idle |
| 1278 | - | cam.CameraSubject = Player.Character:FindFirstChild("Humanoid")
|
| 1278 | + | Gui = script.Gui:Clone() |
| 1279 | - | cam.CameraType = "Custom" |
| 1279 | + | Gui.Parent = Player.PlayerGui |
| 1280 | Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset) | |
| 1281 | - | zoom = false |
| 1281 | + | Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1) |
| 1282 | CanUpdateGui = true | |
| 1283 | Update_Gui() | |
| 1284 | - | if key == "u" and Button1Down == false and canFire == true then |
| 1284 | + | Mouse.Button1Down:connect(function() |
| 1285 | - | if automatic == false and burst == false then |
| 1285 | + | if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then |
| 1286 | - | if switchToBurst == true then |
| 1286 | + | Mouse_Held = true |
| 1287 | - | burst = true |
| 1287 | + | while true do |
| 1288 | - | local m = Instance.new("Message", Player)
|
| 1288 | + | Can_Shoot = false |
| 1289 | - | m.Text = "Burst" |
| 1289 | + | Delay(0, function() |
| 1290 | - | pcall(function() Player.Character[Name].Handle.Switch:Play() end) |
| 1290 | + | local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3) |
| 1291 | - | delay(2.5, function() m:Remove() end) |
| 1291 | + | if not Aiming then |
| 1292 | - | elseif switchToAutomatic == true then |
| 1292 | + | Mouse.Icon = Settings.Icons.Fire1 |
| 1293 | - | automatic = true |
| 1293 | + | end |
| 1294 | - | local m = Instance.new("Message", Player)
|
| 1294 | + | wait(t) |
| 1295 | - | m.Text = "Automatic" |
| 1295 | + | if not Aiming then |
| 1296 | - | pcall(function() Player.Character[Name].Handle.Switch:Play() end) |
| 1296 | + | if Reloading then return end |
| 1297 | - | delay(2.5, function() m:Remove() end) |
| 1297 | + | Mouse.Icon = Settings.Icons.Fire2 |
| 1298 | end | |
| 1299 | - | elseif automatic == false and burst == true then |
| 1299 | + | wait(t) |
| 1300 | - | if switchToAutomatic == true then |
| 1300 | + | if not Aiming then |
| 1301 | - | automatic = true |
| 1301 | + | if Reloading then return end |
| 1302 | - | burst = false |
| 1302 | + | Mouse.Icon = Settings.Icons.Fire3 |
| 1303 | - | local m = Instance.new("Message", Player)
|
| 1303 | + | end |
| 1304 | - | m.Text = "Automatic" |
| 1304 | + | wait(t) |
| 1305 | - | pcall(function() Player.Character[Name].Handle.Switch:Play() end) |
| 1305 | + | if not Aiming then |
| 1306 | - | delay(2.5, function() m:Remove() end) |
| 1306 | + | if Reloading then return end |
| 1307 | - | elseif switchToSingle == true then |
| 1307 | + | Mouse.Icon = Settings.Icons.Idle |
| 1308 | - | burst = false |
| 1308 | + | end |
| 1309 | - | local m = Instance.new("Message", Player)
|
| 1309 | + | end) |
| 1310 | - | m.Text = "Single" |
| 1310 | + | if Settings.Smoke then |
| 1311 | - | pcall(function() Player.Character[Name].Handle.Switch:Play() end) |
| 1311 | + | for i, v in pairs(Settings.Smokes) do |
| 1312 | - | delay(2.5, function() m:Remove() end) |
| 1312 | + | local s = v[1]:Clone() |
| 1313 | s.Parent = Settings.SmokePart | |
| 1314 | - | elseif automatic == true and burst == false then |
| 1314 | + | s.Enabled = true |
| 1315 | - | if switchToSingle == true then |
| 1315 | + | game.Debris:AddItem(s, v[2]) |
| 1316 | - | automatic = false |
| 1316 | + | if v[3] then |
| 1317 | - | local m = Instance.new("Message", Player)
|
| 1317 | + | Delay(v[3], function() |
| 1318 | - | m.Text = "Single" |
| 1318 | + | s.Enabled = false |
| 1319 | - | pcall(function() Player.Character[Name].Handle.Switch:Play() end) |
| 1319 | + | end) |
| 1320 | - | delay(2.5, function() m:Remove() end) |
| 1320 | + | end |
| 1321 | - | elseif switchToBurst == true then |
| 1321 | + | end |
| 1322 | - | automatic = false |
| 1322 | + | end |
| 1323 | - | burst = true |
| 1323 | + | for _ = 1, Settings.Bullets do |
| 1324 | - | local m = Instance.new("Message", Player)
|
| 1324 | + | Fire(Mouse) |
| 1325 | - | m.Text = "Burst" |
| 1325 | + | end |
| 1326 | - | pcall(function() Player.Character[Name].Handle.Switch:Play() end) |
| 1326 | + | Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(math.abs(Settings.Recoil), 0, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude) |
| 1327 | - | delay(2.5, function() m:Remove() end) |
| 1327 | + | if Tool.Handle:FindFirstChild("Shoot") then
|
| 1328 | Tool.Handle.Shoot:Play() | |
| 1329 | end | |
| 1330 | Ammo.Value = Ammo.Value - 1 | |
| 1331 | wait(Settings.FireRate) | |
| 1332 | if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then | |
| 1333 | break | |
| 1334 | - | function onSelected(mouse) |
| 1334 | + | end |
| 1335 | - | if selected == true then return end |
| 1335 | + | end |
| 1336 | - | selected = true |
| 1336 | + | Can_Shoot = true |
| 1337 | - | canFire = false |
| 1337 | + | elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
|
| 1338 | - | mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" |
| 1338 | + | Tool.Handle.Click:Play() |
| 1339 | - | while Player.Character:FindFirstChild("WeaponActivated") ~= nil do
|
| 1339 | + | end |
| 1340 | - | if Player.Character.WeaponActivated.Value == nil then break end |
| 1340 | + | end) |
| 1341 | - | if Player.Character.WeaponActivated.Value.Parent == nil then break end |
| 1341 | + | Mouse.Button1Up:connect(function() |
| 1342 | Mouse_Held = false | |
| 1343 | end) | |
| 1344 | - | updateGui() |
| 1344 | + | Mouse.KeyDown:connect(function(Key) |
| 1345 | - | local weapon = Instance.new("ObjectValue")
|
| 1345 | + | if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then |
| 1346 | - | weapon.Name = "WeaponActivated" |
| 1346 | + | if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then |
| 1347 | - | weapon.Value = script.Parent |
| 1347 | + | return |
| 1348 | - | weapon.Parent = Player.Character |
| 1348 | + | end |
| 1349 | - | DisableLimb(1, Player.Character) |
| 1349 | + | Can_Shoot = false |
| 1350 | - | DisableLimb(2, Player.Character) |
| 1350 | + | Reloading = true |
| 1351 | - | ForceAngle(1, 0, Player.Character) |
| 1351 | + | local TextLabel = Gui.Frame.AmmoDisplay |
| 1352 | - | ForceAngle(2, 0, Player.Character) |
| 1352 | + | Delay(0, function() |
| 1353 | - | if dual == true then |
| 1353 | + | CanUpdateGui = false |
| 1354 | - | coroutine.resume(coroutine.create(function() playAnimation("leftEquip") end))
|
| 1354 | + | TextLabel.Text = "Reloading." |
| 1355 | - | playAnimation("rightEquip")
|
| 1355 | + | wait(Settings.ReloadTime/3) |
| 1356 | - | removeParts("LeftHolster")
|
| 1356 | + | if TextLabel then |
| 1357 | - | makeParts("LeftHand")
|
| 1357 | + | TextLabel.Text = "Reloading.." |
| 1358 | end | |
| 1359 | - | playAnimation("equip")
|
| 1359 | + | wait(Settings.ReloadTime/3) |
| 1360 | if TextLabel then | |
| 1361 | - | removeParts("RightHolster")
|
| 1361 | + | TextLabel.Text = "Reloading..." |
| 1362 | - | makeParts("RightHand")
|
| 1362 | + | end |
| 1363 | - | mouse.Button1Down:connect(function() onButton1Down(mouse) end) |
| 1363 | + | end) |
| 1364 | - | mouse.Button1Up:connect(function() onButton1Up(mouse) end) |
| 1364 | + | if Tool.Handle:FindFirstChild("Reload") then
|
| 1365 | - | mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end) |
| 1365 | + | Tool.Handle.Reload:Play() |
| 1366 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
| 1366 | + | end |
| 1367 | - | canFire = true |
| 1367 | + | Mouse.Icon = Settings.Icons.Reload |
| 1368 | wait(Settings.ReloadTime) | |
| 1369 | Mouse.Icon = Settings.Icons.Idle | |
| 1370 | CanUpdateGui = true | |
| 1371 | - | function onDeselected(mouse) |
| 1371 | + | local m = Settings.Ammo |
| 1372 | - | if selected == false then return end |
| 1372 | + | if Ammo.Value > 0 and Settings.IncludeChamberedBullet then |
| 1373 | - | Button1Down = false |
| 1373 | + | m = m + 1 |
| 1374 | - | while canFire == false do |
| 1374 | + | end |
| 1375 | if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then | |
| 1376 | Ammo.Value = Ammo.Value + StoredAmmo.Value | |
| 1377 | - | selected = false |
| 1377 | + | StoredAmmo.Value = 0 |
| 1378 | - | if dual == true then |
| 1378 | + | else |
| 1379 | - | if math.random(1, 2) == 1 then |
| 1379 | + | StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value) |
| 1380 | - | coroutine.resume(coroutine.create(function() playAnimation("leftUnequip") end))
|
| 1380 | + | Ammo.Value = m |
| 1381 | - | wait(math.random(1, 10) / 10) |
| 1381 | + | end |
| 1382 | - | playAnimation("rightUnequip")
|
| 1382 | + | Can_Shoot = true |
| 1383 | Reloading = false | |
| 1384 | - | coroutine.resume(coroutine.create(function() playAnimation("rightUnequip") end))
|
| 1384 | + | elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then |
| 1385 | - | wait(math.random(1, 10) / 10) |
| 1385 | + | Sprinting = true |
| 1386 | - | playAnimation("leftUnequip")
|
| 1386 | + | Character.Humanoid.WalkSpeed = Settings.SprintSpeed |
| 1387 | Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease | |
| 1388 | - | removeParts("LeftHand")
|
| 1388 | + | end |
| 1389 | - | makeParts("LeftHolster")
|
| 1389 | + | end) |
| 1390 | Mouse.KeyUp:connect(function(Key) | |
| 1391 | - | playAnimation("unequip")
|
| 1391 | + | if Key:upper() == Settings.SprintKey:upper() and Sprinting then |
| 1392 | Sprinting = false | |
| 1393 | - | removeParts("RightHand")
|
| 1393 | + | Character.Humanoid.WalkSpeed = 16 |
| 1394 | - | makeParts("RightHolster")
|
| 1394 | + | Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease |
| 1395 | - | ForceAngle(1, 0, Player.Character) |
| 1395 | + | Right_Weld.C0 = CFrame.new(0, -1.5, 0) |
| 1396 | - | ForceAngle(2, 0, Player.Character) |
| 1396 | + | end |
| 1397 | - | ResetLimbCFrame(1, Player.Character) |
| 1397 | + | end) |
| 1398 | - | ResetLimbCFrame(2, Player.Character) |
| 1398 | + | Mouse.Button2Down:connect(function() |
| 1399 | - | EnableLimb(1, Player.Character) |
| 1399 | + | if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then |
| 1400 | - | EnableLimb(2, Player.Character) |
| 1400 | + | Aiming = true |
| 1401 | - | silenced = false |
| 1401 | + | Mouse.Icon = Settings.Icons.Aim |
| 1402 | - | if Player.PlayerGui:FindFirstChild(Name) ~= nil then Player.PlayerGui[Name]:Remove() end |
| 1402 | + | if Settings.AimAnim.Enabled then |
| 1403 | - | if Player.Character:FindFirstChild("WeaponActivated") ~= nil then
|
| 1403 | + | Right_Weld.C1 = CFrame.new() |
| 1404 | - | if Player.Character.WeaponActivated.Value == script.Parent then |
| 1404 | + | Right_Weld.C0 = CFrame.new() |
| 1405 | - | Player.Character.WeaponActivated:Remove() |
| 1405 | + | Delay(0, function() |
| 1406 | Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)) | |
| 1407 | end) | |
| 1408 | - | while Player.Character:FindFirstChild("WeaponActivated") ~= nil do
|
| 1408 | + | Delay(0, function() |
| 1409 | - | if Player.Character.WeaponActivated.Value == nil then break end |
| 1409 | + | Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos) |
| 1410 | - | if Player.Character.WeaponActivated.Value.Parent == nil then break end |
| 1410 | + | end) |
| 1411 | Delay(0, function() | |
| 1412 | if Settings.ChangeFOV[1] then | |
| 1413 | Camera.FieldOfView = 70 | |
| 1414 | local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames | |
| 1415 | for i = 1, T_F do | |
| 1416 | - | if script.Parent.ClassName ~= "HopperBin" then |
| 1416 | + | local FOV = 70 - Cam_Dif/T_F * i |
| 1417 | - | if Player == nil then print("Error: Player not found!") return end
|
| 1417 | + | Camera.FieldOfView = FOV |
| 1418 | - | Tool = Instance.new("HopperBin")
|
| 1418 | + | wait(Settings.AimAnim.Time/Settings.AimAnim.Frames) |
| 1419 | - | Tool.Name = Name |
| 1419 | + | if not Aiming then |
| 1420 | - | Tool.Parent = Player.Backpack |
| 1420 | + | return |
| 1421 | - | script.Name = "Main" |
| 1421 | + | end |
| 1422 | - | script.Parent = Tool |
| 1422 | + | end |
| 1423 | - | elseif script.Parent.ClassName == "HopperBin" then |
| 1423 | + | Camera.FieldOfView = Settings.ChangeFOV[2] |
| 1424 | - | while script.Parent.Parent.ClassName ~= "Backpack" do |
| 1424 | + | end |
| 1425 | end) | |
| 1426 | else | |
| 1427 | - | if script.Parent:FindFirstChild("MagazineMax") == nil then
|
| 1427 | + | Right_Weld.C1 = CFrame.new() |
| 1428 | - | magazineMax = Instance.new("NumberValue")
|
| 1428 | + | Right_Weld.C0 = CFrame.new() |
| 1429 | - | magazineMax.Name = "MagazineMax" |
| 1429 | + | Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame) |
| 1430 | - | magazineMax.Value = 10000 |
| 1430 | + | Left_Weld.C1 = Settings.LeftAimPos |
| 1431 | - | magazineMax.Parent = script.Parent |
| 1431 | + | if Settings.ChangeFOV[1] then |
| 1432 | Camera.FieldOfView = Settings.ChangeFOV[2] | |
| 1433 | - | magazineMax = script.Parent.MagazineMax |
| 1433 | + | end |
| 1434 | end | |
| 1435 | - | if script.Parent:FindFirstChild("Magazine") == nil then
|
| 1435 | + | Tool.GripPos = Orig_Grip + Settings.AimGripOffset |
| 1436 | - | magazine = Instance.new("NumberValue")
|
| 1436 | + | Settings.Spread = Settings.Spread - Settings.SpreadReduction |
| 1437 | - | magazine.Name = "Magazine" |
| 1437 | + | end |
| 1438 | - | magazine.Value = 0 |
| 1438 | + | end) |
| 1439 | - | magazine.Parent = script.Parent |
| 1439 | + | Mouse.Button2Up:connect(function() |
| 1440 | if Aiming then | |
| 1441 | - | magazine = script.Parent.Magazine |
| 1441 | + | Mouse.Icon = Settings.Icons.Idle |
| 1442 | Tool.GripPos = Orig_Grip | |
| 1443 | - | if script.Parent:FindFirstChild("AmmoMax") == nil then
|
| 1443 | + | if Settings.AimAnim.Enabled then |
| 1444 | - | ammoMax = Instance.new("NumberValue")
|
| 1444 | + | Delay(0, function() |
| 1445 | - | ammoMax.Name = "AmmoMax" |
| 1445 | + | Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0)) |
| 1446 | - | ammoMax.Value = 1000000 |
| 1446 | + | end) |
| 1447 | - | ammoMax.Parent = script.Parent |
| 1447 | + | Delay(0, function() |
| 1448 | Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos) | |
| 1449 | - | ammoMax = script.Parent.AmmoMax |
| 1449 | + | end) |
| 1450 | else | |
| 1451 | - | if script.Parent:FindFirstChild("Ammo") == nil then
|
| 1451 | + | Right_Weld.C1 = Settings.RightPos |
| 1452 | - | ammo = Instance.new("NumberValue")
|
| 1452 | + | Right_Weld.C0 = CFrame.new(0, -1.5, 0) |
| 1453 | - | ammo.Name = "Ammo" |
| 1453 | + | Left_Weld.C1 = Settings.LeftPos |
| 1454 | - | ammo.Value = script.Parent.AmmoMax.Value |
| 1454 | + | end |
| 1455 | - | ammo.Parent = script.Parent |
| 1455 | + | if Settings.ChangeFOV[1] then |
| 1456 | Camera.FieldOfView = 70 | |
| 1457 | - | ammo = script.Parent.Ammo |
| 1457 | + | end |
| 1458 | Settings.Spread = Settings.Spread + Settings.SpreadReduction | |
| 1459 | - | Player = script.Parent.Parent.Parent |
| 1459 | + | Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 1460 | - | makeParts("RightHolster")
|
| 1460 | + | Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 1461 | - | script.Parent.Selected:connect(onSelected) |
| 1461 | + | wait(0.25) |
| 1462 | - | script.Parent.Deselected:connect(onDeselected) |
| 1462 | + | Aiming = false |
| 1463 | - | end |
| 1463 | + | end |
| 1464 | end) | |
| 1465 | wait() | |
| 1466 | Camera.Changed:connect(function() | |
| 1467 | if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then | |
| 1468 | Mouse.TargetFilter = workspace | |
| 1469 | Character.Torso.Neck.C1 = CFrame.new() | |
| 1470 | Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0) | |
| 1471 | end | |
| 1472 | end) | |
| 1473 | Mouse.Idle:connect(function() | |
| 1474 | if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then | |
| 1475 | Mouse.TargetFilter = workspace | |
| 1476 | Character.Torso.Neck.C1 = CFrame.new() | |
| 1477 | Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0) | |
| 1478 | end | |
| 1479 | end) | |
| 1480 | while wait() and Equipped do | |
| 1481 | if Sprinting then | |
| 1482 | Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset | |
| 1483 | Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset | |
| 1484 | elseif not Aiming then | |
| 1485 | Left_Weld.C0 = CFrame.new(0, -1.5, 0) | |
| 1486 | end | |
| 1487 | if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then | |
| 1488 | Mouse.TargetFilter = nil | |
| 1489 | Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1490 | Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1491 | end | |
| 1492 | end | |
| 1493 | end) | |
| 1494 | ||
| 1495 | local Arms_Made | |
| 1496 | local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model | |
| 1497 | ||
| 1498 | Tool.Equipped:connect(function(Mouse) | |
| 1499 | if Character and not Arms_Made then | |
| 1500 | Arms_Made = true | |
| 1501 | local Torso = Character.Torso | |
| 1502 | Torso["Right Shoulder"].Part1 = nil | |
| 1503 | Left_Weld = Instance.new("Weld", Torso)
| |
| 1504 | Left_Weld.Name = "Left_Weld" | |
| 1505 | Left_Weld.Part0 = Character.Head | |
| 1506 | Left_Weld.C0 = CFrame.new(0, -1.5, 0) | |
| 1507 | if not Settings.OneHanded then | |
| 1508 | Torso["Left Shoulder"].Part1 = nil | |
| 1509 | Left_Weld.Part1 = Character["Left Arm"] | |
| 1510 | end | |
| 1511 | Right_Weld = Instance.new("Weld", Torso)
| |
| 1512 | Right_Weld.Name = "Right_Weld" | |
| 1513 | Right_Weld.Part0 = Character.Head | |
| 1514 | Right_Weld.Part1 = Character["Right Arm"] | |
| 1515 | Right_Weld.C0 = CFrame.new(0, -1.5, 0) | |
| 1516 | Left_Weld.C1 = Settings.LeftPos | |
| 1517 | Right_Weld.C1 = Settings.RightPos | |
| 1518 | end | |
| 1519 | if Settings.FakeArms and not Fake_Arm_Right then | |
| 1520 | Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone() | |
| 1521 | Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom" | |
| 1522 | Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new() | |
| 1523 | local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
| |
| 1524 | for i = 1, 2 do | |
| 1525 | local w = Instance.new("Weld", fakeArms[i])
| |
| 1526 | w.Part0 = Character[fakeArms[i].Name] | |
| 1527 | w.Part1 = fakeArms[i] | |
| 1528 | fakeArms[i].Transparency = Settings.FakeArmTransparency | |
| 1529 | end | |
| 1530 | Fake_Arm_Model = Instance.new("Model", Camera)
| |
| 1531 | Fake_Arm_Right.Parent = Fake_Arm_Model | |
| 1532 | if not Settings.OneHanded then | |
| 1533 | Fake_Arm_Left.Parent = Fake_Arm_Model | |
| 1534 | end | |
| 1535 | Fake_Arm_Model.Name = "FakeArms" | |
| 1536 | if Settings.CharacterMeshes then | |
| 1537 | for i, v in pairs(Character:GetChildren()) do | |
| 1538 | if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
| |
| 1539 | v:Clone().Parent = Fake_Arm_Model | |
| 1540 | end | |
| 1541 | end | |
| 1542 | end | |
| 1543 | if Character:FindFirstChild("Shirt") then
| |
| 1544 | Instance.new("Humanoid", Fake_Arm_Model)
| |
| 1545 | Character.Shirt:Clone().Parent = Fake_Arm_Model | |
| 1546 | else | |
| 1547 | local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
| |
| 1548 | Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(5, 10, 5) | |
| 1549 | local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
| |
| 1550 | Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(5, 10, 5) | |
| 1551 | end | |
| 1552 | end | |
| 1553 | end) | |
| 1554 | ||
| 1555 | Tool.Unequipped:connect(function() | |
| 1556 | Equipped = false | |
| 1557 | Tool.GripPos = Orig_Grip | |
| 1558 | Aiming = false | |
| 1559 | Settings.Spread = Orig_Spread | |
| 1560 | if Settings.ChangeFOV[1] then | |
| 1561 | Camera.FieldOfView = 70 | |
| 1562 | end | |
| 1563 | if Gui then | |
| 1564 | Gui:Destroy() | |
| 1565 | Gui = nil | |
| 1566 | end | |
| 1567 | for i, v in pairs(Tool.Handle:GetChildren()) do | |
| 1568 | if v:IsA("Sound") then
| |
| 1569 | v:Stop() | |
| 1570 | end | |
| 1571 | end | |
| 1572 | if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then | |
| 1573 | Fake_Arm_Model:Destroy() | |
| 1574 | Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil | |
| 1575 | end | |
| 1576 | if Character and Left_Weld and Right_Weld then | |
| 1577 | Arms_Made = false | |
| 1578 | local Torso = Character.Torso | |
| 1579 | Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"] | |
| 1580 | Left_Weld:Destroy() | |
| 1581 | Right_Weld:Destroy() | |
| 1582 | end | |
| 1583 | Sprinting = false | |
| 1584 | Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1585 | Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1586 | Character.Humanoid.WalkSpeed = 16 | |
| 1587 | end) | |
| 1588 | ||
| 1589 | end,o103) | |
| 1590 | end)) | |
| 1591 | o104.Name = "Ammo" | |
| 1592 | o104.Parent = o103 | |
| 1593 | o104.Value = 30 | |
| 1594 | o105.Name = "StoredAmmo" | |
| 1595 | o105.Parent = o103 | |
| 1596 | o105.Value = 1200 | |
| 1597 | o106.Name = "Gui" | |
| 1598 | o106.Parent = o103 | |
| 1599 | o107.Parent = o106 | |
| 1600 | o107.Position = UDim2.new(1,-200,1,-100) | |
| 1601 | o107.Size = UDim2.new(0,100,0,100) | |
| 1602 | o107.Position = UDim2.new(1,-200,1,-100) | |
| 1603 | o107.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1604 | o107.BackgroundTransparency = 1 | |
| 1605 | o107.BorderSizePixel = 0 | |
| 1606 | o108.Name = "AmmoDisplay" | |
| 1607 | o108.Parent = o107 | |
| 1608 | o108.Size = UDim2.new(1,0,1,0) | |
| 1609 | o108.Text = "" | |
| 1610 | o108.BackgroundTransparency = 1 | |
| 1611 | o108.FontSize = Enum.FontSize.Size24 | |
| 1612 | o108.TextColor3 = Color3.new(0.917647, 0.917647, 0.917647) | |
| 1613 | o108.TextStrokeTransparency = 0.5 | |
| 1614 | o108.TextXAlignment = Enum.TextXAlignment.Right | |
| 1615 | o109.Parent = o103 | |
| 1616 | o109.Size = 0.30000001192093 | |
| 1617 | o109.Color = Color3.new(0.372549, 0.372549, 0.372549) | |
| 1618 | o109.Enabled = false | |
| 1619 | o109.Opacity = 0.30000001192093 | |
| 1620 | o109.RiseVelocity = 15 | |
| 1621 | o110.Name = "Smoke1" | |
| 1622 | o110.Parent = o103 | |
| 1623 | o110.Size = 0.10000000149012 | |
| 1624 | o110.Color = Color3.new(1, 0.6, 0.2) | |
| 1625 | o110.Enabled = false | |
| 1626 | o110.Opacity = 0.40000000596046 | |
| 1627 | o110.RiseVelocity = 3 | |
| 1628 | mas.Parent = workspace | |
| 1629 | mas:MakeJoints() | |
| 1630 | local mas1 = mas:GetChildren() | |
| 1631 | for i=1,#mas1 do | |
| 1632 | mas1[i].Parent = game:GetService("Players").owner.Backpack
| |
| 1633 | ypcall(function() mas1[i]:MakeJoints() end) | |
| 1634 | end | |
| 1635 | mas:Destroy() | |
| 1636 | for i=1,#cors do | |
| 1637 | c |