Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By Rufus14
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Script1 = Instance.new("Script")
- LocalScript2 = Instance.new("LocalScript")
- RemoteEvent3 = Instance.new("RemoteEvent")
- Model4 = Instance.new("Model")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Part12 = Instance.new("Part")
- Part13 = Instance.new("Part")
- Part14 = Instance.new("Part")
- Part15 = Instance.new("Part")
- Part16 = Instance.new("Part")
- Part17 = Instance.new("Part")
- Part18 = Instance.new("Part")
- Part19 = Instance.new("Part")
- Part20 = Instance.new("Part")
- Part21 = Instance.new("Part")
- Weld22 = Instance.new("Weld")
- Weld23 = Instance.new("Weld")
- Weld24 = Instance.new("Weld")
- Part25 = Instance.new("Part")
- Model26 = Instance.new("Model")
- Part27 = Instance.new("Part")
- Weld28 = Instance.new("Weld")
- Part29 = Instance.new("Part")
- Part30 = Instance.new("Part")
- Part31 = Instance.new("Part")
- Part32 = Instance.new("Part")
- Part33 = Instance.new("Part")
- Part34 = Instance.new("Part")
- Part35 = Instance.new("Part")
- Part36 = Instance.new("Part")
- Part37 = Instance.new("Part")
- Part38 = Instance.new("Part")
- Part39 = Instance.new("Part")
- Part40 = Instance.new("Part")
- Part41 = Instance.new("Part")
- Part42 = Instance.new("Part")
- Part43 = Instance.new("Part")
- Part44 = Instance.new("Part")
- Part45 = Instance.new("Part")
- Part46 = Instance.new("Part")
- Part47 = Instance.new("Part")
- Part48 = Instance.new("Part")
- Part49 = Instance.new("Part")
- Part50 = Instance.new("Part")
- Part51 = Instance.new("Part")
- Part52 = Instance.new("Part")
- Part53 = Instance.new("Part")
- Part54 = Instance.new("Part")
- Part55 = Instance.new("Part")
- Part56 = Instance.new("Part")
- Part57 = Instance.new("Part")
- Part58 = Instance.new("Part")
- Part59 = Instance.new("Part")
- Part60 = Instance.new("Part")
- Part61 = Instance.new("Part")
- Part62 = Instance.new("Part")
- Part63 = Instance.new("Part")
- Part64 = Instance.new("Part")
- Part65 = Instance.new("Part")
- Part66 = Instance.new("Part")
- Part67 = Instance.new("Part")
- Part68 = Instance.new("Part")
- Part69 = Instance.new("Part")
- Part70 = Instance.new("Part")
- Part71 = Instance.new("Part")
- Part72 = Instance.new("Part")
- Part73 = Instance.new("Part")
- Part74 = Instance.new("Part")
- Model75 = Instance.new("Model")
- Part76 = Instance.new("Part")
- Part77 = Instance.new("Part")
- Weld78 = Instance.new("Weld")
- Part79 = Instance.new("Part")
- Part80 = Instance.new("Part")
- Part81 = Instance.new("Part")
- Part82 = Instance.new("Part")
- Part83 = Instance.new("Part")
- Part84 = Instance.new("Part")
- Part85 = Instance.new("Part")
- Part86 = Instance.new("Part")
- Part87 = Instance.new("Part")
- Part88 = Instance.new("Part")
- Part89 = Instance.new("Part")
- Part90 = Instance.new("Part")
- Part91 = Instance.new("Part")
- Part92 = Instance.new("Part")
- Part93 = Instance.new("Part")
- Part94 = Instance.new("Part")
- Part95 = Instance.new("Part")
- Part96 = Instance.new("Part")
- Part97 = Instance.new("Part")
- Model98 = Instance.new("Model")
- Part99 = Instance.new("Part")
- Part100 = Instance.new("Part")
- Weld101 = Instance.new("Weld")
- Weld102 = Instance.new("Weld")
- Weld103 = Instance.new("Weld")
- Part104 = Instance.new("Part")
- Part105 = Instance.new("Part")
- Part106 = Instance.new("Part")
- Part107 = Instance.new("Part")
- Part108 = Instance.new("Part")
- Part109 = Instance.new("Part")
- Part110 = Instance.new("Part")
- Part111 = Instance.new("Part")
- Part112 = Instance.new("Part")
- Weld113 = Instance.new("Weld")
- Weld114 = Instance.new("Weld")
- Weld115 = Instance.new("Weld")
- Weld116 = Instance.new("Weld")
- Weld117 = Instance.new("Weld")
- Weld118 = Instance.new("Weld")
- Weld119 = Instance.new("Weld")
- Weld120 = Instance.new("Weld")
- Weld121 = Instance.new("Weld")
- Weld122 = Instance.new("Weld")
- Weld123 = Instance.new("Weld")
- Weld124 = Instance.new("Weld")
- Weld125 = Instance.new("Weld")
- Weld126 = Instance.new("Weld")
- Weld127 = Instance.new("Weld")
- Weld128 = Instance.new("Weld")
- Weld129 = Instance.new("Weld")
- Weld130 = Instance.new("Weld")
- Weld131 = Instance.new("Weld")
- Weld132 = Instance.new("Weld")
- Weld133 = Instance.new("Weld")
- Weld134 = Instance.new("Weld")
- Weld135 = Instance.new("Weld")
- Weld136 = Instance.new("Weld")
- Weld137 = Instance.new("Weld")
- Weld138 = Instance.new("Weld")
- Weld139 = Instance.new("Weld")
- Weld140 = Instance.new("Weld")
- Weld141 = Instance.new("Weld")
- Weld142 = Instance.new("Weld")
- Weld143 = Instance.new("Weld")
- Weld144 = Instance.new("Weld")
- Weld145 = Instance.new("Weld")
- Weld146 = Instance.new("Weld")
- Weld147 = Instance.new("Weld")
- Weld148 = Instance.new("Weld")
- Weld149 = Instance.new("Weld")
- Weld150 = Instance.new("Weld")
- Weld151 = Instance.new("Weld")
- Weld152 = Instance.new("Weld")
- Weld153 = Instance.new("Weld")
- Weld154 = Instance.new("Weld")
- Weld155 = Instance.new("Weld")
- Weld156 = Instance.new("Weld")
- Weld157 = Instance.new("Weld")
- Weld158 = Instance.new("Weld")
- Weld159 = Instance.new("Weld")
- Weld160 = Instance.new("Weld")
- Weld161 = Instance.new("Weld")
- Weld162 = Instance.new("Weld")
- Weld163 = Instance.new("Weld")
- Weld164 = Instance.new("Weld")
- Weld165 = Instance.new("Weld")
- Weld166 = Instance.new("Weld")
- Weld167 = Instance.new("Weld")
- Weld168 = Instance.new("Weld")
- Weld169 = Instance.new("Weld")
- Weld170 = Instance.new("Weld")
- Weld171 = Instance.new("Weld")
- Weld172 = Instance.new("Weld")
- Weld173 = Instance.new("Weld")
- Weld174 = Instance.new("Weld")
- Weld175 = Instance.new("Weld")
- Weld176 = Instance.new("Weld")
- Weld177 = Instance.new("Weld")
- Weld178 = Instance.new("Weld")
- Weld179 = Instance.new("Weld")
- Weld180 = Instance.new("Weld")
- Weld181 = Instance.new("Weld")
- Weld182 = Instance.new("Weld")
- Weld183 = Instance.new("Weld")
- Weld184 = Instance.new("Weld")
- Weld185 = Instance.new("Weld")
- Weld186 = Instance.new("Weld")
- Weld187 = Instance.new("Weld")
- Weld188 = Instance.new("Weld")
- Weld189 = Instance.new("Weld")
- Weld190 = Instance.new("Weld")
- Weld191 = Instance.new("Weld")
- Weld192 = Instance.new("Weld")
- Weld193 = Instance.new("Weld")
- Weld194 = Instance.new("Weld")
- Weld195 = Instance.new("Weld")
- Weld196 = Instance.new("Weld")
- Weld197 = Instance.new("Weld")
- Weld198 = Instance.new("Weld")
- Weld199 = Instance.new("Weld")
- Weld200 = Instance.new("Weld")
- Weld201 = Instance.new("Weld")
- Weld202 = Instance.new("Weld")
- Weld203 = Instance.new("Weld")
- Weld204 = Instance.new("Weld")
- Weld205 = Instance.new("Weld")
- Weld206 = Instance.new("Weld")
- Part207 = Instance.new("Part")
- Part208 = Instance.new("Part")
- Part209 = Instance.new("Part")
- Part210 = Instance.new("Part")
- Part211 = Instance.new("Part")
- Part212 = Instance.new("Part")
- Folder213 = Instance.new("Folder")
- NumberValue214 = Instance.new("NumberValue")
- NumberValue215 = Instance.new("NumberValue")
- NumberValue216 = Instance.new("NumberValue")
- NumberValue217 = Instance.new("NumberValue")
- NumberValue218 = Instance.new("NumberValue")
- StringValue219 = Instance.new("StringValue")
- NumberValue220 = Instance.new("NumberValue")
- NumberValue221 = Instance.new("NumberValue")
- ScreenGui222 = Instance.new("ScreenGui")
- TextLabel223 = Instance.new("TextLabel")
- TextLabel224 = Instance.new("TextLabel")
- TextLabel225 = Instance.new("TextLabel")
- Tool0.Name = "FB Beryl"
- Tool0.Parent = mas
- Tool0.RequiresHandle = false
- Script1.Name = "server"
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- --By Rufus14, first attempt at making a real fps framework
- local players = game:GetService("Players")
- local runservice = game:GetService("RunService")
- local tweenservice = game:GetService("TweenService")
- local debris = game:GetService("Debris")
- local easingstyles = Enum.EasingStyle
- local easingdirs = Enum.EasingDirection
- local tool = script.Parent
- local remote = tool:WaitForChild("gunremote")
- local gunmodel = tool.GunModel
- local handle = gunmodel:FindFirstChild("Handle")
- local mainpart = gunmodel:FindFirstChild("mainpart")
- local owner
- local character
- local mathr = math.random
- local state = "unequipped"
- _G.gundebugserver = false
- --tick validators
- local equiptick
- --character limbs
- local larm
- local rarm
- local lleg
- local rleg
- local head
- local torso
- local hrp
- --character welds
- local larmw
- local rarmw
- local llegw
- local rlegw
- local headw
- local torsow
- --gun welds
- local boltw = mainpart:WaitForChild("boltweld")
- local magw = mainpart:WaitForChild("magweld")
- local trigw = mainpart:WaitForChild("triggerweld")
- local rightgrip
- --gun parts
- local lufa = gunmodel:WaitForChild("lufa")
- local boltmodel = gunmodel:WaitForChild("bolt")
- local magmodel = gunmodel:WaitForChild("mag")
- local boltpart = boltmodel:WaitForChild("boltpart")
- --vars
- local weldbholestoanchoredparts = false --when you repeatedly weld new stuff to lets say a base it will start bouncing people up
- local headrotationx = 0
- local adsing = false
- local sprinte = false
- local savedws
- local headoffset = Instance.new("Weld", handle)
- headoffset.Name = "headoffsetholder"
- headoffset.C0 = CFrame.new()
- local movehead = true
- local rayignore = {}
- --ignore table stuff
- workspace.DescendantAdded:Connect(function(WHAT)
- if WHAT:IsA("Accessory") or WHAT:IsA("Hat") or WHAT.Name == "HumanoidRootPart" then
- --print("added "..WHAT.Name)
- table.insert(rayignore, WHAT)
- elseif WHAT:IsA("BasePart") and not WHAT.CanCollide and not WHAT.Parent:FindFirstChildOfClass("Humanoid") then
- --print("found nocollide")
- table.insert(rayignore, WHAT)
- end
- end)
- workspace.DescendantRemoving:Connect(function(WHAT)
- local findthing = table.find(rayignore, WHAT)
- if findthing then
- --print("removed "..WHAT.Name)
- table.remove(rayignore, findthing)
- end
- end)
- for i,v in pairs(workspace:GetDescendants()) do
- if v:IsA("Accessory") or v:IsA("Hat") or v.Name == "HumanoidRootPart" then
- --print("added "..v.Name.." on start")
- table.insert(rayignore, v)
- elseif v:IsA("BasePart") and not v.CanCollide and not v.Parent:FindFirstChildOfClass("Humanoid") then
- --print("found nocollide on start")
- table.insert(rayignore, v)
- end
- end
- --sounds
- soundsdisabledfromrefit = {""}
- local boltpsound = Instance.new("Sound", handle)
- boltpsound.SoundId = "rbxassetid://456267525"
- boltpsound.Volume = 0.8
- boltpsound.Name = "boltpsound"
- boltpsound.RollOffMinDistance = 1
- boltpsound.RollOffMaxDistance = 300
- local shellsound = Instance.new("Sound", handle)
- shellsound.SoundId = "rbxassetid://2712533735"
- shellsound.Volume = 0.5
- shellsound.Name = "shellsound"
- shellsound.RollOffMinDistance = 1
- shellsound.RollOffMaxDistance = 300
- local magoutsound = Instance.new("Sound", handle)
- magoutsound.SoundId = "rbxassetid://268445237"
- magoutsound.Volume = 0.8
- magoutsound.Name = "magoutsound"
- magoutsound.RollOffMinDistance = 1
- magoutsound.RollOffMaxDistance = 300
- local maginsound = Instance.new("Sound", handle)
- maginsound.SoundId = "rbxassetid://2546411966"
- maginsound.Volume = 0.8
- maginsound.Name = "magoutsound"
- maginsound.RollOffMinDistance = 1
- maginsound.RollOffMaxDistance = 300
- local magreachsound = Instance.new("Sound", handle)
- magreachsound.SoundId = "rbxassetid://7329457810"
- magreachsound.Volume = 3
- magreachsound.Name = "magreachsound"
- magreachsound.RollOffMinDistance = 1
- magreachsound.RollOffMaxDistance = 300
- local shootsound = Instance.new("Sound", handle)
- shootsound.SoundId = "rbxassetid://6530496628"
- shootsound.Volume = 1.5
- shootsound.Name = "shootsound"
- shootsound.RollOffMinDistance = 1
- shootsound.RollOffMaxDistance = 300
- --i am doing each individual sound for concrete just so vsb sandbox will make it sound less scuffed
- concretesoundtick = tick()
- local hitconcrete = Instance.new("Sound", handle)
- hitconcrete.SoundId = "rbxassetid://6962153997"
- hitconcrete.Volume = 1
- hitconcrete.Name = "hitcsound"
- hitconcrete.RollOffMinDistance = 1
- hitconcrete.RollOffMaxDistance = 200
- hitcsounds = {"6962154328", "6962154691", "6962155378", "6962153997"}
- function playsound(sound, timep, playbacks, volume)
- pcall(function() -- so the script wont die if someone renames sounds/attempts to play something that isnt a sound
- sound.TimePosition = timep
- sound.PlaybackSpeed = playbacks
- sound.Volume = volume
- sound:Play()
- end)
- end
- --[[handle.ChildRemoved:Connect(function(WHAT) --antinosound
- if WHAT.ClassName == "Sound" and not table.find(soundsdisabledfromrefit, WHAT.Name) then
- local backups = Instance.new("Sound", handle)
- backups.SoundId = WHAT.SoundId
- backups.Volume = WHAT.Volume
- backups.Name = WHAT.Name
- end
- end)--]]
- --bullet data
- local settingsfolder = tool:WaitForChild("settings")
- local bchambered = settingsfolder:WaitForChild("bchambered")
- local binmag = settingsfolder:WaitForChild("inmag")
- local gunspeed = settingsfolder:WaitForChild("speed")
- local magleft = settingsfolder:WaitForChild("magleft")
- local bspeed = settingsfolder:WaitForChild("bspeed")
- local maxpen = settingsfolder:WaitForChild("maxwpenetration")
- local maxmagcap = settingsfolder:WaitForChild("maxmagcapacity")
- local bulletholetime = 10
- local shellflytime = 0.5
- local shellfallspeed = 80
- --ragdoll data
- ragdolldespawntime = 10
- --shot data
- local lasttimeshot = tick()
- ragdollbullettable = {}
- --damage values
- damagelimbs = {
- ["Left Arm"] = 15,
- ["Right Arm"] = 15,
- ["Left Leg"] = 25,
- ["Right Leg"] = 25,
- ["Torso"] = 35,
- ["HumanoidRootPart"] = 35,
- ["UpperTorso"] = 35,
- ["LowerTorso"] = 30,
- ["Head"] = 80,
- }
- --pose tables
- poses = {
- equip = {
- [1] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
- hw = {CFrame.new(-0.0665130615, 0, -0.0558013916, 0.764023483, -0.133021921, 0.631326377, 0.0301536229, 0.984807849, 0.17100969, -0.644483387, -0.111618645, 0.756427288), easingstyles.Sine, easingdirs.In},
- gw = {CFrame.new(-0.612442017, -0.0641784668, 0.243187428, -0.190242305, 0.981636524, -0.0140367029, 0.97735244, 0.188023433, -0.0971002579, -0.0926780254, -0.0321914665, -0.99517554), easingstyles.Sine, easingdirs.In},
- tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Sine, easingdirs.In},
- raw = {CFrame.new(0.981407166, -0.690696716, -1.01522064, 0.98480767, 0.173648074, 7.82310963e-08, 3.98025719e-08, 3.57627869e-07, -0.99999994, -0.173648164, 0.98480767, 3.27825546e-07), easingstyles.Sine, easingdirs.In},
- law = {CFrame.new(-0.00226593018, -0.8416152, -2.39169312, -0.0137151666, -0.502738416, 0.864329815, 0.969466627, -0.218347415, -0.111618571, 0.244839087, 0.836407959, 0.490382791), easingstyles.Sine, easingdirs.In},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.In},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.In}
- },
- [2] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Linear, easingdirs.InOut},
- hw = {CFrame.new(-0.0665130615, 0, -0.0558013916, 0.764023662, -0.133021936, 0.631326437, 0.0301536229, 0.984807849, 0.17100969, -0.644483507, -0.111618653, 0.756427407), easingstyles.Linear, easingdirs.InOut},
- gw = {CFrame.new(-0.672363281, -0.433959961, 0.294300914, -0.216361552, 0.971516311, -0.0966561288, 0.963123441, 0.196173027, -0.184126943, -0.159921542, -0.132930249, -0.97813797), easingstyles.Linear, easingdirs.InOut},
- tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Linear, easingdirs.InOut},
- raw = {CFrame.new(1.03038406, -0.790250301, -0.73740387, 0.98480773, 0.172303915, -0.0215636268, 4.28408384e-08, -0.124180116, -0.992259502, -0.173648149, 0.977184474, -0.122293577), easingstyles.Linear, easingdirs.InOut},
- law = {CFrame.new(-0.00227355957, -0.841616631, -2.39168549, -0.0574795455, -0.499630094, 0.864329934, 0.946747363, -0.302011132, -0.111618534, 0.316805094, 0.811885834, 0.490382493), easingstyles.Linear, easingdirs.InOut},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Linear, easingdirs.InOut},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Linear, easingdirs.InOut}
- },
- [3] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Sine, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Sine, easingdirs.Out},
- tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Sine, easingdirs.Out},
- raw = {CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08), easingstyles.Sine, easingdirs.Out},
- law = {CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457), easingstyles.Sine, easingdirs.Out},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.Out},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.Out}
- }
- },
- shoot = {
- [1] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
- tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516) * CFrame.Angles(0,-math.rad(2.5),0), easingstyles.Back, easingdirs.Out},
- raw = {CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08) * CFrame.new(0,0.1,0) * CFrame.Angles(0,0,-math.rad(2.5)), easingstyles.Back, easingdirs.Out},
- law = {CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457) * CFrame.new(0.05,0.1,0.05), easingstyles.Back, easingdirs.Out},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Back, easingdirs.Out},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Back, easingdirs.Out},
- },
- [2] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
- tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Back, easingdirs.Out},
- raw = {CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08), easingstyles.Back, easingdirs.Out},
- law = {CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457), easingstyles.Back, easingdirs.Out},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Back, easingdirs.Out},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Back, easingdirs.Out},
- }
- },
- reload = {
- [1] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.InOut},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.766044319, -0.11161875, 0.633022487, -3.7252903e-08, 0.984807789, 0.17364797, -0.642787755, -0.133022055, 0.754406393), easingstyles.Sine, easingdirs.InOut},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.InOut},
- tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319), easingstyles.Sine, easingdirs.InOut},
- raw = {CFrame.new(1.26604462, -0.913009644, -0.537094116, 0.999999821, -3.57627869e-07, 6.27093755e-08, 4.48221016e-10, -0.173648104, -0.984807611, 3.85997794e-07, 0.984807551, -0.173648149), easingstyles.Sine, easingdirs.InOut},
- law = {CFrame.new(-1.08869362, -1.33496189, -1.19934082, 0.766044259, 4.22527791e-10, -0.642787695, -0.111618742, 0.98480767, -0.133021995, 0.633022428, 0.17364791, 0.754406333), easingstyles.Sine, easingdirs.InOut},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.InOut},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.InOut}
- },
- [2] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.864329457, -0.11161875, 0.490383387, 0.03015358, 0.984807789, 0.171009868, -0.502021194, -0.133022055, 0.854564071), easingstyles.Sine, easingdirs.In},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
- tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319), easingstyles.Sine, easingdirs.In},
- raw = {CFrame.new(1.11267471, -0.963647842, -0.780944824, 0.96286577, 0.230811596, -0.140053496, -0.10095071, -0.173324212, -0.979677141, -0.250395477, 0.957436204, -0.143587425), easingstyles.Sine, easingdirs.In},
- law = {CFrame.new(-0.289166451, -0.800122261, -1.59056854, 0.533511698, -0.820919991, -0.203605846, -0.0797704309, 0.190816656, -0.978378952, 0.842022419, 0.53821826, 0.0363177806), easingstyles.Sine, easingdirs.In},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.In},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.In}
- },
- [3] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.Out},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.Out},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.Out},
- tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319), easingstyles.Sine, easingdirs.Out},
- raw = {CFrame.new(0.951341629, -1.00614738, -0.96661377, 0.887119889, 0.393562078, -0.241094485, -0.185951054, -0.173324212, -0.967150807, -0.422421396, 0.902810454, -0.0805761442), easingstyles.Sine, easingdirs.Out},
- law = {CFrame.new(-0.798740387, -0.729963303, -1.94239807, 0.788041711, -0.601489127, -0.131151706, -0.0967602059, 0.0893746093, -0.991286814, 0.60796994, 0.793865442, 0.0122306943), easingstyles.Sine, easingdirs.Out},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.Out},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.Out}
- },
- [4] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.In},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
- tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319 ), easingstyles.Sine, easingdirs.In},
- raw = {CFrame.new(0.951341629, -1.00614738, -0.96661377, 0.887119889, 0.393562078, -0.241094485, -0.185951054, -0.173324212, -0.967150807, -0.422421396, 0.902810454, -0.0805761442), easingstyles.Sine, easingdirs.In},
- law = {CFrame.new(-0.733897209, -0.698638916, -1.94715118, 0.733374, -0.676505506, -0.0670995787, -0.0810378194, 0.0110032074, -0.996650279, 0.67497766, 0.736355007, -0.0467530787) * CFrame.Angles(0.15,0,0), easingstyles.Sine, easingdirs.In},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.In},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.In}
- },
- [5] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.In},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
- tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319), easingstyles.Sine, easingdirs.In},
- raw = {CFrame.new(0.956790924, -0.985137939, -0.964424133, 0.887119889, 0.382671088, -0.258031964, -0.185951054, -0.215345785, -0.95867002, -0.422421396, 0.898436666, -0.119879492), easingstyles.Sine, easingdirs.In},
- law = {CFrame.new(-0.702912331, -0.529985428, -1.91860962, 0.691018224, -0.696123064, -0.194694132, -0.3362284, -0.0711144507, -0.939091682, 0.639877796, 0.714391232, -0.28319779), easingstyles.Sine, easingdirs.In},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.In},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.In}
- }
- },
- --individual poses
- reloadmag = {
- [1] = {
- mag = {CFrame.new(0.383216858, 0.00605773926, -0.895876884, 0.982579589, -0.0196594987, -0.184799746, 0.0194191728, 0.999806643, -0.00311047747, 0.184825167, -0.000532366452, 0.982771337), easingstyles.Sine, easingdirs.In}
- },
- [2] = {
- mag = {CFrame.new(-0.341659546, -0.00597381592, -0.82459569, 0.943051159, -0.0805884004, 0.32273832, 0.108094886, 0.99179846, -0.0682025552, -0.314594954, 0.0992048606, 0.944027781) * CFrame.new(-0.2,0,0), easingstyles.Sine, easingdirs.Out}
- },
- [3] = {
- mag = {CFrame.new(-0.343078613, 0.033826828, -0.555139065, 0.931312561, -0.056615673, 0.359807789, 0.0651112646, 0.997804642, -0.0115158707, -0.358372539, 0.0341522247, 0.932950974) * CFrame.Angles(0,0.3,0) * CFrame.new(-0.2,0,0), easingstyles.Sine, easingdirs.In}
- },
- [4] = {
- mag = {CFrame.new(-0.226425171, 0.0250015259, -0.604773998, 0.984800279, 1.56462193e-06, 0.173645124, 1.68196857e-06, 0.999979436, -5.66244125e-07, -0.173649177, -8.04662704e-07, 0.984803438), easingstyles.Sine, easingdirs.Out}
- }
- },
- ads = {
- [1] = {
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Sine, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Sine, easingdirs.Out},
- tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Sine, easingdirs.Out},
- raw = {CFrame.new(-0.35,0,0) * CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08), easingstyles.Sine, easingdirs.Out},
- law = {CFrame.new(-0.35,0,0) * CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457), easingstyles.Sine, easingdirs.Out},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.Out},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.Out}
- },
- [2] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
- tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516) * CFrame.Angles(0,-math.rad(2.5),0), easingstyles.Back, easingdirs.Out},
- raw = {CFrame.new(-0.35,0,0) * CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08) * CFrame.new(0,0.1,0) * CFrame.Angles(0,0,-math.rad(2.5)), easingstyles.Back, easingdirs.Out},
- law = {CFrame.new(-0.35,0,0) * CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457) * CFrame.new(0.05,0.1,0.05), easingstyles.Back, easingdirs.Out},
- llw = {CFrame.new(-0.5,-2,0), easingstyles.Back, easingdirs.Out},
- rlw = {CFrame.new(0.5,-2,0), easingstyles.Back, easingdirs.Out},
- }
- }
- }
- function weld(part0, part1, name, c0)
- local welfunc
- pcall(function()
- welfunc = Instance.new("Weld", part0)
- welfunc.Part0 = part0
- welfunc.Part1 = part1
- welfunc.Name = name
- welfunc.C0 = c0
- end)
- return welfunc
- end
- function tween(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime, WHAT, goal)
- local info = TweenInfo.new(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime)
- local goals = goal
- local anim = tweenservice:Create(WHAT, info, goals)
- anim:Play()
- end
- function cpose(posename, clientpose, clientposenum, speed, backupt)
- if equiptick == backupt then
- tween(speed, posename.raw[2], posename.raw[3], 0, false, 0, rarmw, {C0 = posename.raw[1]})
- tween(speed, posename.law[2], posename.law[3], 0, false, 0, larmw, {C0 = posename.law[1]})
- tween(speed, posename.gw[2], posename.gw[3], 0, false, 0, rightgrip, {C0 = posename.gw[1]})
- tween(speed, posename.tw[2], posename.tw[3], 0, false, 0, torsow, {C0 = posename.tw[1]})
- tween(speed, posename.hw[2], posename.hw[3], 0, false, 0, headoffset, {C0 = posename.hw[1]})
- tween(speed, posename.bw[2], posename.bw[3], 0, false, 0, boltw, {C0 = posename.bw[1]})
- remote:FireClient(owner, "fromserverpose", clientpose, clientposenum, speed)
- end
- --tween(speed, easingstylee, easingdirss, 0, false, 0, llegw, {C0 = currentpose.llw})
- --tween(speed, easingstylee, easingdirss, 0, false, 0, rlegw, {C0 = currentpose.rlw})
- end
- function cindividualpose(posename, weld, clientpose, clientposenum, clientposedir, speed, backupt)
- if equiptick == backupt then
- tween(speed, posename[2], posename[3], 0, false, 0, weld, {C0 = posename[1]})
- remote:FireClient(owner, "fromserverindividualpose", clientpose, clientposenum, clientposedir, speed)
- end
- end
- function push(fromWHAT, WHAT, force, debriss)
- if WHAT:FindFirstChild("pushedgunv") then WHAT.pushedgunv:Destroy() end
- local v = Instance.new("BodyVelocity", WHAT)
- v.Name = "pushedgunv"
- v.MaxForce = Vector3.new(1/0,0,1/0)
- v.Velocity = (WHAT.Position - fromWHAT).unit*force
- debris:AddItem(v, debriss)
- end
- function pemit(part, color, minsize, maxsize, minlift, maxlift, speed, direction, lifetime)
- pcall(function() --tusk has a particle emitter limit thats why im pcalling
- local em = Instance.new("ParticleEmitter", part)
- em.Color = ColorSequence.new(color)
- em.Texture = "rbxassetid://375847957"
- em.Name = "gemit"
- em.Drag = 10
- em.EmissionDirection = direction
- em.Speed = NumberRange.new(speed)
- em.Rate = 500
- em.Lifetime = NumberRange.new(minlift,maxlift)
- em.SpreadAngle = Vector2.new(-20,20)
- em.Transparency = NumberSequence.new(0.75, 1)
- em.Size = NumberSequence.new(minsize, maxsize)
- task.spawn(function()
- task.wait(lifetime)
- em.Enabled = false
- debris:AddItem(em, 0.5)
- end)
- end)
- end
- function muzzleflash(size, transparency)
- local e = Instance.new("SpawnLocation", gunmodel) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
- table.insert(rayignore, e)
- e.Enabled = false
- Instance.new("SpecialMesh", e).MeshType = Enum.MeshType.Sphere
- local lig = Instance.new("PointLight", e)
- lig.Brightness = 1-transparency
- lig.Name = "mflash"
- e.Size = size
- e.Name = "muzzleflash"
- e.Transparency = transparency
- e.CanCollide = false
- e.Anchored = true
- e.Material = Enum.Material.Neon
- e.CFrame = lufa.CFrame * CFrame.new((-size.x/2)-0.3,0,0)
- pemit(lufa, Color3.fromRGB(255,255,255), 0.15, 0.35, 0.1, 0.2, 10, "Left", 0.1)
- debris:AddItem(e, 0.025)
- end
- function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, du)
- local connection = Instance.new('BallSocketConstraint', limb)
- local bone = Instance.new("Part", limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.TwistLimitsEnabled = true
- connection.TwistLowerAngle = twistlower
- connection.TwistUpperAngle = twistupper
- bone:BreakJoints()
- local bonew = Instance.new("Weld", bone)
- bonew.Part0 = limb
- bonew.Part1 = bone
- bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
- if limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
- bone.Size = Vector3.new(limb.Size.y/1.8,limb.Size.z,limb.Size.x)
- else
- bone.Size = Vector3.new(limb.Size.y/3,limb.Size.z,limb.Size.x)
- end
- bone.Transparency = 1
- bone.Shape = "Cylinder"
- local noc = Instance.new("NoCollisionConstraint", bone)
- noc.Part0 = attachementone.Parent
- noc.Part1 = attachmenttwo.Parent
- debris:AddItem(bone, du)
- debris:AddItem(connection, du)
- end
- function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper, du)
- local connection = Instance.new('HingeConstraint', limb)
- local bone = Instance.new("Part", limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.LimitsEnabled = true
- connection.LowerAngle = lower
- connection.UpperAngle = upper
- bone:BreakJoints()
- local bonew = Instance.new("Weld", bone)
- bonew.Part0 = limb
- bonew.Part1 = bone
- bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
- if limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
- bone.Size = Vector3.new(limb.Size.y/1.8,limb.Size.z,limb.Size.x)
- elseif limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R15 then
- bone.Size = Vector3.new(limb.Size.y/3,limb.Size.z,limb.Size.x)
- elseif limb.Name == "Head" then
- bone.Size = Vector3.new(limb.Size.y/5,limb.Size.z,limb.Size.x)
- end
- bone.Transparency = 1
- bone.Shape = "Cylinder"
- local noc = Instance.new("NoCollisionConstraint", bone)
- noc.Part0 = attachementone.Parent
- noc.Part1 = attachmenttwo.Parent
- debris:AddItem(bone, du)
- debris:AddItem(connection, du)
- end
- function makeragdolllimbr6(limb, dudetorso, at1pos, at2pos, lowt, upt, duratio)
- local at1 = Instance.new("Attachment", dudetorso)
- local at2 = Instance.new("Attachment", limb)
- at1.Position = at1pos
- at2.Position = at2pos
- makeballconnections(limb, at1, at2, lowt, upt, duratio)
- debris:AddItem(at1, duratio)
- debris:AddItem(at2, duratio)
- end
- function ragdollify(pushpart, ch, duration, dea)
- local chum = ch:FindFirstChildOfClass("Humanoid")
- if chum then
- if not chum.PlatformStand then
- chum.PlatformStand = true
- if dea then
- for i,v in pairs(ch:GetDescendants()) do
- if v:IsA("Motor6D") then
- v:Destroy()
- end
- end
- for i,v in pairs(ragdollbullettable) do
- local clweld = Instance.new("Weld", v[1])
- clweld.Part0 = v[1]
- clweld.Part1 = v[2]
- clweld.C0 = v[3]
- end
- for i,v in pairs(ragdollbullettable) do
- ragdollbullettable[i] = nil
- end
- local hpsc = ch:FindFirstChild("Health")
- if hpsc then
- if hpsc:IsA("Script") then
- hpsc.Disabled = true
- end
- end
- if ch:FindFirstChild("HumanoidRootPart") then
- ch:FindFirstChild("HumanoidRootPart"):Destroy()
- end
- push(pushpart, ch.Head, 10, 0.3)
- debris:AddItem(ch, ragdolldespawntime)
- elseif ch:FindFirstChild("HumanoidRootPart") then
- if ch:FindFirstChild("HumanoidRootPart").CanCollide then
- ch:FindFirstChild("HumanoidRootPart").CanCollide = false
- coroutine.wrap(function()
- task.wait(duration)
- if ch:FindFirstChild("HumanoidRootPart") then
- ch:FindFirstChild("HumanoidRootPart").CanCollide = true
- end
- end)()
- end
- end
- local savedglue = {}
- local mainpart
- if chum.RigType == Enum.HumanoidRigType.R6 then
- local chtor = ch.Torso
- mainpart = chtor
- if not dea then
- for i,v in pairs(chtor:GetChildren()) do
- if v:IsA("Motor6D") then
- if v.Part0 ~= nil and v.Part1 ~= nil and v.Part1.Name ~= "Head" and v.Part0.Name ~= "HumanoidRootPart" then
- table.insert(savedglue, {v, v.Part0, v.Part1})
- v.Part1 = nil
- v.Part0 = nil
- end
- end
- end
- end
- pcall(function()
- makeragdolllimbr6(ch["Right Arm"], ch.Torso, Vector3.new((ch.Torso.Size.x/2) + (ch.Torso.Size.x/4), (ch.Torso.Size.y/4), 0), Vector3.new(0,ch["Right Arm"].Size.y/4,0), -180, 180, duration)
- end)
- pcall(function()
- makeragdolllimbr6(ch["Left Arm"], ch.Torso, Vector3.new(-(ch.Torso.Size.x/2) - (ch.Torso.Size.x/4), (ch.Torso.Size.y/4), 0), Vector3.new(0,ch["Left Arm"].Size.y/4,0), -180, 180, duration)
- end)
- pcall(function()
- makeragdolllimbr6(ch["Left Leg"], ch.Torso, Vector3.new(-(ch.Torso.Size.x/4), -(ch.Torso.Size.y/2), 0), Vector3.new(0,ch["Left Leg"].Size.y/2,0), -80, 80, duration)
- end)
- pcall(function()
- makeragdolllimbr6(ch["Right Leg"], ch.Torso, Vector3.new((ch.Torso.Size.x/4), -(ch.Torso.Size.y/2), 0), Vector3.new(0,ch["Right Leg"].Size.y/2,0), -80, 80, duration)
- end)
- if dea == true and not ch:FindFirstChild("diedbydecapitation") then
- if ch.Torso:findFirstChild("NeckAttachment") then
- local headattachment = Instance.new("Attachment", ch.Head)
- headattachment.Position = Vector3.new(0,-ch.Head.Size.y/2,0)
- makehingeconnections(ch.Head, headattachment, ch.Torso.NeckAttachment, -50, 50, ragdolldespawntime)
- else
- local wed = Instance.new("Weld", ch.Head)
- wed.Part1 = ch.Head
- wed.Part0 = ch.Torso
- wed.C0 = CFrame.new(0,(ch.Torso.Size.y/2)+(ch.Head.Size.y/2),0)
- end
- end
- if not dea then
- coroutine.wrap(function()
- task.wait(duration)
- for i,v in pairs(savedglue) do
- v[1].Part0 = v[2]
- v[1].Part1 = v[3]
- savedglue[i] = nil
- end
- chum.PlatformStand = false
- end)()
- end
- elseif chum.RigType == Enum.HumanoidRigType.R15 then
- local chuppertor = ch.UpperTorso
- mainpart = chuppertor
- if not dea then
- for i,v in pairs(ch:GetDescendants()) do
- if v:IsA("Motor6D") then
- if v.Part0 ~= nil and v.Part1 ~= nil and v.Part1.Name ~= "Head" and v.Part0.Name ~= "HumanoidRootPart" then
- table.insert(savedglue, {v, v.Part0, v.Part1})
- v.Part1 = nil
- v.Part0 = nil
- end
- end
- end
- end
- if dea == true and not ch:FindFirstChild("diedbydecapitation") then
- if ch.UpperTorso:findFirstChild("NeckAttachment") then
- local HeadAttachment = Instance.new("Attachment", ch.Head)
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- makehingeconnections(ch.Head, HeadAttachment, ch.UpperTorso.NeckAttachment, -50, 50, ragdolldespawntime)
- else
- local wed = Instance.new("Weld", ch.Head)
- wed.Part1 = ch.Head
- wed.Part0 = ch.UpperTorso
- wed.C0 = CFrame.new(0,(ch.UpperTorso.Size.y/2)+(ch.Head.Size.y/2),0)
- end
- end
- pcall(function()
- makehingeconnections(ch.LowerTorso, ch.LowerTorso.WaistRigAttachment, ch.UpperTorso.WaistRigAttachment, -50, 50, duration)
- makeballconnections(ch.LeftUpperArm, ch.LeftUpperArm.LeftShoulderRigAttachment, ch.UpperTorso.LeftShoulderRigAttachment, -200, 200, duration)
- makehingeconnections(ch.LeftLowerArm, ch.LeftLowerArm.LeftElbowRigAttachment, ch.LeftUpperArm.LeftElbowRigAttachment, 0, -60, duration)
- makehingeconnections(ch.LeftHand, ch.LeftHand.LeftWristRigAttachment, ch.LeftLowerArm.LeftWristRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.RightUpperArm, ch.RightUpperArm.RightShoulderRigAttachment, ch.UpperTorso.RightShoulderRigAttachment, -200, 200, duration)
- makehingeconnections(ch.RightLowerArm, ch.RightLowerArm.RightElbowRigAttachment, ch.RightUpperArm.RightElbowRigAttachment, 0, -60, duration)
- makehingeconnections(ch.RightHand, ch.RightHand.RightWristRigAttachment, ch.RightLowerArm.RightWristRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.RightUpperLeg, ch.RightUpperLeg.RightHipRigAttachment, ch.LowerTorso.RightHipRigAttachment, -80, 80, duration)
- makehingeconnections(ch.RightLowerLeg, ch.RightLowerLeg.RightKneeRigAttachment, ch.RightUpperLeg.RightKneeRigAttachment, 0, 60, duration)
- makehingeconnections(ch.RightFoot, ch.RightFoot.RightAnkleRigAttachment, ch.RightLowerLeg.RightAnkleRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.LeftUpperLeg, ch.LeftUpperLeg.LeftHipRigAttachment, ch.LowerTorso.LeftHipRigAttachment, -80, 80, duration)
- makehingeconnections(ch.LeftLowerLeg, ch.LeftLowerLeg.LeftKneeRigAttachment, ch.LeftUpperLeg.LeftKneeRigAttachment, 0, 60, duration)
- makehingeconnections(ch.LeftFoot, ch.LeftFoot.LeftAnkleRigAttachment, ch.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20, duration)
- end)
- if not dea then
- coroutine.wrap(function()
- task.wait(duration)
- for i,v in pairs(savedglue) do
- v[1].Part0 = v[2]
- v[1].Part1 = v[3]
- savedglue[i] = nil
- end
- chum.PlatformStand = false
- end)()
- end
- end
- if dea then
- for i,v in pairs(ch:GetChildren()) do
- if v:IsA("Accessory") then
- if v:FindFirstChild("Handle") then
- local attachment1 = v.Handle:FindFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(ch:GetChildren()) do
- if w:IsA("Part") then
- local attachment2 = w:FindFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function getwalldepth(rhitpos, dir, penamount, wall)
- local rparams = RaycastParams.new()
- rparams.FilterType = Enum.RaycastFilterType.Whitelist
- rparams.FilterDescendantsInstances = {wall}
- local startpos = rhitpos + (rhitpos - dir).unit * penamount
- local castdir = startpos + (startpos - rhitpos).unit * -((startpos - rhitpos).magnitude)
- local depthray = workspace:Raycast(startpos, (startpos - castdir).unit*-penamount, rparams)
- --[[local l = Instance.new('Part', workspace)
- l.Size = Vector3.new(0.4,0.4,0.4)
- l.CFrame = CFrame.new(startpos)
- l.BrickColor = BrickColor.Red()
- l.Material = "Neon"
- l.Anchored = true
- local l = Instance.new('Part', workspace)
- l.Size = Vector3.new(0.4,0.4,0.4)
- l.CFrame = CFrame.new(castdir)
- l.BrickColor = BrickColor.new("New Yeller")
- l.Material = "Neon"
- l.Anchored = true--]]
- if depthray then
- --[[local l = Instance.new('Part', workspace)
- l.Size = Vector3.new(0.4,0.4,0.4)
- l.CFrame = CFrame.new(depthray.Position)
- l.BrickColor = BrickColor.new("Lime green")
- l.Material = "Neon"
- l.Anchored = true--]]
- return true, depthray.Position, startpos, depthray.Normal
- end
- end
- function dropshell()
- local shell = Instance.new("SpawnLocation", gunmodel) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
- table.insert(rayignore, shell)
- shell.Enabled = false
- shell.Name = "shell;"
- shell.Shape = "Cylinder"
- shell.Size = Vector3.new(0.25,0.1,0.1)
- shell.BrickColor = BrickColor.new("New Yeller")
- shell.Material = "Glass"
- shell.Anchored = true
- shell.CanCollide = false
- shell.CFrame = boltpart.CFrame * CFrame.new(0.1,0,0)
- shell:BreakJoints()
- local shellfunc
- local shelltimepassed = 0
- local playedshells = false
- local currentshelly = math.random(1,10)/5
- local currentshellx = math.random(8,15)
- local ejectlookv = boltpart.CFrame.upVector
- local ejectrightv = boltpart.CFrame.rightVector
- shellfunc = runservice.Stepped:Connect(function(_, delta)
- shelltimepassed = shelltimepassed + delta
- shell.CFrame = CFrame.new(shell.Position, shell.Position+ejectlookv)
- * CFrame.new(0,currentshelly*delta,-currentshellx*delta)
- shell.CFrame = CFrame.new(shell.Position, shell.Position+ejectrightv)
- * CFrame.Angles(0,math.pi/2,0)
- currentshelly = currentshelly - delta*shellfallspeed
- if shelltimepassed > shellflytime then
- shell:Destroy()
- shellfunc:Disconnect()
- elseif shelltimepassed > shellflytime/2 and not playedshells then
- playedshells = true
- playsound(shellsound, 0, 1+mathr(-10,10)/65, 0.5)
- end
- end)
- end
- function pullbolt(btick)
- cpose(poses.equip[1], "equip", 1, 0.25, btick)
- task.wait(0.25)
- if state ~= "unequipped" then
- playsound(boltpsound, 0, 1+mathr(-10,10)/70, 0.5)
- end
- cpose(poses.equip[2], "equip", 2, 0.15, btick)
- task.wait(0.15)
- if equiptick == btick then
- if bchambered.Value > 0 then
- bchambered.Value = bchambered.Value - 1
- dropshell()
- end
- if binmag.Value > 0 then
- bchambered.Value = bchambered.Value + 1
- binmag.Value = binmag.Value - 1
- end
- end
- if adsing then
- cpose(poses.ads[1], "aim", 1, 0.4, btick)
- else
- cpose(poses.equip[3], "equip", 3, 0.3, btick)
- end
- end
- function bullethole(rhitpos, normal, hitthing)
- local hol = Instance.new("SpawnLocation", workspace) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
- table.insert(rayignore, hol)
- hol.Enabled = false
- hol.CanCollide = false
- hol.Color = Color3.fromRGB()
- hol.Shape = "Cylinder"
- hol.Name = "bhole"
- hol.Size = Vector3.new(0.02,0.2,0.2)
- hol:BreakJoints()
- hol.CFrame = CFrame.new(rhitpos, rhitpos+normal) * CFrame.Angles(0,math.pi/2,0)
- debris:AddItem(hol, bulletholetime)
- if not hitthing.Anchored or hitthing.Anchored and weldbholestoanchoredparts then
- local holwel = Instance.new("Weld", hitthing)
- holwel.C0 = hitthing.CFrame:ToObjectSpace(hol.CFrame)
- holwel.Part0 = hitthing
- holwel.Name = "bholeweld"
- holwel.Part1 = hol
- if hitthing.Parent:FindFirstChildOfClass("Humanoid") then
- hol.BrickColor = BrickColor.new("Maroon")
- hol.Material = "Pebble"
- pemit(hol, Color3.fromRGB(100,0,0), 0.15, 0.35, 0.1, 0.2, 10, "Right", 0.1)
- else
- pemit(hol, hitthing.Color, 0.15, 0.35, 0.1, 0.2, 10, "Right", 0.1)
- end
- debris:AddItem(holwel, bulletholetime)
- else
- hol.Anchored = true
- end
- pcall(function() --vsb sound limit workaround
- concretesoundtick = tick()
- local backuptickconcrete = concretesoundtick
- hitconcrete.SoundId = "rbxassetid://"..hitcsounds[math.random(1,#hitcsounds)]
- if not table.find(soundsdisabledfromrefit, hitconcrete.Name) then
- table.insert(soundsdisabledfromrefit, hitconcrete.Name)
- end
- hitconcrete.Parent = hol
- hitconcrete:Play()
- task.spawn(function()
- task.wait(0.5)
- if concretesoundtick == backuptickconcrete then
- hitconcrete.Parent = handle
- hitconcrete:Stop()
- table.remove(soundsdisabledfromrefit, table.find(soundsdisabledfromrefit, hitconcrete.Name))
- end
- end)
- end)
- end
- function clonemag(parent, name)
- local clonedmag = magmodel:Clone()
- local clonedmagpart = clonedmag:WaitForChild("magpart")
- clonedmag.Name = name
- clonedmag.Parent = parent
- return clonedmag, clonedmagpart
- end
- remote.OnServerEvent:Connect(function(WHO, WHAT, param1)
- if WHO == owner then
- local backupremottick = equiptick
- local ownercharhum = character:FindFirstChildOfClass("Humanoid")
- if WHAT == "1" then
- headrotationx = param1
- local tiltvalue = math.clamp(headrotationx, -1, 0)
- tween(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, headw, {C0 = CFrame.new(0,1,0) * headoffset.C0 * CFrame.Angles(headrotationx,0,tiltvalue/1.5) * CFrame.new(0,0.5,0)})
- elseif WHAT == "2" and state == "idle" and tick() > ((lasttimeshot + gunspeed.Value) - 0.008) and bchambered.Value > 0 then
- lasttimeshot = tick()
- local hrpv = hrp.Velocity.Magnitude
- --
- remote:FireClient(owner, "recoil")
- muzzleflash(Vector3.new(2,0.6,0.6), math.random(1,15)/10)
- --
- if adsing then
- cpose(poses.ads[2], "shoot", 1, 0.07, backupremottick)
- else
- cpose(poses.shoot[1], "shoot", 1, 0.07, backupremottick)
- end
- --
- playsound(shootsound, 0, 1+mathr(-10,10)/65, 1)
- playsound(boltpsound, 0, 1.5+mathr(-10,10)/65, 1.5)
- --the bullet
- dropshell()
- bchambered.Value = bchambered.Value - 1
- local hitsomething = false
- local currentbspeed = bspeed.Value
- local currentbYspeed = 0
- local bulletefunction
- local bullett = Instance.new("SpawnLocation", workspace) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
- table.insert(rayignore, bullett)
- bullett.Enabled = false
- Instance.new("SpecialMesh", bullett).MeshType = Enum.MeshType.Sphere
- bullett.Size = Vector3.new(bspeed.Value/5,0.25,0.25)
- bullett.Transparency = 0.3
- bullett.CanCollide = false
- bullett.Anchored = true
- bullett.Name = "bull"
- bullett.Material = Enum.Material.Neon
- bullett.CFrame = CFrame.new(lufa.Position, param1)
- * CFrame.Angles(math.rad(math.random(-hrpv,hrpv)/10),(-math.pi/2)+math.rad(math.random(-hrpv,hrpv)/10),0)
- * CFrame.new(-bullett.Size.x/2,0,0)
- local battach = Instance.new("Attachment", bullett)
- battach.Position = Vector3.new(bullett.Size.x/2,0,0)
- battach.Visible = false
- local currentpenamount = maxpen.Value
- local pushfrompos = bullett.CFrame.p
- local rparam = RaycastParams.new()
- rparam.FilterDescendantsInstances = rayignore
- rparam.FilterType = Enum.RaycastFilterType.Blacklist
- bulletefunction = runservice.Stepped:Connect(function(_,b)
- local currentlookv = bullett.CFrame.rightVector
- local raye = workspace:Raycast(battach.WorldPosition, (bullett.CFrame.rightVector*(-currentbspeed*b*31)), rparam)
- local rpos = battach.Position + (bullett.CFrame.rightVector*(-currentbspeed*b*31))
- --[[local l = Instance.new('Part', character)
- l.Size = Vector3.new(0.2,0.2,(battach.WorldPosition - rpos).magnitude)
- l.Material = "Neon"
- l.BrickColor = BrickColor.Red()
- l.CFrame = CFrame.new(Vector3.new(), battach.WorldPosition+rpos) * CFrame.new(0,0,(battach.WorldPosition - rpos).magnitude/2)
- l.Anchored = true
- game.Debris:AddItem(l, 0.05)--]]
- --print((battach.WorldPosition - (battach.WorldPosition + bullett.CFrame.rightVector*(-currentbspeed*b*30))).magnitude)
- if raye then
- --print(raye.Instance.Parent == table.find(rayignore, raye.Instance.Parent))
- --print("HIT "..raye.Instance.Name.." "..raye.Instance.Parent.Name)
- local destroybullet = false
- local hithum = raye.Instance.Parent:FindFirstChildOfClass("Humanoid")
- bullethole(raye.Position, raye.Normal, raye.Instance)
- if hithum then
- currentpenamount = currentpenamount + 0.3
- local takedamage = damagelimbs[raye.Instance.Name]
- if not takedamage then
- takedamage = 15
- end
- if hithum.Health > 2000 then
- hithum.MaxHealth = 500
- hithum.Health = 500
- end
- if hithum.Health <= takedamage and hithum.Health > 0 then
- hithum.Parent.Archivable = true
- for i,v in pairs(hithum.Parent:GetDescendants()) do
- if v:IsA("Sound") then
- v:Destroy()
- elseif v:IsA("Weld") and v.Name == "bholeweld" then
- table.insert(ragdollbullettable, {v.Part0, v.Part1, v.C0})
- end
- end
- hithum.Health = 0
- local clr = hithum.Parent:Clone()
- for i,v in pairs(hithum.Parent:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("ForceField") or v:IsA("Accessory") or v:IsA("Hat") then
- v:Destroy()
- end
- end
- clr.Parent = workspace
- ragdollify(raye.Position, clr, ragdolldespawntime, true)
- elseif raye.Instance.Name == "Head" then
- push(raye.Position, raye.Instance, 10, 0.3)
- ragdollify(raye.Position, hithum.Parent, 0.8, false)
- end
- hithum.Health = hithum.Health - takedamage
- end
- local canpierce, pierceendpoint, piercelookpoint, piercenormal = getwalldepth(raye.Position, battach.WorldPosition + bullett.CFrame.rightVector, currentpenamount, raye.Instance)
- if hithum then
- currentpenamount = currentpenamount - 0.3
- end
- if canpierce then
- local wallthicknessmag = (raye.Position - pierceendpoint).magnitude
- bullett.CFrame = CFrame.new(pierceendpoint, piercelookpoint) * CFrame.Angles(math.random(-20,20)/400,(-math.pi/2)+math.random(-20,20)/400,0) * CFrame.new(-bullett.Size.x/1.9,0,0)
- currentpenamount = currentpenamount - wallthicknessmag
- currentbspeed = currentbspeed - wallthicknessmag*5
- if currentbspeed > 0 then
- bullethole(pierceendpoint, piercenormal, raye.Instance)
- end
- elseif currentbspeed > 0 and currentpenamount > 0 and not hithum then --deflect
- local reflec = raye.Position - currentlookv - ((1+(math.random(1,10)/10)) * currentlookv:Dot(raye.Normal) * -raye.Normal)
- pushfrompos = reflec
- bullett.CFrame = CFrame.new(raye.Position, reflec) * CFrame.Angles(0,-math.pi/2,0) * CFrame.new(-bullett.Size.x/2,0,0)
- currentbspeed = currentbspeed - (currentbspeed/10)
- currentpenamount = currentpenamount - (0.25+(currentpenamount)/10)
- else
- destroybullet = true
- end
- if destroybullet then
- bullett:Destroy()
- bulletefunction:Disconnect()
- end
- else
- bullett.CFrame = bullett.CFrame * CFrame.new((-currentbspeed)*b*30,0,0)
- if currentbYspeed < 3 then
- bullett.CFrame = bullett.CFrame * CFrame.Angles(0,0,(currentbYspeed/10)*b*30)
- end
- end
- currentbspeed = currentbspeed - (10*b)
- currentbYspeed = currentbYspeed + (0.25*b)
- bullett.Size = Vector3.new(currentbspeed/5,0.25,0.25)
- battach.Position = Vector3.new(bullett.Size.x/2,0,0)
- if currentbspeed < 0 then
- bullett:Destroy()
- bulletefunction:Disconnect()
- end
- end)
- --
- task.wait(0.07)
- --
- if binmag.Value > 0 then
- bchambered.Value = bchambered.Value + 1
- binmag.Value = binmag.Value - 1
- end
- if adsing then
- cpose(poses.ads[1], "shoot", 2, 0.05, backupremottick)
- else
- cpose(poses.shoot[2], "shoot", 2, 0.1, backupremottick)
- end
- --
- task.wait(gunspeed.Value-0.07)
- elseif WHAT == "3" and state == "idle" then
- state = "pullingbolt"
- pullbolt(backupremottick)
- state = "idle"
- elseif WHAT == "4" and state == "idle" then
- state = "reloading"
- cpose(poses.reload[1], "reload", 1, 0.3, backupremottick)
- task.wait(0.3)
- if magleft.Value > 0 and state == "reloading" then
- playsound(magreachsound, 0, 1+mathr(-10,10)/65, 2.5)
- local handmagmo, handmagpart = clonemag(gunmodel, "reloadserver")
- local handmagw = Instance.new("Weld", handmagmo)
- handmagw.Name = "handmagweld"
- handmagw.Part0 = mainpart
- handmagw.Part1 = handmagpart
- handmagw.C0 = CFrame.new(0.771263123, -2.07442856, -2.45114708, 0.108410954, 0.822345078, -0.558561325, -0.0455624163, 0.565389991, 0.823553741, 0.993062019, -0.0638353601, 0.0987635553)
- cpose(poses.reload[2], "reload", 2, 0.25, backupremottick)
- cindividualpose(poses.reloadmag[1].mag, handmagw, "reloadmag", 1, "mag", 0.25, backupremottick)
- task.wait(0.25)
- if state == "reloading" then
- playsound(magoutsound, 0, 1+mathr(-10,10)/65, 0.8)
- cpose(poses.reload[3], "reload", 3, 0.1, backupremottick)
- cindividualpose(poses.reloadmag[2].mag, handmagw, "reloadmag", 2, "mag", 0.1, backupremottick)
- local flingmagmo, flingmagpart = clonemag(gunmodel, "throwserver")
- flingmagpart:SetNetworkOwner(owner)
- local magv = Instance.new("BodyVelocity", flingmagpart)
- magv.MaxForce = Vector3.new(1/0,1/0,1/0)
- magv.Velocity = hrp.CFrame.lookVector*math.random(15,20)
- local magav = Instance.new("BodyAngularVelocity", flingmagpart)
- magav.MaxTorque = Vector3.new(1/0,1/0,1/0)
- magav.AngularVelocity = hrp.CFrame.rightVector*math.random(15,20)
- debris:AddItem(magv, 0.1)
- debris:AddItem(flingmagmo, 0.5)
- for i,v in pairs(magmodel:GetChildren()) do
- if v:IsA("BasePart") then
- v.Transparency = 1
- end
- end
- end
- task.wait(0.1)
- cpose(poses.reload[4], "reload", 4, 0.15, backupremottick)
- cindividualpose(poses.reloadmag[3].mag, handmagw, "reloadmag", 3, "mag", 0.15, backupremottick)
- task.wait(0.15)
- cpose(poses.reload[5], "reload", 5, 0.2, backupremottick)
- cindividualpose(poses.reloadmag[4].mag, handmagw, "reloadmag", 4, "mag", 0.2, backupremottick)
- if state == "reloading" then
- playsound(maginsound, 0, 1+mathr(-10,10)/65, 0.8)
- end
- task.wait(0.2)
- handmagmo:Destroy()
- for i,v in pairs(magmodel:GetChildren()) do
- if v:IsA("BasePart") then
- v.Transparency = 0
- end
- end
- if equiptick == backupremottick then
- magleft.Value = magleft.Value - 1
- binmag.Value = maxmagcap.Value
- end
- end
- if bchambered.Value <= 0 then
- pullbolt(backupremottick)
- task.wait(0.25)
- else
- if adsing then
- cpose(poses.ads[1], "aim", 1, 0.45, backupremottick)
- else
- cpose(poses.equip[3], "equip", 3, 0.45, backupremottick)
- end
- end
- state = "idle"
- elseif WHAT == "5" and state ~= "unequipped" then
- adsing = param1
- --if state == "idle" then
- if adsing then
- cpose(poses.ads[1], "aim", 1, 0.4, backupremottick)
- savedws = 16
- ownercharhum.WalkSpeed = 10
- else
- cpose(poses.equip[3], "equip", 3, 0.3, backupremottick)
- if not sprinte then
- ownercharhum.WalkSpeed = savedws
- end
- end
- --end
- elseif WHAT == "6" and state ~= "unequipped" then
- sprinte = param1
- if sprinte then
- savedws = 16
- ownercharhum.WalkSpeed = 21
- else
- ownercharhum.WalkSpeed = savedws
- end
- end
- end
- end)
- tool.Equipped:Connect(function()
- state = "equipping"
- equiptick = tick()
- local backuptick = equiptick
- owner = players:GetPlayerFromCharacter(tool.Parent)
- character = owner.Character
- table.insert(rayignore, character)
- torso = character:WaitForChild("Torso")
- larm = character:FindFirstChild("Left Arm")
- rarm = character:FindFirstChild("Right Arm")
- lleg = character:FindFirstChild("Left Leg")
- rleg = character:FindFirstChild("Right Leg")
- head = character:FindFirstChild("Head")
- hrp = character:FindFirstChild("HumanoidRootPart")
- --anims sound and stuff
- rightgrip = weld(rarm, handle, "RightGrip", CFrame.new(-0.612442017, -0.0641784668, 0.243187428, -0.190242305, 0.981636524, -0.0140367029, 0.97735244, 0.188023433, -0.0971002579, -0.0926780254, -0.0321914665, -0.99517554))
- headw = weld(torso, head, "HeadWeld", CFrame.new(0,1.5,0))
- larmw = weld(head, larm, "LeftArmWeld", CFrame.new(-1.5,-1.5,0))
- rarmw = weld(head, rarm, "RightArmWeld", CFrame.new(1.5,-1.5,0))
- torsow = weld(hrp, torso, "HumanoidRootPartWeld", CFrame.new())
- if bchambered.Value <= 0 and binmag.Value > 0 then
- pullbolt(backuptick)
- else
- cpose(poses.equip[3], "equip", 3, 0.3, backuptick)
- task.wait(0.25)
- end
- if state == "equipping" and equiptick == backuptick then
- state = "idle"
- end
- end)
- tool.Unequipped:Connect(function()
- state = "unequipped"
- if adsing or sprinte then
- character:FindFirstChildOfClass("Humanoid").WalkSpeed = savedws
- end
- adsing = false
- table.remove(rayignore, table.find(rayignore, character))
- pcall(function()
- headw.Parent = nil
- end)
- pcall(function()
- larmw.Parent = nil
- end)
- pcall(function()
- torsow.Parent = nil
- end)
- pcall(function()
- rarmw.Parent = nil
- end)
- pcall(function()
- rightgrip.Parent = nil
- end)
- pcall(function()
- --llegw.Parent = nil
- end)
- pcall(function()
- --rlegw.Parent = nil
- end)
- end)
- end))
- LocalScript2.Name = "client"
- LocalScript2.Parent = Tool0
- table.insert(cors,sandbox(LocalScript2,function()
- end))
- RemoteEvent3.Name = "gunremote"
- RemoteEvent3.Parent = Tool0
- Model4.Name = "GunModel"
- Model4.Parent = Tool0
- Part5.Parent = Model4
- Part5.CFrame = CFrame.new(-63.8624954, 3.07564092, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part5.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part5.Position = Vector3.new(-63.862495422363, 3.0756409168243, -54.175640106201)
- Part5.Rotation = Vector3.new(-90, 0, 0)
- Part5.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part5.Size = Vector3.new(0.12499971687794, 0.20000000298023, 0.20000000298023)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Smoky grey")
- Part5.CanCollide = false
- Part5.Material = Enum.Material.Metal
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Smoky grey")
- Part6.Parent = Model4
- Part6.CFrame = CFrame.new(-65.6743927, 3.14950848, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part6.Orientation = Vector3.new(5, -90, 90)
- Part6.Position = Vector3.new(-65.674392700195, 3.1495084762573, -54.175998687744)
- Part6.Rotation = Vector3.new(90, -85, -180)
- Part6.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part6.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Sand green")
- Part6.CanCollide = false
- Part6.Material = Enum.Material.Metal
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Sand green")
- Part7.Parent = Model4
- Part7.CFrame = CFrame.new(-67.75, 3.26064062, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part7.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part7.Position = Vector3.new(-67.75, 3.2606406211853, -54.175640106201)
- Part7.Rotation = Vector3.new(-90, 0, 0)
- Part7.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part7.Size = Vector3.new(0.29999947547913, 0.14760001003742, 0.029999997466803)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Smoky grey")
- Part7.CanCollide = false
- Part7.Material = Enum.Material.Metal
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Smoky grey")
- Part8.Parent = Model4
- Part8.CFrame = CFrame.new(-63.8624992, 3.20064116, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part8.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part8.Position = Vector3.new(-63.862499237061, 3.2006411552429, -54.175640106201)
- Part8.Rotation = Vector3.new(-90, 0, 0)
- Part8.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part8.Size = Vector3.new(0.12499971687794, 0.15000000596046, 0.050000000745058)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Smoky grey")
- Part8.CanCollide = false
- Part8.Material = Enum.Material.Metal
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Smoky grey")
- Part9.Parent = Model4
- Part9.CFrame = CFrame.new(-64.0680313, 3.30931807, -54.1756401, 0.642787397, 0, -0.766044617, 0.766044617, 0, 0.642787397, 0, -1, 0)
- Part9.Orientation = Vector3.new(-40, -90, 90)
- Part9.Position = Vector3.new(-64.068031311035, 3.3093180656433, -54.175640106201)
- Part9.Rotation = Vector3.new(-90, -50, 0)
- Part9.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part9.Size = Vector3.new(0.17499971389771, 0.20000000298023, 0.24920001626015)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Smoky grey")
- Part9.CanCollide = false
- Part9.Material = Enum.Material.Metal
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Smoky grey")
- Part10.Parent = Model4
- Part10.CFrame = CFrame.new(-66.1144028, 3.14950585, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part10.Orientation = Vector3.new(5, -90, 90)
- Part10.Position = Vector3.new(-66.114402770996, 3.149505853653, -54.175998687744)
- Part10.Rotation = Vector3.new(90, -85, -180)
- Part10.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part10.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Sand green")
- Part10.CanCollide = false
- Part10.Material = Enum.Material.Metal
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Sand green")
- Part11.Parent = Model4
- Part11.CFrame = CFrame.new(-66.0744019, 3.149508, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part11.Orientation = Vector3.new(5, -90, 90)
- Part11.Position = Vector3.new(-66.074401855469, 3.1495079994202, -54.175998687744)
- Part11.Rotation = Vector3.new(90, -85, -180)
- Part11.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part11.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Sand green")
- Part11.CanCollide = false
- Part11.Material = Enum.Material.Metal
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Sand green")
- Part12.Parent = Model4
- Part12.CFrame = CFrame.new(-66.0344009, 3.14950848, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part12.Orientation = Vector3.new(5, -90, 90)
- Part12.Position = Vector3.new(-66.034400939941, 3.1495084762573, -54.175998687744)
- Part12.Rotation = Vector3.new(90, -85, -180)
- Part12.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part12.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Sand green")
- Part12.CanCollide = false
- Part12.Material = Enum.Material.Metal
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Sand green")
- Part13.Parent = Model4
- Part13.CFrame = CFrame.new(-65.9944, 3.14950705, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part13.Orientation = Vector3.new(5, -90, 90)
- Part13.Position = Vector3.new(-65.994400024414, 3.1495070457458, -54.175998687744)
- Part13.Rotation = Vector3.new(90, -85, -180)
- Part13.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part13.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Sand green")
- Part13.CanCollide = false
- Part13.Material = Enum.Material.Metal
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Sand green")
- Part14.Parent = Model4
- Part14.CFrame = CFrame.new(-65.9543991, 3.14950895, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part14.Orientation = Vector3.new(5, -90, 90)
- Part14.Position = Vector3.new(-65.954399108887, 3.1495089530945, -54.175998687744)
- Part14.Rotation = Vector3.new(90, -85, -180)
- Part14.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part14.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Sand green")
- Part14.CanCollide = false
- Part14.Material = Enum.Material.Metal
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.brickColor = BrickColor.new("Sand green")
- Part15.Parent = Model4
- Part15.CFrame = CFrame.new(-65.9143982, 3.14950609, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part15.Orientation = Vector3.new(5, -90, 90)
- Part15.Position = Vector3.new(-65.914398193359, 3.1495060920715, -54.175998687744)
- Part15.Rotation = Vector3.new(90, -85, -180)
- Part15.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part15.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.BrickColor = BrickColor.new("Sand green")
- Part15.CanCollide = false
- Part15.Material = Enum.Material.Metal
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.brickColor = BrickColor.new("Sand green")
- Part16.Parent = Model4
- Part16.CFrame = CFrame.new(-65.8743973, 3.149508, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part16.Orientation = Vector3.new(5, -90, 90)
- Part16.Position = Vector3.new(-65.874397277832, 3.1495079994202, -54.175998687744)
- Part16.Rotation = Vector3.new(90, -85, -180)
- Part16.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part16.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Sand green")
- Part16.CanCollide = false
- Part16.Material = Enum.Material.Metal
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Sand green")
- Part17.Parent = Model4
- Part17.CFrame = CFrame.new(-65.8343964, 3.14950895, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part17.Orientation = Vector3.new(5, -90, 90)
- Part17.Position = Vector3.new(-65.834396362305, 3.1495089530945, -54.175998687744)
- Part17.Rotation = Vector3.new(90, -85, -180)
- Part17.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part17.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.BrickColor = BrickColor.new("Sand green")
- Part17.CanCollide = false
- Part17.Material = Enum.Material.Metal
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.brickColor = BrickColor.new("Sand green")
- Part18.Parent = Model4
- Part18.CFrame = CFrame.new(-65.7943954, 3.14950728, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part18.Orientation = Vector3.new(5, -90, 90)
- Part18.Position = Vector3.new(-65.794395446777, 3.1495072841644, -54.175998687744)
- Part18.Rotation = Vector3.new(90, -85, -180)
- Part18.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part18.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.BrickColor = BrickColor.new("Sand green")
- Part18.CanCollide = false
- Part18.Material = Enum.Material.Metal
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.brickColor = BrickColor.new("Sand green")
- Part19.Parent = Model4
- Part19.CFrame = CFrame.new(-65.7543945, 3.14950943, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part19.Orientation = Vector3.new(5, -90, 90)
- Part19.Position = Vector3.new(-65.75439453125, 3.1495094299316, -54.175998687744)
- Part19.Rotation = Vector3.new(90, -85, -180)
- Part19.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part19.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Sand green")
- Part19.CanCollide = false
- Part19.Material = Enum.Material.Metal
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Sand green")
- Part20.Parent = Model4
- Part20.CFrame = CFrame.new(-65.7143936, 3.14950633, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
- Part20.Orientation = Vector3.new(5, -90, 90)
- Part20.Position = Vector3.new(-65.714393615723, 3.1495063304901, -54.175998687744)
- Part20.Rotation = Vector3.new(90, -85, -180)
- Part20.Color = Color3.new(0.458824, 0.462745, 0.494118)
- Part20.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Sand green")
- Part20.CanCollide = false
- Part20.Material = Enum.Material.Metal
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Sand green")
- Part21.Name = "mainpart"
- Part21.Parent = Model4
- Part21.CFrame = CFrame.new(-64.7627029, 3.23814321, -54.1506386, 0.99999994, 0, 0, 0, 0, 0.99999994, 0, -1, 0)
- Part21.Orientation = Vector3.new(-89.980003356934, 0, 0)
- Part21.Position = Vector3.new(-64.762702941895, 3.2381432056427, -54.150638580322)
- Part21.Rotation = Vector3.new(-90, 0, 0)
- Part21.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part21.Size = Vector3.new(1.2745997905731, 0.15000000596046, 0.375)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Smoky grey")
- Part21.CanCollide = false
- Part21.Material = Enum.Material.Metal
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Smoky grey")
- Weld22.Name = "boltweld"
- Weld22.Parent = Part21
- Weld22.C0 = CFrame.new(-0.299995422, 0.105003357, 0.0450000763, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld22.Part0 = Part21
- Weld22.Part1 = Part27
- Weld22.part1 = Part27
- Weld23.Name = "magweld"
- Weld23.Parent = Part21
- Weld23.C0 = CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773)
- Weld23.Part0 = Part21
- Weld23.Part1 = Part100
- Weld23.part1 = Part100
- Weld24.Name = "triggerweld"
- Weld24.Parent = Part21
- Weld24.C0 = CFrame.new(0.32093811, 0.0250015259, -0.240855455, 0.98480773, 0, 0.173648179, 0, 1, 0, -0.173648179, 0, 0.98480773)
- Weld24.Part0 = Part21
- Weld24.Part1 = Part77
- Weld24.part1 = Part77
- Part25.Parent = Model4
- Part25.CFrame = CFrame.new(-67.7499924, 3.20064163, -54.2356377, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part25.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part25.Position = Vector3.new(-67.749992370605, 3.2006416320801, -54.235637664795)
- Part25.Rotation = Vector3.new(-90, 0, 0)
- Part25.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part25.Size = Vector3.new(0.29999947547913, 0.027600016444921, 0.1499999910593)
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.BrickColor = BrickColor.new("Smoky grey")
- Part25.CanCollide = false
- Part25.Material = Enum.Material.Metal
- Part25.TopSurface = Enum.SurfaceType.Smooth
- Part25.brickColor = BrickColor.new("Smoky grey")
- Model26.Name = "bolt"
- Model26.Parent = Model4
- Part27.Name = "boltpart"
- Part27.Parent = Model26
- Part27.CFrame = CFrame.new(-65.0626984, 3.28314328, -54.2556419, 0.99999994, 0, 0, 0, 0, 0.99999994, 0, -1, 0)
- Part27.Orientation = Vector3.new(-89.980003356934, 0, 0)
- Part27.Position = Vector3.new(-65.062698364258, 3.2831432819366, -54.255641937256)
- Part27.Rotation = Vector3.new(-90, 0, 0)
- Part27.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part27.Size = Vector3.new(0.42459961771965, 0.010000000707805, 0.13499999046326)
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.BrickColor = BrickColor.new("Smoky grey")
- Part27.CanCollide = false
- Part27.Material = Enum.Material.Metal
- Part27.TopSurface = Enum.SurfaceType.Smooth
- Part27.brickColor = BrickColor.new("Smoky grey")
- Weld28.Parent = Part27
- Weld28.C0 = CFrame.new(-0.1875, 0.0862464905, -0.0325000286, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld28.Part0 = Part27
- Weld28.Part1 = Part29
- Weld28.part1 = Part29
- Part29.Parent = Model26
- Part29.CFrame = CFrame.new(-65.2501984, 3.25064325, -54.3418884, 0.99999994, 0, 0, 0, 0, 0.99999994, 0, -1, 0)
- Part29.Orientation = Vector3.new(-89.980003356934, 0, 0)
- Part29.Position = Vector3.new(-65.250198364258, 3.2506432533264, -54.341888427734)
- Part29.Rotation = Vector3.new(-90, 0, 0)
- Part29.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part29.Size = Vector3.new(0.04959961771965, 0.18249997496605, 0.044999994337559)
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.BrickColor = BrickColor.new("Fossil")
- Part29.CanCollide = false
- Part29.Material = Enum.Material.Metal
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.brickColor = BrickColor.new("Fossil")
- Part30.Parent = Model4
- Part30.CFrame = CFrame.new(-64.6436996, 3.31314158, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part30.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part30.Position = Vector3.new(-64.643699645996, 3.3131415843964, -54.26314163208)
- Part30.Rotation = Vector3.new(-90, 0, 0)
- Part30.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part30.Size = Vector3.new(0.4125996530056, 0.025000000372529, 0.074999988079071)
- Part30.BottomSurface = Enum.SurfaceType.Smooth
- Part30.BrickColor = BrickColor.new("Smoky grey")
- Part30.CanCollide = false
- Part30.Material = Enum.Material.Metal
- Part30.TopSurface = Enum.SurfaceType.Smooth
- Part30.brickColor = BrickColor.new("Smoky grey")
- Part31.Parent = Model4
- Part31.CFrame = CFrame.new(-64.8686981, 3.38814044, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part31.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part31.Position = Vector3.new(-64.868698120117, 3.3881404399872, -54.26314163208)
- Part31.Rotation = Vector3.new(-90, 0, 0)
- Part31.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part31.Size = Vector3.new(0.86259967088699, 0.025000000372529, 0.074999988079071)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.BrickColor = BrickColor.new("Smoky grey")
- Part31.CanCollide = false
- Part31.Material = Enum.Material.Metal
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.brickColor = BrickColor.new("Smoky grey")
- Part32.Parent = Model4
- Part32.CFrame = CFrame.new(-65.3377075, 3.31314278, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part32.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part32.Position = Vector3.new(-65.337707519531, 3.3131427764893, -54.26314163208)
- Part32.Rotation = Vector3.new(-90, 0, 0)
- Part32.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part32.Size = Vector3.new(0.12459974735975, 0.025000000372529, 0.22499999403954)
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.BrickColor = BrickColor.new("Smoky grey")
- Part32.CanCollide = false
- Part32.Material = Enum.Material.Metal
- Part32.TopSurface = Enum.SurfaceType.Smooth
- Part32.brickColor = BrickColor.new("Smoky grey")
- Part33.Parent = Model4
- Part33.CFrame = CFrame.new(-64.2877045, 3.32563996, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part33.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part33.Position = Vector3.new(-64.287704467773, 3.32563996315, -54.26314163208)
- Part33.Rotation = Vector3.new(-90, 0, 0)
- Part33.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part33.Size = Vector3.new(0.32459983229637, 0.025000000372529, 0.19999998807907)
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.BrickColor = BrickColor.new("Smoky grey")
- Part33.CanCollide = false
- Part33.Material = Enum.Material.Metal
- Part33.TopSurface = Enum.SurfaceType.Smooth
- Part33.brickColor = BrickColor.new("Smoky grey")
- Part34.Parent = Model4
- Part34.CFrame = CFrame.new(-64.7627029, 3.25063992, -54.2381401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part34.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part34.Position = Vector3.new(-64.762702941895, 3.2506399154663, -54.238140106201)
- Part34.Rotation = Vector3.new(-90, 0, 0)
- Part34.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part34.Size = Vector3.new(1.2745997905731, 0.025000000372529, 0.34999999403954)
- Part34.BottomSurface = Enum.SurfaceType.Smooth
- Part34.BrickColor = BrickColor.new("Really black")
- Part34.CanCollide = false
- Part34.Material = Enum.Material.SmoothPlastic
- Part34.TopSurface = Enum.SurfaceType.Smooth
- Part34.brickColor = BrickColor.new("Really black")
- Part35.Parent = Model4
- Part35.CFrame = CFrame.new(-64.7627029, 3.13814306, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part35.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part35.Position = Vector3.new(-64.762702941895, 3.1381430625916, -54.26314163208)
- Part35.Rotation = Vector3.new(-90, 0, 0)
- Part35.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part35.Size = Vector3.new(1.2740000486374, 0.025000000372529, 0.17499999701977)
- Part35.BottomSurface = Enum.SurfaceType.Smooth
- Part35.BrickColor = BrickColor.new("Smoky grey")
- Part35.CanCollide = false
- Part35.Material = Enum.Material.Metal
- Part35.TopSurface = Enum.SurfaceType.Smooth
- Part35.brickColor = BrickColor.new("Smoky grey")
- Part36.Parent = Model4
- Part36.CFrame = CFrame.new(-63.7749939, 3.05064106, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part36.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part36.Position = Vector3.new(-63.774993896484, 3.0506410598755, -54.175640106201)
- Part36.Rotation = Vector3.new(-90, 0, 0)
- Part36.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part36.Size = Vector3.new(0.049999713897705, 0.10000000149012, 0.050000000745058)
- Part36.BottomSurface = Enum.SurfaceType.Smooth
- Part36.BrickColor = BrickColor.new("Smoky grey")
- Part36.CanCollide = false
- Part36.Material = Enum.Material.Metal
- Part36.TopSurface = Enum.SurfaceType.Smooth
- Part36.brickColor = BrickColor.new("Smoky grey")
- Part37.Parent = Model4
- Part37.CFrame = CFrame.new(-66.9375, 3.13814116, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part37.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part37.Position = Vector3.new(-66.9375, 3.1381411552429, -54.175640106201)
- Part37.Rotation = Vector3.new(-90, 0, 0)
- Part37.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part37.Size = Vector3.new(1.3249995708466, 0.046800013631582, 0.024999991059303)
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.BrickColor = BrickColor.new("Smoky grey")
- Part37.CanCollide = false
- Part37.Material = Enum.Material.Metal
- Part37.TopSurface = Enum.SurfaceType.Smooth
- Part37.brickColor = BrickColor.new("Smoky grey")
- Part38.Parent = Model4
- Part38.CFrame = CFrame.new(-65.8375015, 3.07564139, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part38.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part38.Position = Vector3.new(-65.837501525879, 3.0756413936615, -54.175640106201)
- Part38.Rotation = Vector3.new(-90, 0, 0)
- Part38.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part38.Size = Vector3.new(0.87499964237213, 0.099200017750263, 0.049999982118607)
- Part38.BottomSurface = Enum.SurfaceType.Smooth
- Part38.BrickColor = BrickColor.new("Smoky grey")
- Part38.CanCollide = false
- Part38.Material = Enum.Material.Metal
- Part38.TopSurface = Enum.SurfaceType.Smooth
- Part38.brickColor = BrickColor.new("Smoky grey")
- Part39.Parent = Model4
- Part39.CFrame = CFrame.new(-64.7627029, 3.05063748, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part39.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part39.Position = Vector3.new(-64.762702941895, 3.0506374835968, -54.175640106201)
- Part39.Rotation = Vector3.new(-90, 0, 0)
- Part39.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part39.Size = Vector3.new(1.2745997905731, 0.15000000596046, 0.050000000745058)
- Part39.BottomSurface = Enum.SurfaceType.Smooth
- Part39.BrickColor = BrickColor.new("Smoky grey")
- Part39.CanCollide = false
- Part39.Material = Enum.Material.Metal
- Part39.TopSurface = Enum.SurfaceType.Smooth
- Part39.brickColor = BrickColor.new("Smoky grey")
- Part40.Parent = Model4
- Part40.CFrame = CFrame.new(-65.9375, 3.43814278, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part40.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part40.Position = Vector3.new(-65.9375, 3.4381427764893, -54.175640106201)
- Part40.Rotation = Vector3.new(-90, 0, 0)
- Part40.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part40.Size = Vector3.new(0.67499965429306, 0.099200017750263, 0.025000000372529)
- Part40.BottomSurface = Enum.SurfaceType.Smooth
- Part40.BrickColor = BrickColor.new("Smoky grey")
- Part40.CanCollide = false
- Part40.Material = Enum.Material.Metal
- Part40.TopSurface = Enum.SurfaceType.Smooth
- Part40.brickColor = BrickColor.new("Smoky grey")
- Part41.Parent = Model4
- Part41.CFrame = CFrame.new(-67.5855026, 3.20064139, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part41.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part41.Position = Vector3.new(-67.585502624512, 3.2006413936615, -54.175640106201)
- Part41.Rotation = Vector3.new(-90, 0, 0)
- Part41.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part41.Size = Vector3.new(0.028999615460634, 0.14399999380112, 0.14800000190735)
- Part41.BottomSurface = Enum.SurfaceType.Smooth
- Part41.BrickColor = BrickColor.new("Smoky grey")
- Part41.CanCollide = false
- Part41.Material = Enum.Material.Metal
- Part41.TopSurface = Enum.SurfaceType.Smooth
- Part41.brickColor = BrickColor.new("Smoky grey")
- Part42.Parent = Model4
- Part42.CFrame = CFrame.new(-64.654686, 2.74782705, -54.1756401, -0.965925694, 0, 0.258818984, -0.258818984, 0, -0.965925694, 0, -1, -0)
- Part42.Orientation = Vector3.new(75, 90, -90)
- Part42.Position = Vector3.new(-64.654685974121, 2.7478270530701, -54.175640106201)
- Part42.Rotation = Vector3.new(90, 15, -180)
- Part42.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part42.Size = Vector3.new(0.025000002235174, 0.079999998211861, 0.064999982714653)
- Part42.BottomSurface = Enum.SurfaceType.Smooth
- Part42.BrickColor = BrickColor.new("Smoky grey")
- Part42.CanCollide = false
- Part42.Material = Enum.Material.Metal
- Part42.TopSurface = Enum.SurfaceType.Smooth
- Part42.brickColor = BrickColor.new("Smoky grey")
- Part43.Parent = Model4
- Part43.CFrame = CFrame.new(-64.6740875, 2.8202734, -54.1756401, -0.965925694, 0, 0.258818984, -0.258818984, 0, -0.965925694, 0, -1, -0)
- Part43.Orientation = Vector3.new(75, 90, -90)
- Part43.Position = Vector3.new(-64.674087524414, 2.820273399353, -54.175640106201)
- Part43.Rotation = Vector3.new(90, 15, -180)
- Part43.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part43.Size = Vector3.new(0.024999998509884, 0.049999997019768, 0.094999998807907)
- Part43.BottomSurface = Enum.SurfaceType.Smooth
- Part43.BrickColor = BrickColor.new("Smoky grey")
- Part43.CanCollide = false
- Part43.Material = Enum.Material.Metal
- Part43.TopSurface = Enum.SurfaceType.Smooth
- Part43.brickColor = BrickColor.new("Smoky grey")
- Part44.Parent = Model4
- Part44.CFrame = CFrame.new(-64.6813354, 2.94583082, -54.1756401, -0.999999881, 0, -2.98023224e-08, 2.98023224e-08, 0, -0.999999881, 0, -1, -0)
- Part44.Orientation = Vector3.new(89.970001220703, -90, 90)
- Part44.Position = Vector3.new(-64.681335449219, 2.945830821991, -54.175640106201)
- Part44.Rotation = Vector3.new(90, 0, -180)
- Part44.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part44.Size = Vector3.new(0.099999994039536, 0.049999997019768, 0.17000000178814)
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.BrickColor = BrickColor.new("Smoky grey")
- Part44.CanCollide = false
- Part44.Material = Enum.Material.Metal
- Part44.TopSurface = Enum.SurfaceType.Smooth
- Part44.brickColor = BrickColor.new("Smoky grey")
- Part45.Parent = Model4
- Part45.CFrame = CFrame.new(-64.1649628, 2.4899807, -54.1756401, 0.939692438, 0, -0.342020065, 0.342020065, 0, 0.939692438, 0, -1, 0)
- Part45.Orientation = Vector3.new(-70, -90, 90)
- Part45.Position = Vector3.new(-64.164962768555, 2.4899806976318, -54.175640106201)
- Part45.Rotation = Vector3.new(-90, -20, 0)
- Part45.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part45.Size = Vector3.new(0.02499983087182, 0.1484000235796, 0.039999980479479)
- Part45.BottomSurface = Enum.SurfaceType.Smooth
- Part45.BrickColor = BrickColor.new("Smoky grey")
- Part45.CanCollide = false
- Part45.Material = Enum.Material.Metal
- Part45.TopSurface = Enum.SurfaceType.Smooth
- Part45.brickColor = BrickColor.new("Smoky grey")
- Part46.Parent = Model4
- Part46.CFrame = CFrame.new(-67.2972183, 3.33950281, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
- Part46.Orientation = Vector3.new(-85, -90, 90)
- Part46.Position = Vector3.new(-67.297218322754, 3.3395028114319, -54.175640106201)
- Part46.Rotation = Vector3.new(-90, -5, 0)
- Part46.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part46.Size = Vector3.new(0.079999521374702, 0.022000014781952, 0.039599999785423)
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.BrickColor = BrickColor.new("Smoky grey")
- Part46.CanCollide = false
- Part46.Material = Enum.Material.Metal
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.brickColor = BrickColor.new("Smoky grey")
- Part47.Parent = Model4
- Part47.CFrame = CFrame.new(-67.3073044, 3.36873698, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
- Part47.Orientation = Vector3.new(-85, -90, 90)
- Part47.Position = Vector3.new(-67.307304382324, 3.3687369823456, -54.175640106201)
- Part47.Rotation = Vector3.new(-90, -5, 0)
- Part47.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part47.Size = Vector3.new(0.064999520778656, 0.022000014781952, 0.039599999785423)
- Part47.BottomSurface = Enum.SurfaceType.Smooth
- Part47.BrickColor = BrickColor.new("Smoky grey")
- Part47.CanCollide = false
- Part47.Material = Enum.Material.Metal
- Part47.TopSurface = Enum.SurfaceType.Smooth
- Part47.brickColor = BrickColor.new("Smoky grey")
- Part48.Parent = Model4
- Part48.CFrame = CFrame.new(-67.2871323, 3.31027198, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
- Part48.Orientation = Vector3.new(-85, -90, 90)
- Part48.Position = Vector3.new(-67.287132263184, 3.3102719783783, -54.175640106201)
- Part48.Rotation = Vector3.new(-90, -5, 0)
- Part48.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part48.Size = Vector3.new(0.094999521970749, 0.022000014781952, 0.039599999785423)
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.BrickColor = BrickColor.new("Smoky grey")
- Part48.CanCollide = false
- Part48.Material = Enum.Material.Metal
- Part48.TopSurface = Enum.SurfaceType.Smooth
- Part48.brickColor = BrickColor.new("Smoky grey")
- Part49.Parent = Model4
- Part49.CFrame = CFrame.new(-67.2770462, 3.28103924, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
- Part49.Orientation = Vector3.new(-85, -90, 90)
- Part49.Position = Vector3.new(-67.277046203613, 3.2810392379761, -54.175640106201)
- Part49.Rotation = Vector3.new(-90, -5, 0)
- Part49.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part49.Size = Vector3.new(0.1099995225668, 0.022000014781952, 0.039599999785423)
- Part49.BottomSurface = Enum.SurfaceType.Smooth
- Part49.BrickColor = BrickColor.new("Smoky grey")
- Part49.CanCollide = false
- Part49.Material = Enum.Material.Metal
- Part49.TopSurface = Enum.SurfaceType.Smooth
- Part49.brickColor = BrickColor.new("Smoky grey")
- Part50.Parent = Model4
- Part50.CFrame = CFrame.new(-66.5024948, 3.35563946, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part50.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part50.Position = Vector3.new(-66.502494812012, 3.3556394577026, -54.175640106201)
- Part50.Rotation = Vector3.new(-90, 0, 0)
- Part50.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part50.Size = Vector3.new(0.45499962568283, 0.09680001437664, 0.03999999538064)
- Part50.BottomSurface = Enum.SurfaceType.Smooth
- Part50.BrickColor = BrickColor.new("Smoky grey")
- Part50.CanCollide = false
- Part50.Material = Enum.Material.Metal
- Part50.TopSurface = Enum.SurfaceType.Smooth
- Part50.brickColor = BrickColor.new("Smoky grey")
- Part51.Parent = Model4
- Part51.CFrame = CFrame.new(-66.7409439, 3.29016089, -54.1756401, 0.642787457, 0, -0.766044497, 0.766044497, 0, 0.642787457, 0, -1, 0)
- Part51.Orientation = Vector3.new(-40, -90, 90)
- Part51.Position = Vector3.new(-66.740943908691, 3.2901608943939, -54.175640106201)
- Part51.Rotation = Vector3.new(-90, -50, 0)
- Part51.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part51.Size = Vector3.new(0.064799681305885, 0.09680001437664, 0.049199990928173)
- Part51.BottomSurface = Enum.SurfaceType.Smooth
- Part51.BrickColor = BrickColor.new("Smoky grey")
- Part51.CanCollide = false
- Part51.Material = Enum.Material.Metal
- Part51.TopSurface = Enum.SurfaceType.Smooth
- Part51.brickColor = BrickColor.new("Smoky grey")
- Part52.Parent = Model4
- Part52.CFrame = CFrame.new(-64.2546921, 3.02224207, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part52.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part52.Position = Vector3.new(-64.254692077637, 3.0222420692444, -54.175640106201)
- Part52.Rotation = Vector3.new(-90, 0, 0)
- Part52.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part52.Size = Vector3.new(0.25859981775284, 0.20000000298023, 0.094800017774105)
- Part52.BottomSurface = Enum.SurfaceType.Smooth
- Part52.BrickColor = BrickColor.new("Smoky grey")
- Part52.CanCollide = false
- Part52.Material = Enum.Material.Metal
- Part52.TopSurface = Enum.SurfaceType.Smooth
- Part52.brickColor = BrickColor.new("Smoky grey")
- Part53.Parent = Model4
- Part53.CFrame = CFrame.new(-64.3236923, 2.97183061, -54.1756401, -0.996191263, 0, -0.0871554017, 0.0871554017, 0, -0.996191263, 0, -1, -0)
- Part53.Orientation = Vector3.new(85, -90, 90)
- Part53.Position = Vector3.new(-64.323692321777, 2.9718306064606, -54.175640106201)
- Part53.Rotation = Vector3.new(90, -5, -180)
- Part53.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part53.Size = Vector3.new(0.12660045921803, 0.1484000235796, 0.12380000948906)
- Part53.BottomSurface = Enum.SurfaceType.Smooth
- Part53.BrickColor = BrickColor.new("Smoky grey")
- Part53.CanCollide = false
- Part53.Material = Enum.Material.Metal
- Part53.TopSurface = Enum.SurfaceType.Smooth
- Part53.brickColor = BrickColor.new("Smoky grey")
- Part54.Parent = Model4
- Part54.CFrame = CFrame.new(-66.7537994, 3.27483892, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part54.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part54.Position = Vector3.new(-66.753799438477, 3.274838924408, -54.175640106201)
- Part54.Rotation = Vector3.new(-90, 0, 0)
- Part54.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part54.Size = Vector3.new(0.14479967951775, 0.09680001437664, 0.049199990928173)
- Part54.BottomSurface = Enum.SurfaceType.Smooth
- Part54.BrickColor = BrickColor.new("Smoky grey")
- Part54.CanCollide = false
- Part54.Material = Enum.Material.Metal
- Part54.TopSurface = Enum.SurfaceType.Smooth
- Part54.brickColor = BrickColor.new("Smoky grey")
- Part55.Parent = Model4
- Part55.CFrame = CFrame.new(-65.1515045, 3.47564292, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part55.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part55.Position = Vector3.new(-65.151504516602, 3.4756429195404, -54.175640106201)
- Part55.Rotation = Vector3.new(-90, 0, 0)
- Part55.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part55.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part55.BottomSurface = Enum.SurfaceType.Smooth
- Part55.BrickColor = BrickColor.new("Smoky grey")
- Part55.CanCollide = false
- Part55.Material = Enum.Material.Metal
- Part55.TopSurface = Enum.SurfaceType.Smooth
- Part55.brickColor = BrickColor.new("Smoky grey")
- Part56.Parent = Model4
- Part56.CFrame = CFrame.new(-65.100708, 3.47564411, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part56.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part56.Position = Vector3.new(-65.100708007813, 3.4756441116333, -54.175640106201)
- Part56.Rotation = Vector3.new(-90, 0, 0)
- Part56.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part56.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part56.BottomSurface = Enum.SurfaceType.Smooth
- Part56.BrickColor = BrickColor.new("Smoky grey")
- Part56.CanCollide = false
- Part56.Material = Enum.Material.Metal
- Part56.TopSurface = Enum.SurfaceType.Smooth
- Part56.brickColor = BrickColor.new("Smoky grey")
- Part57.Parent = Model4
- Part57.CFrame = CFrame.new(-64.9483109, 3.47564363, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part57.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part57.Position = Vector3.new(-64.948310852051, 3.4756436347961, -54.175640106201)
- Part57.Rotation = Vector3.new(-90, 0, 0)
- Part57.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part57.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part57.BottomSurface = Enum.SurfaceType.Smooth
- Part57.BrickColor = BrickColor.new("Smoky grey")
- Part57.CanCollide = false
- Part57.Material = Enum.Material.Metal
- Part57.TopSurface = Enum.SurfaceType.Smooth
- Part57.brickColor = BrickColor.new("Smoky grey")
- Part58.Parent = Model4
- Part58.CFrame = CFrame.new(-65.0007019, 3.47564554, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part58.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part58.Position = Vector3.new(-65.000701904297, 3.4756455421448, -54.175640106201)
- Part58.Rotation = Vector3.new(-90, 0, 0)
- Part58.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part58.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part58.BottomSurface = Enum.SurfaceType.Smooth
- Part58.BrickColor = BrickColor.new("Smoky grey")
- Part58.CanCollide = false
- Part58.Material = Enum.Material.Metal
- Part58.TopSurface = Enum.SurfaceType.Smooth
- Part58.brickColor = BrickColor.new("Smoky grey")
- Part59.Parent = Model4
- Part59.CFrame = CFrame.new(-65.0499115, 3.47564554, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part59.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part59.Position = Vector3.new(-65.049911499023, 3.4756455421448, -54.175640106201)
- Part59.Rotation = Vector3.new(-90, 0, 0)
- Part59.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part59.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part59.BottomSurface = Enum.SurfaceType.Smooth
- Part59.BrickColor = BrickColor.new("Smoky grey")
- Part59.CanCollide = false
- Part59.Material = Enum.Material.Metal
- Part59.TopSurface = Enum.SurfaceType.Smooth
- Part59.brickColor = BrickColor.new("Smoky grey")
- Part60.Parent = Model4
- Part60.CFrame = CFrame.new(-64.8975143, 3.47564483, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part60.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part60.Position = Vector3.new(-64.897514343262, 3.475644826889, -54.175640106201)
- Part60.Rotation = Vector3.new(-90, 0, 0)
- Part60.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part60.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.BrickColor = BrickColor.new("Smoky grey")
- Part60.CanCollide = false
- Part60.Material = Enum.Material.Metal
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part60.brickColor = BrickColor.new("Smoky grey")
- Part61.Parent = Model4
- Part61.CFrame = CFrame.new(-64.8483047, 3.47564507, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part61.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part61.Position = Vector3.new(-64.848304748535, 3.4756450653076, -54.175640106201)
- Part61.Rotation = Vector3.new(-90, 0, 0)
- Part61.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part61.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part61.BottomSurface = Enum.SurfaceType.Smooth
- Part61.BrickColor = BrickColor.new("Smoky grey")
- Part61.CanCollide = false
- Part61.Material = Enum.Material.Metal
- Part61.TopSurface = Enum.SurfaceType.Smooth
- Part61.brickColor = BrickColor.new("Smoky grey")
- Part62.Parent = Model4
- Part62.CFrame = CFrame.new(-64.7959137, 3.4756465, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part62.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part62.Position = Vector3.new(-64.795913696289, 3.4756464958191, -54.175640106201)
- Part62.Rotation = Vector3.new(-90, 0, 0)
- Part62.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part62.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part62.BottomSurface = Enum.SurfaceType.Smooth
- Part62.BrickColor = BrickColor.new("Smoky grey")
- Part62.CanCollide = false
- Part62.Material = Enum.Material.Metal
- Part62.TopSurface = Enum.SurfaceType.Smooth
- Part62.brickColor = BrickColor.new("Smoky grey")
- Part63.Parent = Model4
- Part63.CFrame = CFrame.new(-64.7467041, 3.4756465, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part63.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part63.Position = Vector3.new(-64.746704101563, 3.4756464958191, -54.175640106201)
- Part63.Rotation = Vector3.new(-90, 0, 0)
- Part63.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part63.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part63.BottomSurface = Enum.SurfaceType.Smooth
- Part63.BrickColor = BrickColor.new("Smoky grey")
- Part63.CanCollide = false
- Part63.Material = Enum.Material.Metal
- Part63.TopSurface = Enum.SurfaceType.Smooth
- Part63.brickColor = BrickColor.new("Smoky grey")
- Part64.Parent = Model4
- Part64.CFrame = CFrame.new(-64.694313, 3.47564459, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part64.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part64.Position = Vector3.new(-64.694313049316, 3.4756445884705, -54.175640106201)
- Part64.Rotation = Vector3.new(-90, 0, 0)
- Part64.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part64.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part64.BottomSurface = Enum.SurfaceType.Smooth
- Part64.BrickColor = BrickColor.new("Smoky grey")
- Part64.CanCollide = false
- Part64.Material = Enum.Material.Metal
- Part64.TopSurface = Enum.SurfaceType.Smooth
- Part64.brickColor = BrickColor.new("Smoky grey")
- Part65.Parent = Model4
- Part65.CFrame = CFrame.new(-64.6451035, 3.47564459, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part65.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part65.Position = Vector3.new(-64.64510345459, 3.4756445884705, -54.175640106201)
- Part65.Rotation = Vector3.new(-90, 0, 0)
- Part65.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part65.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part65.BottomSurface = Enum.SurfaceType.Smooth
- Part65.BrickColor = BrickColor.new("Smoky grey")
- Part65.CanCollide = false
- Part65.Material = Enum.Material.Metal
- Part65.TopSurface = Enum.SurfaceType.Smooth
- Part65.brickColor = BrickColor.new("Smoky grey")
- Part66.Parent = Model4
- Part66.CFrame = CFrame.new(-64.5927124, 3.47564483, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part66.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part66.Position = Vector3.new(-64.592712402344, 3.475644826889, -54.175640106201)
- Part66.Rotation = Vector3.new(-90, 0, 0)
- Part66.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part66.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part66.BottomSurface = Enum.SurfaceType.Smooth
- Part66.BrickColor = BrickColor.new("Smoky grey")
- Part66.CanCollide = false
- Part66.Material = Enum.Material.Metal
- Part66.TopSurface = Enum.SurfaceType.Smooth
- Part66.brickColor = BrickColor.new("Smoky grey")
- Part67.Parent = Model4
- Part67.CFrame = CFrame.new(-64.5435028, 3.47564507, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part67.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part67.Position = Vector3.new(-64.543502807617, 3.4756450653076, -54.175640106201)
- Part67.Rotation = Vector3.new(-90, 0, 0)
- Part67.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part67.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part67.BottomSurface = Enum.SurfaceType.Smooth
- Part67.BrickColor = BrickColor.new("Smoky grey")
- Part67.CanCollide = false
- Part67.Material = Enum.Material.Metal
- Part67.TopSurface = Enum.SurfaceType.Smooth
- Part67.brickColor = BrickColor.new("Smoky grey")
- Part68.Parent = Model4
- Part68.CFrame = CFrame.new(-64.3895187, 3.4756453, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part68.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part68.Position = Vector3.new(-64.389518737793, 3.4756453037262, -54.175640106201)
- Part68.Rotation = Vector3.new(-90, 0, 0)
- Part68.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part68.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part68.BottomSurface = Enum.SurfaceType.Smooth
- Part68.BrickColor = BrickColor.new("Smoky grey")
- Part68.CanCollide = false
- Part68.Material = Enum.Material.Metal
- Part68.TopSurface = Enum.SurfaceType.Smooth
- Part68.brickColor = BrickColor.new("Smoky grey")
- Part69.Parent = Model4
- Part69.CFrame = CFrame.new(-64.3403091, 3.47564554, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part69.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part69.Position = Vector3.new(-64.340309143066, 3.4756455421448, -54.175640106201)
- Part69.Rotation = Vector3.new(-90, 0, 0)
- Part69.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part69.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part69.BottomSurface = Enum.SurfaceType.Smooth
- Part69.BrickColor = BrickColor.new("Smoky grey")
- Part69.CanCollide = false
- Part69.Material = Enum.Material.Metal
- Part69.TopSurface = Enum.SurfaceType.Smooth
- Part69.brickColor = BrickColor.new("Smoky grey")
- Part70.Parent = Model4
- Part70.CFrame = CFrame.new(-64.4419098, 3.47564387, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part70.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part70.Position = Vector3.new(-64.441909790039, 3.4756438732147, -54.175640106201)
- Part70.Rotation = Vector3.new(-90, 0, 0)
- Part70.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part70.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part70.BottomSurface = Enum.SurfaceType.Smooth
- Part70.BrickColor = BrickColor.new("Smoky grey")
- Part70.CanCollide = false
- Part70.Material = Enum.Material.Metal
- Part70.TopSurface = Enum.SurfaceType.Smooth
- Part70.brickColor = BrickColor.new("Smoky grey")
- Part71.Parent = Model4
- Part71.CFrame = CFrame.new(-64.4911194, 3.47564363, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part71.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part71.Position = Vector3.new(-64.491119384766, 3.4756436347961, -54.175640106201)
- Part71.Rotation = Vector3.new(-90, 0, 0)
- Part71.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part71.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.BrickColor = BrickColor.new("Smoky grey")
- Part71.CanCollide = false
- Part71.Material = Enum.Material.Metal
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.brickColor = BrickColor.new("Smoky grey")
- Part72.Parent = Model4
- Part72.CFrame = CFrame.new(-64.2387085, 3.47564697, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part72.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part72.Position = Vector3.new(-64.238708496094, 3.4756469726563, -54.175640106201)
- Part72.Rotation = Vector3.new(-90, 0, 0)
- Part72.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part72.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.BrickColor = BrickColor.new("Smoky grey")
- Part72.CanCollide = false
- Part72.Material = Enum.Material.Metal
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.brickColor = BrickColor.new("Smoky grey")
- Part73.Parent = Model4
- Part73.CFrame = CFrame.new(-64.2879181, 3.47564697, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part73.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part73.Position = Vector3.new(-64.28791809082, 3.4756469726563, -54.175640106201)
- Part73.Rotation = Vector3.new(-90, 0, 0)
- Part73.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part73.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part73.BottomSurface = Enum.SurfaceType.Smooth
- Part73.BrickColor = BrickColor.new("Smoky grey")
- Part73.CanCollide = false
- Part73.Material = Enum.Material.Metal
- Part73.TopSurface = Enum.SurfaceType.Smooth
- Part73.brickColor = BrickColor.new("Smoky grey")
- Part74.Parent = Model4
- Part74.CFrame = CFrame.new(-65.4890976, 3.43814278, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part74.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part74.Position = Vector3.new(-65.489097595215, 3.4381427764893, -54.175640106201)
- Part74.Rotation = Vector3.new(-90, 0, 0)
- Part74.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part74.Size = Vector3.new(0.2225998044014, 0.14920002222061, 0.025000000372529)
- Part74.BottomSurface = Enum.SurfaceType.Smooth
- Part74.BrickColor = BrickColor.new("Smoky grey")
- Part74.CanCollide = false
- Part74.Material = Enum.Material.Metal
- Part74.TopSurface = Enum.SurfaceType.Smooth
- Part74.brickColor = BrickColor.new("Smoky grey")
- Model75.Name = "trigger"
- Model75.Parent = Model4
- Part76.Parent = Model75
- Part76.CFrame = CFrame.new(-64.4763718, 2.9172678, -54.1756401, 0.766044319, 0, 0.642787576, -0.642787576, 0, 0.766044319, 0, -1, 0)
- Part76.Orientation = Vector3.new(-50, 90, -90)
- Part76.Position = Vector3.new(-64.476371765137, 2.9172677993774, -54.175640106201)
- Part76.Rotation = Vector3.new(-90, 40, 0)
- Part76.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part76.Size = Vector3.new(0.024999864399433, 0.049999978393316, 0.08500000834465)
- Part76.BottomSurface = Enum.SurfaceType.Smooth
- Part76.BrickColor = BrickColor.new("Smoky grey")
- Part76.CanCollide = false
- Part76.Material = Enum.Material.Metal
- Part76.TopSurface = Enum.SurfaceType.Smooth
- Part76.brickColor = BrickColor.new("Smoky grey")
- Part77.Name = "triggerpart"
- Part77.Parent = Model75
- Part77.CFrame = CFrame.new(-64.4417648, 2.99728775, -54.1756401, 0.98480767, 0, 0.173648164, -0.173648164, 0, 0.98480767, 0, -1, 0)
- Part77.Orientation = Vector3.new(-80, 90, -90)
- Part77.Position = Vector3.new(-64.441764831543, 2.9972877502441, -54.175640106201)
- Part77.Rotation = Vector3.new(-90, 10, 0)
- Part77.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part77.Size = Vector3.new(0.024999855086207, 0.049999974668026, 0.10487762093544)
- Part77.BottomSurface = Enum.SurfaceType.Smooth
- Part77.BrickColor = BrickColor.new("Smoky grey")
- Part77.CanCollide = false
- Part77.Material = Enum.Material.Metal
- Part77.TopSurface = Enum.SurfaceType.Smooth
- Part77.brickColor = BrickColor.new("Smoky grey")
- Weld78.Parent = Part77
- Weld78.C0 = CFrame.new(-0.0201873779, 0, -0.0848140717, 0.866025329, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025329)
- Weld78.Part0 = Part77
- Weld78.Part1 = Part76
- Weld78.part1 = Part76
- Part79.Parent = Model4
- Part79.CFrame = CFrame.new(-64.3820419, 2.88769794, -54.1756439, -0.996191263, 0, -0.0871554017, 0.0871554017, 0, -0.996191263, 0, -1, -0)
- Part79.Orientation = Vector3.new(85, -90, 90)
- Part79.Position = Vector3.new(-64.382041931152, 2.8876979351044, -54.175643920898)
- Part79.Rotation = Vector3.new(90, -5, -180)
- Part79.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part79.Size = Vector3.new(0.025000000372529, 0.04840000718832, 0.098399996757507)
- Part79.BottomSurface = Enum.SurfaceType.Smooth
- Part79.BrickColor = BrickColor.new("Smoky grey")
- Part79.CanCollide = false
- Part79.Material = Enum.Material.Metal
- Part79.TopSurface = Enum.SurfaceType.Smooth
- Part79.brickColor = BrickColor.new("Smoky grey")
- Part80.Parent = Model4
- Part80.CFrame = CFrame.new(-64.6288452, 2.93083215, -54.1756401, -0.999999881, 0, -2.98023224e-08, 2.98023224e-08, 0, -0.999999881, 0, -1, -0)
- Part80.Orientation = Vector3.new(89.970001220703, -90, 90)
- Part80.Position = Vector3.new(-64.628845214844, 2.9308321475983, -54.175640106201)
- Part80.Rotation = Vector3.new(90, 0, -180)
- Part80.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part80.Size = Vector3.new(0.025000000372529, 0.049999997019768, 0.20000000298023)
- Part80.BottomSurface = Enum.SurfaceType.Smooth
- Part80.BrickColor = BrickColor.new("Smoky grey")
- Part80.CanCollide = false
- Part80.Material = Enum.Material.Metal
- Part80.TopSurface = Enum.SurfaceType.Smooth
- Part80.brickColor = BrickColor.new("Smoky grey")
- Part81.Parent = Model4
- Part81.CFrame = CFrame.new(-67.75, 3.14064121, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part81.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part81.Position = Vector3.new(-67.75, 3.1406412124634, -54.175640106201)
- Part81.Rotation = Vector3.new(-90, 0, 0)
- Part81.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part81.Size = Vector3.new(0.29999947547913, 0.14760001003742, 0.029999997466803)
- Part81.BottomSurface = Enum.SurfaceType.Smooth
- Part81.BrickColor = BrickColor.new("Smoky grey")
- Part81.CanCollide = false
- Part81.Material = Enum.Material.Metal
- Part81.TopSurface = Enum.SurfaceType.Smooth
- Part81.brickColor = BrickColor.new("Smoky grey")
- Part82.Parent = Model4
- Part82.CFrame = CFrame.new(-64.1863174, 3.47564507, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part82.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part82.Position = Vector3.new(-64.186317443848, 3.4756450653076, -54.175640106201)
- Part82.Rotation = Vector3.new(-90, 0, 0)
- Part82.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part82.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part82.BottomSurface = Enum.SurfaceType.Smooth
- Part82.BrickColor = BrickColor.new("Smoky grey")
- Part82.CanCollide = false
- Part82.Material = Enum.Material.Metal
- Part82.TopSurface = Enum.SurfaceType.Smooth
- Part82.brickColor = BrickColor.new("Smoky grey")
- Part83.Parent = Model4
- Part83.CFrame = CFrame.new(-64.1371078, 3.47564507, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part83.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part83.Position = Vector3.new(-64.137107849121, 3.4756450653076, -54.175640106201)
- Part83.Rotation = Vector3.new(-90, 0, 0)
- Part83.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part83.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
- Part83.BottomSurface = Enum.SurfaceType.Smooth
- Part83.BrickColor = BrickColor.new("Smoky grey")
- Part83.CanCollide = false
- Part83.Material = Enum.Material.Metal
- Part83.TopSurface = Enum.SurfaceType.Smooth
- Part83.brickColor = BrickColor.new("Smoky grey")
- Part84.Name = "lufa"
- Part84.Parent = Model4
- Part84.CFrame = CFrame.new(-67.6095047, 3.20064092, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part84.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part84.Position = Vector3.new(-67.609504699707, 3.2006409168243, -54.175640106201)
- Part84.Rotation = Vector3.new(-90, 0, 0)
- Part84.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part84.Size = Vector3.new(0.028999615460634, 0.11999998986721, 0.12399999797344)
- Part84.BottomSurface = Enum.SurfaceType.Smooth
- Part84.BrickColor = BrickColor.new("Really black")
- Part84.CanCollide = false
- Part84.Material = Enum.Material.Metal
- Part84.TopSurface = Enum.SurfaceType.Smooth
- Part84.brickColor = BrickColor.new("Really black")
- Part85.Parent = Model4
- Part85.CFrame = CFrame.new(-63.5874939, 3.00063848, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part85.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part85.Position = Vector3.new(-63.587493896484, 3.0006384849548, -54.175640106201)
- Part85.Rotation = Vector3.new(-90, 0, 0)
- Part85.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part85.Size = Vector3.new(0.42499971389771, 0.10000000149012, 0.049999997019768)
- Part85.BottomSurface = Enum.SurfaceType.Smooth
- Part85.BrickColor = BrickColor.new("Smoky grey")
- Part85.CanCollide = false
- Part85.Material = Enum.Material.Metal
- Part85.TopSurface = Enum.SurfaceType.Smooth
- Part85.brickColor = BrickColor.new("Smoky grey")
- Part86.Parent = Model4
- Part86.CFrame = CFrame.new(-63.219429, 2.84079576, -54.1756401, 0.766044378, 0, 0.642787457, -0.642787457, 0, 0.766044378, 0, -1, 0)
- Part86.Orientation = Vector3.new(-50, 90, -90)
- Part86.Position = Vector3.new(-63.219429016113, 2.8407957553864, -54.175640106201)
- Part86.Rotation = Vector3.new(-90, 40, 0)
- Part86.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part86.Size = Vector3.new(0.49999976158142, 0.10000000149012, 0.075000002980232)
- Part86.BottomSurface = Enum.SurfaceType.Smooth
- Part86.BrickColor = BrickColor.new("Smoky grey")
- Part86.CanCollide = false
- Part86.Material = Enum.Material.Metal
- Part86.TopSurface = Enum.SurfaceType.Smooth
- Part86.brickColor = BrickColor.new("Smoky grey")
- Part87.Parent = Model4
- Part87.CFrame = CFrame.new(-63.0124969, 2.68813419, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part87.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part87.Position = Vector3.new(-63.012496948242, 2.6881341934204, -54.175640106201)
- Part87.Rotation = Vector3.new(-90, 0, 0)
- Part87.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part87.Size = Vector3.new(0.07499971985817, 0.10000000149012, 0.074999988079071)
- Part87.BottomSurface = Enum.SurfaceType.Smooth
- Part87.BrickColor = BrickColor.new("Smoky grey")
- Part87.CanCollide = false
- Part87.Material = Enum.Material.Metal
- Part87.TopSurface = Enum.SurfaceType.Smooth
- Part87.brickColor = BrickColor.new("Smoky grey")
- Part88.Parent = Model4
- Part88.CFrame = CFrame.new(-62.8874969, 2.87563467, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part88.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part88.Position = Vector3.new(-62.887496948242, 2.8756346702576, -54.175640106201)
- Part88.Rotation = Vector3.new(-90, 0, 0)
- Part88.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part88.Size = Vector3.new(0.17499972879887, 0.10000000149012, 0.39999997615814)
- Part88.BottomSurface = Enum.SurfaceType.Smooth
- Part88.BrickColor = BrickColor.new("Smoky grey")
- Part88.CanCollide = false
- Part88.Material = Enum.Material.Metal
- Part88.TopSurface = Enum.SurfaceType.Smooth
- Part88.brickColor = BrickColor.new("Smoky grey")
- Part89.Parent = Model4
- Part89.CFrame = CFrame.new(-62.8999939, 3.13814068, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part89.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part89.Position = Vector3.new(-62.899993896484, 3.1381406784058, -54.175640106201)
- Part89.Rotation = Vector3.new(-90, 0, 0)
- Part89.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part89.Size = Vector3.new(0.1499997228384, 0.10000000149012, 0.024999994784594)
- Part89.BottomSurface = Enum.SurfaceType.Smooth
- Part89.BrickColor = BrickColor.new("Smoky grey")
- Part89.CanCollide = false
- Part89.Material = Enum.Material.Metal
- Part89.TopSurface = Enum.SurfaceType.Smooth
- Part89.brickColor = BrickColor.new("Smoky grey")
- Part90.Parent = Model4
- Part90.CFrame = CFrame.new(-62.8999939, 3.10063934, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part90.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part90.Position = Vector3.new(-62.899993896484, 3.1006393432617, -54.175640106201)
- Part90.Rotation = Vector3.new(-90, 0, 0)
- Part90.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part90.Size = Vector3.new(0.1499997228384, 0.10000000149012, 0.049999997019768)
- Part90.BottomSurface = Enum.SurfaceType.Smooth
- Part90.BrickColor = BrickColor.new("Smoky grey")
- Part90.CanCollide = false
- Part90.Material = Enum.Material.Metal
- Part90.TopSurface = Enum.SurfaceType.Smooth
- Part90.brickColor = BrickColor.new("Smoky grey")
- Part91.Parent = Model4
- Part91.CFrame = CFrame.new(-63.3874931, 3.10063958, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part91.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part91.Position = Vector3.new(-63.387493133545, 3.1006395816803, -54.175640106201)
- Part91.Rotation = Vector3.new(-90, 0, 0)
- Part91.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part91.Size = Vector3.new(0.82499969005585, 0.10000000149012, 0.049999997019768)
- Part91.BottomSurface = Enum.SurfaceType.Smooth
- Part91.BrickColor = BrickColor.new("Smoky grey")
- Part91.CanCollide = false
- Part91.Material = Enum.Material.Metal
- Part91.TopSurface = Enum.SurfaceType.Smooth
- Part91.brickColor = BrickColor.new("Smoky grey")
- Part92.Parent = Model4
- Part92.CFrame = CFrame.new(-66.1044922, 3.26399612, -54.1759987, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part92.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part92.Position = Vector3.new(-66.1044921875, 3.2639961242676, -54.175998687744)
- Part92.Rotation = Vector3.new(-90, 0, 0)
- Part92.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part92.Size = Vector3.new(0.25999999046326, 0.15500001609325, 0.024999996647239)
- Part92.BottomSurface = Enum.SurfaceType.Smooth
- Part92.BrickColor = BrickColor.new("Really black")
- Part92.CanCollide = false
- Part92.Material = Enum.Material.SmoothPlastic
- Part92.TopSurface = Enum.SurfaceType.Smooth
- Part92.brickColor = BrickColor.new("Really black")
- Part93.Parent = Model4
- Part93.CFrame = CFrame.new(-65.7924957, 3.26399708, -54.1759987, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part93.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part93.Position = Vector3.new(-65.792495727539, 3.2639970779419, -54.175998687744)
- Part93.Rotation = Vector3.new(-90, 0, 0)
- Part93.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part93.Size = Vector3.new(0.25999999046326, 0.15500001609325, 0.024999996647239)
- Part93.BottomSurface = Enum.SurfaceType.Smooth
- Part93.BrickColor = BrickColor.new("Really black")
- Part93.CanCollide = false
- Part93.Material = Enum.Material.SmoothPlastic
- Part93.TopSurface = Enum.SurfaceType.Smooth
- Part93.brickColor = BrickColor.new("Really black")
- Part94.Parent = Model4
- Part94.CFrame = CFrame.new(-65.9419937, 3.25099945, -54.1759987, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part94.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part94.Position = Vector3.new(-65.941993713379, 3.2509994506836, -54.175998687744)
- Part94.Rotation = Vector3.new(-90, 0, 0)
- Part94.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part94.Size = Vector3.new(0.6370000243187, 0.15500001609325, 0.024999996647239)
- Part94.BottomSurface = Enum.SurfaceType.Smooth
- Part94.BrickColor = BrickColor.new("Really black")
- Part94.CanCollide = false
- Part94.Material = Enum.Material.SmoothPlastic
- Part94.TopSurface = Enum.SurfaceType.Smooth
- Part94.brickColor = BrickColor.new("Really black")
- Part95.Parent = Model4
- Part95.CFrame = CFrame.new(-64.6495895, 3.45064497, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part95.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part95.Position = Vector3.new(-64.649589538574, 3.4506449699402, -54.175640106201)
- Part95.Rotation = Vector3.new(-90, 0, 0)
- Part95.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part95.Size = Vector3.new(1.1000000238419, 0.14920002222061, 0.050000000745058)
- Part95.BottomSurface = Enum.SurfaceType.Smooth
- Part95.BrickColor = BrickColor.new("Smoky grey")
- Part95.CanCollide = false
- Part95.Material = Enum.Material.Metal
- Part95.TopSurface = Enum.SurfaceType.Smooth
- Part95.brickColor = BrickColor.new("Smoky grey")
- Part96.Parent = Model4
- Part96.CFrame = CFrame.new(-65.2861023, 3.44564176, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part96.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part96.Position = Vector3.new(-65.286102294922, 3.4456417560577, -54.175640106201)
- Part96.Rotation = Vector3.new(-90, 0, 0)
- Part96.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part96.Size = Vector3.new(0.22219982743263, 0.14920002222061, 0.03999999910593)
- Part96.BottomSurface = Enum.SurfaceType.Smooth
- Part96.BrickColor = BrickColor.new("Smoky grey")
- Part96.CanCollide = false
- Part96.Material = Enum.Material.Metal
- Part96.TopSurface = Enum.SurfaceType.Smooth
- Part96.brickColor = BrickColor.new("Smoky grey")
- Part97.Parent = Model4
- Part97.CFrame = CFrame.new(-64.5024948, 2.83813596, -54.1756401, -2.98023224e-08, 0, 0.999999821, -0.999999821, 0, -2.98023224e-08, -0, -1, 0)
- Part97.Orientation = Vector3.new(0, 90, -90)
- Part97.Position = Vector3.new(-64.502494812012, 2.8381359577179, -54.175640106201)
- Part97.Rotation = Vector3.new(90, 89.970001220703, -180)
- Part97.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part97.Size = Vector3.new(0.024999896064401, 0.049999967217445, 0.25499999523163)
- Part97.BottomSurface = Enum.SurfaceType.Smooth
- Part97.BrickColor = BrickColor.new("Smoky grey")
- Part97.CanCollide = false
- Part97.Material = Enum.Material.Metal
- Part97.TopSurface = Enum.SurfaceType.Smooth
- Part97.brickColor = BrickColor.new("Smoky grey")
- Model98.Name = "mag"
- Model98.Parent = Model4
- Part99.Parent = Model98
- Part99.CFrame = CFrame.new(-65.1491699, 2.66158533, -54.1756401, 0.98480767, 0, 0.173648179, -0.173648179, 0, 0.98480767, 0, -1, 0)
- Part99.Orientation = Vector3.new(-80, 90, -90)
- Part99.Position = Vector3.new(-65.149169921875, 2.6615853309631, -54.175640106201)
- Part99.Rotation = Vector3.new(-90, 10, 0)
- Part99.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part99.Size = Vector3.new(0.049999862909317, 0.097600013017654, 0.93659996986389)
- Part99.BottomSurface = Enum.SurfaceType.Smooth
- Part99.BrickColor = BrickColor.new("Smoky grey")
- Part99.CanCollide = false
- Part99.Material = Enum.Material.SmoothPlastic
- Part99.TopSurface = Enum.SurfaceType.Smooth
- Part99.brickColor = BrickColor.new("Smoky grey")
- Part100.Name = "magpart"
- Part100.Parent = Model98
- Part100.CFrame = CFrame.new(-64.9891357, 2.63336635, -54.1756401, 0.98480773, 0, 0.173648193, -0.173648193, 0, 0.98480773, 0, -1, 0)
- Part100.Orientation = Vector3.new(-80, 90, -90)
- Part100.Position = Vector3.new(-64.989135742188, 2.6333663463593, -54.175640106201)
- Part100.Rotation = Vector3.new(-90, 10, 0)
- Part100.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part100.Size = Vector3.new(0.27499985694885, 0.14760001003742, 0.93659996986389)
- Part100.BottomSurface = Enum.SurfaceType.Smooth
- Part100.BrickColor = BrickColor.new("Smoky grey")
- Part100.CanCollide = false
- Part100.Material = Enum.Material.SmoothPlastic
- Part100.TopSurface = Enum.SurfaceType.Smooth
- Part100.brickColor = BrickColor.new("Smoky grey")
- Weld101.Parent = Part100
- Weld101.C0 = CFrame.new(-0.162506104, 0, 0, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
- Weld101.Part0 = Part100
- Weld101.Part1 = Part99
- Weld101.part1 = Part99
- Weld102.Parent = Part100
- Weld102.C0 = CFrame.new(-0.162513733, 0, -0.475002289, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
- Weld102.Part0 = Part100
- Weld102.Part1 = Part105
- Weld102.part1 = Part105
- Weld103.Parent = Part100
- Weld103.C0 = CFrame.new(0.00598907471, 0, -0.475001335, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
- Weld103.Part0 = Part100
- Weld103.Part1 = Part104
- Weld103.part1 = Part104
- Part104.Parent = Model98
- Part104.CFrame = CFrame.new(-65.0657196, 2.16454124, -54.1756401, 0.98480767, 0, 0.173648179, -0.173648179, 0, 0.98480767, 0, -1, 0)
- Part104.Orientation = Vector3.new(-80, 90, -90)
- Part104.Position = Vector3.new(-65.065719604492, 2.1645412445068, -54.175640106201)
- Part104.Rotation = Vector3.new(-90, 10, 0)
- Part104.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part104.Size = Vector3.new(0.28699985146523, 0.14760001003742, 0.035999998450279)
- Part104.BottomSurface = Enum.SurfaceType.Smooth
- Part104.BrickColor = BrickColor.new("Smoky grey")
- Part104.CanCollide = false
- Part104.Material = Enum.Material.SmoothPlastic
- Part104.TopSurface = Enum.SurfaceType.Smooth
- Part104.brickColor = BrickColor.new("Smoky grey")
- Part105.Parent = Model98
- Part105.CFrame = CFrame.new(-65.2316666, 2.19380069, -54.1756401, 0.98480767, 0, 0.173648179, -0.173648179, 0, 0.98480767, 0, -1, 0)
- Part105.Orientation = Vector3.new(-80, 90, -90)
- Part105.Position = Vector3.new(-65.231666564941, 2.1938006877899, -54.175640106201)
- Part105.Rotation = Vector3.new(-90, 10, 0)
- Part105.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part105.Size = Vector3.new(0.049999862909317, 0.097600013017654, 0.036599934101105)
- Part105.BottomSurface = Enum.SurfaceType.Smooth
- Part105.BrickColor = BrickColor.new("Smoky grey")
- Part105.CanCollide = false
- Part105.Material = Enum.Material.SmoothPlastic
- Part105.TopSurface = Enum.SurfaceType.Smooth
- Part105.brickColor = BrickColor.new("Smoky grey")
- Part106.Parent = Model4
- Part106.CFrame = CFrame.new(-62.8999939, 2.67563486, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part106.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part106.Position = Vector3.new(-62.899993896484, 2.6756348609924, -54.175640106201)
- Part106.Rotation = Vector3.new(-90, 0, 0)
- Part106.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part106.Size = Vector3.new(0.1499997228384, 0.10000000149012, 0.049999982118607)
- Part106.BottomSurface = Enum.SurfaceType.Smooth
- Part106.BrickColor = BrickColor.new("Smoky grey")
- Part106.CanCollide = false
- Part106.Material = Enum.Material.Metal
- Part106.TopSurface = Enum.SurfaceType.Smooth
- Part106.brickColor = BrickColor.new("Smoky grey")
- Part107.Parent = Model4
- Part107.CFrame = CFrame.new(-65.8375015, 3.25064254, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part107.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part107.Position = Vector3.new(-65.837501525879, 3.2506425380707, -54.175640106201)
- Part107.Rotation = Vector3.new(-90, 0, 0)
- Part107.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part107.Size = Vector3.new(0.87499964237213, 0.14920002222061, 0.34999999403954)
- Part107.BottomSurface = Enum.SurfaceType.Smooth
- Part107.BrickColor = BrickColor.new("Smoky grey")
- Part107.CanCollide = false
- Part107.Material = Enum.Material.Metal
- Part107.TopSurface = Enum.SurfaceType.Smooth
- Part107.brickColor = BrickColor.new("Smoky grey")
- Part108.Parent = Model4
- Part108.CFrame = CFrame.new(-66.5124969, 3.31564188, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part108.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part108.Position = Vector3.new(-66.512496948242, 3.3156418800354, -54.175640106201)
- Part108.Rotation = Vector3.new(-90, 0, 0)
- Part108.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part108.Size = Vector3.new(0.47499963641167, 0.09680001437664, 0.079999998211861)
- Part108.BottomSurface = Enum.SurfaceType.Smooth
- Part108.BrickColor = BrickColor.new("Smoky grey")
- Part108.CanCollide = false
- Part108.Material = Enum.Material.Metal
- Part108.TopSurface = Enum.SurfaceType.Smooth
- Part108.brickColor = BrickColor.new("Smoky grey")
- Part109.Parent = Model4
- Part109.CFrame = CFrame.new(-66.9375, 3.20063877, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part109.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part109.Position = Vector3.new(-66.9375, 3.2006387710571, -54.175640106201)
- Part109.Rotation = Vector3.new(-90, 0, 0)
- Part109.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part109.Size = Vector3.new(1.3249995708466, 0.09680001437664, 0.099999994039536)
- Part109.BottomSurface = Enum.SurfaceType.Smooth
- Part109.BrickColor = BrickColor.new("Smoky grey")
- Part109.CanCollide = false
- Part109.Material = Enum.Material.Metal
- Part109.TopSurface = Enum.SurfaceType.Smooth
- Part109.brickColor = BrickColor.new("Smoky grey")
- Part110.Parent = Model4
- Part110.CFrame = CFrame.new(-67.7499924, 3.20064163, -54.1156425, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part110.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part110.Position = Vector3.new(-67.749992370605, 3.2006416320801, -54.115642547607)
- Part110.Rotation = Vector3.new(-90, 0, 0)
- Part110.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part110.Size = Vector3.new(0.29999947547913, 0.027600016444921, 0.1499999910593)
- Part110.BottomSurface = Enum.SurfaceType.Smooth
- Part110.BrickColor = BrickColor.new("Smoky grey")
- Part110.CanCollide = false
- Part110.Material = Enum.Material.Metal
- Part110.TopSurface = Enum.SurfaceType.Smooth
- Part110.brickColor = BrickColor.new("Smoky grey")
- Part111.Parent = Model4
- Part111.CFrame = CFrame.new(-67.2666092, 3.24776053, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
- Part111.Orientation = Vector3.new(-85, -90, 90)
- Part111.Position = Vector3.new(-67.266609191895, 3.2477605342865, -54.175640106201)
- Part111.Rotation = Vector3.new(-90, -5, 0)
- Part111.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part111.Size = Vector3.new(0.12499952316284, 0.022000014781952, 0.044599998742342)
- Part111.BottomSurface = Enum.SurfaceType.Smooth
- Part111.BrickColor = BrickColor.new("Smoky grey")
- Part111.CanCollide = false
- Part111.Material = Enum.Material.Metal
- Part111.TopSurface = Enum.SurfaceType.Smooth
- Part111.brickColor = BrickColor.new("Smoky grey")
- Part112.Name = "Handle"
- Part112.Parent = Model4
- Part112.CFrame = CFrame.new(-64.1584702, 2.78644061, -54.1756401, 0.939692557, 0, -0.342020094, 0.342020094, 0, 0.939692557, 0, -1, 0)
- Part112.Orientation = Vector3.new(-70, -90, 90)
- Part112.Position = Vector3.new(-64.158470153809, 2.7864406108856, -54.175640106201)
- Part112.Rotation = Vector3.new(-90, -20, 0)
- Part112.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part112.Size = Vector3.new(0.1999998241663, 0.1484000235796, 0.57459998130798)
- Part112.BottomSurface = Enum.SurfaceType.Smooth
- Part112.BrickColor = BrickColor.new("Smoky grey")
- Part112.CanCollide = false
- Part112.Material = Enum.Material.Metal
- Part112.TopSurface = Enum.SurfaceType.Smooth
- Part112.brickColor = BrickColor.new("Smoky grey""Smoky grey")
- Part207.CanCollide = false
- Part207.Material = Enum.Material.Metal
- Part207.TopSurface = Enum.SurfaceType.Smooth
- Part207.brickColor = BrickColor.new("Smoky grey")
- Part208.Parent = Model4
- Part208.CFrame = CFrame.new(-64.0217514, 3.36447239, -54.1756401, 0.642787397, 0, -0.766044617, 0.766044617, 0, 0.642787397, 0, -1, 0)
- Part208.Orientation = Vector3.new(-40, -90, 90)
- Part208.Position = Vector3.new(-64.021751403809, 3.3644723892212, -54.175640106201)
- Part208.Rotation = Vector3.new(-90, -50, 0)
- Part208.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part208.Size = Vector3.new(0.054999709129333, 0.15200001001358, 0.17720001935959)
- Part208.BottomSurface = Enum.SurfaceType.Smooth
- Part208.BrickColor = BrickColor.new("Really black")
- Part208.CanCollide = false
- Part208.Material = Enum.Material.Metal
- Part208.TopSurface = Enum.SurfaceType.Smooth
- Part208.brickColor = BrickColor.new("Really black")
- Part209.Parent = Model4
- Part209.CFrame = CFrame.new(-64.0746155, 2.48295736, -54.1756401, 0.939692438, 0, -0.342020065, 0.342020065, 0, 0.939692438, 0, -1, 0)
- Part209.Orientation = Vector3.new(-70, -90, 90)
- Part209.Position = Vector3.new(-64.074615478516, 2.4829573631287, -54.175640106201)
- Part209.Rotation = Vector3.new(-90, -20, 0)
- Part209.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part209.Size = Vector3.new(0.24999982118607, 0.1484000235796, 0.054999981075525)
- Part209.BottomSurface = Enum.SurfaceType.Smooth
- Part209.BrickColor = BrickColor.new("Smoky grey")
- Part209.CanCollide = false
- Part209.Material = Enum.Material.Metal
- Part209.TopSurface = Enum.SurfaceType.Smooth
- Part209.brickColor = BrickColor.new("Smoky grey")
- Part210.Parent = Model4
- Part210.CFrame = CFrame.new(-63.8624992, 3.26314044, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
- Part210.Orientation = Vector3.new(-89.970001220703, 0, 0)
- Part210.Position = Vector3.new(-63.862499237061, 3.2631404399872, -54.175640106201)
- Part210.Rotation = Vector3.new(-90, 0, 0)
- Part210.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part210.Size = Vector3.new(0.12499971687794, 0.20000000298023, 0.075000002980232)
- Part210.BottomSurface = Enum.SurfaceType.Smooth
- Part210.BrickColor = BrickColor.new("Smoky grey")
- Part210.CanCollide = false
- Part210.Material = Enum.Material.Metal
- Part210.TopSurface = Enum.SurfaceType.Smooth
- Part210.brickColor = BrickColor.new("Smoky grey")
- Part211.Parent = Model4
- Part211.CFrame = CFrame.new(-67.3173981, 3.39796901, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
- Part211.Orientation = Vector3.new(-85, -90, 90)
- Part211.Position = Vector3.new(-67.317398071289, 3.3979690074921, -54.175640106201)
- Part211.Rotation = Vector3.new(-90, -5, 0)
- Part211.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part211.Size = Vector3.new(0.04999952018261, 0.022000014781952, 0.039599999785423)
- Part211.BottomSurface = Enum.SurfaceType.Smooth
- Part211.BrickColor = BrickColor.new("Smoky grey")
- Part211.CanCollide = false
- Part211.Material = Enum.Material.Metal
- Part211.TopSurface = Enum.SurfaceType.Smooth
- Part211.brickColor = BrickColor.new("Smoky grey")
- Part212.Parent = Model4
- Part212.CFrame = CFrame.new(-67.3274689, 3.42720032, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
- Part212.Orientation = Vector3.new(-85, -90, 90)
- Part212.Position = Vector3.new(-67.32746887207, 3.4272003173828, -54.175640106201)
- Part212.Rotation = Vector3.new(-90, -5, 0)
- Part212.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part212.Size = Vector3.new(0.034999519586563, 0.022000014781952, 0.039599999785423)
- Part212.BottomSurface = Enum.SurfaceType.Smooth
- Part212.BrickColor = BrickColor.new("Smoky grey")
- Part212.CanCollide = false
- Part212.Material = Enum.Material.Metal
- Part212.TopSurface = Enum.SurfaceType.Smooth
- Part212.brickColor = BrickColor.new("Smoky grey")
- Folder213.Name = "settings"
- Folder213.Parent = Tool0
- NumberValue214.Name = "bchambered"
- NumberValue214.Parent = Folder213
- NumberValue215.Name = "magleft"
- NumberValue215.Parent = Folder213
- NumberValue215.Value = 100
- NumberValue216.Name = "bspeed"
- NumberValue216.Parent = Folder213
- NumberValue216.Value = 50.7
- NumberValue217.Name = "inmag"
- NumberValue217.Parent = Folder213
- NumberValue217.Value = 30
- NumberValue218.Name = "maxwpenetration"
- NumberValue218.Parent = Folder213
- NumberValue218.Value = 1
- StringValue219.Name = "mode"
- StringValue219.Parent = Folder213
- StringValue219.Value = "auto"
- NumberValue220.Name = "speed"
- NumberValue220.Parent = Folder213
- NumberValue220.Value = 0.086
- NumberValue221.Name = "maxmagcapacity"
- NumberValue221.Parent = Folder213
- NumberValue221.Value = 30
- ScreenGui222.Name = "gui"
- ScreenGui222.Parent = Tool0
- ScreenGui222.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- TextLabel223.Name = "ammo"
- TextLabel223.Parent = ScreenGui222
- TextLabel223.Position = UDim2.new(1, -220, 1, -100)
- TextLabel223.Size = UDim2.new(0, 150, 0, 60)
- TextLabel223.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel223.BackgroundColor = BrickColor.new("Really black")
- TextLabel223.BackgroundColor3 = Color3.new(0, 0, 0)
- TextLabel223.BackgroundTransparency = 0.64999997615814
- TextLabel223.Font = Enum.Font.SourceSans
- TextLabel223.FontSize = Enum.FontSize.Size14
- TextLabel223.Text = "ammo"
- TextLabel223.TextColor = BrickColor.new("Institutional white")
- TextLabel223.TextColor3 = Color3.new(1, 1, 1)
- TextLabel223.TextScaled = true
- TextLabel223.TextSize = 14
- TextLabel223.TextWrap = true
- TextLabel223.TextWrapped = true
- TextLabel224.Name = "mag"
- TextLabel224.Parent = TextLabel223
- TextLabel224.Position = UDim2.new(0, 190, 0, 30)
- TextLabel224.Size = UDim2.new(0, 60, 0, 60)
- TextLabel224.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel224.BackgroundColor = BrickColor.new("Really black")
- TextLabel224.BackgroundColor3 = Color3.new(0, 0, 0)
- TextLabel224.BackgroundTransparency = 0.64999997615814
- TextLabel224.Font = Enum.Font.SourceSans
- TextLabel224.FontSize = Enum.FontSize.Size14
- TextLabel224.Text = "mag"
- TextLabel224.TextColor = BrickColor.new("Institutional white")
- TextLabel224.TextColor3 = Color3.new(1, 1, 1)
- TextLabel224.TextScaled = true
- TextLabel224.TextSize = 14
- TextLabel224.TextWrap = true
- TextLabel224.TextWrapped = true
- TextLabel225.Name = "chambered"
- TextLabel225.Parent = TextLabel223
- TextLabel225.Position = UDim2.new(0, 35, 0, 20)
- TextLabel225.Size = UDim2.new(0, 30, 0, 30)
- TextLabel225.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel225.BackgroundColor = BrickColor.new("Really black")
- TextLabel225.BackgroundColor3 = Color3.new(0, 0, 0)
- TextLabel225.BackgroundTransparency = 1
- TextLabel225.Font = Enum.Font.SourceSans
- TextLabel225.FontSize = Enum.FontSize.Size14
- TextLabel225.Text = "c"
- TextLabel225.TextColor = BrickColor.new("Institutional white")
- TextLabel225.TextColor3 = Color3.new(1, 1, 1)
- TextLabel225.TextScaled = true
- TextLabel225.TextSize = 14
- TextLabel225.TextWrap = true
- TextLabel225.TextWrapped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner:FindFirstChildOfClass("Backpack")
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- NLS([[local players = game:GetService("Players")
- local runservice = game:GetService("RunService")
- local tweenservice = game:GetService("TweenService")
- local debris = game:GetService("Debris")
- local easingstyles = Enum.EasingStyle
- local easingdirs = Enum.EasingDirection
- --stuff
- local tool = script.Parent
- local remote = tool:WaitForChild("gunremote")
- local gunmodel = tool.GunModel
- local handle = gunmodel:FindFirstChild("Handle")
- local mainpart = gunmodel:FindFirstChild("mainpart")
- local owner = players.LocalPlayer
- local ownergui = owner:FindFirstChildOfClass("PlayerGui")
- local cam = workspace.CurrentCamera
- local mouse = owner:GetMouse()
- local character
- local humanoid
- local head
- local hrp
- local larmcweld
- local rarmcweld
- local guncweld
- local guncmodel
- local maincpart
- local boltcweld
- local boltcmainpart
- local gunclufa
- local magcmodel
- local reloadmagcmodel
- local reloadmagcpart
- local reloadmagcweld
- local viewmodel
- --vars
- local state = "unequipped"
- local adsing = false
- local rstepgun
- local savedfov
- local currentlyfps = false
- offset = CFrame.new()
- --ticks
- local equiptick
- local shoottick
- local delta
- local frametick = tick()
- --bullet data
- local settingfolder = tool:WaitForChild("settings")
- local bchambered = settingfolder:WaitForChild("bchambered")
- local binmag = settingfolder:WaitForChild("inmag")
- local gunspeed = settingfolder:WaitForChild("speed")
- local magleft = settingfolder:WaitForChild("magleft")
- --gui data
- local gui = tool:WaitForChild("gui")
- local ammogui = gui:WaitForChild("ammo")
- local maggui = ammogui:WaitForChild("mag")
- local chamberedgui = ammogui:WaitForChild("chambered")
- magleft.Changed:Connect(function(new)
- maggui.Text = tostring(new)
- end)
- binmag.Changed:Connect(function(new)
- ammogui.Text = tostring(new)
- end)
- bchambered.Changed:Connect(function(new)
- chamberedgui.Text = tostring(new)
- end)
- --recoil data
- local currentcspeed = 1.5
- local recmult = 1
- local rectime = 0.1
- local recdampmult = 3
- local recxamount = 10
- local recyamount = 4
- local reczamount = 15
- local recoilcf = CFrame.new()
- local frametick = tick()
- local recoiltick = tick()
- --
- local shellfallspeed = 60
- local shellflytime = 1
- --gun parts
- local gunparts = {}
- for i,v in pairs(gunmodel:GetDescendants()) do
- if v:IsA("BasePart") then
- table.insert(gunparts, v)
- end
- end
- function guntransparency(tr)
- for i,v in pairs(gunparts) do --looping through an already made table alone is faster than getdescendants and then looping
- v.LocalTransparencyModifier = tr
- end
- end
- function modeltransparency(m, tr) -- this is for stuff like fps mags
- for i,v in pairs(m:GetDescendants()) do
- if v:IsA("BasePart") then
- v.LocalTransparencyModifier = tr
- end
- end
- end
- --pose data
- poses = {
- equip = {
- [1] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
- hw = {CFrame.new(-0.0665130615, 0, -0.0558013916, 0.764023483, -0.133021921, 0.631326377, 0.0301536229, 0.984807849, 0.17100969, -0.644483387, -0.111618645, 0.756427288), easingstyles.Sine, easingdirs.In},
- gw = {CFrame.new(-0.459022522, 0.0749015808, 0.17483139, 2.98023224e-08, 0.999999404, 5.58793545e-08, 0.939692438, -2.68220901e-07, -0.342020184, -0.342019945, 0, -0.939691842), easingstyles.Sine, easingdirs.InOut},
- tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Sine, easingdirs.In},
- raw = {CFrame.new(0.832485199, -0.995883942, -0.72026825, 0.986079514, -0.00105690956, 0.166270182, 0.166003779, -0.0506849214, -0.984821558, 0.00946819782, 0.998714149, -0.0498039126), easingstyles.Sine, easingdirs.InOut},
- law = {CFrame.new(0.0268783569, -1.61439657, -2.11585999, -0.222152725, -0.453005493, 0.863385201, 0.810823023, -0.57762152, -0.0944410712, 0.541492224, 0.67907244, 0.495627582), easingstyles.Sine, easingdirs.InOut},
- },
- [2] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Linear, easingdirs.InOut},
- hw = {CFrame.new(-0.0665130615, 0, -0.0558013916, 0.764023662, -0.133021936, 0.631326437, 0.0301536229, 0.984807849, 0.17100969, -0.644483507, -0.111618653, 0.756427407), easingstyles.Linear, easingdirs.InOut},
- gw = {CFrame.new(-0.459018707, -0.325099945, 0.174833298, 2.98023224e-08, 0.999998987, 1.04308128e-07, 0.939692378, -3.87430191e-07, -0.342020214, -0.342019826, 1.49011612e-08, -0.939691484), easingstyles.Linear, easingdirs.InOut},
- raw = {CFrame.new(0.810245514, -1.00666809, -0.31388092, 0.978280365, 2.5331974e-06, 0.2072853, 0.206869617, -0.0633132458, -0.976317585, 0.0131213665, 0.997993708, -0.0619386435), easingstyles.Sine, easingdirs.InOut},
- law = {CFrame.new(0.0326385498, -1.61523056, -2.11762619, -0.256376684, -0.429218709, 0.866049647, 0.79393369, -0.604562879, -0.0645961761, 0.55130744, 0.671025276, 0.495767117), easingstyles.Sine, easingdirs.InOut},
- },
- [3] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Sine, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Sine, easingdirs.Out},
- raw = {CFrame.new(0.659713745, -1.45935869, 0.354370117, 0.99999994, -2.98023224e-08, 3.35276127e-08, 3.53902578e-08, -3.21306288e-08, -0.999999881, -2.98023224e-08, 1, -3.0035153e-08), easingstyles.Sine, easingdirs.Out},
- law = {CFrame.new(-0.000568389893, -1.6040411, -2.10723114, -0.0793336332, -0.53615725, 0.840381742, 0.862421989, -0.459712416, -0.211878672, 0.499934286, 0.707954705, 0.498864472), easingstyles.Sine, easingdirs.Out},
- }
- },
- shoot = {
- [1] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
- raw = {CFrame.new(0.659713745, -1.45935869, 0.354370117, 0.99999994, -2.98023224e-08, 3.35276127e-08, 3.53902578e-08, -3.21306288e-08, -0.999999881, -2.98023224e-08, 1, -3.0035153e-08), easingstyles.Back, easingdirs.Out},
- law = {CFrame.new(-0.000568389893, -1.6040411, -2.10723114, -0.0793336332, -0.53615725, 0.840381742, 0.862421989, -0.459712416, -0.211878672, 0.499934286, 0.707954705, 0.498864472), easingstyles.Back, easingdirs.Out},
- },
- [2] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
- raw = {CFrame.new(0.659713745, -1.45935869, 0.354370117, 0.99999994, -2.98023224e-08, 3.35276127e-08, 3.53902578e-08, -3.21306288e-08, -0.999999881, -2.98023224e-08, 1, -3.0035153e-08), easingstyles.Back, easingdirs.Out},
- law = {CFrame.new(-0.000568389893, -1.6040411, -2.10723114, -0.0793336332, -0.53615725, 0.840381742, 0.862421989, -0.459712416, -0.211878672, 0.499934286, 0.707954705, 0.498864472), easingstyles.Back, easingdirs.Out},
- }
- },
- reload = {
- [1] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.InOut},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.766044319, -0.11161875, 0.633022487, -3.7252903e-08, 0.984807789, 0.17364797, -0.642787755, -0.133022055, 0.754406393), easingstyles.Sine, easingdirs.InOut},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.InOut},
- raw = {CFrame.new(1.26604462, -0.913009644, -0.537094116, 0.999999821, -3.57627869e-07, 6.27093755e-08, 4.48221016e-10, -0.173648104, -0.984807611, 3.85997794e-07, 0.984807551, -0.173648149) * CFrame.new(0,0,0.5), easingstyles.Sine, easingdirs.InOut},
- law = {CFrame.new(-1.08869362, -1.33496189, -1.19934082, 0.766044259, 4.22527791e-10, -0.642787695, -0.111618742, 0.98480767, -0.133021995, 0.633022428, 0.17364791, 0.754406333) * CFrame.new(0,0,0.5) * CFrame.new(0,-0.8,0), easingstyles.Sine, easingdirs.InOut},
- },
- [2] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.864329457, -0.11161875, 0.490383387, 0.03015358, 0.984807789, 0.171009868, -0.502021194, -0.133022055, 0.854564071), easingstyles.Sine, easingdirs.In},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
- raw = {CFrame.new(1.11267471, -0.963647842, -0.780944824, 0.96286577, 0.230811596, -0.140053496, -0.10095071, -0.173324212, -0.979677141, -0.250395477, 0.957436204, -0.143587425) * CFrame.new(0.2,0,0) * CFrame.new(0,0,0.5) * CFrame.Angles(0,-0.05,0), easingstyles.Sine, easingdirs.In},
- law = {CFrame.new(-0.289166451, -0.800122261, -1.59056854, 0.533511698, -0.820919991, -0.203605846, -0.0797704309, 0.190816656, -0.978378952, 0.842022419, 0.53821826, 0.0363177806) * CFrame.new(0,0,0.5) * CFrame.new(0,0,0), easingstyles.Sine, easingdirs.In},
- },
- [3] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.Out},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.Out},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.Out},
- raw = {CFrame.new(0.951341629, -1.00614738, -0.96661377, 0.887119889, 0.393562078, -0.241094485, -0.185951054, -0.173324212, -0.967150807, -0.422421396, 0.902810454, -0.0805761442) * CFrame.new(0.3,0,0) * CFrame.new(0,0,0.5) * CFrame.Angles(0,-0.1,0), easingstyles.Sine, easingdirs.Out},
- law = {CFrame.new(-0.798740387, -0.729963303, -1.94239807, 0.788041711, -0.601489127, -0.131151706, -0.0967602059, 0.0893746093, -0.991286814, 0.60796994, 0.793865442, 0.0122306943) * CFrame.new(0,0,0.5) * CFrame.new(0.5,0,-0.4), easingstyles.Sine, easingdirs.Out},
- },
- [4] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.In},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
- raw = {CFrame.new(0.951341629, -1.00614738, -0.96661377, 0.887119889, 0.393562078, -0.241094485, -0.185951054, -0.173324212, -0.967150807, -0.422421396, 0.902810454, -0.0805761442) * CFrame.Angles(0,-0.45,0) * CFrame.new(0,0,0.5) * CFrame.Angles(0,-0.15,0), easingstyles.Sine, easingdirs.In},
- law = {CFrame.new(-0.733897209, -0.698638916, -1.94715118, 0.733374, -0.676505506, -0.0670995787, -0.0810378194, 0.0110032074, -0.996650279, 0.67497766, 0.736355007, -0.0467530787) * CFrame.new(0,0,0.5) * CFrame.Angles(0.15,0,0) * CFrame.new(-0.1,0,0), easingstyles.Sine, easingdirs.In},
- },
- [5] = {
- --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.Out},
- hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.Out},
- gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.Out},
- raw = {CFrame.new(0.956790924, -0.985137939, -0.964424133, 0.887119889, 0.382671088, -0.258031964, -0.185951054, -0.215345785, -0.95867002, -0.422421396, 0.898436666, -0.119879492) * CFrame.Angles(0,-0.55,0) * CFrame.new(0,0,0.4) * CFrame.Angles(0,-0.1,0), easingstyles.Sine, easingdirs.Out},
- law = {CFrame.new(-0.702912331, -0.529985428, -1.91860962, 0.691018224, -0.696123064, -0.194694132, -0.3362284, -0.0711144507, -0.939091682, 0.639877796, 0.714391232, -0.28319779) * CFrame.new(0,0,0.5) * CFrame.new(0.1,0,0), easingstyles.Sine, easingdirs.Out},
- }
- },
- aim = {
- [1] = {
- bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
- hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Sine, easingdirs.Out},
- gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Sine, easingdirs.Out},
- raw = {CFrame.new(0.659713745, -1.45935869, 0.354370117, 0.99999994, -2.98023224e-08, 3.35276127e-08, 3.53902578e-08, -3.21306288e-08, -0.999999881, -2.98023224e-08, 1, -3.0035153e-08), easingstyles.Sine, easingdirs.Out},
- law = {CFrame.new(-0.000568389893, -1.6040411, -2.10723114, -0.0793336332, -0.53615725, 0.840381742, 0.862421989, -0.459712416, -0.211878672, 0.499934286, 0.707954705, 0.498864472), easingstyles.Sine, easingdirs.Out},
- }
- },
- --individual poses
- reloadmag = {
- [1] = {
- mag = {CFrame.new(0.383216858, 0.00605773926, -0.895876884, 0.982579589, -0.0196594987, -0.184799746, 0.0194191728, 0.999806643, -0.00311047747, 0.184825167, -0.000532366452, 0.982771337), easingstyles.Sine, easingdirs.In}
- },
- [2] = {
- mag = {CFrame.new(-0.341659546, -0.00597381592, -0.82459569, 0.943051159, -0.0805884004, 0.32273832, 0.108094886, 0.99179846, -0.0682025552, -0.314594954, 0.0992048606, 0.944027781) * CFrame.new(-0.2,0.1,0), easingstyles.Sine, easingdirs.Out}
- },
- [3] = {
- mag = {CFrame.new(-0.343078613, 0.033826828, -0.555139065, 0.931312561, -0.056615673, 0.359807789, 0.0651112646, 0.997804642, -0.0115158707, -0.358372539, 0.0341522247, 0.932950974) * CFrame.Angles(0,0.3,0) * CFrame.new(-0.3,0.2,0), easingstyles.Sine, easingdirs.In}
- },
- [4] = {
- mag = {CFrame.new(-0.226425171, 0.0250015259, -0.604773998, 0.984800279, 1.56462193e-06, 0.173645124, 1.68196857e-06, 0.999979436, -5.66244125e-07, -0.173649177, -8.04662704e-07, 0.984803438), easingstyles.Sine, easingdirs.Out}
- }
- }
- }
- function clonemag(parent, name)
- local clonedmag = magcmodel:Clone()
- local clonedmagpart = clonedmag:WaitForChild("magpart")
- clonedmag.Name = name
- clonedmag.Parent = parent
- return clonedmag, clonedmagpart
- end
- function tween(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime, WHAT, goal)
- local info = TweenInfo.new(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime)
- local goals = goal
- local anim = tweenservice:Create(WHAT, info, goals)
- anim:Play()
- end
- function linearlerp(a,b,t)
- return a+(b-a)*t
- end
- function clientdropshell()
- local shell = Instance.new("SpawnLocation", gunmodel) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
- shell.Enabled = false
- shell.Name = "shell;"
- shell.Shape = "Cylinder"
- shell.Size = Vector3.new(0.25,0.1,0.1)
- shell.BrickColor = BrickColor.new("New Yeller")
- shell.Material = "Glass"
- shell.Anchored = true
- shell.CanCollide = false
- shell.CFrame = boltcweld.Part1.CFrame * CFrame.new(0.1,0,0)
- shell:BreakJoints()
- local shellfunc
- local shelltimepassed = 0
- local playedshells = false
- local currentshelly = math.random(1,10)/5
- local currentshellx = math.random(8,15)
- local ejectlookv = boltcweld.Part1.CFrame.upVector
- local ejectrightv = boltcweld.Part1.CFrame.rightVector
- shellfunc = runservice.Stepped:Connect(function(_, delta)
- shelltimepassed = shelltimepassed + delta
- shell.CFrame = CFrame.new(shell.Position, shell.Position+ejectlookv)
- * CFrame.new(0,currentshelly*delta,-currentshellx*delta)
- shell.CFrame = CFrame.new(shell.Position, shell.Position+ejectrightv)
- * CFrame.Angles(0,math.pi/2,0)
- currentshelly = currentshelly - delta*shellfallspeed
- if shelltimepassed > shellflytime then
- shell:Destroy()
- shellfunc:Disconnect()
- end
- end)
- end
- function pemit(part, color, minsize, maxsize, minlift, maxlift, speed, direction, lifetime)
- pcall(function() --tusk has a particle emitter limit thats why im pcalling
- local em = Instance.new("ParticleEmitter", part)
- em.Color = ColorSequence.new(color)
- em.Texture = "rbxassetid://375847957"
- em.Name = "gemit"
- em.Drag = 10
- em.EmissionDirection = direction
- em.Speed = NumberRange.new(speed)
- em.Rate = 500
- em.Lifetime = NumberRange.new(minlift,maxlift)
- em.SpreadAngle = Vector2.new(-20,20)
- em.Transparency = NumberSequence.new(0.75, 1)
- em.Size = NumberSequence.new(minsize, maxsize)
- task.spawn(function()
- task.wait(lifetime)
- em.Enabled = false
- debris:AddItem(em, 0.5)
- end)
- end)
- end
- function muzzleflash(size, transparency)
- local e = Instance.new("SpawnLocation", gunmodel) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
- e.Enabled = false
- Instance.new("SpecialMesh", e).MeshType = Enum.MeshType.Sphere
- local lig = Instance.new("PointLight", e)
- lig.Brightness = 1-transparency
- e.Size = size
- e.Transparency = transparency
- e.CanCollide = false
- e.Anchored = true
- e.Material = Enum.Material.Neon
- e.CFrame = gunclufa.CFrame * CFrame.new((-size.x/2)-0.3,0,0)
- pemit(gunclufa, Color3.fromRGB(255,255,255), 0.15, 0.35, 0.1, 0.2, 10, "Left", 0.1)
- debris:AddItem(e, 0.025)
- end
- function cpose(posname, posnumb, speed, backupt)
- if equiptick == backupt then
- if currentlyfps then
- if posname == "shoot" and posnumb == 1 then
- clientdropshell()
- muzzleflash(Vector3.new(2,0.6,0.6), math.random(1,15)/10)
- if adsing then
- offset = offset * CFrame.new(0,0,0.05) * CFrame.Angles(0,0,0.015)
- else
- offset = offset * CFrame.new(0,0,0.1) * CFrame.Angles(0,0,0.03)
- end
- elseif posname == "equip" and posnumb == 2 then
- recoiltick = tick()
- recoilup(0, -0.35, 1, 0.3, recoiltick)
- if bchambered.Value > 0 then
- clientdropshell()
- end
- elseif posname == "reload" then
- if posnumb == 1 then
- recoilup(-0.7, 0.3, -1, 0.4, recoiltick)
- end
- end
- end
- tween(speed, poses[posname][posnumb].raw[2], poses[posname][posnumb].raw[3], 0, false, 0, rarmcweld, {C0 = poses[posname][posnumb].raw[1]})
- tween(speed, poses[posname][posnumb].law[2], poses[posname][posnumb].law[3], 0, false, 0, larmcweld, {C0 = poses[posname][posnumb].law[1]})
- tween(speed, poses[posname][posnumb].gw[2], poses[posname][posnumb].gw[3], 0, false, 0, guncweld, {C0 = poses[posname][posnumb].gw[1]})
- tween(speed, poses[posname][posnumb].bw[2], poses[posname][posnumb].bw[3], 0, false, 0, boltcweld, {C0 = poses[posname][posnumb].bw[1]})
- end
- end
- function ciposeconvert(posname, posnumb, posdir, speed, backupt)
- if equiptick == backupt then
- if posname == "reloadmag" then
- if posnumb == 1 then
- reloadmagcmodel, reloadmagcpart = clonemag(guncmodel, "mag")
- reloadmagcweld = Instance.new("Weld", reloadmagcmodel)
- reloadmagcweld.Name = "handmagweld"
- reloadmagcweld.Part0 = maincpart
- reloadmagcweld.Part1 = reloadmagcpart
- reloadmagcweld.C0 = CFrame.new(0.771263123, -2.07442856, -2.45114708, 0.108410954, 0.822345078, -0.558561325, -0.0455624163, 0.565389991, 0.823553741, 0.993062019, -0.0638353601, 0.0987635553)
- if not currentlyfps then
- modeltransparency(reloadmagcmodel, 1)
- end
- elseif posnumb == 3 then
- local flingmagm, flingmagp = clonemag(guncmodel, "throw")
- local magv = Instance.new("BodyVelocity", flingmagp)
- magv.MaxForce = Vector3.new(1/0,1/0,1/0)
- magv.Velocity = (mainpart.CFrame.lookVector*-math.random(5,10)) + (mainpart.CFrame.rightVector*-math.random(10,20)) + (mainpart.CFrame.upVector*-math.random(10,20))
- local magav = Instance.new("BodyAngularVelocity", flingmagp)
- magav.MaxTorque = Vector3.new(1/0,1/0,1/0)
- magav.AngularVelocity = hrp.CFrame.rightVector*math.random(15,20)
- debris:AddItem(magv, 0.1)
- debris:AddItem(flingmagp, 0.5)
- if not currentlyfps then
- modeltransparency(flingmagm, 1)
- end
- modeltransparency(magcmodel, 1)
- elseif posnumb == 4 then
- task.spawn(function()
- task.wait(0.2)
- reloadmagcmodel:Destroy()
- if currentlyfps then
- modeltransparency(magcmodel, 0)
- end
- end)
- end
- end
- tween(speed, poses[posname][posnumb][posdir][2], poses[posname][posnumb][posdir][3], 0, false, 0, reloadmagcweld, {C0 = poses[posname][posnumb][posdir][1]})
- end
- end
- function movec(cf)
- cam.CFrame = cam.CFrame * cf
- end
- function recoilup(xm, ym, zm, t, tic)
- local firsttick = tick()
- task.spawn(function()
- while runservice.RenderStepped:wait() and tick() < firsttick + t and recoiltick == tic do
- movec(recoilcf:Inverse())
- recoilcf = recoilcf * CFrame.Angles(
- (xm*delta*(recmult/recdampmult))*((t+firsttick)-tick()), --x
- (ym*delta*(recmult/recdampmult))*((t+firsttick)-tick()), --y
- (zm*delta*(recmult/recdampmult))*((t+firsttick)-tick()) --z
- )
- movec(recoilcf)
- end
- end)
- end
- remote.OnClientEvent:Connect(function(WHAT, param, param2, param3, param4)
- if state ~= "unequipped" then
- if WHAT == "recoil" then
- recoiltick = tick()
- recoilup(recxamount, (math.random(-10,10)/10)*recyamount, (math.random(-10,10)/10)*reczamount, rectime, recoiltick)
- elseif WHAT == "fromserverpose" then
- cpose(param, param2, param3, equiptick)
- elseif WHAT == "fromserverindividualpose" then
- ciposeconvert(param, param2, param3, param4, equiptick)
- end
- end
- end)
- function ads(enable)
- if enable and not adsing and hrp.Velocity.Magnitude < 17 and (head.CFrame.p - cam.CFrame.p).Magnitude < 1.7 then
- adsing = true
- recmult = recmult/2
- remote:FireServer("5", true)
- elseif not enable and adsing then
- adsing = false
- recmult = recmult*2
- remote:FireServer("5", false)
- end
- end
- function makefpsviewmodel()
- viewmodel = Instance.new("Model", cam)
- viewmodel.Name = "gunviewmodel"
- Instance.new("Humanoid", viewmodel)
- local mainpart = Instance.new("Part", viewmodel)
- mainpart.Anchored = true
- mainpart.CanCollide = false
- mainpart.Transparency = 1
- mainpart.Size = Vector3.new()
- --
- local rarm = Instance.new("Part", viewmodel)
- rarm.Size = Vector3.new(0.7,2,0.7)
- rarm.Color = character["Right Arm"].Color
- rarm.CanCollide = false
- rarm.Name = "Right Arm"
- local larm = Instance.new("Part", viewmodel)
- larm.Size = Vector3.new(0.7,2,0.7)
- larm.Color = character["Left Arm"].Color
- larm.CanCollide = false
- larm.Name = "Left Arm"
- local gunclone = gunmodel:Clone()
- local gunchandle = gunclone:WaitForChild("Handle")
- local guncmainpart = gunclone:WaitForChild("mainpart")
- gunclufa = gunclone:WaitForChild("lufa")
- maincpart = guncmainpart
- guncmodel = gunclone
- boltcweld = guncmainpart:WaitForChild("boltweld")
- magcmodel = gunclone:WaitForChild("mag")
- gunclone.Parent = viewmodel
- for i,v in pairs(gunclone:GetDescendants()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- v.Anchored = false
- end
- end
- --
- larmcweld = Instance.new("Weld", mainpart)
- larmcweld.Part0 = mainpart
- larmcweld.Part1 = larm
- larmcweld.C0 = CFrame.new(1,-2.5,0)
- rarmcweld = Instance.new("Weld", mainpart)
- rarmcweld.Part0 = mainpart
- rarmcweld.Part1 = rarm
- rarmcweld.C0 = CFrame.new(1,-2.5,0)
- guncweld = Instance.new("Weld", mainpart)
- guncweld.Part0 = rarm
- guncweld.Part1 = gunchandle
- guncweld.C0 = CFrame.new(1,-2.5,0)
- pcall(function()
- character["Shirt"]:Clone().Parent = viewmodel
- end)
- gunmodel.DescendantAdded:Connect(function(WHAT)
- if (cam.CFrame.p - head.Position).magnitude < 1.3 then
- if WHAT.Name == "throwserver" or WHAT.Name == "reloadserver" then
- WHAT:WaitForChild("Part")
- modeltransparency(WHAT, 1)
- elseif WHAT:IsA("ParticleEmitter") and WHAT.Name == "gemit" then
- WHAT.Transparency = NumberSequence.new(1)
- elseif WHAT:IsA("BasePart") and WHAT.Name == "muzzleflash" or WHAT.Name == "shell;" then
- WHAT.Transparency = 1
- elseif WHAT:IsA("PointLight") and WHAT.Name == "mflash" then
- WHAT.Brightness = 0
- end
- end
- end)
- modeltransparency(viewmodel, 1)
- return mainpart
- end
- tool.Equipped:Connect(function()
- state = "equipped"
- equiptick = tick()
- local backuptick = equiptick
- local ticktofireserver = 0
- local lastcameracf = cam.CFrame
- savedfov = cam.FieldOfView
- offset = CFrame.new()
- character = owner.Character
- gui.Parent = ownergui
- local mpart = makefpsviewmodel()
- mouse.TargetFilter = mpart.Parent
- chamberedgui.Text = tostring(bchambered.Value)
- ammogui.Text = tostring(binmag.Value)
- maggui.Text = tostring(magleft.Value)
- humanoid = character:FindFirstChildOfClass("Humanoid")
- head = character.Head
- hrp = character.HumanoidRootPart
- humanoid.AutoRotate = false
- rstepgun = runservice.RenderStepped:Connect(function()
- if state ~= "unequipped" and humanoid.Health > 0 and equiptick == backuptick then
- delta = tick() - frametick
- movec(recoilcf:Inverse())
- hrp.CFrame = hrp.CFrame:lerp(CFrame.new(hrp.Position, Vector3.new(mouse.Hit.p.x,hrp.Position.y,mouse.Hit.p.z)),delta*15)
- recoilcf = recoilcf:lerp(CFrame.new(),delta*currentcspeed)
- movec(recoilcf)
- humanoid.CameraOffset = Vector3.new()
- if (cam.CFrame.p - head.Position).magnitude < 1.3 and not currentlyfps then
- humanoid.CameraOffset = Vector3.new(0,0.4,0)
- guntransparency(1)
- modeltransparency(viewmodel, 0)
- currentlyfps = true
- elseif (cam.CFrame.p - head.Position).magnitude > 1.3 and currentlyfps then
- guntransparency(0)
- modeltransparency(viewmodel, 1)
- if adsing then
- ads(false)
- end
- currentlyfps = false
- end
- local relative = cam.CFrame:ToObjectSpace(lastcameracf)
- local camx,camy,camz = relative:ToOrientation()
- local relativevel = cam.CFrame:vectorToObjectSpace(hrp.Velocity)
- local clampvelx, clampvelz, clampvely = math.clamp(relativevel.x, -35, 35), math.clamp(relativevel.z, -35, 35), math.clamp(relativevel.y, -50, 50)
- local crelativevel = Vector3.new(clampvelx, 0, clampvelz)
- if adsing then
- offset = offset:lerp(CFrame.Angles(camx/2, camy/2, -camy/2) * CFrame.new(-0.45,0.4,0.25), delta*5)
- cam.FieldOfView = linearlerp(cam.FieldOfView, 35, delta*4)
- else
- offset = offset:lerp(CFrame.Angles(camx/2, camy/2, -camy/2), delta*10)
- cam.FieldOfView = linearlerp(cam.FieldOfView, 70+(Vector3.new(hrp.Velocity.x,0,hrp.Velocity.z).Magnitude/5), delta*5)
- end
- if crelativevel.Magnitude > 0.1 then
- if crelativevel.Magnitude < 19 or state == "shooting" then
- offset = offset:lerp(CFrame.Angles(
- (camx/2),
- camy/2-math.cos(tick()*7)*(crelativevel.Magnitude/350),
- (-camy/2)+math.sin(tick()*7)*(crelativevel.Magnitude/120)-(clampvelx/60))
- * CFrame.new(
- math.sin(tick()*7)*(crelativevel.Magnitude/250),
- -math.cos(tick()*14)*(crelativevel.Magnitude/250),
- 0), delta*5)
- elseif state ~= "shooting" and humanoid.FloorMaterial ~= Enum.Material.Air then
- if adsing then
- ads(false)
- end
- offset = offset:lerp(CFrame.Angles(
- camx/2,
- camy/2-math.cos(tick()*10)*(crelativevel.Magnitude/250),
- (-camy/2)+math.sin(tick()*10)*(crelativevel.Magnitude/70)-(clampvelx/60))
- * CFrame.new(
- 1+math.sin(tick()*10)*(crelativevel.Magnitude/150),
- -0.4-math.cos(tick()*20)*(crelativevel.Magnitude/150),
- 0)
- * CFrame.Angles(
- math.rad(-20),
- (math.pi/2),
- 0), delta*10)
- end
- end
- mpart.CFrame = cam.CFrame * offset
- lastcameracf = cam.CFrame
- ticktofireserver = ticktofireserver + delta
- if ticktofireserver > 0.1 then
- remote:FireServer("1", (mouse.Hit.p-head.CFrame.p).unit.y)
- ticktofireserver = 0
- end
- else
- rstepgun:Disconnect()
- end
- frametick = tick()
- end)
- end)
- mouse.KeyDown:Connect(function(key)
- if state == "equipped" then
- key = key:lower()
- if key == "f" then
- remote:FireServer("3")
- elseif key == "r" then
- remote:FireServer("4")
- elseif key:byte() == 48 then
- remote:FireServer("6", true)
- end
- end
- end)
- mouse.KeyUp:Connect(function(key)
- if state == "equipped" then
- key = key:lower()
- if key:byte() == 48 then
- remote:FireServer("6", false)
- end
- end
- end)
- mouse.Button2Down:Connect(function()
- if state ~= "unequipped" then
- ads(true)
- end
- end)
- mouse.Button2Up:Connect(function()
- if state ~= "unequipped" then
- ads(false)
- end
- end)
- tool.Activated:Connect(function()
- if state == "equipped" then
- shoottick = tick()
- state = "shooting"
- local btick = shoottick
- while shoottick == btick and state == "shooting" and humanoid.Health > 0 do
- if binmag.Value > 0 or bchambered.Value > 0 then
- remote:FireServer("2", mouse.Hit.p)
- task.wait(gunspeed.Value)
- else break end
- end
- if state == "shooting" then
- state = "equipped"
- end
- end
- end)
- tool.Deactivated:Connect(function()
- if state == "shooting" then
- state = "equipped"
- end
- end)
- tool.Unequipped:Connect(function()
- state = "unequipped"
- gui.Parent = tool
- viewmodel:Destroy()
- guntransparency(0)
- if adsing then
- ads(false)
- end
- cam.FieldOfView = savedfov
- currentlyfps = false
- recoilcf = CFrame.new()
- humanoid.AutoRotate = true
- end)]], Tool0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement