Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ ]]
- -- made by 1ndrew
- 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")
- LocalScript1 = Instance.new("LocalScript")
- NumberValue2 = Instance.new("NumberValue")
- PointLight3 = Instance.new("PointLight")
- Smoke4 = Instance.new("Smoke")
- Smoke5 = Instance.new("Smoke")
- NumberValue6 = Instance.new("NumberValue")
- ScreenGui7 = Instance.new("ScreenGui")
- Frame8 = Instance.new("Frame")
- TextLabel9 = Instance.new("TextLabel")
- TextLabel10 = Instance.new("TextLabel")
- LocalScript11 = Instance.new("LocalScript")
- NumberValue12 = Instance.new("NumberValue")
- NumberValue13 = Instance.new("NumberValue")
- ScreenGui14 = Instance.new("ScreenGui")
- Frame15 = Instance.new("Frame")
- TextLabel16 = Instance.new("TextLabel")
- Smoke17 = Instance.new("Smoke")
- Smoke18 = Instance.new("Smoke")
- PointLight19 = Instance.new("PointLight")
- Part20 = Instance.new("Part")
- BlockMesh21 = Instance.new("BlockMesh")
- Part22 = Instance.new("Part")
- BlockMesh23 = Instance.new("BlockMesh")
- Part24 = Instance.new("Part")
- CylinderMesh25 = Instance.new("CylinderMesh")
- Part26 = Instance.new("Part")
- BlockMesh27 = Instance.new("BlockMesh")
- Part28 = Instance.new("Part")
- BlockMesh29 = Instance.new("BlockMesh")
- Part30 = Instance.new("Part")
- BlockMesh31 = Instance.new("BlockMesh")
- Part32 = Instance.new("Part")
- BlockMesh33 = Instance.new("BlockMesh")
- Sound34 = Instance.new("Sound")
- Sound35 = Instance.new("Sound")
- Sound36 = Instance.new("Sound")
- Sound37 = Instance.new("Sound")
- Sound38 = Instance.new("Sound")
- Sound39 = Instance.new("Sound")
- Part40 = Instance.new("Part")
- CylinderMesh41 = Instance.new("CylinderMesh")
- Part42 = Instance.new("Part")
- BlockMesh43 = Instance.new("BlockMesh")
- Part44 = Instance.new("Part")
- BlockMesh45 = Instance.new("BlockMesh")
- Part46 = Instance.new("Part")
- BlockMesh47 = Instance.new("BlockMesh")
- Part48 = Instance.new("Part")
- Decal49 = Instance.new("Decal")
- CylinderMesh50 = Instance.new("CylinderMesh")
- Part51 = Instance.new("Part")
- BlockMesh52 = Instance.new("BlockMesh")
- Part53 = Instance.new("Part")
- BlockMesh54 = Instance.new("BlockMesh")
- ManualWeld55 = Instance.new("ManualWeld")
- Part56 = Instance.new("Part")
- CylinderMesh57 = Instance.new("CylinderMesh")
- Part58 = Instance.new("Part")
- BlockMesh59 = Instance.new("BlockMesh")
- Part60 = Instance.new("Part")
- BlockMesh61 = Instance.new("BlockMesh")
- Part62 = Instance.new("Part")
- BlockMesh63 = Instance.new("BlockMesh")
- Part64 = Instance.new("Part")
- CylinderMesh65 = Instance.new("CylinderMesh")
- Part66 = Instance.new("Part")
- Decal67 = Instance.new("Decal")
- BlockMesh68 = Instance.new("BlockMesh")
- Part69 = Instance.new("Part")
- BlockMesh70 = Instance.new("BlockMesh")
- Part71 = Instance.new("Part")
- BlockMesh72 = Instance.new("BlockMesh")
- Part73 = Instance.new("Part")
- CylinderMesh74 = Instance.new("CylinderMesh")
- Part75 = Instance.new("Part")
- CylinderMesh76 = Instance.new("CylinderMesh")
- Part77 = Instance.new("Part")
- SpecialMesh78 = Instance.new("SpecialMesh")
- Part79 = Instance.new("Part")
- BlockMesh80 = Instance.new("BlockMesh")
- Part81 = Instance.new("Part")
- CylinderMesh82 = Instance.new("CylinderMesh")
- Part83 = Instance.new("Part")
- BlockMesh84 = Instance.new("BlockMesh")
- Part85 = Instance.new("Part")
- BlockMesh86 = Instance.new("BlockMesh")
- Part87 = Instance.new("Part")
- BlockMesh88 = Instance.new("BlockMesh")
- Part89 = Instance.new("Part")
- BlockMesh90 = Instance.new("BlockMesh")
- Part91 = Instance.new("Part")
- BlockMesh92 = Instance.new("BlockMesh")
- Part93 = Instance.new("Part")
- BlockMesh94 = Instance.new("BlockMesh")
- Part95 = Instance.new("Part")
- BlockMesh96 = Instance.new("BlockMesh")
- Part97 = Instance.new("Part")
- BlockMesh98 = Instance.new("BlockMesh")
- Part99 = Instance.new("Part")
- BlockMesh100 = Instance.new("BlockMesh")
- Part101 = Instance.new("Part")
- BlockMesh102 = Instance.new("BlockMesh")
- Part103 = Instance.new("Part")
- BlockMesh104 = Instance.new("BlockMesh")
- Part105 = Instance.new("Part")
- BlockMesh106 = Instance.new("BlockMesh")
- Part107 = Instance.new("Part")
- Decal108 = Instance.new("Decal")
- BlockMesh109 = Instance.new("BlockMesh")
- Part110 = Instance.new("Part")
- CylinderMesh111 = Instance.new("CylinderMesh")
- Part112 = Instance.new("Part")
- CylinderMesh113 = Instance.new("CylinderMesh")
- Part114 = Instance.new("Part")
- SpecialMesh115 = Instance.new("SpecialMesh")
- Part116 = Instance.new("Part")
- BlockMesh117 = Instance.new("BlockMesh")
- Part118 = Instance.new("Part")
- CylinderMesh119 = Instance.new("CylinderMesh")
- Part120 = Instance.new("Part")
- SpecialMesh121 = Instance.new("SpecialMesh")
- Part122 = Instance.new("Part")
- BlockMesh123 = Instance.new("BlockMesh")
- Part124 = Instance.new("Part")
- CylinderMesh125 = Instance.new("CylinderMesh")
- Part126 = Instance.new("Part")
- CylinderMesh127 = Instance.new("CylinderMesh")
- Part128 = Instance.new("Part")
- BlockMesh129 = Instance.new("BlockMesh")
- Part130 = Instance.new("Part")
- BlockMesh131 = Instance.new("BlockMesh")
- Part132 = Instance.new("Part")
- SpecialMesh133 = Instance.new("SpecialMesh")
- Part134 = Instance.new("Part")
- BlockMesh135 = Instance.new("BlockMesh")
- Part136 = Instance.new("Part")
- SpecialMesh137 = Instance.new("SpecialMesh")
- Part138 = Instance.new("Part")
- BlockMesh139 = Instance.new("BlockMesh")
- Part140 = Instance.new("Part")
- BlockMesh141 = Instance.new("BlockMesh")
- Part142 = Instance.new("Part")
- SpecialMesh143 = Instance.new("SpecialMesh")
- Part144 = Instance.new("Part")
- BlockMesh145 = Instance.new("BlockMesh")
- Part146 = Instance.new("Part")
- BlockMesh147 = Instance.new("BlockMesh")
- Part148 = Instance.new("Part")
- BlockMesh149 = Instance.new("BlockMesh")
- Part150 = Instance.new("Part")
- SpecialMesh151 = Instance.new("SpecialMesh")
- Part152 = Instance.new("Part")
- BlockMesh153 = Instance.new("BlockMesh")
- Part154 = Instance.new("Part")
- SpecialMesh155 = Instance.new("SpecialMesh")
- Part156 = Instance.new("Part")
- BlockMesh157 = Instance.new("BlockMesh")
- Part158 = Instance.new("Part")
- BlockMesh159 = Instance.new("BlockMesh")
- Part160 = Instance.new("Part")
- BlockMesh161 = Instance.new("BlockMesh")
- Part162 = Instance.new("Part")
- BlockMesh163 = Instance.new("BlockMesh")
- Part164 = Instance.new("Part")
- BlockMesh165 = Instance.new("BlockMesh")
- Part166 = Instance.new("Part")
- CylinderMesh167 = Instance.new("CylinderMesh")
- Part168 = Instance.new("Part")
- SpecialMesh169 = Instance.new("SpecialMesh")
- Part170 = Instance.new("Part")
- CylinderMesh171 = Instance.new("CylinderMesh")
- Part172 = Instance.new("Part")
- SpecialMesh173 = Instance.new("SpecialMesh")
- Part174 = Instance.new("Part")
- BlockMesh175 = Instance.new("BlockMesh")
- Part176 = Instance.new("Part")
- BlockMesh177 = Instance.new("BlockMesh")
- Part178 = Instance.new("Part")
- BlockMesh179 = Instance.new("BlockMesh")
- Part180 = Instance.new("Part")
- CylinderMesh181 = Instance.new("CylinderMesh")
- Part182 = Instance.new("Part")
- BlockMesh183 = Instance.new("BlockMesh")
- Part184 = Instance.new("Part")
- SpecialMesh185 = Instance.new("SpecialMesh")
- Part186 = Instance.new("Part")
- SpecialMesh187 = Instance.new("SpecialMesh")
- Part188 = Instance.new("Part")
- BlockMesh189 = Instance.new("BlockMesh")
- Part190 = Instance.new("Part")
- BlockMesh191 = Instance.new("BlockMesh")
- Part192 = Instance.new("Part")
- CylinderMesh193 = Instance.new("CylinderMesh")
- Part194 = Instance.new("Part")
- SpecialMesh195 = Instance.new("SpecialMesh")
- Part196 = Instance.new("Part")
- SpecialMesh197 = Instance.new("SpecialMesh")
- Part198 = Instance.new("Part")
- CylinderMesh199 = Instance.new("CylinderMesh")
- Part200 = Instance.new("Part")
- SpecialMesh201 = Instance.new("SpecialMesh")
- Part202 = Instance.new("Part")
- SpecialMesh203 = Instance.new("SpecialMesh")
- ManualWeld204 = Instance.new("ManualWeld")
- Part205 = Instance.new("Part")
- CylinderMesh206 = Instance.new("CylinderMesh")
- Part207 = Instance.new("Part")
- SpecialMesh208 = Instance.new("SpecialMesh")
- Part209 = Instance.new("Part")
- BlockMesh210 = Instance.new("BlockMesh")
- Part211 = Instance.new("Part")
- BlockMesh212 = Instance.new("BlockMesh")
- Part213 = Instance.new("Part")
- BlockMesh214 = Instance.new("BlockMesh")
- Part215 = Instance.new("Part")
- CylinderMesh216 = Instance.new("CylinderMesh")
- Part217 = Instance.new("Part")
- BlockMesh218 = Instance.new("BlockMesh")
- Part219 = Instance.new("Part")
- CylinderMesh220 = Instance.new("CylinderMesh")
- Part221 = Instance.new("Part")
- CylinderMesh222 = Instance.new("CylinderMesh")
- Part223 = Instance.new("Part")
- CylinderMesh224 = Instance.new("CylinderMesh")
- Part225 = Instance.new("Part")
- BlockMesh226 = Instance.new("BlockMesh")
- Part227 = Instance.new("Part")
- CylinderMesh228 = Instance.new("CylinderMesh")
- Part229 = Instance.new("Part")
- SpecialMesh230 = Instance.new("SpecialMesh")
- Part231 = Instance.new("Part")
- BlockMesh232 = Instance.new("BlockMesh")
- Part233 = Instance.new("Part")
- BlockMesh234 = Instance.new("BlockMesh")
- Part235 = Instance.new("Part")
- SpecialMesh236 = Instance.new("SpecialMesh")
- Part237 = Instance.new("Part")
- BlockMesh238 = Instance.new("BlockMesh")
- Tool0.Name = "AK-47"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(-0.286980897, 0, -0.957936287)
- Tool0.GripPos = Vector3.new(0, -0.300000012, 0.300000012)
- Tool0.GripRight = Vector3.new(0.957936287, 0, -0.286980897)
- LocalScript1.Name = "Gun_Script"
- LocalScript1.Parent = Tool0
- table.insert(cors,sandbox(LocalScript1,function()
- sp = script.Parent
- Mesh = false -- If true will load BC 2.0 Arm meshes as well.
- Shirt = true -- If true will load the user's shirt to the arms as well
- function onEquipped(mouse)
- local Player = game:GetService("Players").LocalPlayer
- local Cam = game.Workspace.CurrentCamera
- local Arms = Instance.new("Model")
- Arms.Name = "Arms"
- Arms.Parent = Cam
- if Shirt == true then
- local Humanoid = Instance.new("Humanoid")
- Humanoid.MaxHealth = 0
- Humanoid.Health = 0
- Humanoid.Name = ""
- Humanoid.Parent = Arms
- local newShirt = Player.Character:FindFirstChild("Shirt")
- if newShirt then
- newShirt = newShirt:clone()
- newShirt.Parent = Arms
- end
- else end
- local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
- RightArm.Name = "Right Arm"
- RightArm.Transparency = 0
- RightArm.Size = Vector3.new(.6, 2, .6)
- local w = Instance.new("Weld")
- w.Part0 = RightArm
- w.Part1 = Player.Character:FindFirstChild("Right Arm")
- w.C0 = CFrame.new()
- w.C1 = CFrame.new()
- w.Parent = RightArm
- RightArm.Parent = Arms
- local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
- LeftArm.Name = "Left Arm"
- LeftArm.Transparency = 0
- LeftArm.Size = Vector3.new(.6, 2, .6)
- local w = Instance.new("Weld")
- w.Part0 = LeftArm
- w.Part1 = Player.Character:FindFirstChild("Left Arm")
- w.C0 = CFrame.new()
- w.C1 = CFrame.new()
- w.Parent = LeftArm
- LeftArm.Parent = Arms
- if Mesh ~= false then
- local LeftArmMesh = script:FindFirstChild("LeftArm")
- LeftArmMesh.Parent = LeftArm
- local RightArmMesh = script:FindFirstChild("RightArm")
- RightArmMesh.Parent = RightArm
- else end
- end
- function onUnequipped(mouse)
- local Player = game:GetService("Players").LocalPlayer
- local Cam = game.Workspace.CurrentCamera
- for _, Model in pairs(Cam:GetChildren()) do
- if Model.Name == "Arms" then
- Model:remove()
- else end
- end
- end
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Unequipped:connect(onUnequipped)
- wait(0.5)
- --Made by YouTubes--
- --Edit settings below--
- local Tool = script.Parent
- local Settings = {
- Range = 1000
- ,Spread = 10
- ,Damage = {25, 50}
- ,HeadShotDamage = {70, 120}
- ,Bullets = 1
- ,FireRate = 0.1
- ,Automatic = true
- ,AntiTK = false
- ,ImpactDuration = 3
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 2.5
- ,Ammo = 30
- ,IncludeChamberedBullet = true
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = false
- ,FakeArms = false
- ,FakeArmTransparency = 0.5
- ,RightPos = CFrame.new(-0.75, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-16), 0)
- ,LeftPos = CFrame.new(0.4, 0.65, 1.1) * CFrame.fromEulerAnglesXYZ(math.rad(320), 0.6, math.rad(-84))
- ,AimPart = script.Parent.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 0.5, 0.5) * CFrame.Angles(math.rad(-100), math.rad(45), 0)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 60}
- ,SpreadReduction = 5
- --Weld
- ,Weld = true
- --Mouse
- ,Icons = {
- Idle = "rbxassetid://70288585"
- ,Fire1 = "rbxassetid://70288578"
- ,Fire2 = "rbxassetid://70288572"
- ,Fire3 = "rbxassetid://70288578"
- ,Reload = "rbxassetid://70288599"
- ,Aim = "rbxasset://textures/Blank.png"
- }
- ,FireMouseAnimTime = 0.15
- --Recoil
- ,Recoil = math.rad(1)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.1}, {script.Smoke1, 0.1}, {script.Smoke1, 0.1}, {script.Flash, 0.03}}
- --Sprint
- ,Sprint = true
- ,SprintSpeed = 25
- ,SprintKey = "0"
- ,SprintSpreadIncrease = 40
- ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
- --Other
- ,DropHats = true
- }
- --Do not edit below this lign--
- local Orig_Spread = Settings.Spread
- local Orig_Grip = Tool.GripPos
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Camera = workspace.CurrentCamera
- local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
- local Gui, CanUpdateGui = nil, true
- local Sprinting, Equipped
- function Update_Gui()
- if Gui and CanUpdateGui then
- Gui.Frame.AmmoDisplay.Text = Ammo.Value .. "|" .. StoredAmmo.Value
- end
- end
- local Welded
- if Settings.Weld then
- Delay(0, function()
- local weldC0s = {}
- for i, v in pairs(Tool:GetChildren()) do
- if v:IsA("BasePart") and v ~= Tool.Handle then
- table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
- v.Anchored = false
- end
- end
- Tool.Handle.Anchored = false
- local welds = {}
- Tool.Equipped:connect(function()
- for i, v in ipairs(welds) do
- v.Part1 = nil
- v:Destroy()
- end
- for i, v in ipairs(weldC0s) do
- if v[1] and v[2] then
- local w = Instance.new("Weld", Tool.Handle)
- w.Part0 = Tool.Handle
- w.Part1 = v[1]
- w.C0 = v[2]
- table.insert(welds, w)
- end
- end
- end)
- wait()
- Welded = true
- end)
- end
- local Left_Weld, Right_Weld
- Ammo.Changed:connect(Update_Gui)
- StoredAmmo.Changed:connect(Update_Gui)
- Settings.Range = math.min(Settings.Range, 999)
- local Ignore_Model = Workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", Workspace)
- Ignore_Model.Name = "Ray_Ignore"
- local Ray_Ignore = {Character, Ignore_Model, Camera}
- Character.Humanoid.Died:connect(function()
- Tool.Parent = Player.Backpack
- end)
- function Fire(Mouse)
- local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
- local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
- local Hit, Pos = Workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
- if Hit and Hit.Parent:FindFirstChild("Humanoid") then
- local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
- if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
- return
- end
- local Humanoid = Hit.Parent.Humanoid
- local c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- game.Debris:AddItem(c, 3)
- c.Parent = Humanoid
- if Hit.Name == "Head" then
- Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
- else
- Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
- end
- elseif Hit then
- local Hit_Part = Instance.new("Part", Ignore_Model)
- Hit_Part.FormFactor = "Custom"
- Hit_Part.TopSurface = 0
- Hit_Part.BottomSurface = 0
- Hit_Part.Anchored = true
- Hit_Part.CanCollide = false
- Hit_Part.Size = Vector3.new()
- Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- Hit_Part.BrickColor = BrickColor.new("Black")
- game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
- if not Hit.Anchored then
- local w = Instance.new("Weld", Hit_Part)
- w.Part0 = Hit
- w.Part1 = Hit_Part
- w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
- Hit_Part.Anchored = false
- end
- if Hit.Parent:IsA("Hat") and Settings.DropHats then
- Hit.Parent.Parent = workspace
- game.Debris:AddItem(Hit, 3)
- end
- end
- end
- local Can_Shoot = true
- local Reloading = false
- local First_Person = false
- local Mouse_Held
- Tool.Equipped:connect(function(Mouse)
- Equipped = true
- if Settings.Weld and not Welded then
- wait()
- Tool.Parent = Player.Backpack
- end
- Character = Player.Character
- if Gui then
- return
- end
- Ray_Ignore = {Character, Ignore_Model, Camera}
- Mouse.Icon = Settings.Icons.Idle
- Gui = script.Gui:Clone()
- Gui.Parent = Player.PlayerGui
- Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
- Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
- CanUpdateGui = true
- Update_Gui()
- Mouse.Button1Down:connect(function()
- if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
- Mouse_Held = true
- while true do
- Can_Shoot = false
- Delay(0, function()
- local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
- if not Aiming then
- Mouse.Icon = Settings.Icons.Fire1
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Fire2
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Fire3
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Idle
- end
- end)
- if Settings.Smoke then
- for i, v in pairs(Settings.Smokes) do
- local s = v[1]:Clone()
- s.Parent = Settings.SmokePart
- s.Enabled = true
- game.Debris:AddItem(s, v[2])
- if v[3] then
- Delay(v[3], function()
- s.Enabled = false
- end)
- end
- end
- end
- for _ = 1, Settings.Bullets do
- pcall(function() Fire(Mouse) end)
- end
- Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(math.abs(Settings.Recoil), 0, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
- if Tool.Handle:FindFirstChild("Shoot") then
- Tool.Handle.Shoot:Play()
- end
- Ammo.Value = Ammo.Value - 1
- wait(Settings.FireRate)
- if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
- break
- end
- end
- Can_Shoot = true
- elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
- Tool.Handle.Click:Play()
- end
- end)
- Mouse.Button1Up:connect(function()
- Mouse_Held = false
- end)
- Mouse.KeyDown:connect(function(Key)
- if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
- if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
- return
- end
- Can_Shoot = false
- Reloading = true
- local TextLabel = Gui.Frame.AmmoDisplay
- Delay(0, function()
- CanUpdateGui = false
- TextLabel.Text = "Reloading."
- wait(Settings.ReloadTime/3)
- if TextLabel then
- TextLabel.Text = "Reloading.."
- end
- wait(Settings.ReloadTime/3)
- if TextLabel then
- TextLabel.Text = "Reloading..."
- end
- end)
- Right_Weld.C1 = CFrame.new(-0.73, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-92), math.rad(-16), 0.21)
- Left_Weld.C1 = CFrame.new(0.9, 0.35, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(286), 0.81, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.71, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-87), math.rad(-16), 0.22)
- Left_Weld.C1 = CFrame.new(0.9, 0.35, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(298), 0.92, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.69, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-87), math.rad(-16), 0.23)
- Left_Weld.C1 = CFrame.new(0.9, 0.35, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(298), 0.883, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.705, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-87), math.rad(-16), 0.225)
- Left_Weld.C1 = CFrame.new(0.9, 0.35, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(298), 0.864, math.rad(-0))
- wait(.07)
- Right_Weld.C1 = CFrame.new(-0.715, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-87), math.rad(-16), 0.215)
- Left_Weld.C1 = CFrame.new(0.9, 0.35, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(298), 0.855, math.rad(-0))
- Tool.Handle.M1:play()
- Tool.Mag.Transparency = 1
- local mag = Tool.Mag:clone()
- mag.Parent = game.Workspace
- mag.CanCollide = false
- mag.Transparency = 0
- Tool.Mag2.Transparency = 1
- local mag = Tool.Mag2:clone()
- mag.Parent = game.Workspace
- mag.CanCollide = false
- mag.Transparency = 0
- Tool.Mag3.Transparency = 1
- local mag = Tool.Mag3:clone()
- mag.Parent = game.Workspace
- mag.CanCollide = false
- mag.Transparency = 0
- Tool.Mag4.Transparency = 1
- local mag = Tool.Mag4:clone()
- mag.Parent = game.Workspace
- mag.CanCollide = false
- mag.Transparency = 0
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.73, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-107), math.rad(-16), 0.21)
- Left_Weld.C1 = CFrame.new(0.9, 0.35, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(301), 0.85, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.71, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-106.75), math.rad(-16), 0.22)
- Left_Weld.C1 = CFrame.new(0.9, 0.3, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(309), 0.8, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.69, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-106.6), math.rad(-16), 0.23)
- Left_Weld.C1 = CFrame.new(0.9, 0.3, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(314), 0.76, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.66, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-106.5), math.rad(-16), 0.24)
- Left_Weld.C1 = CFrame.new(0.9, 0.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(322), 0.72, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.63, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-106.4), math.rad(-16), 0.25)
- Left_Weld.C1 = CFrame.new(0.9, 0.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(329), 0.68, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.59, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-105.9), math.rad(-16), 0.26)
- Left_Weld.C1 = CFrame.new(0.9, 0.2, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(332), 0.64, math.rad(-0))
- wait(.04)
- Right_Weld.C1 = CFrame.new(-0.55, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-104.4), math.rad(-16), 0.27)
- Left_Weld.C1 = CFrame.new(0.9, 0.2, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(335), 0.61, math.rad(-0))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.5, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-103), math.rad(-16), 0.28)
- Left_Weld.C1 = CFrame.new(0.95, 0.15, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(338), 0.58, math.rad(-0))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.44, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-102.7), math.rad(-16), 0.29)
- Left_Weld.C1 = CFrame.new(0.95, 0.15, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(342), 0.55, math.rad(-0))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.38, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-101.5), math.rad(-16), 0.3)
- Left_Weld.C1 = CFrame.new(1.025, 0.1, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(338), 0.54, math.rad(-0))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.37, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-100.4), math.rad(-16), 0.3)
- Left_Weld.C1 = CFrame.new(1.1, 0.1, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(334), 0.57, math.rad(-0))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.36, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-99.4), math.rad(-16), 0.3)
- Left_Weld.C1 = CFrame.new(1.12, 0.05, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(329), 0.6, math.rad(-0))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.35, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-98.5), math.rad(-16), 0.3)
- Left_Weld.C1 = CFrame.new(1.14, 0.05, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(325), 0.64, math.rad(-0))
- wait(.08)
- Right_Weld.C1 = CFrame.new(-0.34, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-97.7), math.rad(-16), 0.3)
- Left_Weld.C1 = CFrame.new(1.16, 0, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(321), 0.68, math.rad(-0))
- Tool.Mag.Transparency = 0
- Tool.Mag2.Transparency = 0
- Tool.Mag3.Transparency = 0
- Tool.Mag4.Transparency = 0
- Tool.Mag.Mesh.Offset = Vector3.new(0, -0.7, 0)
- Tool.Mag2.Mesh.Offset = Vector3.new(0, -0.675, 0.195)
- Tool.Mag3.Mesh.Offset = Vector3.new(0, -0.605, 0.365)
- Tool.Mag4.Mesh.Offset = Vector3.new(0, -0.49, 0.51)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.33, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-97), math.rad(-16), 0.3)
- Left_Weld.C1 = CFrame.new(1.18, 0, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(315), 0.72, math.rad(-0))
- Tool.Mag.Mesh.Offset = Vector3.new(0, -0.6, 0)
- Tool.Mag2.Mesh.Offset = Vector3.new(0, -0.578, 0.167)
- Tool.Mag3.Mesh.Offset = Vector3.new(0, -0.518, 0.312)
- Tool.Mag4.Mesh.Offset = Vector3.new(0, -0.42, 0.437)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.32, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-96.4), math.rad(-16), 0.3)
- Left_Weld.C1 = CFrame.new(1.2, -0.05, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(309), 0.76, math.rad(-0))
- Tool.Mag.Mesh.Offset = Vector3.new(0, -0.5, 0)
- Tool.Mag2.Mesh.Offset = Vector3.new(0, -0.482, 0.139)
- Tool.Mag3.Mesh.Offset = Vector3.new(0, -0.432, 0.26)
- Tool.Mag4.Mesh.Offset = Vector3.new(0, -0.35, 0.364)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.3, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-95.9), math.rad(-16), 0.31)
- Left_Weld.C1 = CFrame.new(1.22, -0.05, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(303), 0.8, math.rad(-0))
- Tool.Mag.Mesh.Offset = Vector3.new(0, -0.4, 0)
- Tool.Mag2.Mesh.Offset = Vector3.new(0, -0.385, 0.111)
- Tool.Mag3.Mesh.Offset = Vector3.new(0, -0.345, 0.208)
- Tool.Mag4.Mesh.Offset = Vector3.new(0, -0.28, 0.291)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.28, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-95.5), math.rad(-16), 0.32)
- Left_Weld.C1 = CFrame.new(1.24, -0.1, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(297), 0.85, math.rad(-0))
- Tool.Mag.Mesh.Offset = Vector3.new(0, -0.3, 0)
- Tool.Mag2.Mesh.Offset = Vector3.new(0, -0.289, 0.083)
- Tool.Mag3.Mesh.Offset = Vector3.new(0, -0.259, 0.156)
- Tool.Mag4.Mesh.Offset = Vector3.new(0, -0.21, 0.218)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.26, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-95.2), math.rad(-16), 0.33)
- Left_Weld.C1 = CFrame.new(1.26, -0.1, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(291), 0.9, math.rad(-0))
- Tool.Mag.Mesh.Offset = Vector3.new(0, -0.2, 0)
- Tool.Mag2.Mesh.Offset = Vector3.new(0, -0.192, 0.055)
- Tool.Mag3.Mesh.Offset = Vector3.new(0, -0.172, 0.104)
- Tool.Mag4.Mesh.Offset = Vector3.new(0, -0.14, 0.145)
- Tool.Handle.M2:play()
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.24, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-97.1), math.rad(-16), 0.34)
- Left_Weld.C1 = CFrame.new(1.28, -0.15, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(285), 0.95, math.rad(-0))
- Tool.Mag.Mesh.Offset = Vector3.new(0, -0.1, 0)
- Tool.Mag2.Mesh.Offset = Vector3.new(0, -0.096, 0.027)
- Tool.Mag3.Mesh.Offset = Vector3.new(0, -0.086, 0.052)
- Tool.Mag4.Mesh.Offset = Vector3.new(0, -0.07, 0.072)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.22, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-97.8), math.rad(-16), 0.35)
- Left_Weld.C1 = CFrame.new(1.3, -0.15, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(279), 1, math.rad(-0))
- Tool.Mag.Mesh.Offset = Vector3.new(0, 0, 0)
- Tool.Mag2.Mesh.Offset = Vector3.new(0, 0, 0)
- Tool.Mag3.Mesh.Offset = Vector3.new(0, 0, 0)
- Tool.Mag4.Mesh.Offset = Vector3.new(0, 0, 0)
- wait(.1)
- Right_Weld.C1 = CFrame.new(-0.27, -0.6, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-97.8), math.rad(-16), 0.21)
- Left_Weld.C1 = CFrame.new(1.26, -0.2, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(276), 0.995, math.rad(-0))
- wait(.09)
- Right_Weld.C1 = CFrame.new(-0.32, -0.6, 0.25) * CFrame.fromEulerAnglesXYZ(math.rad(-97.7), math.rad(-16), 0.08)
- Left_Weld.C1 = CFrame.new(1.23, -0.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(273), 0.99, math.rad(-0))
- wait(.09)
- Right_Weld.C1 = CFrame.new(-0.37, -0.6, 0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-97.6), math.rad(-16), -0.04)
- Left_Weld.C1 = CFrame.new(1.19, -0.3, 0.32) * CFrame.fromEulerAnglesXYZ(math.rad(270), 0.985, math.rad(-0))
- wait(.09)
- Right_Weld.C1 = CFrame.new(-0.42, -0.6, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(-97.5), math.rad(-16), -0.18)
- Left_Weld.C1 = CFrame.new(1.16, -0.13, 0.48) * CFrame.fromEulerAnglesXYZ(math.rad(267), 0.98, math.rad(-0))
- wait(.09)
- Right_Weld.C1 = CFrame.new(-0.47, -0.6, -0.05) * CFrame.fromEulerAnglesXYZ(math.rad(-97.6), math.rad(-16), -0.31)
- Left_Weld.C1 = CFrame.new(1.13, 0.03, 0.64) * CFrame.fromEulerAnglesXYZ(math.rad(264), 0.975, math.rad(-0))
- wait(.1)
- Right_Weld.C1 = CFrame.new(-0.52, -0.6, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-97.7), math.rad(-16), -0.45)
- Left_Weld.C1 = CFrame.new(1.1, 0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(261), 0.97, math.rad(-0))
- Tool.Handle.M3:play()
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.52, -0.61, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-97.8), math.rad(-16), -0.45)
- Left_Weld.C1 = CFrame.new(0.98, 0.06, 0.79) * CFrame.fromEulerAnglesXYZ(math.rad(260.3), 1, math.rad(-0))
- Tool.A1.Mesh.Offset = Vector3.new(0, 0, 0.18)
- Tool.A2.Mesh.Offset = Vector3.new(0, 0, 0.18)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.52, -0.62, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-97.9), math.rad(-16), -0.45)
- Left_Weld.C1 = CFrame.new(0.86, -0.06, 0.78) * CFrame.fromEulerAnglesXYZ(math.rad(259.6), 1.03, math.rad(-0))
- Tool.A1.Mesh.Offset = Vector3.new(0, 0, 0.36)
- Tool.A2.Mesh.Offset = Vector3.new(0, 0, 0.36)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.52, -0.63, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-98), math.rad(-16), -0.45)
- Left_Weld.C1 = CFrame.new(0.74, -0.2, 0.77) * CFrame.fromEulerAnglesXYZ(math.rad(259), 1.07, math.rad(-0))
- Tool.A1.Mesh.Offset = Vector3.new(0, 0, 0.55)
- Tool.A2.Mesh.Offset = Vector3.new(0, 0, 0.55)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.52, -0.62, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-98), math.rad(-16), -0.45)
- Left_Weld.C1 = CFrame.new(0.86, -0.06, 0.78) * CFrame.fromEulerAnglesXYZ(math.rad(259.6), 1.03, math.rad(-0))
- Tool.A1.Mesh.Offset = Vector3.new(0, 0, 0.36)
- Tool.A2.Mesh.Offset = Vector3.new(0, 0, 0.36)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.52, -0.61, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-97.9), math.rad(-16), -0.45)
- Left_Weld.C1 = CFrame.new(0.98, 0.06, 0.79) * CFrame.fromEulerAnglesXYZ(math.rad(260.3), 1, math.rad(-0))
- Tool.A1.Mesh.Offset = Vector3.new(0, 0, 0.18)
- Tool.A2.Mesh.Offset = Vector3.new(0, 0, 0.18)
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.52, -0.6, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-97.8), math.rad(-16), -0.45)
- Left_Weld.C1 = CFrame.new(1.1, 0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(261), 0.97, math.rad(-0))
- Tool.A1.Mesh.Offset = Vector3.new(0, 0, 0)
- Tool.A2.Mesh.Offset = Vector3.new(0, 0, 0)
- Tool.Handle.M4:Play()
- wait(.2)
- Right_Weld.C1 = CFrame.new(-0.55, -0.6, -0.06) * CFrame.fromEulerAnglesXYZ(math.rad(-96.6), math.rad(-16), -0.38)
- Left_Weld.C1 = CFrame.new(1, 0.26, 0.84) * CFrame.fromEulerAnglesXYZ(math.rad(269), 0.91, math.rad(-12))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.58, -0.6, 0.02) * CFrame.fromEulerAnglesXYZ(math.rad(-95.5), math.rad(-16), -0.32)
- Left_Weld.C1 = CFrame.new(0.9, 0.32, 0.88) * CFrame.fromEulerAnglesXYZ(math.rad(277), 0.86, math.rad(-24))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.61, -0.6, 0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-94.4), math.rad(-16), -0.25)
- Left_Weld.C1 = CFrame.new(0.8, 0.39, 0.92) * CFrame.fromEulerAnglesXYZ(math.rad(286), 0.81, math.rad(-36))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.65, -0.6, 0.19) * CFrame.fromEulerAnglesXYZ(math.rad(-93.3), math.rad(-16), -0.19)
- Left_Weld.C1 = CFrame.new(0.7, 0.45, 0.97) * CFrame.fromEulerAnglesXYZ(math.rad(294), 0.75, math.rad(-48))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.68, -0.6, 0.27) * CFrame.fromEulerAnglesXYZ(math.rad(-92.2), math.rad(-16), -0.12)
- Left_Weld.C1 = CFrame.new(0.6, 0.52, 1.01) * CFrame.fromEulerAnglesXYZ(math.rad(303), 0.7, math.rad(-60))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.71, -0.6, 0.36) * CFrame.fromEulerAnglesXYZ(math.rad(-91.1), math.rad(-16), -0.06)
- Left_Weld.C1 = CFrame.new(0.5, 0.58, 1.05) * CFrame.fromEulerAnglesXYZ(math.rad(311), 0.65, math.rad(-72))
- wait(.05)
- Right_Weld.C1 = CFrame.new(-0.75, -0.6, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-16), 0)
- Left_Weld.C1 = CFrame.new(0.4, 0.65, 1.1) * CFrame.fromEulerAnglesXYZ(math.rad(320), 0.6, math.rad(-84))
- CanUpdateGui = true
- local m = Settings.Ammo
- if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
- m = m + 1
- end
- if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
- Ammo.Value = Ammo.Value + StoredAmmo.Value
- StoredAmmo.Value = 0
- else
- StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
- Ammo.Value = m
- end
- Can_Shoot = true
- Reloading = false
- elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
- Sprinting = true
- Character.Humanoid.WalkSpeed = Settings.SprintSpeed
- Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
- end
- end)
- Mouse.KeyUp:connect(function(Key)
- if Key:upper() == Settings.SprintKey:upper() and Sprinting then
- Sprinting = false
- Character.Humanoid.WalkSpeed = 16
- Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- end
- end)
- Mouse.Button2Down:connect(function()
- if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
- Aiming = true
- Mouse.Icon = Settings.Icons.Aim
- Right_Weld.C1 = CFrame.new()
- Right_Weld.C0 = CFrame.new()
- Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
- Left_Weld.C1 = Settings.LeftAimPos
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = Settings.ChangeFOV[2]
- end
- Tool.GripPos = Orig_Grip + Settings.AimGripOffset
- Settings.Spread = Settings.Spread - Settings.SpreadReduction
- end
- end)
- Mouse.Button2Up:connect(function()
- if Aiming then
- Mouse.Icon = Settings.Icons.Idle
- Tool.GripPos = Orig_Grip
- Right_Weld.C1 = Settings.RightPos
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- Left_Weld.C1 = Settings.LeftPos
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = 70
- end
- Settings.Spread = Settings.Spread + Settings.SpreadReduction
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- wait(0.25)
- Aiming = false
- end
- end)
- wait()
- Camera.Changed:connect(function()
- if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
- Mouse.TargetFilter = workspace
- Character.Torso.Neck.C1 = CFrame.new()
- Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
- end
- end)
- Mouse.Idle:connect(function()
- if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
- Mouse.TargetFilter = workspace
- Character.Torso.Neck.C1 = CFrame.new()
- Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
- end
- end)
- while wait() and Equipped do
- if Sprinting then
- Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
- Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
- elseif not Aiming then
- Left_Weld.C0 = CFrame.new(0, -1.5, 0)
- end
- if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
- Mouse.TargetFilter = nil
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- end
- end
- end)
- local Arms_Made
- local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
- Tool.Equipped:connect(function(Mouse)
- if Character and not Arms_Made then
- Arms_Made = true
- local Torso = Character.Torso
- Torso["Right Shoulder"].Part1 = nil
- Left_Weld = Instance.new("Weld", Torso)
- Left_Weld.Name = "Left_Weld"
- Left_Weld.Part0 = Character.Head
- Left_Weld.C0 = CFrame.new(0, -1.5, 0)
- if not Settings.OneHanded then
- Torso["Left Shoulder"].Part1 = nil
- Left_Weld.Part1 = Character["Left Arm"]
- end
- Right_Weld = Instance.new("Weld", Torso)
- Right_Weld.Name = "Right_Weld"
- Right_Weld.Part0 = Character.Head
- Right_Weld.Part1 = Character["Right Arm"]
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- Left_Weld.C1 = Settings.LeftPos
- Right_Weld.C1 = Settings.RightPos
- end
- if Settings.FakeArms and not Fake_Arm_Right then
- Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
- Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
- Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
- local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
- for i = 1, 2 do
- local w = Instance.new("Weld", fakeArms[i])
- w.Part0 = Character[fakeArms[i].Name]
- w.Part1 = fakeArms[i]
- fakeArms[i].Transparency = Settings.FakeArmTransparency
- end
- Fake_Arm_Model = Instance.new("Model", Camera)
- Fake_Arm_Right.Parent = Fake_Arm_Model
- if not Settings.OneHanded then
- Fake_Arm_Left.Parent = Fake_Arm_Model
- end
- Fake_Arm_Model.Name = "FakeArms"
- if Settings.CharacterMeshes then
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
- v:Clone().Parent = Fake_Arm_Model
- end
- end
- end
- if Character:FindFirstChild("Shirt") then
- Instance.new("Humanoid", Fake_Arm_Model)
- Character.Shirt:Clone().Parent = Fake_Arm_Model
- else
- local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
- Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(5, 10, 5)
- local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
- Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(5, 10, 5)
- end
- end
- end)
- Tool.Unequipped:connect(function()
- Equipped = false
- Tool.GripPos = Orig_Grip
- Aiming = false
- Settings.Spread = Orig_Spread
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = 70
- end
- if Gui then
- Gui:Destroy()
- Gui = nil
- end
- for i, v in pairs(Tool.Handle:GetChildren()) do
- if v:IsA("Sound") then
- v:Stop()
- end
- end
- if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
- Fake_Arm_Model:Destroy()
- Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
- end
- if Character and Left_Weld and Right_Weld then
- Arms_Made = false
- local Torso = Character.Torso
- Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
- Left_Weld:Destroy()
- Right_Weld:Destroy()
- end
- Sprinting = false
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Humanoid.WalkSpeed = 16
- end)
- end))
- NumberValue2.Name = "Ammo"
- NumberValue2.Parent = LocalScript1
- NumberValue2.Value = 999999
- PointLight3.Name = "Flash"
- PointLight3.Parent = LocalScript1
- PointLight3.Color = Color3.new(0.772549, 0.384314, 0)
- PointLight3.Brightness = 10
- PointLight3.Range = 10
- PointLight3.Shadows = true
- PointLight3.Color = Color3.new(0.772549, 0.384314, 0)
- Smoke4.Parent = LocalScript1
- Smoke4.Size = 0.25
- Smoke4.Color = Color3.new(0.372549, 0.372549, 0.372549)
- Smoke4.Enabled = false
- Smoke4.Opacity = 0.10000000149012
- Smoke4.Color = Color3.new(0.372549, 0.372549, 0.372549)
- Smoke5.Name = "Smoke1"
- Smoke5.Parent = LocalScript1
- Smoke5.Size = 0.10000000149012
- Smoke5.Color = Color3.new(1, 0.6, 0.2)
- Smoke5.Enabled = false
- Smoke5.Opacity = 0.40000000596046
- Smoke5.Color = Color3.new(1, 0.6, 0.2)
- NumberValue6.Name = "StoredAmmo"
- NumberValue6.Parent = LocalScript1
- NumberValue6.Value = inf
- ScreenGui7.Name = "Gui"
- ScreenGui7.Parent = LocalScript1
- Frame8.Parent = ScreenGui7
- Frame8.Transparency = 1
- Frame8.Size = UDim2.new(0, 100, 0, 100)
- Frame8.Position = UDim2.new(1, -200, 1, -100)
- Frame8.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame8.BackgroundTransparency = 1
- Frame8.BorderSizePixel = 0
- TextLabel9.Name = "AmmoDisplay"
- TextLabel9.Parent = Frame8
- TextLabel9.Transparency = 1
- TextLabel9.Size = UDim2.new(1, 0, 1, 0)
- TextLabel9.Text = ""
- TextLabel9.BackgroundTransparency = 1
- TextLabel9.FontSize = Enum.FontSize.Size24
- TextLabel9.TextColor3 = Color3.new(0.917647, 0.917647, 0.917647)
- TextLabel9.TextStrokeTransparency = 0.5
- TextLabel9.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel10.Parent = Frame8
- TextLabel10.Transparency = 50
- TextLabel10.Size = UDim2.new(0, 200, 0, 50)
- TextLabel10.Text = "Made by 1ndrew"
- TextLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel10.BackgroundTransparency = 50
- TextLabel10.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel10.Font = Enum.Font.SourceSans
- TextLabel10.FontSize = Enum.FontSize.Size14
- TextLabel10.TextColor3 = Color3.new(0, 0, 1)
- LocalScript11.Name = "Gun_Script"
- LocalScript11.Parent = LocalScript1
- table.insert(cors,sandbox(LocalScript11,function()
- wait(0.5)
- --Made by YouTubes--
- --Edit settings below--
- local Tool = script.Parent
- local Settings = {
- Range = 1000
- ,Spread = 10
- ,Damage = {25, 50}
- ,HeadShotDamage = {70, 120}
- ,Bullets = 1
- ,FireRate = 0.1
- ,Automatic = true
- ,AntiTK = true
- ,ImpactDuration = 3
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 2.5
- ,Ammo = 30
- ,IncludeChamberedBullet = true
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = false
- ,FakeArms = true
- ,FakeArmTransparency = 0.5
- ,RightPos = CFrame.new(-0.75, -0.25, 0.5) * CFrame.Angles(math.rad(-90), 0, 0)
- ,LeftPos = CFrame.new(1, 0.5, 0.5) * CFrame.Angles(math.rad(-90), math.rad(45), 0)
- ,AimPart = Tool.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 0.5, 0.5) * CFrame.Angles(math.rad(-100), math.rad(45), 0)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 60}
- ,SpreadReduction = 5
- --Weld
- ,Weld = true
- --Mouse
- ,Icons = {
- Idle = "rbxassetid://70288585"
- ,Fire1 = "rbxassetid://70288578"
- ,Fire2 = "rbxassetid://70288572"
- ,Fire3 = "rbxassetid://70288578"
- ,Reload = "rbxassetid://70288599"
- ,Aim = "rbxasset://textures/Blank.png"
- }
- ,FireMouseAnimTime = 0.15
- --Recoil
- ,Recoil = math.rad(1)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.1}, {script.Smoke1, 0.1}, {script.Smoke1, 0.1}, {script.Flash, 0.03}}
- --Sprint
- ,Sprint = true
- ,SprintSpeed = 25
- ,SprintKey = "0"
- ,SprintSpreadIncrease = 40
- ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
- --Other
- ,DropHats = true
- }
- --Do not edit below this lign--
- local Orig_Spread = Settings.Spread
- local Orig_Grip = Tool.GripPos
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Camera = Workspace.CurrentCamera
- local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
- local Gui, CanUpdateGui = nil, true
- local Sprinting, Equipped
- function Update_Gui()
- if Gui and CanUpdateGui then
- Gui.Frame.AmmoDisplay.Text = Ammo.Value .. "|" .. StoredAmmo.Value
- end
- end
- local Welded
- if Settings.Weld then
- Delay(0, function()
- local weldC0s = {}
- for i, v in pairs(Tool:GetChildren()) do
- if v:IsA("BasePart") and v ~= Tool.Handle then
- table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
- v.Anchored = false
- end
- end
- Tool.Handle.Anchored = false
- local welds = {}
- Tool.Equipped:connect(function()
- for i, v in ipairs(welds) do
- v.Part1 = nil
- v:Destroy()
- end
- for i, v in ipairs(weldC0s) do
- if v[1] and v[2] then
- local w = Instance.new("Weld", Tool.Handle)
- w.Part0 = Tool.Handle
- w.Part1 = v[1]
- w.C0 = v[2]
- table.insert(welds, w)
- end
- end
- end)
- wait()
- Welded = true
- end)
- end
- local Left_Weld, Right_Weld
- Ammo.Changed:connect(Update_Gui)
- StoredAmmo.Changed:connect(Update_Gui)
- Settings.Range = math.min(Settings.Range, 999)
- local Ignore_Model = Workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", Workspace)
- Ignore_Model.Name = "Ray_Ignore"
- local Ray_Ignore = {Character, Ignore_Model, Camera}
- Character.Humanoid.Died:connect(function()
- Tool.Parent = Player.Backpack
- end)
- function Fire(Mouse)
- local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
- local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
- local Hit, Pos = Workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
- if Hit and Hit.Parent:FindFirstChild("Humanoid") then
- local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
- if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
- return
- end
- local Humanoid = Hit.Parent.Humanoid
- local c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- game.Debris:AddItem(c, 3)
- c.Parent = Humanoid
- if Hit.Name == "Head" then
- Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
- else
- Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
- end
- elseif Hit then
- local Hit_Part = Instance.new("Part", Ignore_Model)
- Hit_Part.FormFactor = "Custom"
- Hit_Part.TopSurface = 0
- Hit_Part.BottomSurface = 0
- Hit_Part.Anchored = true
- Hit_Part.CanCollide = false
- Hit_Part.Size = Vector3.new()
- Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- Hit_Part.BrickColor = BrickColor.new("Black")
- game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
- if not Hit.Anchored then
- local w = Instance.new("Weld", Hit_Part)
- w.Part0 = Hit
- w.Part1 = Hit_Part
- w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
- Hit_Part.Anchored = false
- end
- if Hit.Parent:IsA("Hat") and Settings.DropHats then
- Hit.Parent.Parent = workspace
- game.Debris:AddItem(Hit, 3)
- end
- end
- end
- local Can_Shoot = true
- local Reloading = false
- local First_Person = false
- local Mouse_Held
- Tool.Equipped:connect(function(Mouse)
- Equipped = true
- if Settings.Weld and not Welded then
- wait()
- Tool.Parent = Player.Backpack
- end
- Character = Player.Character
- if Gui then
- return
- end
- Ray_Ignore = {Character, Ignore_Model, Camera}
- Mouse.Icon = Settings.Icons.Idle
- Gui = script.Gui:Clone()
- Gui.Parent = Player.PlayerGui
- Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
- Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
- CanUpdateGui = true
- Update_Gui()
- Mouse.Button1Down:connect(function()
- if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
- Mouse_Held = true
- while true do
- Can_Shoot = false
- Delay(0, function()
- local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
- if not Aiming then
- Mouse.Icon = Settings.Icons.Fire1
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Fire2
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Fire3
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Idle
- end
- end)
- if Settings.Smoke then
- for i, v in pairs(Settings.Smokes) do
- local s = v[1]:Clone()
- s.Parent = Settings.SmokePart
- s.Enabled = true
- game.Debris:AddItem(s, v[2])
- if v[3] then
- Delay(v[3], function()
- s.Enabled = false
- end)
- end
- end
- end
- for _ = 1, Settings.Bullets do
- pcall(function() Fire(Mouse) end)
- end
- Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(math.abs(Settings.Recoil), 0, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
- if Tool.Handle:FindFirstChild("Shoot") then
- Tool.Handle.Shoot:Play()
- end
- Ammo.Value = Ammo.Value - 1
- wait(Settings.FireRate)
- if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
- break
- end
- end
- Can_Shoot = true
- elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
- Tool.Handle.Click:Play()
- end
- end)
- Mouse.Button1Up:connect(function()
- Mouse_Held = false
- end)
- Mouse.KeyDown:connect(function(Key)
- if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
- if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
- return
- end
- Can_Shoot = false
- Reloading = true
- local TextLabel = Gui.Frame.AmmoDisplay
- Delay(0, function()
- CanUpdateGui = false
- TextLabel.Text = "Reloading."
- wait(Settings.ReloadTime/3)
- if TextLabel then
- TextLabel.Text = "Reloading.."
- end
- wait(Settings.ReloadTime/3)
- if TextLabel then
- TextLabel.Text = "Reloading..."
- end
- end)
- if Tool.Handle:FindFirstChild("Reload") then
- Tool.Handle.Reload:Play()
- end
- Mouse.Icon = Settings.Icons.Reload
- wait(Settings.ReloadTime)
- Mouse.Icon = Settings.Icons.Idle
- CanUpdateGui = true
- local m = Settings.Ammo
- if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
- m = m + 1
- end
- if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
- Ammo.Value = Ammo.Value + StoredAmmo.Value
- StoredAmmo.Value = 0
- else
- StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
- Ammo.Value = m
- end
- Can_Shoot = true
- Reloading = false
- elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
- Sprinting = true
- Character.Humanoid.WalkSpeed = Settings.SprintSpeed
- Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
- end
- end)
- Mouse.KeyUp:connect(function(Key)
- if Key:upper() == Settings.SprintKey:upper() and Sprinting then
- Sprinting = false
- Character.Humanoid.WalkSpeed = 16
- Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- end
- end)
- Mouse.Button2Down:connect(function()
- if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
- Aiming = true
- Mouse.Icon = Settings.Icons.Aim
- Right_Weld.C1 = CFrame.new()
- Right_Weld.C0 = CFrame.new()
- Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
- Left_Weld.C1 = Settings.LeftAimPos
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = Settings.ChangeFOV[2]
- end
- Tool.GripPos = Orig_Grip + Settings.AimGripOffset
- Settings.Spread = Settings.Spread - Settings.SpreadReduction
- end
- end)
- Mouse.Button2Up:connect(function()
- if Aiming then
- Mouse.Icon = Settings.Icons.Idle
- Tool.GripPos = Orig_Grip
- Right_Weld.C1 = Settings.RightPos
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- Left_Weld.C1 = Settings.LeftPos
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = 70
- end
- Settings.Spread = Settings.Spread + Settings.SpreadReduction
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- wait(0.25)
- Aiming = false
- end
- end)
- wait()
- Camera.Changed:connect(function()
- if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
- Mouse.TargetFilter = workspace
- Character.Torso.Neck.C1 = CFrame.new()
- Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
- end
- end)
- Mouse.Idle:connect(function()
- if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
- Mouse.TargetFilter = workspace
- Character.Torso.Neck.C1 = CFrame.new()
- Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
- end
- end)
- while wait() and Equipped do
- if Sprinting then
- Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
- Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
- elseif not Aiming then
- Left_Weld.C0 = CFrame.new(0, -1.5, 0)
- end
- if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
- Mouse.TargetFilter = nil
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- end
- end
- end)
- local Arms_Made
- local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
- Tool.Equipped:connect(function(Mouse)
- if Character and not Arms_Made then
- Arms_Made = true
- local Torso = Character.Torso
- Torso["Right Shoulder"].Part1 = nil
- Left_Weld = Instance.new("Weld", Torso)
- Left_Weld.Name = "Left_Weld"
- Left_Weld.Part0 = Character.Head
- Left_Weld.C0 = CFrame.new(0, -1.5, 0)
- if not Settings.OneHanded then
- Torso["Left Shoulder"].Part1 = nil
- Left_Weld.Part1 = Character["Left Arm"]
- end
- Right_Weld = Instance.new("Weld", Torso)
- Right_Weld.Name = "Right_Weld"
- Right_Weld.Part0 = Character.Head
- Right_Weld.Part1 = Character["Right Arm"]
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- Left_Weld.C1 = Settings.LeftPos
- Right_Weld.C1 = Settings.RightPos
- end
- if Settings.FakeArms and not Fake_Arm_Right then
- Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
- Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
- Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
- local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
- for i = 1, 2 do
- local w = Instance.new("Weld", fakeArms[i])
- w.Part0 = Character[fakeArms[i].Name]
- w.Part1 = fakeArms[i]
- fakeArms[i].Transparency = Settings.FakeArmTransparency
- end
- Fake_Arm_Model = Instance.new("Model", Camera)
- Fake_Arm_Right.Parent = Fake_Arm_Model
- if not Settings.OneHanded then
- Fake_Arm_Left.Parent = Fake_Arm_Model
- end
- Fake_Arm_Model.Name = "FakeArms"
- if Settings.CharacterMeshes then
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
- v:Clone().Parent = Fake_Arm_Model
- end
- end
- end
- if Character:FindFirstChild("Shirt") then
- Instance.new("Humanoid", Fake_Arm_Model)
- Character.Shirt:Clone().Parent = Fake_Arm_Model
- else
- local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
- Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(5, 10, 5)
- local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
- Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(5, 10, 5)
- end
- end
- end)
- Tool.Unequipped:connect(function()
- Equipped = false
- Tool.GripPos = Orig_Grip
- Aiming = false
- Settings.Spread = Orig_Spread
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = 70
- end
- if Gui then
- Gui:Destroy()
- Gui = nil
- end
- for i, v in pairs(Tool.Handle:GetChildren()) do
- if v:IsA("Sound") then
- v:Stop()
- end
- end
- if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
- Fake_Arm_Model:Destroy()
- Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
- end
- if Character and Left_Weld and Right_Weld then
- Arms_Made = false
- local Torso = Character.Torso
- Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
- Left_Weld:Destroy()
- Right_Weld:Destroy()
- end
- Sprinting = false
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Humanoid.WalkSpeed = 16
- end)
- end))
- NumberValue12.Name = "Ammo"
- NumberValue12.Parent = LocalScript11
- NumberValue12.Value = 31
- NumberValue13.Name = "StoredAmmo"
- NumberValue13.Parent = LocalScript11
- NumberValue13.Value = inf
- ScreenGui14.Name = "Gui"
- ScreenGui14.Parent = LocalScript11
- Frame15.Parent = ScreenGui14
- Frame15.Transparency = 1
- Frame15.Size = UDim2.new(0, 100, 0, 100)
- Frame15.Position = UDim2.new(1, -200, 1, -100)
- Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame15.BackgroundTransparency = 1
- Frame15.BorderSizePixel = 0
- TextLabel16.Name = "AmmoDisplay"
- TextLabel16.Parent = Frame15
- TextLabel16.Transparency = 1
- TextLabel16.Size = UDim2.new(1, 0, 1, 0)
- TextLabel16.Text = ""
- TextLabel16.BackgroundTransparency = 1
- TextLabel16.FontSize = Enum.FontSize.Size24
- TextLabel16.TextColor3 = Color3.new(0.917647, 0.917647, 0.917647)
- TextLabel16.TextStrokeTransparency = 0.5
- TextLabel16.TextXAlignment = Enum.TextXAlignment.Right
- Smoke17.Parent = LocalScript11
- Smoke17.Size = 0.25
- Smoke17.Color = Color3.new(0.372549, 0.372549, 0.372549)
- Smoke17.Enabled = false
- Smoke17.Opacity = 0.10000000149012
- Smoke17.Color = Color3.new(0.372549, 0.372549, 0.372549)
- Smoke18.Name = "Smoke1"
- Smoke18.Parent = LocalScript11
- Smoke18.Size = 0.10000000149012
- Smoke18.Color = Color3.new(1, 0.6, 0.2)
- Smoke18.Enabled = false
- Smoke18.Opacity = 0.40000000596046
- Smoke18.Color = Color3.new(1, 0.6, 0.2)
- PointLight19.Name = "Flash"
- PointLight19.Parent = LocalScript11
- PointLight19.Color = Color3.new(0.772549, 0.384314, 0)
- PointLight19.Brightness = 10
- PointLight19.Range = 10
- PointLight19.Shadows = true
- PointLight19.Color = Color3.new(0.772549, 0.384314, 0)
- Part20.Name = "AimPart"
- Part20.Parent = Tool0
- Part20.BrickColor = BrickColor.new("Really red")
- Part20.Transparency = 1
- Part20.Anchored = true
- Part20.FormFactor = Enum.FormFactor.Custom
- Part20.Size = Vector3.new(0.277777731, 0.222222224, 0.222222224)
- Part20.CFrame = CFrame.new(16.8380165, 2.34158659, -288.340729, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.Color = Color3.new(1, 0, 0)
- Part20.Position = Vector3.new(16.8380165, 2.34158659, -288.340729)
- Part20.Color = Color3.new(1, 0, 0)
- BlockMesh21.Parent = Part20
- Part22.Parent = Tool0
- Part22.BrickColor = BrickColor.new("Black")
- Part22.Rotation = Vector3.new(-1.89999998, 0, -180)
- Part22.Anchored = true
- Part22.CanCollide = false
- Part22.FormFactor = Enum.FormFactor.Custom
- Part22.Size = Vector3.new(0.200000003, 0.200000003, 0.275000006)
- Part22.CFrame = CFrame.new(16.8364105, 2.31557727, -290.044708, -1, 0, 0, 0, -0.999451458, 0.0331151746, 0, 0.0331151746, 0.999451458)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part22.Position = Vector3.new(16.8364105, 2.31557727, -290.044708)
- Part22.Orientation = Vector3.new(-1.89999998, 0, 180)
- Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh23.Parent = Part22
- BlockMesh23.Scale = Vector3.new(0.425000101, 0.049999997, 1)
- BlockMesh23.Scale = Vector3.new(0.425000101, 0.049999997, 1)
- Part24.Name = "SmokePart"
- Part24.Parent = Tool0
- Part24.BrickColor = BrickColor.new("Black")
- Part24.Transparency = 1
- Part24.Rotation = Vector3.new(-90, 0, 0)
- Part24.Anchored = true
- Part24.FormFactor = Enum.FormFactor.Custom
- Part24.Size = Vector3.new(0.200000003, 0.388888896, 0.200000003)
- Part24.CFrame = CFrame.new(16.8349438, 2.24659419, -290.819763, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part24.Position = Vector3.new(16.8349438, 2.24659419, -290.819763)
- Part24.Orientation = Vector3.new(-90, 0, 0)
- Part24.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh25.Parent = Part24
- CylinderMesh25.Scale = Vector3.new(0.944444478, 1, 0.944444478)
- CylinderMesh25.Scale = Vector3.new(0.944444478, 1, 0.944444478)
- Part26.Name = "A1"
- Part26.Parent = Tool0
- Part26.BrickColor = BrickColor.new("Black")
- Part26.Rotation = Vector3.new(0, 0, -180)
- Part26.Anchored = true
- Part26.CanCollide = false
- Part26.FormFactor = Enum.FormFactor.Custom
- Part26.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part26.CFrame = CFrame.new(16.976408, 2.17557716, -289.88269, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part26.BottomSurface = Enum.SurfaceType.Smooth
- Part26.TopSurface = Enum.SurfaceType.Smooth
- Part26.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part26.Position = Vector3.new(16.976408, 2.17557716, -289.88269)
- Part26.Orientation = Vector3.new(0, 0, 180)
- Part26.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh27.Parent = Part26
- BlockMesh27.Scale = Vector3.new(0.875, 0.24999994, 0.175000012)
- BlockMesh27.Scale = Vector3.new(0.875, 0.24999994, 0.175000012)
- Part28.Name = "A2"
- Part28.Parent = Tool0
- Part28.BrickColor = BrickColor.new("Black")
- Part28.Rotation = Vector3.new(0, 0, -180)
- Part28.Anchored = true
- Part28.CanCollide = false
- Part28.FormFactor = Enum.FormFactor.Custom
- Part28.Size = Vector3.new(0.200000003, 0.200000003, 0.449999988)
- Part28.CFrame = CFrame.new(16.8764095, 2.20057726, -289.674713, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part28.Position = Vector3.new(16.8764095, 2.20057726, -289.674713)
- Part28.Orientation = Vector3.new(0, 0, 180)
- Part28.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh29.Parent = Part28
- BlockMesh29.Scale = Vector3.new(0.150000006, 0.49999994, 1)
- BlockMesh29.Scale = Vector3.new(0.150000006, 0.49999994, 1)
- Part30.Parent = Tool0
- Part30.BrickColor = BrickColor.new("CGA brown")
- Part30.Rotation = Vector3.new(0, 0, -180)
- Part30.Anchored = true
- Part30.CanCollide = false
- Part30.FormFactor = Enum.FormFactor.Custom
- Part30.Size = Vector3.new(0.200000003, 0.200000003, 0.275000006)
- Part30.CFrame = CFrame.new(16.8364105, 1.77557695, -288.737701, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part30.BottomSurface = Enum.SurfaceType.Smooth
- Part30.TopSurface = Enum.SurfaceType.Smooth
- Part30.Color = Color3.new(0.666667, 0.333333, 0)
- Part30.Position = Vector3.new(16.8364105, 1.77557695, -288.737701)
- Part30.Orientation = Vector3.new(0, 0, 180)
- Part30.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh31.Parent = Part30
- BlockMesh31.Scale = Vector3.new(0.825000048, 0.75, 1)
- BlockMesh31.Scale = Vector3.new(0.825000048, 0.75, 1)
- Part32.Name = "Handle"
- Part32.Parent = Tool0
- Part32.BrickColor = BrickColor.new("Black")
- Part32.Rotation = Vector3.new(0, 0.00999999978, 0)
- Part32.Anchored = true
- Part32.CanCollide = false
- Part32.FormFactor = Enum.FormFactor.Custom
- Part32.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part32.CFrame = CFrame.new(16.8364105, 1.91257691, -289.077698, 1.00000024, 0, 0.000125974417, 7.93443178e-09, 1.00000012, -6.29723218e-05, -0.000125989318, 6.29723072e-05, 1.00000036)
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.TopSurface = Enum.SurfaceType.Smooth
- Part32.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part32.Position = Vector3.new(16.8364105, 1.91257691, -289.077698)
- Part32.Orientation = Vector3.new(0, 0.00999999978, 0)
- Part32.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh33.Parent = Part32
- BlockMesh33.Scale = Vector3.new(0.175000012, 0.625, 0.125)
- BlockMesh33.Scale = Vector3.new(0.175000012, 0.625, 0.125)
- Sound34.Name = "Empty"
- Sound34.Parent = Part32
- Sound34.SoundId = "rbxasset://sounds//clickfast.wav"
- Sound34.Volume = 1
- Sound35.Name = "M1"
- Sound35.Parent = Part32
- Sound35.Pitch = 0.75
- Sound35.SoundId = "rbxassetid://306684229"
- Sound35.Volume = 1
- Sound36.Name = "M2"
- Sound36.Parent = Part32
- Sound36.SoundId = "rbxassetid://233931547"
- Sound36.Volume = 1
- Sound37.Name = "M3"
- Sound37.Parent = Part32
- Sound37.Pitch = 1.2000000476837
- Sound37.SoundId = "rbxassetid://515216492"
- Sound37.Volume = 1
- Sound38.Name = "Shoot"
- Sound38.Parent = Part32
- Sound38.SoundId = "rbxassetid://132258172"
- Sound39.Name = "M4"
- Sound39.Parent = Part32
- Sound39.Pitch = 1.2000000476837
- Sound39.SoundId = "rbxassetid://515216512"
- Sound39.Volume = 1
- Part40.Parent = Tool0
- Part40.BrickColor = BrickColor.new("CGA brown")
- Part40.Rotation = Vector3.new(-90, 0, 0)
- Part40.Anchored = true
- Part40.CanCollide = false
- Part40.FormFactor = Enum.FormFactor.Custom
- Part40.Size = Vector3.new(0.200000003, 0.570000052, 0.200000003)
- Part40.CFrame = CFrame.new(16.7964096, 2.2375772, -290.565704, 1, 0, 2.98023224e-08, -2.98023224e-08, -2.98023224e-08, 1, 0, -1, -2.98023224e-08)
- Part40.BottomSurface = Enum.SurfaceType.Smooth
- Part40.TopSurface = Enum.SurfaceType.Smooth
- Part40.Color = Color3.new(0.666667, 0.333333, 0)
- Part40.Position = Vector3.new(16.7964096, 2.2375772, -290.565704)
- Part40.Orientation = Vector3.new(-90, 0, 0)
- Part40.Color = Color3.new(0.666667, 0.333333, 0)
- CylinderMesh41.Parent = Part40
- CylinderMesh41.Scale = Vector3.new(0.37499997, 1, 0.374999851)
- CylinderMesh41.Scale = Vector3.new(0.37499997, 1, 0.374999851)
- Part42.Name = "Mag2"
- Part42.Parent = Tool0
- Part42.BrickColor = BrickColor.new("Black")
- Part42.Rotation = Vector3.new(23, 0, 0)
- Part42.Anchored = true
- Part42.CanCollide = false
- Part42.FormFactor = Enum.FormFactor.Custom
- Part42.Size = Vector3.new(0.200000003, 0.300000012, 0.375)
- Part42.CFrame = CFrame.new(16.8364105, 1.64257693, -289.622711, 1, 0, 0, 0, 0.920504868, -0.390731156, 0, 0.390731156, 0.920504868)
- Part42.BottomSurface = Enum.SurfaceType.Smooth
- Part42.TopSurface = Enum.SurfaceType.Smooth
- Part42.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part42.Position = Vector3.new(16.8364105, 1.64257693, -289.622711)
- Part42.Orientation = Vector3.new(23, 0, 0)
- Part42.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh43.Parent = Part42
- BlockMesh43.Scale = Vector3.new(0.699999988, 1, 1)
- BlockMesh43.Scale = Vector3.new(0.699999988, 1, 1)
- Part44.Name = "Mag3"
- Part44.Parent = Tool0
- Part44.BrickColor = BrickColor.new("Black")
- Part44.Rotation = Vector3.new(38, 0, 0)
- Part44.Anchored = true
- Part44.CanCollide = false
- Part44.FormFactor = Enum.FormFactor.Custom
- Part44.Size = Vector3.new(0.200000003, 0.300000012, 0.375)
- Part44.CFrame = CFrame.new(16.8364105, 1.42957699, -289.748688, 1, -1.28487216e-07, -5.65306237e-08, 6.64456934e-08, 0.788011432, -0.615661383, 1.23651333e-07, 0.615661383, 0.788011432)
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.TopSurface = Enum.SurfaceType.Smooth
- Part44.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part44.Position = Vector3.new(16.8364105, 1.42957699, -289.748688)
- Part44.Orientation = Vector3.new(38, 0, 0)
- Part44.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh45.Parent = Part44
- BlockMesh45.Scale = Vector3.new(0.699999988, 1, 1)
- BlockMesh45.Scale = Vector3.new(0.699999988, 1, 1)
- Part46.Name = "Mag4"
- Part46.Parent = Tool0
- Part46.BrickColor = BrickColor.new("Black")
- Part46.Rotation = Vector3.new(53, 0, 0)
- Part46.Anchored = true
- Part46.CanCollide = false
- Part46.FormFactor = Enum.FormFactor.Custom
- Part46.Size = Vector3.new(0.200000003, 0.324999988, 0.375)
- Part46.CFrame = CFrame.new(16.8364105, 1.24757695, -289.935699, 1, -8.42117487e-08, -4.51465922e-08, 1.46242813e-08, 0.601815701, -0.798635483, 9.44243794e-08, 0.798635483, 0.601815701)
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part46.Position = Vector3.new(16.8364105, 1.24757695, -289.935699)
- Part46.Orientation = Vector3.new(53, 0, 0)
- Part46.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh47.Parent = Part46
- BlockMesh47.Scale = Vector3.new(0.699999988, 1, 1)
- BlockMesh47.Scale = Vector3.new(0.699999988, 1, 1)
- Part48.Parent = Tool0
- Part48.BrickColor = BrickColor.new("Black")
- Part48.Rotation = Vector3.new(-90, 0, 0)
- Part48.Anchored = true
- Part48.CanCollide = false
- Part48.FormFactor = Enum.FormFactor.Custom
- Part48.Size = Vector3.new(0.200000003, 1.39999986, 0.200000003)
- Part48.CFrame = CFrame.new(16.8364105, 2.08557701, -291.654694, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.TopSurface = Enum.SurfaceType.Smooth
- Part48.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part48.Position = Vector3.new(16.8364105, 2.08557701, -291.654694)
- Part48.Orientation = Vector3.new(-90, 0, 0)
- Part48.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Decal49.Parent = Part48
- Decal49.Texture = "http://www.roblox.com/asset/?id=47760372"
- Decal49.Face = Enum.NormalId.Top
- CylinderMesh50.Parent = Part48
- CylinderMesh50.Scale = Vector3.new(0.3125, 1, 0.3125)
- CylinderMesh50.Scale = Vector3.new(0.3125, 1, 0.3125)
- Part51.Parent = Tool0
- Part51.BrickColor = BrickColor.new("CGA brown")
- Part51.Rotation = Vector3.new(0, 0, -180)
- Part51.Anchored = true
- Part51.CanCollide = false
- Part51.FormFactor = Enum.FormFactor.Custom
- Part51.Size = Vector3.new(0.200000003, 0.215000004, 0.254999965)
- Part51.CFrame = CFrame.new(16.8364105, 2.08257699, -290.15271, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part51.BottomSurface = Enum.SurfaceType.Smooth
- Part51.TopSurface = Enum.SurfaceType.Smooth
- Part51.Color = Color3.new(0.666667, 0.333333, 0)
- Part51.Position = Vector3.new(16.8364105, 2.08257699, -290.15271)
- Part51.Orientation = Vector3.new(0, 0, 180)
- Part51.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh52.Parent = Part51
- BlockMesh52.Scale = Vector3.new(0.78275001, 1, 1)
- BlockMesh52.Scale = Vector3.new(0.78275001, 1, 1)
- Part53.Parent = Tool0
- Part53.BrickColor = BrickColor.new("CGA brown")
- Part53.Rotation = Vector3.new(0, 0, 180)
- Part53.Anchored = true
- Part53.CanCollide = false
- Part53.FormFactor = Enum.FormFactor.Custom
- Part53.Size = Vector3.new(0.200000003, 0.200000003, 0.625)
- Part53.CFrame = CFrame.new(16.8364105, 2.04557705, -290.537689, -1, -4.4408921e-16, 4.4408921e-16, 0, -1, 2.98023224e-08, 0, 2.98023224e-08, 1)
- Part53.BottomSurface = Enum.SurfaceType.Smooth
- Part53.TopSurface = Enum.SurfaceType.Smooth
- Part53.Color = Color3.new(0.666667, 0.333333, 0)
- Part53.Position = Vector3.new(16.8364105, 2.04557705, -290.537689)
- Part53.Orientation = Vector3.new(0, 0, 180)
- Part53.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh54.Parent = Part53
- BlockMesh54.Scale = Vector3.new(0.78275001, 0.700000048, 1)
- BlockMesh54.Scale = Vector3.new(0.78275001, 0.700000048, 1)
- ManualWeld55.Name = "Part-to-SmokePart Strong Joint"
- ManualWeld55.Parent = Part53
- ManualWeld55.C0 = CFrame.new(0.100000001, -0.100000001, 0.3125, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- ManualWeld55.C1 = CFrame.new(-0.0985336304, -0.594573975, -0.101017118, -1, 4.4408921e-16, 4.4408921e-16, 0, -1, 2.98023224e-08, 0, 2.98023224e-08, 1)
- ManualWeld55.Part0 = Part53
- ManualWeld55.Part1 = Part24
- Part56.Parent = Tool0
- Part56.BrickColor = BrickColor.new("Mid gray")
- Part56.Rotation = Vector3.new(90, 0, 0)
- Part56.Anchored = true
- Part56.CanCollide = false
- Part56.FormFactor = Enum.FormFactor.Custom
- Part56.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part56.CFrame = CFrame.new(16.8364105, 2.34657717, -292.220703, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Part56.BottomSurface = Enum.SurfaceType.Smooth
- Part56.TopSurface = Enum.SurfaceType.Smooth
- Part56.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part56.Position = Vector3.new(16.8364105, 2.34657717, -292.220703)
- Part56.Orientation = Vector3.new(90, 0, 0)
- Part56.Color = Color3.new(0.803922, 0.803922, 0.803922)
- CylinderMesh57.Parent = Part56
- CylinderMesh57.Scale = Vector3.new(0.049999997, 0.256249994, 0.049999997)
- CylinderMesh57.Scale = Vector3.new(0.049999997, 0.256249994, 0.049999997)
- Part58.Parent = Tool0
- Part58.BrickColor = BrickColor.new("Black")
- Part58.Anchored = true
- Part58.CanCollide = false
- Part58.FormFactor = Enum.FormFactor.Custom
- Part58.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part58.CFrame = CFrame.new(16.8364105, 2.03857708, -291.465698, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part58.BottomSurface = Enum.SurfaceType.Smooth
- Part58.TopSurface = Enum.SurfaceType.Smooth
- Part58.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part58.Position = Vector3.new(16.8364105, 2.03857708, -291.465698)
- Part58.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh59.Parent = Part58
- BlockMesh59.Scale = Vector3.new(0.125, 0.150000006, 0.5)
- BlockMesh59.Scale = Vector3.new(0.125, 0.150000006, 0.5)
- Part60.Parent = Tool0
- Part60.BrickColor = BrickColor.new("Black")
- Part60.Rotation = Vector3.new(0, 0, -90)
- Part60.Anchored = true
- Part60.CanCollide = false
- Part60.FormFactor = Enum.FormFactor.Custom
- Part60.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part60.CFrame = CFrame.new(16.7904091, 2.34757733, -292.220703, -6.30170107e-05, 1.0000006, 0, -1.0000006, -6.30170107e-05, 0, 0, 0, 1)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part60.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part60.Position = Vector3.new(16.7904091, 2.34757733, -292.220703)
- Part60.Orientation = Vector3.new(0, 0, -90)
- Part60.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh61.Parent = Part60
- BlockMesh61.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- BlockMesh61.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- Part62.Parent = Tool0
- Part62.BrickColor = BrickColor.new("Black")
- Part62.Rotation = Vector3.new(0, 0, 135)
- Part62.Anchored = true
- Part62.CanCollide = false
- Part62.FormFactor = Enum.FormFactor.Custom
- Part62.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part62.CFrame = CFrame.new(16.8014088, 2.32057714, -292.220703, -0.707129121, -0.707084537, 0, 0.707084537, -0.707129121, 0, 0, 0, 1)
- Part62.BottomSurface = Enum.SurfaceType.Smooth
- Part62.TopSurface = Enum.SurfaceType.Smooth
- Part62.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part62.Position = Vector3.new(16.8014088, 2.32057714, -292.220703)
- Part62.Orientation = Vector3.new(0, 0, 135)
- Part62.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh63.Parent = Part62
- BlockMesh63.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- BlockMesh63.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- Part64.Parent = Tool0
- Part64.BrickColor = BrickColor.new("Black")
- Part64.Rotation = Vector3.new(88.0999985, 0, 90)
- Part64.Anchored = true
- Part64.CanCollide = false
- Part64.FormFactor = Enum.FormFactor.Custom
- Part64.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part64.CFrame = CFrame.new(16.88941, 2.3165772, -290.091705, 0, -1, 0, 0.0331151746, 0, -0.999451458, 0.999451458, 0, 0.0331151746)
- Part64.BottomSurface = Enum.SurfaceType.Smooth
- Part64.TopSurface = Enum.SurfaceType.Smooth
- Part64.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part64.Position = Vector3.new(16.88941, 2.3165772, -290.091705)
- Part64.Orientation = Vector3.new(88.0999985, 0, 90)
- Part64.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh65.Parent = Part64
- CylinderMesh65.Scale = Vector3.new(0.250000119, 0.325000018, 0.225000024)
- CylinderMesh65.Scale = Vector3.new(0.250000119, 0.325000018, 0.225000024)
- Part66.Parent = Tool0
- Part66.BrickColor = BrickColor.new("Black")
- Part66.Rotation = Vector3.new(-1.89999998, 0, -180)
- Part66.Anchored = true
- Part66.CanCollide = false
- Part66.FormFactor = Enum.FormFactor.Custom
- Part66.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part66.CFrame = CFrame.new(16.88941, 2.33557725, -289.899689, -1, 0, 0, 0, -0.999451458, 0.0331151746, 0, 0.0331151746, 0.999451458)
- Part66.BottomSurface = Enum.SurfaceType.Smooth
- Part66.TopSurface = Enum.SurfaceType.Smooth
- Part66.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part66.Position = Vector3.new(16.88941, 2.33557725, -289.899689)
- Part66.Orientation = Vector3.new(-1.89999998, 0, 180)
- Part66.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Decal67.Parent = Part66
- Decal67.Texture = "http://www.roblox.com/asset/?id=61019872"
- Decal67.Face = Enum.NormalId.Back
- BlockMesh68.Parent = Part66
- BlockMesh68.Scale = Vector3.new(0.300000101, 0.300000012, 0.075000003)
- BlockMesh68.Scale = Vector3.new(0.300000101, 0.300000012, 0.075000003)
- Part69.Parent = Tool0
- Part69.BrickColor = BrickColor.new("Black")
- Part69.Rotation = Vector3.new(0, 0, 45)
- Part69.Anchored = true
- Part69.CanCollide = false
- Part69.FormFactor = Enum.FormFactor.Custom
- Part69.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part69.CFrame = CFrame.new(16.8014088, 2.37557721, -292.220703, 0.707084537, -0.70712918, 0, 0.70712918, 0.707084537, 0, 0, 0, 0.999999881)
- Part69.BottomSurface = Enum.SurfaceType.Smooth
- Part69.TopSurface = Enum.SurfaceType.Smooth
- Part69.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part69.Position = Vector3.new(16.8014088, 2.37557721, -292.220703)
- Part69.Orientation = Vector3.new(0, 0, 45)
- Part69.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh70.Parent = Part69
- BlockMesh70.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- BlockMesh70.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- Part71.Parent = Tool0
- Part71.BrickColor = BrickColor.new("Black")
- Part71.Rotation = Vector3.new(90, 0, -180)
- Part71.Anchored = true
- Part71.CanCollide = false
- Part71.FormFactor = Enum.FormFactor.Custom
- Part71.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part71.CFrame = CFrame.new(16.8364105, 2.20157719, -292.262695, -1, 0, -0, 0, 0, -1, 0, -1, -0)
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part71.Position = Vector3.new(16.8364105, 2.20157719, -292.262695)
- Part71.Orientation = Vector3.new(90, 180, 0)
- Part71.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh72.Parent = Part71
- BlockMesh72.Scale = Vector3.new(0.300000072, 0.124999993, 0.500000119)
- BlockMesh72.Scale = Vector3.new(0.300000072, 0.124999993, 0.500000119)
- Part73.Parent = Tool0
- Part73.BrickColor = BrickColor.new("Black")
- Part73.Rotation = Vector3.new(90, 0, 90)
- Part73.Anchored = true
- Part73.CanCollide = false
- Part73.FormFactor = Enum.FormFactor.Custom
- Part73.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part73.CFrame = CFrame.new(16.7864094, 2.2835772, -288.750702, 0, -1, 0, -3.7252903e-09, 0, -0.999999881, 0.999999881, 0, -3.7252903e-09)
- Part73.BottomSurface = Enum.SurfaceType.Smooth
- Part73.TopSurface = Enum.SurfaceType.Smooth
- Part73.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part73.Position = Vector3.new(16.7864094, 2.2835772, -288.750702)
- Part73.Orientation = Vector3.new(89.9700012, 180, -90)
- Part73.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh74.Parent = Part73
- CylinderMesh74.Scale = Vector3.new(0.750000119, 0.0749999806, 0.725000024)
- CylinderMesh74.Scale = Vector3.new(0.750000119, 0.0749999806, 0.725000024)
- Part75.Parent = Tool0
- Part75.BrickColor = BrickColor.new("Black")
- Part75.Rotation = Vector3.new(88.0999985, 0, 90)
- Part75.Anchored = true
- Part75.CanCollide = false
- Part75.FormFactor = Enum.FormFactor.Custom
- Part75.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part75.CFrame = CFrame.new(16.7844105, 2.3165772, -290.091705, 0, -1, 1.02140518e-13, 0.0331144109, -1.02082649e-13, -0.999451458, 0.999451458, 3.43788036e-15, 0.0331144109)
- Part75.BottomSurface = Enum.SurfaceType.Smooth
- Part75.TopSurface = Enum.SurfaceType.Smooth
- Part75.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part75.Position = Vector3.new(16.7844105, 2.3165772, -290.091705)
- Part75.Orientation = Vector3.new(88.0999985, 0, 90)
- Part75.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh76.Parent = Part75
- CylinderMesh76.Scale = Vector3.new(0.250000119, 0.325000018, 0.225000024)
- CylinderMesh76.Scale = Vector3.new(0.250000119, 0.325000018, 0.225000024)
- Part77.Parent = Tool0
- Part77.BrickColor = BrickColor.new("Black")
- Part77.Rotation = Vector3.new(-94.5699997, -90, 0)
- Part77.Anchored = true
- Part77.CanCollide = false
- Part77.FormFactor = Enum.FormFactor.Custom
- Part77.Size = Vector3.new(0.200000003, 0.450000346, 0.200000003)
- Part77.CFrame = CFrame.new(16.8914089, 2.04557705, -289.20871, -0, 0, -1, 0.996814251, -0.079757154, 0, -0.079757154, -0.996814251, 0)
- Part77.BottomSurface = Enum.SurfaceType.Smooth
- Part77.TopSurface = Enum.SurfaceType.Smooth
- Part77.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part77.Position = Vector3.new(16.8914089, 2.04557705, -289.20871)
- Part77.Orientation = Vector3.new(0, -90, 94.5699997)
- Part77.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh78.Parent = Part77
- SpecialMesh78.Scale = Vector3.new(0.574999988, 1, 0.32500428)
- SpecialMesh78.MeshType = Enum.MeshType.Torso
- SpecialMesh78.Scale = Vector3.new(0.574999988, 1, 0.32500428)
- Part79.Parent = Tool0
- Part79.BrickColor = BrickColor.new("CGA brown")
- Part79.Rotation = Vector3.new(0, 0, -180)
- Part79.Anchored = true
- Part79.CanCollide = false
- Part79.FormFactor = Enum.FormFactor.Custom
- Part79.Size = Vector3.new(0.200000003, 0.200000003, 0.570000052)
- Part79.CFrame = CFrame.new(16.8364105, 2.25757718, -290.565704, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part79.BottomSurface = Enum.SurfaceType.Smooth
- Part79.TopSurface = Enum.SurfaceType.Smooth
- Part79.Color = Color3.new(0.666667, 0.333333, 0)
- Part79.Position = Vector3.new(16.8364105, 2.25757718, -290.565704)
- Part79.Orientation = Vector3.new(0, 0, 180)
- Part79.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh80.Parent = Part79
- BlockMesh80.Scale = Vector3.new(0.425000042, 0.174999893, 1)
- BlockMesh80.Scale = Vector3.new(0.425000042, 0.174999893, 1)
- Part81.Parent = Tool0
- Part81.BrickColor = BrickColor.new("Black")
- Part81.Rotation = Vector3.new(90, 0, 90)
- Part81.Anchored = true
- Part81.CanCollide = false
- Part81.FormFactor = Enum.FormFactor.Custom
- Part81.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part81.CFrame = CFrame.new(16.8564091, 2.2835772, -288.750702, 0, -1, 0, -3.7252903e-09, 0, -0.999999881, 0.999999881, 0, -3.7252903e-09)
- Part81.BottomSurface = Enum.SurfaceType.Smooth
- Part81.TopSurface = Enum.SurfaceType.Smooth
- Part81.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part81.Position = Vector3.new(16.8564091, 2.2835772, -288.750702)
- Part81.Orientation = Vector3.new(89.9700012, 180, -90)
- Part81.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh82.Parent = Part81
- CylinderMesh82.Scale = Vector3.new(0.212500006, 0.824999928, 0.212500006)
- CylinderMesh82.Scale = Vector3.new(0.212500006, 0.824999928, 0.212500006)
- Part83.Parent = Tool0
- Part83.BrickColor = BrickColor.new("CGA brown")
- Part83.Rotation = Vector3.new(0, 0, -180)
- Part83.Anchored = true
- Part83.CanCollide = false
- Part83.FormFactor = Enum.FormFactor.Custom
- Part83.Size = Vector3.new(0.200000003, 0.200000003, 0.569999933)
- Part83.CFrame = CFrame.new(16.8364105, 2.197577, -290.565704, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part83.BottomSurface = Enum.SurfaceType.Smooth
- Part83.TopSurface = Enum.SurfaceType.Smooth
- Part83.Color = Color3.new(0.666667, 0.333333, 0)
- Part83.Position = Vector3.new(16.8364105, 2.197577, -290.565704)
- Part83.Orientation = Vector3.new(0, 0, 180)
- Part83.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh84.Parent = Part83
- BlockMesh84.Scale = Vector3.new(0.774999857, 0.424999893, 1)
- BlockMesh84.Scale = Vector3.new(0.774999857, 0.424999893, 1)
- Part85.Parent = Tool0
- Part85.BrickColor = BrickColor.new("Black")
- Part85.Rotation = Vector3.new(0, 0, -180)
- Part85.Anchored = true
- Part85.CanCollide = false
- Part85.FormFactor = Enum.FormFactor.Custom
- Part85.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part85.CFrame = CFrame.new(16.8364105, 2.21557713, -290.252686, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part85.BottomSurface = Enum.SurfaceType.Smooth
- Part85.TopSurface = Enum.SurfaceType.Smooth
- Part85.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part85.Position = Vector3.new(16.8364105, 2.21557713, -290.252686)
- Part85.Orientation = Vector3.new(0, 0, 180)
- Part85.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh86.Parent = Part85
- BlockMesh86.Scale = Vector3.new(0.774999857, 0.249999851, 0.274999917)
- BlockMesh86.Scale = Vector3.new(0.774999857, 0.249999851, 0.274999917)
- Part87.Parent = Tool0
- Part87.BrickColor = BrickColor.new("Black")
- Part87.Rotation = Vector3.new(0, 0, -180)
- Part87.Anchored = true
- Part87.CanCollide = false
- Part87.FormFactor = Enum.FormFactor.Custom
- Part87.Size = Vector3.new(0.200000003, 0.200000003, 0.435000241)
- Part87.CFrame = CFrame.new(16.8344097, 2.18257713, -288.857697, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part87.BottomSurface = Enum.SurfaceType.Smooth
- Part87.TopSurface = Enum.SurfaceType.Smooth
- Part87.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part87.Position = Vector3.new(16.8344097, 2.18257713, -288.857697)
- Part87.Orientation = Vector3.new(0, 0, 180)
- Part87.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh88.Parent = Part87
- BlockMesh88.Scale = Vector3.new(0.749999702, 0.324999899, 1)
- BlockMesh88.Scale = Vector3.new(0.749999702, 0.324999899, 1)
- Part89.Parent = Tool0
- Part89.BrickColor = BrickColor.new("Black")
- Part89.Rotation = Vector3.new(0, 0, -180)
- Part89.Anchored = true
- Part89.CanCollide = false
- Part89.FormFactor = Enum.FormFactor.Custom
- Part89.Size = Vector3.new(0.200000003, 0.200000003, 0.825000286)
- Part89.CFrame = CFrame.new(16.76441, 2.18257713, -289.487701, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part89.BottomSurface = Enum.SurfaceType.Smooth
- Part89.TopSurface = Enum.SurfaceType.Smooth
- Part89.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part89.Position = Vector3.new(16.76441, 2.18257713, -289.487701)
- Part89.Orientation = Vector3.new(0, 0, 180)
- Part89.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh90.Parent = Part89
- BlockMesh90.Scale = Vector3.new(0.049999997, 0.324999899, 1)
- BlockMesh90.Scale = Vector3.new(0.049999997, 0.324999899, 1)
- Part91.Parent = Tool0
- Part91.BrickColor = BrickColor.new("Black")
- Part91.Rotation = Vector3.new(-6.83999968, 0, -180)
- Part91.Anchored = true
- Part91.CanCollide = false
- Part91.FormFactor = Enum.FormFactor.Custom
- Part91.Size = Vector3.new(0.200000003, 0.200000003, 0.349999994)
- Part91.CFrame = CFrame.new(16.9194088, 2.10857725, -289.264709, -1, 0, 0, 0, -0.992889583, 0.119038537, 0, 0.119038537, 0.992889583)
- Part91.BottomSurface = Enum.SurfaceType.Smooth
- Part91.TopSurface = Enum.SurfaceType.Smooth
- Part91.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part91.Position = Vector3.new(16.9194088, 2.10857725, -289.264709)
- Part91.Orientation = Vector3.new(-6.83999968, 0, 180)
- Part91.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh92.Parent = Part91
- BlockMesh92.Scale = Vector3.new(0.0500000045, 0.300000131, 1)
- BlockMesh92.Scale = Vector3.new(0.0500000045, 0.300000131, 1)
- Part93.Parent = Tool0
- Part93.BrickColor = BrickColor.new("Black")
- Part93.Rotation = Vector3.new(0, 0, -180)
- Part93.Anchored = true
- Part93.CanCollide = false
- Part93.FormFactor = Enum.FormFactor.Custom
- Part93.Size = Vector3.new(0.200000003, 0.264999926, 0.200000003)
- Part93.CFrame = CFrame.new(16.8364105, 2.10857725, -290.877686, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part93.BottomSurface = Enum.SurfaceType.Smooth
- Part93.TopSurface = Enum.SurfaceType.Smooth
- Part93.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part93.Position = Vector3.new(16.8364105, 2.10857725, -290.877686)
- Part93.Orientation = Vector3.new(0, 0, 180)
- Part93.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh94.Parent = Part93
- BlockMesh94.Scale = Vector3.new(0.774999857, 1, 0.274999917)
- BlockMesh94.Scale = Vector3.new(0.774999857, 1, 0.274999917)
- Part95.Parent = Tool0
- Part95.BrickColor = BrickColor.new("Black")
- Part95.Rotation = Vector3.new(0, 0, -180)
- Part95.Anchored = true
- Part95.CanCollide = false
- Part95.FormFactor = Enum.FormFactor.Custom
- Part95.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part95.CFrame = CFrame.new(16.8364105, 2.25757718, -290.252686, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part95.BottomSurface = Enum.SurfaceType.Smooth
- Part95.TopSurface = Enum.SurfaceType.Smooth
- Part95.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part95.Position = Vector3.new(16.8364105, 2.25757718, -290.252686)
- Part95.Orientation = Vector3.new(0, 0, 180)
- Part95.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh96.Parent = Part95
- BlockMesh96.Scale = Vector3.new(0.425000042, 0.174999893, 0.274999917)
- BlockMesh96.Scale = Vector3.new(0.425000042, 0.174999893, 0.274999917)
- Part97.Parent = Tool0
- Part97.BrickColor = BrickColor.new("Black")
- Part97.Rotation = Vector3.new(0, 0, -180)
- Part97.Anchored = true
- Part97.CanCollide = false
- Part97.FormFactor = Enum.FormFactor.Custom
- Part97.Size = Vector3.new(0.200000003, 0.200000003, 1.12500024)
- Part97.CFrame = CFrame.new(16.8364105, 2.29257727, -289.337708, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part97.BottomSurface = Enum.SurfaceType.Smooth
- Part97.TopSurface = Enum.SurfaceType.Smooth
- Part97.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part97.Position = Vector3.new(16.8364105, 2.29257727, -289.337708)
- Part97.Orientation = Vector3.new(0, 0, 180)
- Part97.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh98.Parent = Part97
- BlockMesh98.Scale = Vector3.new(0.375000089, 0.174999982, 1)
- BlockMesh98.Scale = Vector3.new(0.375000089, 0.174999982, 1)
- Part99.Parent = Tool0
- Part99.BrickColor = BrickColor.new("Black")
- Part99.Rotation = Vector3.new(0, 0, 120)
- Part99.Anchored = true
- Part99.CanCollide = false
- Part99.FormFactor = Enum.FormFactor.Custom
- Part99.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part99.CFrame = CFrame.new(16.8744106, 2.37557721, -292.220703, -0.500036836, -0.866004944, 0, 0.866004944, -0.500036836, 0, 0, 0, 1)
- Part99.BottomSurface = Enum.SurfaceType.Smooth
- Part99.TopSurface = Enum.SurfaceType.Smooth
- Part99.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part99.Position = Vector3.new(16.8744106, 2.37557721, -292.220703)
- Part99.Orientation = Vector3.new(0, 0, 120)
- Part99.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh100.Parent = Part99
- BlockMesh100.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- BlockMesh100.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- Part101.Parent = Tool0
- Part101.BrickColor = BrickColor.new("Black")
- Part101.Rotation = Vector3.new(0, 0, -135)
- Part101.Anchored = true
- Part101.CanCollide = false
- Part101.FormFactor = Enum.FormFactor.Custom
- Part101.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part101.CFrame = CFrame.new(16.8714104, 2.32057714, -292.220703, -0.70712924, 0.707084715, 0, -0.707084715, -0.70712924, 0, 0, 0, 1)
- Part101.BottomSurface = Enum.SurfaceType.Smooth
- Part101.TopSurface = Enum.SurfaceType.Smooth
- Part101.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part101.Position = Vector3.new(16.8714104, 2.32057714, -292.220703)
- Part101.Orientation = Vector3.new(0, 0, -135)
- Part101.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh102.Parent = Part101
- BlockMesh102.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- BlockMesh102.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- Part103.Parent = Tool0
- Part103.BrickColor = BrickColor.new("Black")
- Part103.Rotation = Vector3.new(0, 0, -180)
- Part103.Anchored = true
- Part103.CanCollide = false
- Part103.FormFactor = Enum.FormFactor.Custom
- Part103.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part103.CFrame = CFrame.new(16.8364105, 2.32957721, -292.220703, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part103.BottomSurface = Enum.SurfaceType.Smooth
- Part103.TopSurface = Enum.SurfaceType.Smooth
- Part103.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part103.Position = Vector3.new(16.8364105, 2.32957721, -292.220703)
- Part103.Orientation = Vector3.new(0, 0, 180)
- Part103.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh104.Parent = Part103
- BlockMesh104.Scale = Vector3.new(0.0500000715, 0.175000012, 0.25000006)
- BlockMesh104.Scale = Vector3.new(0.0500000715, 0.175000012, 0.25000006)
- Part105.Parent = Tool0
- Part105.BrickColor = BrickColor.new("Black")
- Part105.Rotation = Vector3.new(0, 0, -90)
- Part105.Anchored = true
- Part105.CanCollide = false
- Part105.FormFactor = Enum.FormFactor.Custom
- Part105.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part105.CFrame = CFrame.new(16.88241, 2.34757733, -292.220703, -6.30170107e-05, 1.0000006, 0, -1.0000006, -6.30170107e-05, 0, 0, 0, 1)
- Part105.BottomSurface = Enum.SurfaceType.Smooth
- Part105.TopSurface = Enum.SurfaceType.Smooth
- Part105.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part105.Position = Vector3.new(16.88241, 2.34757733, -292.220703)
- Part105.Orientation = Vector3.new(0, 0, -90)
- Part105.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh106.Parent = Part105
- BlockMesh106.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- BlockMesh106.Scale = Vector3.new(0.175000042, 0.049999997, 0.55000031)
- Part107.Parent = Tool0
- Part107.BrickColor = BrickColor.new("Black")
- Part107.Rotation = Vector3.new(-1.89999998, 0, -180)
- Part107.Anchored = true
- Part107.CanCollide = false
- Part107.FormFactor = Enum.FormFactor.Custom
- Part107.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part107.CFrame = CFrame.new(16.7844105, 2.33557725, -289.899689, -1, 0, 0, 0, -0.999451458, 0.0331151746, 0, 0.0331151746, 0.999451458)
- Part107.BottomSurface = Enum.SurfaceType.Smooth
- Part107.TopSurface = Enum.SurfaceType.Smooth
- Part107.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part107.Position = Vector3.new(16.7844105, 2.33557725, -289.899689)
- Part107.Orientation = Vector3.new(-1.89999998, 0, 180)
- Part107.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Decal108.Parent = Part107
- Decal108.Texture = "http://www.roblox.com/asset/?id=61019872"
- Decal108.Face = Enum.NormalId.Back
- BlockMesh109.Parent = Part107
- BlockMesh109.Scale = Vector3.new(0.300000101, 0.300000012, 0.075000003)
- BlockMesh109.Scale = Vector3.new(0.300000101, 0.300000012, 0.075000003)
- Part110.Parent = Tool0
- Part110.BrickColor = BrickColor.new("Black")
- Part110.Rotation = Vector3.new(-90, 0, 0)
- Part110.Anchored = true
- Part110.CanCollide = false
- Part110.FormFactor = Enum.FormFactor.Custom
- Part110.Size = Vector3.new(0.200000003, 1.32499981, 0.200000003)
- Part110.CFrame = CFrame.new(16.8364105, 2.02057695, -291.567688, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part110.BottomSurface = Enum.SurfaceType.Smooth
- Part110.TopSurface = Enum.SurfaceType.Smooth
- Part110.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part110.Position = Vector3.new(16.8364105, 2.02057695, -291.567688)
- Part110.Orientation = Vector3.new(-90, 0, 0)
- Part110.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh111.Parent = Part110
- CylinderMesh111.Scale = Vector3.new(0.125, 1, 0.125)
- CylinderMesh111.Scale = Vector3.new(0.125, 1, 0.125)
- Part112.Parent = Tool0
- Part112.BrickColor = BrickColor.new("Black")
- Part112.Rotation = Vector3.new(-90, 0, 0)
- Part112.Anchored = true
- Part112.CanCollide = false
- Part112.FormFactor = Enum.FormFactor.Custom
- Part112.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part112.CFrame = CFrame.new(16.7964096, 2.2375772, -290.252686, 1, 0, 2.98023224e-08, -2.98023224e-08, -2.98023224e-08, 1, 0, -1, -2.98023224e-08)
- Part112.BottomSurface = Enum.SurfaceType.Smooth
- Part112.TopSurface = Enum.SurfaceType.Smooth
- Part112.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part112.Position = Vector3.new(16.7964096, 2.2375772, -290.252686)
- Part112.Orientation = Vector3.new(-90, 0, 0)
- Part112.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh113.Parent = Part112
- CylinderMesh113.Scale = Vector3.new(0.37499997, 0.274999797, 0.374999851)
- CylinderMesh113.Scale = Vector3.new(0.37499997, 0.274999797, 0.374999851)
- Part114.Parent = Tool0
- Part114.BrickColor = BrickColor.new("Black")
- Part114.Rotation = Vector3.new(-90, 0, -180)
- Part114.Anchored = true
- Part114.CanCollide = false
- Part114.FormFactor = Enum.FormFactor.Custom
- Part114.Size = Vector3.new(0.200000003, 0.200000003, 0.224999994)
- Part114.CFrame = CFrame.new(16.8364105, 2.02557707, -288.562683, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Part114.BottomSurface = Enum.SurfaceType.Smooth
- Part114.TopSurface = Enum.SurfaceType.Smooth
- Part114.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part114.Position = Vector3.new(16.8364105, 2.02557707, -288.562683)
- Part114.Orientation = Vector3.new(-90, -180, 0)
- Part114.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh115.Parent = Part114
- SpecialMesh115.Scale = Vector3.new(0.774999797, 0.375, 1)
- SpecialMesh115.MeshType = Enum.MeshType.Wedge
- SpecialMesh115.Scale = Vector3.new(0.774999797, 0.375, 1)
- Part116.Parent = Tool0
- Part116.BrickColor = BrickColor.new("Black")
- Part116.Rotation = Vector3.new(0, 0, -180)
- Part116.Anchored = true
- Part116.CanCollide = false
- Part116.FormFactor = Enum.FormFactor.Custom
- Part116.Size = Vector3.new(0.200000003, 0.200000003, 0.324999988)
- Part116.CFrame = CFrame.new(16.8364105, 2.22557712, -290.062683, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part116.BottomSurface = Enum.SurfaceType.Smooth
- Part116.TopSurface = Enum.SurfaceType.Smooth
- Part116.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part116.Position = Vector3.new(16.8364105, 2.22557712, -290.062683)
- Part116.Orientation = Vector3.new(0, 0, 180)
- Part116.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh117.Parent = Part116
- BlockMesh117.Scale = Vector3.new(0.774999917, 0.75, 1)
- BlockMesh117.Scale = Vector3.new(0.774999917, 0.75, 1)
- Part118.Parent = Tool0
- Part118.BrickColor = BrickColor.new("Black")
- Part118.Rotation = Vector3.new(-90, 0, 0)
- Part118.Anchored = true
- Part118.CanCollide = false
- Part118.FormFactor = Enum.FormFactor.Custom
- Part118.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part118.CFrame = CFrame.new(16.8364105, 2.02057695, -292.239685, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part118.BottomSurface = Enum.SurfaceType.Smooth
- Part118.TopSurface = Enum.SurfaceType.Smooth
- Part118.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part118.Position = Vector3.new(16.8364105, 2.02057695, -292.239685)
- Part118.Orientation = Vector3.new(-90, 0, 0)
- Part118.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh119.Parent = Part118
- CylinderMesh119.Scale = Vector3.new(0.230000019, 0.499999791, 0.201250017)
- CylinderMesh119.Scale = Vector3.new(0.230000019, 0.499999791, 0.201250017)
- Part120.Parent = Tool0
- Part120.BrickColor = BrickColor.new("Black")
- Part120.Anchored = true
- Part120.CanCollide = false
- Part120.FormFactor = Enum.FormFactor.Custom
- Part120.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part120.CFrame = CFrame.new(16.8364105, 2.1355772, -291.567688, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part120.BottomSurface = Enum.SurfaceType.Smooth
- Part120.TopSurface = Enum.SurfaceType.Smooth
- Part120.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part120.Position = Vector3.new(16.8364105, 2.1355772, -291.567688)
- Part120.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh121.Parent = Part120
- SpecialMesh121.Scale = Vector3.new(0.250000149, 0.25, 0.625)
- SpecialMesh121.MeshType = Enum.MeshType.Wedge
- SpecialMesh121.Scale = Vector3.new(0.250000149, 0.25, 0.625)
- Part122.Parent = Tool0
- Part122.BrickColor = BrickColor.new("CGA brown")
- Part122.Rotation = Vector3.new(0, 0, -180)
- Part122.Anchored = true
- Part122.CanCollide = false
- Part122.FormFactor = Enum.FormFactor.Custom
- Part122.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part122.CFrame = CFrame.new(16.8364105, 2.1355772, -290.819702, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part122.BottomSurface = Enum.SurfaceType.Smooth
- Part122.TopSurface = Enum.SurfaceType.Smooth
- Part122.Color = Color3.new(0.666667, 0.333333, 0)
- Part122.Position = Vector3.new(16.8364105, 2.1355772, -290.819702)
- Part122.Orientation = Vector3.new(0, 0, 180)
- Part122.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh123.Parent = Part122
- BlockMesh123.Scale = Vector3.new(0.774999857, 0.199999988, 0.299999595)
- BlockMesh123.Scale = Vector3.new(0.774999857, 0.199999988, 0.299999595)
- Part124.Parent = Tool0
- Part124.BrickColor = BrickColor.new("Black")
- Part124.Rotation = Vector3.new(-90, 0, 0)
- Part124.Anchored = true
- Part124.CanCollide = false
- Part124.FormFactor = Enum.FormFactor.Custom
- Part124.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part124.CFrame = CFrame.new(16.8364105, 2.08557701, -290.929688, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part124.BottomSurface = Enum.SurfaceType.Smooth
- Part124.TopSurface = Enum.SurfaceType.Smooth
- Part124.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part124.Position = Vector3.new(16.8364105, 2.08557701, -290.929688)
- Part124.Orientation = Vector3.new(-90, 0, 0)
- Part124.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh125.Parent = Part124
- CylinderMesh125.Scale = Vector3.new(0.5, 0.25, 0.5)
- CylinderMesh125.Scale = Vector3.new(0.5, 0.25, 0.5)
- Part126.Parent = Tool0
- Part126.BrickColor = BrickColor.new("Black")
- Part126.Rotation = Vector3.new(-90, 0, 0)
- Part126.Anchored = true
- Part126.CanCollide = false
- Part126.FormFactor = Enum.FormFactor.Custom
- Part126.Size = Vector3.new(0.200000003, 0.524999976, 0.200000003)
- Part126.CFrame = CFrame.new(16.8364105, 2.20557714, -291.167694, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part126.BottomSurface = Enum.SurfaceType.Smooth
- Part126.TopSurface = Enum.SurfaceType.Smooth
- Part126.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part126.Position = Vector3.new(16.8364105, 2.20557714, -291.167694)
- Part126.Orientation = Vector3.new(-90, 0, 0)
- Part126.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh127.Parent = Part126
- CylinderMesh127.Scale = Vector3.new(0.25, 1, 0.25)
- CylinderMesh127.Scale = Vector3.new(0.25, 1, 0.25)
- Part128.Parent = Tool0
- Part128.BrickColor = BrickColor.new("CGA brown")
- Part128.Rotation = Vector3.new(0, 0, -180)
- Part128.Anchored = true
- Part128.CanCollide = false
- Part128.FormFactor = Enum.FormFactor.Custom
- Part128.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part128.CFrame = CFrame.new(16.8364105, 2.1355772, -290.307709, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part128.BottomSurface = Enum.SurfaceType.Smooth
- Part128.TopSurface = Enum.SurfaceType.Smooth
- Part128.Color = Color3.new(0.666667, 0.333333, 0)
- Part128.Position = Vector3.new(16.8364105, 2.1355772, -290.307709)
- Part128.Orientation = Vector3.new(0, 0, 180)
- Part128.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh129.Parent = Part128
- BlockMesh129.Scale = Vector3.new(0.774999857, 0.199999869, 0.274999648)
- BlockMesh129.Scale = Vector3.new(0.774999857, 0.199999869, 0.274999648)
- Part130.Parent = Tool0
- Part130.BrickColor = BrickColor.new("CGA brown")
- Part130.Rotation = Vector3.new(0, 0, -180)
- Part130.Anchored = true
- Part130.CanCollide = false
- Part130.FormFactor = Enum.FormFactor.Custom
- Part130.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part130.CFrame = CFrame.new(16.8364105, 2.1355772, -290.562683, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part130.BottomSurface = Enum.SurfaceType.Smooth
- Part130.TopSurface = Enum.SurfaceType.Smooth
- Part130.Color = Color3.new(0.666667, 0.333333, 0)
- Part130.Position = Vector3.new(16.8364105, 2.1355772, -290.562683)
- Part130.Orientation = Vector3.new(0, 0, 180)
- Part130.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh131.Parent = Part130
- BlockMesh131.Scale = Vector3.new(0.774999857, 0.199999988, 0.474999666)
- BlockMesh131.Scale = Vector3.new(0.774999857, 0.199999988, 0.474999666)
- Part132.Parent = Tool0
- Part132.BrickColor = BrickColor.new("CGA brown")
- Part132.Rotation = Vector3.new(-90, 0, -180)
- Part132.Anchored = true
- Part132.CanCollide = false
- Part132.FormFactor = Enum.FormFactor.Custom
- Part132.Size = Vector3.new(0.200000003, 0.200000003, 0.575000107)
- Part132.CFrame = CFrame.new(16.8364105, 1.73857701, -287.375702, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Part132.BottomSurface = Enum.SurfaceType.Smooth
- Part132.TopSurface = Enum.SurfaceType.Smooth
- Part132.Color = Color3.new(0.666667, 0.333333, 0)
- Part132.Position = Vector3.new(16.8364105, 1.73857701, -287.375702)
- Part132.Orientation = Vector3.new(-90, -180, 0)
- Part132.Color = Color3.new(0.666667, 0.333333, 0)
- SpecialMesh133.Parent = Part132
- SpecialMesh133.Scale = Vector3.new(0.725000143, 0.25000003, 1)
- SpecialMesh133.MeshType = Enum.MeshType.Wedge
- SpecialMesh133.Scale = Vector3.new(0.725000143, 0.25000003, 1)
- Part134.Parent = Tool0
- Part134.BrickColor = BrickColor.new("Black")
- Part134.Rotation = Vector3.new(175, 0, 180)
- Part134.Anchored = true
- Part134.CanCollide = false
- Part134.FormFactor = Enum.FormFactor.Custom
- Part134.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part134.CFrame = CFrame.new(16.8364105, 1.74257696, -289.332703, -1, -0, 0, 0, 0.99619472, -0.087155737, 0, -0.087155737, -0.99619472)
- Part134.BottomSurface = Enum.SurfaceType.Smooth
- Part134.TopSurface = Enum.SurfaceType.Smooth
- Part134.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part134.Position = Vector3.new(16.8364105, 1.74257696, -289.332703)
- Part134.Orientation = Vector3.new(5, 180, 0)
- Part134.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh135.Parent = Part134
- BlockMesh135.Scale = Vector3.new(0.675000191, 0.524999976, 0.149999976)
- BlockMesh135.Scale = Vector3.new(0.675000191, 0.524999976, 0.149999976)
- Part136.Parent = Tool0
- Part136.BrickColor = BrickColor.new("CGA brown")
- Part136.Rotation = Vector3.new(0, 0, -180)
- Part136.Anchored = true
- Part136.CanCollide = false
- Part136.FormFactor = Enum.FormFactor.Custom
- Part136.Size = Vector3.new(0.200000003, 0.449999988, 1.125)
- Part136.CFrame = CFrame.new(16.8364105, 1.67557693, -287.962708, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part136.BottomSurface = Enum.SurfaceType.Smooth
- Part136.TopSurface = Enum.SurfaceType.Smooth
- Part136.Color = Color3.new(0.666667, 0.333333, 0)
- Part136.Position = Vector3.new(16.8364105, 1.67557693, -287.962708)
- Part136.Orientation = Vector3.new(0, 0, 180)
- Part136.Color = Color3.new(0.666667, 0.333333, 0)
- SpecialMesh137.Parent = Part136
- SpecialMesh137.Scale = Vector3.new(0.725000143, 1, 1)
- SpecialMesh137.MeshType = Enum.MeshType.Wedge
- SpecialMesh137.Scale = Vector3.new(0.725000143, 1, 1)
- Part138.Parent = Tool0
- Part138.BrickColor = BrickColor.new("Black")
- Part138.Rotation = Vector3.new(135, 0, 0)
- Part138.Anchored = true
- Part138.CanCollide = false
- Part138.FormFactor = Enum.FormFactor.Custom
- Part138.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part138.CFrame = CFrame.new(16.8364105, 1.76057696, -289.24469, 1, 0, 0, 0, -0.707129121, -0.707084537, 0, 0.707084537, -0.707129121)
- Part138.BottomSurface = Enum.SurfaceType.Smooth
- Part138.TopSurface = Enum.SurfaceType.Smooth
- Part138.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part138.Position = Vector3.new(16.8364105, 1.76057696, -289.24469)
- Part138.Orientation = Vector3.new(45, 180, 180)
- Part138.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh139.Parent = Part138
- BlockMesh139.Scale = Vector3.new(0.775000095, 0.625, 0.125)
- BlockMesh139.Scale = Vector3.new(0.775000095, 0.625, 0.125)
- Part140.Parent = Tool0
- Part140.BrickColor = BrickColor.new("CGA brown")
- Part140.Rotation = Vector3.new(-15, 0, -180)
- Part140.Anchored = true
- Part140.CanCollide = false
- Part140.FormFactor = Enum.FormFactor.Custom
- Part140.Size = Vector3.new(0.200000003, 0.524999976, 0.25)
- Part140.CFrame = CFrame.new(16.8364105, 1.567577, -288.692688, -1, 0, 0, 0, -0.965928555, 0.258808911, 0, 0.258808911, 0.965928555)
- Part140.BottomSurface = Enum.SurfaceType.Smooth
- Part140.TopSurface = Enum.SurfaceType.Smooth
- Part140.Color = Color3.new(0.666667, 0.333333, 0)
- Part140.Position = Vector3.new(16.8364105, 1.567577, -288.692688)
- Part140.Orientation = Vector3.new(-15, 0, 180)
- Part140.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh141.Parent = Part140
- BlockMesh141.Scale = Vector3.new(0.825000048, 1, 1)
- BlockMesh141.Scale = Vector3.new(0.825000048, 1, 1)
- Part142.Parent = Tool0
- Part142.BrickColor = BrickColor.new("CGA brown")
- Part142.Rotation = Vector3.new(0, 0, -180)
- Part142.Anchored = true
- Part142.CanCollide = false
- Part142.FormFactor = Enum.FormFactor.Custom
- Part142.Size = Vector3.new(0.200000003, 0.200000003, 0.200000018)
- Part142.CFrame = CFrame.new(16.8364105, 1.947577, -290.209686, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part142.BottomSurface = Enum.SurfaceType.Smooth
- Part142.TopSurface = Enum.SurfaceType.Smooth
- Part142.Color = Color3.new(0.666667, 0.333333, 0)
- Part142.Position = Vector3.new(16.8364105, 1.947577, -290.209686)
- Part142.Orientation = Vector3.new(0, 0, 180)
- Part142.Color = Color3.new(0.666667, 0.333333, 0)
- SpecialMesh143.Parent = Part142
- SpecialMesh143.Scale = Vector3.new(0.774999976, 0.274999976, 1)
- SpecialMesh143.MeshType = Enum.MeshType.Wedge
- SpecialMesh143.Scale = Vector3.new(0.774999976, 0.274999976, 1)
- Part144.Parent = Tool0
- Part144.BrickColor = BrickColor.new("CGA brown")
- Part144.Rotation = Vector3.new(0, 0, -180)
- Part144.Anchored = true
- Part144.CanCollide = false
- Part144.FormFactor = Enum.FormFactor.Custom
- Part144.Size = Vector3.new(0.200000003, 0.200000003, 1.125)
- Part144.CFrame = CFrame.new(16.8364105, 1.96357703, -287.962708, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part144.BottomSurface = Enum.SurfaceType.Smooth
- Part144.TopSurface = Enum.SurfaceType.Smooth
- Part144.Color = Color3.new(0.666667, 0.333333, 0)
- Part144.Position = Vector3.new(16.8364105, 1.96357703, -287.962708)
- Part144.Orientation = Vector3.new(0, 0, 180)
- Part144.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh145.Parent = Part144
- BlockMesh145.Scale = Vector3.new(0.725000143, 0.625, 1)
- BlockMesh145.Scale = Vector3.new(0.725000143, 0.625, 1)
- Part146.Parent = Tool0
- Part146.BrickColor = BrickColor.new("Black")
- Part146.Rotation = Vector3.new(30, 0, -180)
- Part146.Anchored = true
- Part146.CanCollide = false
- Part146.FormFactor = Enum.FormFactor.Custom
- Part146.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part146.CFrame = CFrame.new(16.8364105, 1.78757703, -289.002686, -1, 0, 0, 0, -0.866035938, -0.499981821, 0, -0.499981821, 0.866035938)
- Part146.BottomSurface = Enum.SurfaceType.Smooth
- Part146.TopSurface = Enum.SurfaceType.Smooth
- Part146.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part146.Position = Vector3.new(16.8364105, 1.78757703, -289.002686)
- Part146.Orientation = Vector3.new(30, 0, 180)
- Part146.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh147.Parent = Part146
- BlockMesh147.Scale = Vector3.new(0.775000095, 0.875, 0.125)
- BlockMesh147.Scale = Vector3.new(0.775000095, 0.875, 0.125)
- Part148.Parent = Tool0
- Part148.BrickColor = BrickColor.new("CGA brown")
- Part148.Rotation = Vector3.new(0, 0, -180)
- Part148.Anchored = true
- Part148.CanCollide = false
- Part148.FormFactor = Enum.FormFactor.Custom
- Part148.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part148.CFrame = CFrame.new(16.8364105, 1.81257701, -288.924713, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part148.BottomSurface = Enum.SurfaceType.Smooth
- Part148.TopSurface = Enum.SurfaceType.Smooth
- Part148.Color = Color3.new(0.666667, 0.333333, 0)
- Part148.Position = Vector3.new(16.8364105, 1.81257701, -288.924713)
- Part148.Orientation = Vector3.new(0, 0, 180)
- Part148.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh149.Parent = Part148
- BlockMesh149.Scale = Vector3.new(0.825000048, 0.375, 0.5)
- BlockMesh149.Scale = Vector3.new(0.825000048, 0.375, 0.5)
- Part150.Parent = Tool0
- Part150.BrickColor = BrickColor.new("CGA brown")
- Part150.Rotation = Vector3.new(-105, 0, 0)
- Part150.Anchored = true
- Part150.CanCollide = false
- Part150.FormFactor = Enum.FormFactor.Custom
- Part150.Size = Vector3.new(0.200000003, 0.200000003, 0.324999988)
- Part150.CFrame = CFrame.new(16.8364105, 1.62557697, -288.862701, 1, 0, -0, 0, -0.258808911, 0.965928555, 0, -0.965928555, -0.258808911)
- Part150.BottomSurface = Enum.SurfaceType.Smooth
- Part150.TopSurface = Enum.SurfaceType.Smooth
- Part150.Color = Color3.new(0.666667, 0.333333, 0)
- Part150.Position = Vector3.new(16.8364105, 1.62557697, -288.862701)
- Part150.Orientation = Vector3.new(-75, -180, 180)
- Part150.Color = Color3.new(0.666667, 0.333333, 0)
- SpecialMesh151.Parent = Part150
- SpecialMesh151.Scale = Vector3.new(0.824999928, 0.25, 1)
- SpecialMesh151.MeshType = Enum.MeshType.Wedge
- SpecialMesh151.Scale = Vector3.new(0.824999928, 0.25, 1)
- Part152.Parent = Tool0
- Part152.BrickColor = BrickColor.new("Black")
- Part152.Rotation = Vector3.new(0, 0, -180)
- Part152.Anchored = true
- Part152.CanCollide = false
- Part152.FormFactor = Enum.FormFactor.Custom
- Part152.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part152.CFrame = CFrame.new(16.8364105, 1.88557696, -289.307709, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part152.BottomSurface = Enum.SurfaceType.Smooth
- Part152.TopSurface = Enum.SurfaceType.Smooth
- Part152.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part152.Position = Vector3.new(16.8364105, 1.88557696, -289.307709)
- Part152.Orientation = Vector3.new(0, 0, 180)
- Part152.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh153.Parent = Part152
- BlockMesh153.Scale = Vector3.new(0.775000095, 0.899999976, 0.450000018)
- BlockMesh153.Scale = Vector3.new(0.775000095, 0.899999976, 0.450000018)
- Part154.Parent = Tool0
- Part154.BrickColor = BrickColor.new("CGA brown")
- Part154.Rotation = Vector3.new(-180, 0, -180)
- Part154.Anchored = true
- Part154.CanCollide = false
- Part154.FormFactor = Enum.FormFactor.Custom
- Part154.Size = Vector3.new(0.200000003, 0.200000003, 0.800000072)
- Part154.CFrame = CFrame.new(16.8364105, 2.07557702, -287.749695, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part154.BottomSurface = Enum.SurfaceType.Smooth
- Part154.TopSurface = Enum.SurfaceType.Smooth
- Part154.Color = Color3.new(0.666667, 0.333333, 0)
- Part154.Position = Vector3.new(16.8364105, 2.07557702, -287.749695)
- Part154.Orientation = Vector3.new(0, 180, 0)
- Part154.Color = Color3.new(0.666667, 0.333333, 0)
- SpecialMesh155.Parent = Part154
- SpecialMesh155.Scale = Vector3.new(0.724999964, 0.49999997, 1)
- SpecialMesh155.MeshType = Enum.MeshType.Wedge
- SpecialMesh155.Scale = Vector3.new(0.724999964, 0.49999997, 1)
- Part156.Parent = Tool0
- Part156.BrickColor = BrickColor.new("Black")
- Part156.Rotation = Vector3.new(-90, 0, -180)
- Part156.Anchored = true
- Part156.CanCollide = false
- Part156.FormFactor = Enum.FormFactor.Custom
- Part156.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part156.CFrame = CFrame.new(16.8364105, 1.71757698, -289.122711, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Part156.BottomSurface = Enum.SurfaceType.Smooth
- Part156.TopSurface = Enum.SurfaceType.Smooth
- Part156.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part156.Position = Vector3.new(16.8364105, 1.71757698, -289.122711)
- Part156.Orientation = Vector3.new(-90, -180, 0)
- Part156.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh157.Parent = Part156
- BlockMesh157.Scale = Vector3.new(0.775000095, 0.875, 0.125)
- BlockMesh157.Scale = Vector3.new(0.775000095, 0.875, 0.125)
- Part158.Parent = Tool0
- Part158.BrickColor = BrickColor.new("Black")
- Part158.Rotation = Vector3.new(94.4000015, 0, 180)
- Part158.Anchored = true
- Part158.CanCollide = false
- Part158.FormFactor = Enum.FormFactor.Custom
- Part158.Size = Vector3.new(0.200000003, 0.200000003, 0.574999928)
- Part158.CFrame = CFrame.new(16.8364105, 1.73857701, -287.363708, -1, -0, 0, 0, 0.0766965002, -0.997054458, 0, -0.997054458, -0.0766965002)
- Part158.BottomSurface = Enum.SurfaceType.Smooth
- Part158.TopSurface = Enum.SurfaceType.Smooth
- Part158.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part158.Position = Vector3.new(16.8364105, 1.73857701, -287.363708)
- Part158.Orientation = Vector3.new(85.5999985, 180, 0)
- Part158.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh159.Parent = Part158
- BlockMesh159.Scale = Vector3.new(0.725000024, 0.125, 1)
- BlockMesh159.Scale = Vector3.new(0.725000024, 0.125, 1)
- Part160.Parent = Tool0
- Part160.BrickColor = BrickColor.new("CGA brown")
- Part160.Rotation = Vector3.new(0, 0, -180)
- Part160.Anchored = true
- Part160.CanCollide = false
- Part160.FormFactor = Enum.FormFactor.Custom
- Part160.Size = Vector3.new(0.200000003, 0.200000003, 0.37500003)
- Part160.CFrame = CFrame.new(16.8364105, 2.05057693, -288.337708, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part160.BottomSurface = Enum.SurfaceType.Smooth
- Part160.TopSurface = Enum.SurfaceType.Smooth
- Part160.Color = Color3.new(0.666667, 0.333333, 0)
- Part160.Position = Vector3.new(16.8364105, 2.05057693, -288.337708)
- Part160.Orientation = Vector3.new(0, 0, 180)
- Part160.Color = Color3.new(0.666667, 0.333333, 0)
- BlockMesh161.Parent = Part160
- BlockMesh161.Scale = Vector3.new(0.725000143, 0.25000003, 1)
- BlockMesh161.Scale = Vector3.new(0.725000143, 0.25000003, 1)
- Part162.Parent = Tool0
- Part162.BrickColor = BrickColor.new("Black")
- Part162.Rotation = Vector3.new(0, 0, -180)
- Part162.Anchored = true
- Part162.CanCollide = false
- Part162.FormFactor = Enum.FormFactor.Custom
- Part162.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part162.CFrame = CFrame.new(16.8364105, 2.30257726, -288.727692, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part162.BottomSurface = Enum.SurfaceType.Smooth
- Part162.TopSurface = Enum.SurfaceType.Smooth
- Part162.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part162.Position = Vector3.new(16.8364105, 2.30257726, -288.727692)
- Part162.Orientation = Vector3.new(0, 0, 180)
- Part162.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh163.Parent = Part162
- BlockMesh163.Scale = Vector3.new(0.225000039, 0.249999911, 0.474999905)
- BlockMesh163.Scale = Vector3.new(0.225000039, 0.249999911, 0.474999905)
- Part164.Parent = Tool0
- Part164.BrickColor = BrickColor.new("Black")
- Part164.Rotation = Vector3.new(0, 0, -180)
- Part164.Anchored = true
- Part164.CanCollide = false
- Part164.FormFactor = Enum.FormFactor.Custom
- Part164.Size = Vector3.new(0.200000003, 0.200000003, 0.774999976)
- Part164.CFrame = CFrame.new(16.8914089, 2.2375772, -289.062683, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part164.BottomSurface = Enum.SurfaceType.Smooth
- Part164.TopSurface = Enum.SurfaceType.Smooth
- Part164.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part164.Position = Vector3.new(16.8914089, 2.2375772, -289.062683)
- Part164.Orientation = Vector3.new(0, 0, 180)
- Part164.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh165.Parent = Part164
- BlockMesh165.Scale = Vector3.new(0.0249999985, 0.37499994, 1)
- BlockMesh165.Scale = Vector3.new(0.0249999985, 0.37499994, 1)
- Part166.Parent = Tool0
- Part166.BrickColor = BrickColor.new("Black")
- Part166.Rotation = Vector3.new(-90, 0, 0)
- Part166.Anchored = true
- Part166.CanCollide = false
- Part166.FormFactor = Enum.FormFactor.Custom
- Part166.Size = Vector3.new(0.200000003, 0.300000012, 0.200000003)
- Part166.CFrame = CFrame.new(16.8364105, 2.08557701, -292.155701, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part166.BottomSurface = Enum.SurfaceType.Smooth
- Part166.TopSurface = Enum.SurfaceType.Smooth
- Part166.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part166.Position = Vector3.new(16.8364105, 2.08557701, -292.155701)
- Part166.Orientation = Vector3.new(-90, 0, 0)
- Part166.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh167.Parent = Part166
- CylinderMesh167.Scale = Vector3.new(0.375, 1, 0.375)
- CylinderMesh167.Scale = Vector3.new(0.375, 1, 0.375)
- Part168.Parent = Tool0
- Part168.BrickColor = BrickColor.new("Black")
- Part168.Rotation = Vector3.new(-180, 0, -180)
- Part168.Anchored = true
- Part168.CanCollide = false
- Part168.FormFactor = Enum.FormFactor.Custom
- Part168.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part168.CFrame = CFrame.new(16.8344097, 2.18257713, -288.619659, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part168.BottomSurface = Enum.SurfaceType.Smooth
- Part168.TopSurface = Enum.SurfaceType.Smooth
- Part168.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part168.Position = Vector3.new(16.8344097, 2.18257713, -288.619659)
- Part168.Orientation = Vector3.new(0, 180, 0)
- Part168.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh169.Parent = Part168
- SpecialMesh169.Scale = Vector3.new(0.74999994, 0.324999988, 0.199999958)
- SpecialMesh169.MeshType = Enum.MeshType.Wedge
- SpecialMesh169.Scale = Vector3.new(0.74999994, 0.324999988, 0.199999958)
- Part170.Parent = Tool0
- Part170.BrickColor = BrickColor.new("Black")
- Part170.Rotation = Vector3.new(90, 0, 90)
- Part170.Anchored = true
- Part170.CanCollide = false
- Part170.FormFactor = Enum.FormFactor.Custom
- Part170.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part170.CFrame = CFrame.new(16.9044094, 2.2835772, -288.750702, 0, -1, 0, -3.7252903e-09, 0, -0.999999881, 0.999999881, 0, -3.7252903e-09)
- Part170.BottomSurface = Enum.SurfaceType.Smooth
- Part170.TopSurface = Enum.SurfaceType.Smooth
- Part170.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part170.Position = Vector3.new(16.9044094, 2.2835772, -288.750702)
- Part170.Orientation = Vector3.new(89.9700012, 180, -90)
- Part170.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh171.Parent = Part170
- CylinderMesh171.Scale = Vector3.new(0.550000012, 0.099999994, 0.550000012)
- CylinderMesh171.Scale = Vector3.new(0.550000012, 0.099999994, 0.550000012)
- Part172.Parent = Tool0
- Part172.BrickColor = BrickColor.new("CGA brown")
- Part172.Rotation = Vector3.new(-180, 0, -180)
- Part172.Anchored = true
- Part172.CanCollide = false
- Part172.FormFactor = Enum.FormFactor.Custom
- Part172.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012)
- Part172.CFrame = CFrame.new(16.8364105, 2.10057688, -288.375702, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part172.BottomSurface = Enum.SurfaceType.Smooth
- Part172.TopSurface = Enum.SurfaceType.Smooth
- Part172.Color = Color3.new(0.666667, 0.333333, 0)
- Part172.Position = Vector3.new(16.8364105, 2.10057688, -288.375702)
- Part172.Orientation = Vector3.new(0, 180, 0)
- Part172.Color = Color3.new(0.666667, 0.333333, 0)
- SpecialMesh173.Parent = Part172
- SpecialMesh173.Scale = Vector3.new(0.725000143, 0.25000003, 1)
- SpecialMesh173.MeshType = Enum.MeshType.Wedge
- SpecialMesh173.Scale = Vector3.new(0.725000143, 0.25000003, 1)
- Part174.Parent = Tool0
- Part174.BrickColor = BrickColor.new("Black")
- Part174.Rotation = Vector3.new(60, 0, -180)
- Part174.Anchored = true
- Part174.CanCollide = false
- Part174.FormFactor = Enum.FormFactor.Custom
- Part174.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part174.CFrame = CFrame.new(16.8364105, 2.2065773, -292.120697, -1, 0, 0, 0, -0.500036895, -0.866004944, 0, -0.866004944, 0.500036895)
- Part174.BottomSurface = Enum.SurfaceType.Smooth
- Part174.TopSurface = Enum.SurfaceType.Smooth
- Part174.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part174.Position = Vector3.new(16.8364105, 2.2065773, -292.120697)
- Part174.Orientation = Vector3.new(60, 0, 180)
- Part174.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh175.Parent = Part174
- BlockMesh175.Scale = Vector3.new(0.300000072, 0.124999993, 0.700000226)
- BlockMesh175.Scale = Vector3.new(0.300000072, 0.124999993, 0.700000226)
- Part176.Parent = Tool0
- Part176.BrickColor = BrickColor.new("Black")
- Part176.Anchored = true
- Part176.CanCollide = false
- Part176.FormFactor = Enum.FormFactor.Custom
- Part176.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part176.CFrame = CFrame.new(16.8364105, 2.04257703, -292.239685, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part176.BottomSurface = Enum.SurfaceType.Smooth
- Part176.TopSurface = Enum.SurfaceType.Smooth
- Part176.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part176.Position = Vector3.new(16.8364105, 2.04257703, -292.239685)
- Part176.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh177.Parent = Part176
- BlockMesh177.Scale = Vector3.new(0.200000137, 0.200000018, 0.5)
- BlockMesh177.Scale = Vector3.new(0.200000137, 0.200000018, 0.5)
- Part178.Parent = Tool0
- Part178.BrickColor = BrickColor.new("Black")
- Part178.Rotation = Vector3.new(0, 0, -180)
- Part178.Anchored = true
- Part178.CanCollide = false
- Part178.FormFactor = Enum.FormFactor.Custom
- Part178.Size = Vector3.new(0.200000003, 0.200000003, 0.25000003)
- Part178.CFrame = CFrame.new(16.8364105, 2.12157726, -292.179688, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part178.BottomSurface = Enum.SurfaceType.Smooth
- Part178.TopSurface = Enum.SurfaceType.Smooth
- Part178.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part178.Position = Vector3.new(16.8364105, 2.12157726, -292.179688)
- Part178.Orientation = Vector3.new(0, 0, 180)
- Part178.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh179.Parent = Part178
- BlockMesh179.Scale = Vector3.new(0.300000072, 0.300000012, 1)
- BlockMesh179.Scale = Vector3.new(0.300000072, 0.300000012, 1)
- Part180.Parent = Tool0
- Part180.BrickColor = BrickColor.new("Black")
- Part180.Rotation = Vector3.new(-90, 0, 90)
- Part180.Anchored = true
- Part180.CanCollide = false
- Part180.FormFactor = Enum.FormFactor.Custom
- Part180.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part180.CFrame = CFrame.new(16.8364105, 2.30257726, -290.202698, 0, -1, -2.98023224e-08, -2.98023224e-08, -2.98023224e-08, 1, -1, 1.77635684e-15, -2.98023224e-08)
- Part180.BottomSurface = Enum.SurfaceType.Smooth
- Part180.TopSurface = Enum.SurfaceType.Smooth
- Part180.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part180.Position = Vector3.new(16.8364105, 2.30257726, -290.202698)
- Part180.Orientation = Vector3.new(-90, 90, 0)
- Part180.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh181.Parent = Part180
- CylinderMesh181.Scale = Vector3.new(0.224999994, 0.762499988, 0.224999994)
- CylinderMesh181.Scale = Vector3.new(0.224999994, 0.762499988, 0.224999994)
- Part182.Parent = Tool0
- Part182.BrickColor = BrickColor.new("Really black")
- Part182.Rotation = Vector3.new(0, 0, -180)
- Part182.Anchored = true
- Part182.CanCollide = false
- Part182.FormFactor = Enum.FormFactor.Custom
- Part182.Size = Vector3.new(0.200000003, 0.200000003, 0.825000286)
- Part182.CFrame = CFrame.new(16.8764095, 2.20057726, -289.487701, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part182.BottomSurface = Enum.SurfaceType.Smooth
- Part182.TopSurface = Enum.SurfaceType.Smooth
- Part182.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part182.Position = Vector3.new(16.8764095, 2.20057726, -289.487701)
- Part182.Orientation = Vector3.new(0, 0, 180)
- Part182.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- BlockMesh183.Parent = Part182
- BlockMesh183.Scale = Vector3.new(0.137500003, 0.49999997, 1)
- BlockMesh183.Scale = Vector3.new(0.137500003, 0.49999997, 1)
- Part184.Parent = Tool0
- Part184.BrickColor = BrickColor.new("Black")
- Part184.Rotation = Vector3.new(0, 0, -180)
- Part184.Anchored = true
- Part184.CanCollide = false
- Part184.FormFactor = Enum.FormFactor.Custom
- Part184.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part184.CFrame = CFrame.new(16.8914089, 2.2375772, -289.474701, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part184.BottomSurface = Enum.SurfaceType.Smooth
- Part184.TopSurface = Enum.SurfaceType.Smooth
- Part184.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part184.Position = Vector3.new(16.8914089, 2.2375772, -289.474701)
- Part184.Orientation = Vector3.new(0, 0, 180)
- Part184.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh185.Parent = Part184
- SpecialMesh185.Scale = Vector3.new(0.025000006, 0.375, 0.25)
- SpecialMesh185.MeshType = Enum.MeshType.Wedge
- SpecialMesh185.Scale = Vector3.new(0.025000006, 0.375, 0.25)
- Part186.Parent = Tool0
- Part186.BrickColor = BrickColor.new("Black")
- Part186.Rotation = Vector3.new(-180, 0, -180)
- Part186.Anchored = true
- Part186.CanCollide = false
- Part186.FormFactor = Enum.FormFactor.Custom
- Part186.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part186.CFrame = CFrame.new(16.8364105, 2.28157711, -292.147705, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part186.BottomSurface = Enum.SurfaceType.Smooth
- Part186.TopSurface = Enum.SurfaceType.Smooth
- Part186.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part186.Position = Vector3.new(16.8364105, 2.28157711, -292.147705)
- Part186.Orientation = Vector3.new(0, 180, 0)
- Part186.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh187.Parent = Part186
- SpecialMesh187.Scale = Vector3.new(0.300000161, 0.299999982, 0.174999937)
- SpecialMesh187.MeshType = Enum.MeshType.Wedge
- SpecialMesh187.Scale = Vector3.new(0.300000161, 0.299999982, 0.174999937)
- Part188.Parent = Tool0
- Part188.BrickColor = BrickColor.new("Black")
- Part188.Rotation = Vector3.new(0, 0, -180)
- Part188.Anchored = true
- Part188.CanCollide = false
- Part188.FormFactor = Enum.FormFactor.Custom
- Part188.Size = Vector3.new(0.200000003, 0.224999994, 0.200000003)
- Part188.CFrame = CFrame.new(16.8364105, 2.02557707, -288.562683, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part188.BottomSurface = Enum.SurfaceType.Smooth
- Part188.TopSurface = Enum.SurfaceType.Smooth
- Part188.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part188.Position = Vector3.new(16.8364105, 2.02557707, -288.562683)
- Part188.Orientation = Vector3.new(0, 0, 180)
- Part188.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh189.Parent = Part188
- BlockMesh189.Scale = Vector3.new(0.664999902, 1, 0.375)
- BlockMesh189.Scale = Vector3.new(0.664999902, 1, 0.375)
- Part190.Parent = Tool0
- Part190.BrickColor = BrickColor.new("Black")
- Part190.Rotation = Vector3.new(-170.539993, 0, 0)
- Part190.Anchored = true
- Part190.CanCollide = false
- Part190.FormFactor = Enum.FormFactor.Custom
- Part190.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012)
- Part190.CFrame = CFrame.new(16.8364105, 2.10857725, -288.407684, 1, 0, -0, 0, -0.986393929, 0.164399043, 0, -0.164399043, -0.986393929)
- Part190.BottomSurface = Enum.SurfaceType.Smooth
- Part190.TopSurface = Enum.SurfaceType.Smooth
- Part190.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part190.Position = Vector3.new(16.8364105, 2.10857725, -288.407684)
- Part190.Orientation = Vector3.new(-9.46000004, -180, 180)
- Part190.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh191.Parent = Part190
- BlockMesh191.Scale = Vector3.new(0.475000113, 0.0249999985, 1)
- BlockMesh191.Scale = Vector3.new(0.475000113, 0.0249999985, 1)
- Part192.Parent = Tool0
- Part192.BrickColor = BrickColor.new("CGA brown")
- Part192.Rotation = Vector3.new(-90, 0, -90)
- Part192.Anchored = true
- Part192.CanCollide = false
- Part192.FormFactor = Enum.FormFactor.Custom
- Part192.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part192.CFrame = CFrame.new(16.8364105, 1.9785769, -290.087708, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- Part192.BottomSurface = Enum.SurfaceType.Smooth
- Part192.TopSurface = Enum.SurfaceType.Smooth
- Part192.Color = Color3.new(0.666667, 0.333333, 0)
- Part192.Position = Vector3.new(16.8364105, 1.9785769, -290.087708)
- Part192.Orientation = Vector3.new(-90, -90, 0)
- Part192.Color = Color3.new(0.666667, 0.333333, 0)
- CylinderMesh193.Parent = Part192
- CylinderMesh193.Scale = Vector3.new(0.625000119, 0.774999797, 0.625)
- CylinderMesh193.Scale = Vector3.new(0.625000119, 0.774999797, 0.625)
- Part194.Parent = Tool0
- Part194.BrickColor = BrickColor.new("Black")
- Part194.Anchored = true
- Part194.CanCollide = false
- Part194.FormFactor = Enum.FormFactor.Custom
- Part194.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part194.CFrame = CFrame.new(16.8364105, 2.18857718, -291.455688, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part194.BottomSurface = Enum.SurfaceType.Smooth
- Part194.TopSurface = Enum.SurfaceType.Smooth
- Part194.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part194.Position = Vector3.new(16.8364105, 2.18857718, -291.455688)
- Part194.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh195.Parent = Part194
- SpecialMesh195.Scale = Vector3.new(0.250000149, 0.274999976, 0.5)
- SpecialMesh195.MeshType = Enum.MeshType.Wedge
- SpecialMesh195.Scale = Vector3.new(0.250000149, 0.274999976, 0.5)
- Part196.Parent = Tool0
- Part196.BrickColor = BrickColor.new("CGA brown")
- Part196.Anchored = true
- Part196.CanCollide = false
- Part196.FormFactor = Enum.FormFactor.Custom
- Part196.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part196.CFrame = CFrame.new(16.8364105, 2.10057688, -288.187683, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part196.BottomSurface = Enum.SurfaceType.Smooth
- Part196.TopSurface = Enum.SurfaceType.Smooth
- Part196.Color = Color3.new(0.666667, 0.333333, 0)
- Part196.Position = Vector3.new(16.8364105, 2.10057688, -288.187683)
- Part196.Color = Color3.new(0.666667, 0.333333, 0)
- SpecialMesh197.Parent = Part196
- SpecialMesh197.Scale = Vector3.new(0.724999905, 0.25, 0.375)
- SpecialMesh197.MeshType = Enum.MeshType.Wedge
- SpecialMesh197.Scale = Vector3.new(0.724999905, 0.25, 0.375)
- Part198.Parent = Tool0
- Part198.BrickColor = BrickColor.new("Black")
- Part198.Rotation = Vector3.new(-90, 0, 0)
- Part198.Anchored = true
- Part198.CanCollide = false
- Part198.FormFactor = Enum.FormFactor.Custom
- Part198.Size = Vector3.new(0.200000003, 0.25, 0.200000003)
- Part198.CFrame = CFrame.new(16.8364105, 2.08557701, -291.529694, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part198.BottomSurface = Enum.SurfaceType.Smooth
- Part198.TopSurface = Enum.SurfaceType.Smooth
- Part198.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part198.Position = Vector3.new(16.8364105, 2.08557701, -291.529694)
- Part198.Orientation = Vector3.new(-90, 0, 0)
- Part198.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh199.Parent = Part198
- CylinderMesh199.Scale = Vector3.new(0.375, 1, 0.375)
- CylinderMesh199.Scale = Vector3.new(0.375, 1, 0.375)
- Part200.Parent = Tool0
- Part200.BrickColor = BrickColor.new("Black")
- Part200.Anchored = true
- Part200.CanCollide = false
- Part200.FormFactor = Enum.FormFactor.Custom
- Part200.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part200.CFrame = CFrame.new(16.8364105, 2.34657717, -288.697693, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part200.BottomSurface = Enum.SurfaceType.Smooth
- Part200.TopSurface = Enum.SurfaceType.Smooth
- Part200.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part200.Position = Vector3.new(16.8364105, 2.34657717, -288.697693)
- Part200.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh201.Parent = Part200
- SpecialMesh201.MeshId = "http://www.roblox.com/asset/?id=3270017"
- SpecialMesh201.Scale = Vector3.new(0.0399999991, 0.0399999991, 0.075000003)
- SpecialMesh201.MeshType = Enum.MeshType.FileMesh
- SpecialMesh201.Scale = Vector3.new(0.0399999991, 0.0399999991, 0.075000003)
- Part202.Parent = Tool0
- Part202.BrickColor = BrickColor.new("Black")
- Part202.Rotation = Vector3.new(-180, 0, -180)
- Part202.Anchored = true
- Part202.CanCollide = false
- Part202.FormFactor = Enum.FormFactor.Custom
- Part202.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part202.CFrame = CFrame.new(16.8364105, 2.13757706, -288.562683, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part202.BottomSurface = Enum.SurfaceType.Smooth
- Part202.TopSurface = Enum.SurfaceType.Smooth
- Part202.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part202.Position = Vector3.new(16.8364105, 2.13757706, -288.562683)
- Part202.Orientation = Vector3.new(0, 180, 0)
- Part202.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh203.Parent = Part202
- SpecialMesh203.Scale = Vector3.new(0.775000095, 0.125, 0.375)
- SpecialMesh203.MeshType = Enum.MeshType.Wedge
- SpecialMesh203.Scale = Vector3.new(0.775000095, 0.125, 0.375)
- ManualWeld204.Name = "Part-to-AimPart Strong Joint"
- ManualWeld204.Parent = Part202
- ManualWeld204.C0 = CFrame.new(0.100000001, -0.100000001, -0.100000001, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- ManualWeld204.C1 = CFrame.new(-0.101606369, -0.304009438, -0.121948242, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld204.Part0 = Part202
- ManualWeld204.Part1 = Part20
- Part205.Parent = Tool0
- Part205.BrickColor = BrickColor.new("Black")
- Part205.Rotation = Vector3.new(-90, 0, 0)
- Part205.Anchored = true
- Part205.CanCollide = false
- Part205.FormFactor = Enum.FormFactor.Custom
- Part205.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part205.CFrame = CFrame.new(16.8764095, 2.2375772, -290.252686, 1, 0, 2.98023224e-08, -2.98023224e-08, -2.98023224e-08, 1, 0, -1, -2.98023224e-08)
- Part205.BottomSurface = Enum.SurfaceType.Smooth
- Part205.TopSurface = Enum.SurfaceType.Smooth
- Part205.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part205.Position = Vector3.new(16.8764095, 2.2375772, -290.252686)
- Part205.Orientation = Vector3.new(-90, 0, 0)
- Part205.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh206.Parent = Part205
- CylinderMesh206.Scale = Vector3.new(0.37499997, 0.274999797, 0.374999851)
- CylinderMesh206.Scale = Vector3.new(0.37499997, 0.274999797, 0.374999851)
- Part207.Parent = Tool0
- Part207.BrickColor = BrickColor.new("Black")
- Part207.Rotation = Vector3.new(-180, 0, -180)
- Part207.Anchored = true
- Part207.CanCollide = false
- Part207.FormFactor = Enum.FormFactor.Custom
- Part207.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part207.CFrame = CFrame.new(16.8364105, 2.2125771, -288.637695, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part207.BottomSurface = Enum.SurfaceType.Smooth
- Part207.TopSurface = Enum.SurfaceType.Smooth
- Part207.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part207.Position = Vector3.new(16.8364105, 2.2125771, -288.637695)
- Part207.Orientation = Vector3.new(0, 180, 0)
- Part207.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh208.Parent = Part207
- SpecialMesh208.Scale = Vector3.new(0.574999928, 0.625, 0.375)
- SpecialMesh208.MeshType = Enum.MeshType.Wedge
- SpecialMesh208.Scale = Vector3.new(0.574999928, 0.625, 0.375)
- Part209.Parent = Tool0
- Part209.BrickColor = BrickColor.new("Black")
- Part209.Rotation = Vector3.new(0, 0, -180)
- Part209.Anchored = true
- Part209.CanCollide = false
- Part209.FormFactor = Enum.FormFactor.Custom
- Part209.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part209.CFrame = CFrame.new(16.8364105, 2.28157711, -292.220703, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part209.BottomSurface = Enum.SurfaceType.Smooth
- Part209.TopSurface = Enum.SurfaceType.Smooth
- Part209.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part209.Position = Vector3.new(16.8364105, 2.28157711, -292.220703)
- Part209.Orientation = Vector3.new(0, 0, 180)
- Part209.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh210.Parent = Part209
- BlockMesh210.Scale = Vector3.new(0.300000072, 0.300000012, 0.550000072)
- BlockMesh210.Scale = Vector3.new(0.300000072, 0.300000012, 0.550000072)
- Part211.Parent = Tool0
- Part211.BrickColor = BrickColor.new("Black")
- Part211.Rotation = Vector3.new(0, 0, -180)
- Part211.Anchored = true
- Part211.CanCollide = false
- Part211.FormFactor = Enum.FormFactor.Custom
- Part211.Size = Vector3.new(0.200000003, 0.200000003, 1.625)
- Part211.CFrame = CFrame.new(16.8364105, 2.06357694, -289.412689, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part211.BottomSurface = Enum.SurfaceType.Smooth
- Part211.TopSurface = Enum.SurfaceType.Smooth
- Part211.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part211.Position = Vector3.new(16.8364105, 2.06357694, -289.412689)
- Part211.Orientation = Vector3.new(0, 0, 180)
- Part211.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh212.Parent = Part211
- BlockMesh212.Scale = Vector3.new(0.774999976, 0.874999821, 1)
- BlockMesh212.Scale = Vector3.new(0.774999976, 0.874999821, 1)
- Part213.Parent = Tool0
- Part213.BrickColor = BrickColor.new("Black")
- Part213.Rotation = Vector3.new(0, 0, -180)
- Part213.Anchored = true
- Part213.CanCollide = false
- Part213.FormFactor = Enum.FormFactor.Custom
- Part213.Size = Vector3.new(0.200000003, 0.200000003, 1.54999995)
- Part213.CFrame = CFrame.new(16.8344097, 2.2125771, -289.449677, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part213.BottomSurface = Enum.SurfaceType.Smooth
- Part213.TopSurface = Enum.SurfaceType.Smooth
- Part213.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part213.Position = Vector3.new(16.8344097, 2.2125771, -289.449677)
- Part213.Orientation = Vector3.new(0, 0, 180)
- Part213.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh214.Parent = Part213
- BlockMesh214.Scale = Vector3.new(0.550000072, 0.62499994, 1)
- BlockMesh214.Scale = Vector3.new(0.550000072, 0.62499994, 1)
- Part215.Parent = Tool0
- Part215.BrickColor = BrickColor.new("Black")
- Part215.Rotation = Vector3.new(-94.5699997, 0, 90)
- Part215.Anchored = true
- Part215.CanCollide = false
- Part215.FormFactor = Enum.FormFactor.Custom
- Part215.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part215.CFrame = CFrame.new(16.9194088, 2.06457686, -288.981689, 0, -1, -2.98023224e-08, -0.0797571838, -2.97073797e-08, 0.996814251, -0.996814251, 2.37695019e-09, -0.0797571838)
- Part215.BottomSurface = Enum.SurfaceType.Smooth
- Part215.TopSurface = Enum.SurfaceType.Smooth
- Part215.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part215.Position = Vector3.new(16.9194088, 2.06457686, -288.981689)
- Part215.Orientation = Vector3.new(-85.4300003, -180, -90)
- Part215.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh216.Parent = Part215
- CylinderMesh216.Scale = Vector3.new(0.574999928, 0.0500000045, 0.574999988)
- CylinderMesh216.Scale = Vector3.new(0.574999928, 0.0500000045, 0.574999988)
- Part217.Parent = Tool0
- Part217.BrickColor = BrickColor.new("Black")
- Part217.Anchored = true
- Part217.CanCollide = false
- Part217.FormFactor = Enum.FormFactor.Custom
- Part217.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part217.CFrame = CFrame.new(16.8364105, 2.1355772, -291.455688, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part217.BottomSurface = Enum.SurfaceType.Smooth
- Part217.TopSurface = Enum.SurfaceType.Smooth
- Part217.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part217.Position = Vector3.new(16.8364105, 2.1355772, -291.455688)
- Part217.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh218.Parent = Part217
- BlockMesh218.Scale = Vector3.new(0.250000149, 0.25, 0.5)
- BlockMesh218.Scale = Vector3.new(0.250000149, 0.25, 0.5)
- Part219.Parent = Tool0
- Part219.BrickColor = BrickColor.new("CGA brown")
- Part219.Rotation = Vector3.new(-90, 0, 0)
- Part219.Anchored = true
- Part219.CanCollide = false
- Part219.FormFactor = Enum.FormFactor.Custom
- Part219.Size = Vector3.new(0.200000003, 0.570000052, 0.200000003)
- Part219.CFrame = CFrame.new(16.8764095, 2.2375772, -290.565704, 1, 0, 2.98023224e-08, -2.98023224e-08, -2.98023224e-08, 1, 0, -1, -2.98023224e-08)
- Part219.BottomSurface = Enum.SurfaceType.Smooth
- Part219.TopSurface = Enum.SurfaceType.Smooth
- Part219.Color = Color3.new(0.666667, 0.333333, 0)
- Part219.Position = Vector3.new(16.8764095, 2.2375772, -290.565704)
- Part219.Orientation = Vector3.new(-90, 0, 0)
- Part219.Color = Color3.new(0.666667, 0.333333, 0)
- CylinderMesh220.Parent = Part219
- CylinderMesh220.Scale = Vector3.new(0.37499997, 1, 0.374999851)
- CylinderMesh220.Scale = Vector3.new(0.37499997, 1, 0.374999851)
- Part221.Parent = Tool0
- Part221.BrickColor = BrickColor.new("Black")
- Part221.Rotation = Vector3.new(-90, 0, 0)
- Part221.Anchored = true
- Part221.CanCollide = false
- Part221.FormFactor = Enum.FormFactor.Custom
- Part221.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part221.CFrame = CFrame.new(16.7964096, 2.2375772, -290.877686, 1, 0, 2.98023224e-08, -2.98023224e-08, -2.98023224e-08, 1, 0, -1, -2.98023224e-08)
- Part221.BottomSurface = Enum.SurfaceType.Smooth
- Part221.TopSurface = Enum.SurfaceType.Smooth
- Part221.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part221.Position = Vector3.new(16.7964096, 2.2375772, -290.877686)
- Part221.Orientation = Vector3.new(-90, 0, 0)
- Part221.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh222.Parent = Part221
- CylinderMesh222.Scale = Vector3.new(0.37499997, 0.274999797, 0.374999851)
- CylinderMesh222.Scale = Vector3.new(0.37499997, 0.274999797, 0.374999851)
- Part223.Parent = Tool0
- Part223.BrickColor = BrickColor.new("Black")
- Part223.Rotation = Vector3.new(-90, 0, 0)
- Part223.Anchored = true
- Part223.CanCollide = false
- Part223.FormFactor = Enum.FormFactor.Custom
- Part223.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part223.CFrame = CFrame.new(16.8764095, 2.2375772, -290.877686, 1, 0, 2.98023224e-08, -2.98023224e-08, -2.98023224e-08, 1, 0, -1, -2.98023224e-08)
- Part223.BottomSurface = Enum.SurfaceType.Smooth
- Part223.TopSurface = Enum.SurfaceType.Smooth
- Part223.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part223.Position = Vector3.new(16.8764095, 2.2375772, -290.877686)
- Part223.Orientation = Vector3.new(-90, 0, 0)
- Part223.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh224.Parent = Part223
- CylinderMesh224.Scale = Vector3.new(0.37499997, 0.274999797, 0.374999851)
- CylinderMesh224.Scale = Vector3.new(0.37499997, 0.274999797, 0.374999851)
- Part225.Parent = Tool0
- Part225.BrickColor = BrickColor.new("Black")
- Part225.Rotation = Vector3.new(0, 0, -180)
- Part225.Anchored = true
- Part225.CanCollide = false
- Part225.FormFactor = Enum.FormFactor.Custom
- Part225.Size = Vector3.new(0.200000003, 0.200000003, 0.375)
- Part225.CFrame = CFrame.new(16.8364105, 1.91257691, -288.787689, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part225.BottomSurface = Enum.SurfaceType.Smooth
- Part225.TopSurface = Enum.SurfaceType.Smooth
- Part225.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part225.Position = Vector3.new(16.8364105, 1.91257691, -288.787689)
- Part225.Orientation = Vector3.new(0, 0, 180)
- Part225.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh226.Parent = Part225
- BlockMesh226.Scale = Vector3.new(0.775000095, 0.62499994, 1)
- BlockMesh226.Scale = Vector3.new(0.775000095, 0.62499994, 1)
- Part227.Parent = Tool0
- Part227.BrickColor = BrickColor.new("Black")
- Part227.Rotation = Vector3.new(90, 0, 90)
- Part227.Anchored = true
- Part227.CanCollide = false
- Part227.FormFactor = Enum.FormFactor.Custom
- Part227.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part227.CFrame = CFrame.new(16.8864098, 2.2835772, -288.749695, 0, -1, 0, -3.7252903e-09, 0, -0.999999881, 0.999999881, 0, -3.7252903e-09)
- Part227.BottomSurface = Enum.SurfaceType.Smooth
- Part227.TopSurface = Enum.SurfaceType.Smooth
- Part227.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part227.Position = Vector3.new(16.8864098, 2.2835772, -288.749695)
- Part227.Orientation = Vector3.new(89.9700012, 180, -90)
- Part227.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh228.Parent = Part227
- CylinderMesh228.Scale = Vector3.new(0.750000119, 0.0749999806, 0.725000024)
- CylinderMesh228.Scale = Vector3.new(0.750000119, 0.0749999806, 0.725000024)
- Part229.Parent = Tool0
- Part229.BrickColor = BrickColor.new("Black")
- Part229.Rotation = Vector3.new(-45, 0, 0)
- Part229.Anchored = true
- Part229.CanCollide = false
- Part229.FormFactor = Enum.FormFactor.Custom
- Part229.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part229.CFrame = CFrame.new(16.8364105, 1.83257699, -289.104706, 0.99999994, -0, 0, 0, 0.707129002, 0.707084537, 0, -0.707084537, 0.707129002)
- Part229.BottomSurface = Enum.SurfaceType.Smooth
- Part229.TopSurface = Enum.SurfaceType.Smooth
- Part229.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part229.Position = Vector3.new(16.8364105, 1.83257699, -289.104706)
- Part229.Orientation = Vector3.new(-45, 0, 0)
- Part229.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh230.Parent = Part229
- SpecialMesh230.Scale = Vector3.new(0.175000161, 0.162499994, 0.412500024)
- SpecialMesh230.MeshType = Enum.MeshType.Wedge
- SpecialMesh230.Scale = Vector3.new(0.175000161, 0.162499994, 0.412500024)
- Part231.Parent = Tool0
- Part231.BrickColor = BrickColor.new("Black")
- Part231.Rotation = Vector3.new(0, 0, -180)
- Part231.Anchored = true
- Part231.CanCollide = false
- Part231.FormFactor = Enum.FormFactor.Custom
- Part231.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part231.CFrame = CFrame.new(16.8364105, 2.25757718, -290.877686, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part231.BottomSurface = Enum.SurfaceType.Smooth
- Part231.TopSurface = Enum.SurfaceType.Smooth
- Part231.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part231.Position = Vector3.new(16.8364105, 2.25757718, -290.877686)
- Part231.Orientation = Vector3.new(0, 0, 180)
- Part231.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh232.Parent = Part231
- BlockMesh232.Scale = Vector3.new(0.425000042, 0.174999893, 0.274999917)
- BlockMesh232.Scale = Vector3.new(0.425000042, 0.174999893, 0.274999917)
- Part233.Parent = Tool0
- Part233.BrickColor = BrickColor.new("Black")
- Part233.Rotation = Vector3.new(0, 0, -180)
- Part233.Anchored = true
- Part233.CanCollide = false
- Part233.FormFactor = Enum.FormFactor.Custom
- Part233.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part233.CFrame = CFrame.new(16.8364105, 2.29557729, -290.195709, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part233.BottomSurface = Enum.SurfaceType.Smooth
- Part233.TopSurface = Enum.SurfaceType.Smooth
- Part233.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part233.Position = Vector3.new(16.8364105, 2.29557729, -290.195709)
- Part233.Orientation = Vector3.new(0, 0, 180)
- Part233.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh234.Parent = Part233
- BlockMesh234.Scale = Vector3.new(0.674999952, 0.24999994, 0.199999988)
- BlockMesh234.Scale = Vector3.new(0.674999952, 0.24999994, 0.199999988)
- Part235.Parent = Tool0
- Part235.BrickColor = BrickColor.new("Black")
- Part235.Rotation = Vector3.new(0, 0, -180)
- Part235.Anchored = true
- Part235.CanCollide = false
- Part235.FormFactor = Enum.FormFactor.Custom
- Part235.Size = Vector3.new(0.200000003, 0.200000003, 1.42499995)
- Part235.CFrame = CFrame.new(16.8364105, 1.93857694, -289.312653, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part235.BottomSurface = Enum.SurfaceType.Smooth
- Part235.TopSurface = Enum.SurfaceType.Smooth
- Part235.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part235.Position = Vector3.new(16.8364105, 1.93857694, -289.312653)
- Part235.Orientation = Vector3.new(0, 0, 180)
- Part235.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh236.Parent = Part235
- SpecialMesh236.Scale = Vector3.new(0.774999976, 0.375, 1)
- SpecialMesh236.MeshType = Enum.MeshType.Wedge
- SpecialMesh236.Scale = Vector3.new(0.774999976, 0.375, 1)
- Part237.Name = "Mag"
- Part237.Parent = Tool0
- Part237.BrickColor = BrickColor.new("Black")
- Part237.Rotation = Vector3.new(7, 0, 0)
- Part237.Anchored = true
- Part237.CanCollide = false
- Part237.FormFactor = Enum.FormFactor.Custom
- Part237.Size = Vector3.new(0.200000003, 0.300000012, 0.375)
- Part237.CFrame = CFrame.new(16.8364105, 1.87957692, -289.558685, 1, 0, 0, 0, 0.992546141, -0.121869348, 0, 0.121869348, 0.992546141)
- Part237.BottomSurface = Enum.SurfaceType.Smooth
- Part237.TopSurface = Enum.SurfaceType.Smooth
- Part237.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part237.Position = Vector3.new(16.8364105, 1.87957692, -289.558685)
- Part237.Orientation = Vector3.new(7, 0, 0)
- Part237.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh238.Parent = Part237
- BlockMesh238.Scale = Vector3.new(0.699999988, 1, 1)
- BlockMesh238.Scale = Vector3.new(0.699999988, 1, 1)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- Services = setmetatable({},{__index=function(s,r) return game:service(r) end})
- Player = Services.Players.LocalPlayer
- wait()script.Parent=nil
- BodyParts={}
- abs = function(int)
- if int < 0 then return -int else return int end
- end
- rad = function(deg)
- return deg * math.pi / 180
- end
- deg = function(rad)
- return rad * 180 / math.pi
- end
- dist = function(p1,p2)
- r,e = ypcall(function()
- p1 = p1.Position
- end)
- if not r then p1 = p1 end
- r,e = ypcall(function()
- p2 = p2.Position
- end)
- if not r then p1 = p1 end
- return math.sqrt( (p2.X-p1.X)^2 + (p2.Y-p1.Y)^2 + (p2.Z-p1.Z)^2 )
- end
- function GetChar()
- return Player.Character
- end
- function GetHum()
- for i,v in pairs(GetChar():children'') do
- if v.ClassName == 'Humanoid' then
- return v
- end
- end
- end
- function Died()
- for i,v in pairs(GetChar():children'') do
- if v.ClassName == 'Part' then
- table.insert(BodyParts,{v.CFrame,v})
- elseif v.ClassName == 'Hat' then
- v.Parent=workspace
- table.insert(BodyParts,{v.Handle.CFrame,v.Handle,1})
- end
- end
- wait(3)
- for i,v in pairs(BodyParts) do
- v[2].Anchored=true
- if v[2].Name == 'Torso' then pos = v[1] end
- end
- for i,v in pairs(BodyParts) do
- coroutine.resume(coroutine.create(function()
- repeat Services.RunService.Heartbeat:wait()
- v[2].CFrame = v[2].CFrame:lerp(v[1],.1)
- until dist(v[2],v[1]) < .05
- v[2].CFrame=v[1]
- end))
- end
- end
- Player.CharacterAdded:connect(function(char)
- char:WaitForChild('Torso')
- for i,v in pairs(BodyParts) do
- if v[3] then
- v[2]:Remove()
- end
- end
- BodyParts={}
- char.Torso.CFrame=pos or CFrame.new(0,12,0)
- GetHum().Died:connect(Died)
- end)
- GetHum().Died:connect(Died)
- print'rannering'
- r2 = "Cyan"
- --declarations
- PI=math.pi
- TAU=PI*2
- DEBRIS=game:service'Debris'
- mr,md=math.random,math.rad
- cfn,v3n=CFrame.new,Vector3.new
- _A=nil
- ang=function(x,y,z)local a=CFrame.Angles(x or 0,y or 0,z or 0)_A=a return a end
- RS=game:service'RunService'
- numkp=NumberSequenceKeypoint.new
- colkp=ColorSequenceKeypoint.new
- bcol=BrickColor.new
- RS:UnbindFromRenderStep('Anim')
- --player specific...
- player = game:service'Players'.LocalPlayer
- character = player.Character
- torso = character.Torso
- head = character.Head
- rarm = character['Right Arm']
- larm = character['Left Arm']
- rleg = character['Right Leg']
- rleg = character['Left Leg']
- human = character.Humanoid
- --Utilities... who needs them?
- function recurseHum(what)
- local res
- local p=what
- if what:IsA'Humanoid'then
- res=what
- else
- repeat
- p=p.Parent
- if p then
- local hum=p:FindFirstChild'Humanoid'
- if hum then
- res=hum
- break
- end
- end
- until p==nil
- end
- return res
- end
- function findHum(pos,rad,hum2)
- local hums={}
- function check(a)
- local res=false
- for i,ho in pairs(hums)do
- if a==ho then res=true end
- end
- return res
- end
- for i,v in pairs(Workspace:children())do
- if v:IsA'Model'and v~=Char and v~=(hum2 or Char) then
- for i,q in pairs(v:children())do
- if q:IsA'Humanoid' and q.Parent:FindFirstChild'Torso'and(q.Torso.Position-pos).magnitude < rad then
- if not check(q)then
- table.insert(hums,q)
- end
- end
- end
- end
- end
- return hums
- end
- function checkY(p1,p2,range,range2)
- local function checko()
- return ( (l(p1).X>l(p2).X-range2 and l(p1).X<l(p2).X+range2) and (l(p1).Z>l(p2).Z-range2 and l(p1).Z<l(p2).Z+range2) )
- end
- if range2 then
- return (l(p1).Y > l(p2).Y-range and l(p2).Y < l(p2).Y+range) and checko()
- else
- return (l(p1).Y > l(p2).Y-range and l(p2).Y < l(p2).Y+range)
- end
- end
- udim=function(a,b,c,d)
- if type(a)=='string'then
- x,y=tostring(a):match('([%+%d%.%-%/%*]+),([%+%d%.%-%/%*]+)')
- return UDim2.new(x or 0,x2 or 0,y or 0,y2 or 0)
- else
- return UDim2.new(a or 0,c or 0,b or 0,d or 0)
- end end
- function l(a1,x,y,z,rx,ry,rz)
- local cf
- if tostring(a1):find(',') == nil then
- cf=a1.CFrame
- else cf=a1 end
- return cf*CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(
- rx or 0,ry or 0,yz or 0)
- end
- function f(a) --turns thigns in to function returning the thing... f(l)(torso,0,2,0)
- return function(...)
- local args={...}
- return function() return a(unpack(args)) end
- end
- end
- function isIn(what,tab) --returns true if what is in tab. isIn("Troll", {"Tomato", "Troll", "Strawberry") --> true
- local res=false
- for i,v in next,tab do
- if v==what then
- res = true
- break
- end
- end
- return res
- end
- Weld = function(part0,part1,c0,c1,...) --over-engineered welding function which accepts many things
- local ar = {...}
- local cframe0,cframe1
- local function checkf()local res=true
- for i,v in pairs(ar)do
- if type(v) ~= 'number' then
- res=false
- end
- end
- return res
- end
- if type(c0) == 'table' then
- cframe0 = CFrame.new(c0[1] or 0, c0[2] or 0, c0[3] or 0) * CFrame.Angles(
- c0[4] or 0, c0[5] or 0, c0[6] or 0)
- elseif type(c0) == 'userdata' then
- cframe0 = c0
- elseif type(c0) == 'number' and checkf() then
- cframe0 = CFrame.new(c0 or 0,c1 or 0,ar[1] or 0) * CFrame.Angles(ar[2] or 0, ar[3] or 0, ar[4] or 0)
- end
- if type(c1) == 'table' then
- cframe1 = CFrame.new(c1[1] or 0, c1[2] or 0, c1[3] or 0) * CFrame.Angles(
- c1[4] or 0, c1[5] or 0, c1[6] or 0)
- elseif type(c1) == 'userdata' then
- cframe1 = c1
- elseif type(c1) == 'number' and (not c0 or (c0 and type(c0) == 'table')) then
- cframe1 = CFrame.new(c1 or 0, ar[1] or 0, ar[2] or 0) * CFrame.Angles(ar[3] or 0, ar[4] or 0, ar[5] or 0)
- end
- for i,v in pairs(ar)do
- if type(v) == 'table' then
- cframe1 = CFrame.new(v[1] or 0, v[2] or 0, v[3] or 0) * CFrame.new(v[4] or 0, v[5] or 0, v[6] or 0)
- elseif type(v) == 'userdata' then
- cframe1 = v
- end
- end
- cframe0,cframe1 = cframe1,cframe0
- part0.Position=part1.Position
- local weld = Instance.new("Weld")
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = cframe0 or CFrame.new()
- weld.C1 = cframe1 or CFrame.new()
- if weld:IsA'Motor'then weld.MaxVelocity = set_maxvel or .1 end
- weld.Parent = part0
- _2=weld
- return weld
- end
- mesh_ids = {
- spikeball = "rbxassetid://24388358";
- spike = "rbxassetid://1033714";
- ring = "rbxassetid://3270017";
- coil = 'rbxassetid://16606212';
- diamond = 'rbxassetid://9756362';
- rock = 'rbxassetid://1290033';
- gear = 'rbxassetid://156292343';
- crown = 'rbxassetid://20329976';
- orb = 'rbxassetid://34795798';
- heart = 'rbxassetid://431221914';
- dragon = 'rbxassetid://24478215';
- half_sphere = 'rbxassetid://475668276'
- }
- mesh_texs = {
- rock = 'rbxassetid://1290030';
- dragon = 'rbxassetid://25665033';
- }
- mesh_scales={
- diamond = v3n(0.75, 0.75, 0.75);
- spikeball = v3n(1.05, 1.05, 1.05);
- spike = v3n(0.5, 1.5, 0.5);
- gear = v3n(1.25,1.25,18);
- ring = v3n(1, 1, 6);
- coil = v3n(0.5, 0.5, 0.3);
- crown = v3n(0.6, 0.6, 0.6);
- orb = v3n(1, 1, 1);
- heart = v3n(0.25, 0.25, 0.4);
- dragon = v3n(0.4, 0.5, 0.4);
- half_sphere= v3n(0.005, 0.01, 0.005)
- }
- mesh_offsets={
- crown = v3n(0,.15,0);
- }
- function bindMesh(mesh,Size)
- local mesh_name
- local size=Size or mesh.Parent.Size
- for name,id in next,mesh_ids do
- if mesh.MeshId==id then
- mesh_name=name
- end
- end
- if not mesh_name then return end
- local mesh=mesh
- local con
- con=mesh.Parent.Changed:connect(function()
- local siz=mesh.Parent.Size
- mesh.Scale=siz*mesh_scales[mesh_name]
- if mesh_offsets[mesh_name] then
- mesh.Offset=siz*mesh_offsets[mesh_name]
- end
- end)
- return con
- end
- Mesh = function(parent,id,sx,sy,sz)
- local name = ( (id == 'cyl' and 'CylinderMesh') or (id == 'bl' and 'BlockMesh') or 'SpecialMesh')
- local mesh = Instance.new(name)
- if id == 's' then
- mesh.MeshType = Enum.MeshType.Sphere
- elseif id == 'w' then
- mesh.MeshType = Enum.MeshType.Wedge
- elseif id == 'h' then
- mesh.MeshType = Enum.MeshType.Head
- elseif string.find(id,"://") ~= nil then
- mesh.MeshId = id
- end
- mesh.Scale = Vector3.new(sx or 1, sy or 1, sz or 1)
- mesh.Parent = parent
- _3=mesh
- return mesh
- end
- Edit = function(what)
- return function(args)
- for ind,obj in next,what do
- for arg,val in next,args do
- local child,argu = arg:match"(.+)%.(.+)"
- if child and argu then
- if pcall(function()return obj[child][argu] end) then
- obj[child][argu]=val
- end
- else
- if arg=='_F'then
- val(ind,obj)
- elseif pcall(function()return obj[arg]end) then
- obj[arg]=val
- end
- end
- end
- end
- end
- end
- New = function(what) --Synthetic caffeine for Instance.new
- local obj
- if type(what) ~= 'string' then
- obj=what:Clone()
- else
- obj=Instance.new(what)
- end
- if what=='Weld' then obj.Name='mujoint'end
- return function(bar)
- for arg,val in pairs(bar) do
- if arg == "_P" then
- obj.Parent = val
- elseif arg=="_PP" then
- obj.Part0=val[1]
- obj.Part1=val[2]
- elseif arg=='_F'then
- val(obj)
- else
- if pcall(function()return obj[arg] end) then
- obj[arg]=val
- end
- end
- end _4=obj
- return obj
- end
- end
- set_parent,set_material=nil,nil
- set_maxvel,set_anchor=nil,nil
- set_collide=false
- pcall(function() character['Knight']:Destroy() end) --removes old model.
- Main = New"Model"{_P=character;Name = 'Knight'}
- _1,_2,_3,_4,_5,_6,_7,_8 = nil,nil,nil,nil,nil,nil,nil
- Part = function(x,y,z,col,tr)
- local p = New"Part"{
- _P=set_parent or ears or Main;
- BrickColor = BrickColor.new(col or set_color or "White");
- CanCollide = set_collide;
- Transparency = tr or 0;
- Size = Vector3.new(x or 0,y or 0,z or 0);
- Material = set_material or 'SmoothPlastic';
- Anchored = (set_anchor~=nil and set_anchor or false)
- }
- for _,sur in next,Enum.NormalId:GetEnumItems() do
- p[sur.Name..'Surface'] = 10
- end
- _1 = p
- return p
- end
- function platefy(part)
- local x,z=part.Size.x,part.Size.z
- local y=part.Size.y
- local list={}
- --Cylinders...
- local p2=Part(y,x,y)Mesh(_1,'cyl') table.insert(list,_1)
- Weld(p2,p,0,0,-z/2,PI/2,0,PI/2)
- local p2=Part(y,x,y)Mesh(_1,'cyl') table.insert(list,_1)
- Weld(p2,p,0,0,z/2,PI/2,0,PI/2)
- local p2=Part(y,z,y)Mesh(_1,'cyl') table.insert(list,_1)
- Weld(p2,p,x/2,0,0,PI/2)
- local p2=Part(y,z,y)Mesh(_1,'cyl') table.insert(list,_1)
- Weld(p2,p,-x/2,0,0,PI/2)
- --Balls...
- local p2=Part(y,y,y)Mesh(p2,'s') table.insert(list,_1)
- Weld(p2,p,-x/2,0,-z/2)
- local p2=Part(y,y,y)Mesh(p2,'s') table.insert(list,_1)
- Weld(p2,p,-x/2,0,z/2)
- local p2=Part(y,y,y)Mesh(p2,'s') table.insert(list,_1)
- Weld(p2,p,x/2,0,-z/2)
- local p2=Part(y,y,y)Mesh(p2,'s') table.insert(list,_1)
- Weld(p2,p,x/2,0,z/2)
- part.Changed:connect(function(prop)
- Edit(list){Material=part.Material;Color=part.Color}
- end)
- end
- function findAllParts(pos,radius)
- local min,max = math.min,math.max
- local list={}
- local pos1,pos2=l(cfn(pos),-radius*3,-radius*3,-radius*3).p,l(cfn(pos),radius*3,radius*3,radius*3).p
- local reg=Region3.new(v3n(min(pos1.x,pos2.x),min(pos1.y,pos2.y),min(pos1.z,pos2.z)),
- v3n(max(pos1.x,pos2.x),max(pos1.y,pos2.y),max(pos1.z,pos2.z)))
- for i,v in pairs(Workspace:FindPartsInRegion3WithIgnoreList(reg,{character})) do
- if (v.Position-pos).magnitude<radius and v.Name~='Base' then
- table.insert(list,v)
- end
- end
- return list
- end
- function forcePose(hum,lim)
- local t=hum.Torso
- local limb_names={'r_leg','l_leg','r_arm','l_arm'}
- if not t then return end
- --Right hip
- local limbs={huma=hum;torso=t;
- revert=function(self)
- for i,v in pairs(self)do
- if isIn(i,limb_names) then
- v.w:Destroy()
- end
- end
- self.huma.HipHeight=0
- self.huma:Move(v3n(0,0,0))
- if self['bg'] then
- self['bg']:Destroy()
- end
- end;
- }
- if t.Parent:FindFirstChild'Right Leg' then
- local invp=Part(1,1,1,'',1)_1.Anchored=false _1.Name='Hourai'_1.Parent=Main
- New"Weld"{_P=invp;_PP={invp,t};C1=cfn(.5,-1.5,0);} --Welded to torso
- local ww=New"Weld"{_P=invp;_PP={t.Parent['Right Leg'],invp};
- C0=cfn(0,.5,0);} --Right leg welded to invisible part
- -- ww.C0=cfn(-.05,0,0)*ang(0,0,md'-90')
- limbs.r_leg={w=ww;n_c0=ww.C0;n_c1=ww.C1}
- end
- --Left hip
- if t.Parent:FindFirstChild'Left Leg' then
- local invp=Part(1,1,1,'',1)_1.Anchored=false _1.Name='Hourai'_1.Parent=Main
- New"Weld"{_P=invp;_PP={invp,t}; C1=cfn(-.5,-1.5,0);}--Welded to torso
- local ww=New"Weld"{_P=invp;_PP={t.Parent['Left Leg'],invp};
- C0=cfn(0,.5,0);} --Right leg welded to invisible part
- -- ww.C0=cfn(.5,0,0)*ang(0,0,md'45')
- limbs.l_leg={w=ww;n_c0=ww.C0;n_c1=ww.C1}
- end
- --Right shoulder
- if t.Parent:FindFirstChild'Right Arm' then
- local invp=Part(1,1,1,'',1)_1.Anchored=false _1.Name='Hourai'_1.Parent=Main
- New"Weld"{_P=invp;_PP={invp,t};C1=cfn(1.5,.5,0)}
- local ww=New"Weld"{_P=invp;_PP={t.Parent['Right Arm'],invp};C0=cfn(0,.5,0)}
- -- ww.C0=cfn(-.15,0,-.5)*ang(md'45',0,md'-35')
- limbs.r_arm={w=ww;n_c0=ww.C0;n_c1=ww.C1}
- end
- --Left shoulder
- if t.Parent:FindFirstChild'Left Arm' then
- local invp=Part(1,1,1,'',1)_1.Anchored=false _1.Name='Hourai'_1.Parent=Main
- New"Weld"{_P=invp;_PP={invp,t};C1=cfn(-1.5,.5,0)}
- local ww=New"Weld"{_P=invp;_PP={t.Parent['Left Arm'],invp};C0=cfn(0,.5,0)}
- -- ww.C0=cfn(.15,0,-.5)*ang(md'45',0,md'35')
- limbs.l_arm={w=ww;n_c0=ww.C0;n_c1=ww.C1}
- end
- if lim then
- for i,v2 in pairs(limbs)do
- if not isIn(i,lim) and type(v2)=='table' then
- -- print(i)
- v2.w.Part1:Destroy()
- limbs[i]=nil
- end
- end end
- return function(tab)
- for i,v in pairs(tab)do
- if i=='hipheight'then limbs['huma'].HipHeight=v end
- if limbs[i] and i ~='hipheight' then
- limbs[i].w.C0=limbs[i].n_c0*(v:inverse())
- end
- end
- return limbs
- end
- end
- --Equipment...
- --Necklace...
- cp=Part(.5,.1,.5,'Black')Mesh(_1,'cyl')
- Weld(cp,torso,0,0,-.55,-PI/2)
- e_parts={}
- for i=0,TAU,TAU/10 do
- Part(.1,.1,.1,'Black')Mesh(_1,'bl',.25,.5,.5)
- New"Weld"{_P=_1;_PP={_1,cp};C1=cfn(0,.11,0)*ang(0,i);C0=cfn(.15,0,0)}
- table.insert(e_parts,_1)
- end
- p=Part(1,.1,.1)Mesh(_1,'bl',1,.5,.5)
- New"Weld"{_P=_1;_PP={p;cp};C1=ang(0,md'90'-md'35');C0=cfn(_1.Size.x/2+.25,0,0)}
- p2=Part(1,.1,.1)Mesh(_1,'bl',1,.5,.5)
- New"Weld"{_P=_1;_PP={_1;p};C1=cfn(-.5,0,0)*ang(md'-5',0,PI/2);C0=cfn(.5,0,0)}
- p=Part(1,.1,.1)Mesh(_1,'bl',1,.5,.5)
- New"Weld"{_P=_1;_PP={p;cp};C1=ang(0,md'90'+md'35');C0=cfn(_1.Size.x/2+.25,0,0)}
- p2=Part(1,.1,.1)Mesh(_1,'bl',1,.5,.5)
- New"Weld"{_P=_1;_PP={_1;p};C1=cfn(-.5,0,0)*ang(md'5',0,PI/2);C0=cfn(.5,0,0)}
- pp=Part(.25,.1,.1)Weld(pp,torso,0,.75,.515)Mesh(_1,'bl',1,.5,.5)
- pp2=Part(.7,.1,.1)New(_3){_P=pp2}
- New"Weld"{_P=pp2;_PP={_1,pp};C1=cfn(.125-.2,0,0)*ang(md'-5',0,md'-30');C0=cfn(_1.Size.x/2,0,0)}
- pp2=Part(.7,.1,.1)New(_3){_P=pp2}
- New"Weld"{_P=pp2;_PP={_1,pp};C1=cfn(-.125+.2,0,0)*ang(md'-5',0,md'30');C0=cfn(-_1.Size.x/2,0,0)}
- eye={parts=e_parts;center=cp;op=function(self,col)Edit(self.parts){Material='Neon';BrickColor=bcol(col or 'Bright red')}end;
- clo=function(self)Edit(self.parts){BrickColor=bcol'Black';Material='SmoothPlastic'}end}
- --/Necklace
- --Bag
- bag=Part(1,1,1,'Brown')Mesh(bag,'rbxassetid://25921854',1.5,1.5,1.5)
- _3.TextureId='rbxassetid://3525940'
- Weld(bag,torso,-1.15,-1.15,-.3,md'-25',0,md'-25')
- --/Bag
- --/Equipment
- --Animation stuff
- tokill={}
- RS:BindToRenderStep('Anim',2000,function() --Mainloop
- for i,v in pairs(Animations)do --execute animations
- v:Exec()
- end
- for i,v in pairs(tokill)do
- if v.Count>0 then
- pcall(function()v.pl.Character:BreakJoints()v.Count=v.Count-1 end)
- else
- table.remove(tokill,i)end
- end
- end)
- do
- local c0 = {
- RightArm = cfn(1,0.5,0),
- LeftArm = cfn(-1,0.5,0),
- RightLeg = cfn(1,-1,0),
- LeftLeg = cfn(-1,-1,0),
- RootJoint = cfn(0,0,0),
- Neck = cfn(0,1,0)
- }
- local c1 = {
- RightArm = cfn(-0.5,0.5,0),
- LeftArm = cfn(0.5,0.5,0),
- RightLeg = cfn(0.5,1,0),
- LeftLeg = cfn(-0.5,1,0),
- RootJoint = cfn(0,0,0),
- Neck = cfn(0,-0.5,0)
- }
- Animations={}
- Joints={}
- Joint={
- new=function(name,weld,c0,c1)
- local joint={
- w=weld;
- part1=weld.Part1;
- n_c0=(c0 or weld.C0);
- n_c1=(c1 or weld.C1);
- name=name;
- previous=weld.C0;
- _can_kf=true;
- }
- joint.keys={};
- function joint:revertToOrig()
- self.w.C0=self.n_c0
- self.w.C1=self.n_c1
- end
- function joint:NewAnim(anim)
- self.keys[anim]={}
- end
- setmetatable(joint,{
- __mul=function(ta,val)
- return ta.n_c0*val
- end;
- })
- getfenv()[name]=joint
- Joints[name]=joint
- return joint
- end
- }
- weld_container=New"Folder"{_P=Main}
- Joint.new('rw',New"Weld"{_P = weld_container;_PP={nil;rarm};
- C0=c0.RightArm; C1=c1.RightArm})
- function eq()
- Joints.rw.w.Part0=torso
- end
- function uneq()
- Joints.rw.w.Part0=nil
- end
- Styles={
- Linear = function(alpha)
- return alpha
- end;
- easeInSine = function(alpha)
- local alpha = (1-math.cos(alpha*(math.pi/2)))
- return alpha
- end;
- easeOutSine = function(alpha)
- alpha = math.sin(alpha*(math.pi/2))
- return alpha
- end;
- easeInOutSine = function(alpha)
- alpha = alpha*2
- if alpha < 1 then
- return 0.5*Styles["easeInSine"](alpha)
- else
- return 0.5*Styles["easeOutSine"](alpha-1)+.5
- end
- end;
- easeInQuadratic = function(alpha)
- alpha = alpha^2
- return alpha
- end;
- easeOutQuadratic = function(alpha)
- _alpha = 1-alpha
- alpha = 1-_alpha*_alpha
- return alpha
- end;
- easeInOutQuadratic = function(alpha)
- alpha = alpha*2
- if alpha < 1 then
- return 0.5*Styles["easeInQuadratic"](alpha)
- else
- return 0.5*Styles["easeOutQuadratic"](alpha-1)+0.5
- end
- end;
- easeInCubic = function(alpha)
- alpha = alpha^3
- return alpha
- end;
- easeOutCubic = function(alpha)
- alpha = 1-alpha
- return 1-alpha^3
- end;
- easeInOutCubic = function(alpha)
- alpha = alpha*2
- if alpha < 1 then
- return 0.5*Styles["easeInCubic"](alpha)
- else
- return 0.5*Styles["easeOutCubic"](alpha-1)+.5
- end
- end;
- }
- function Interpolate(Type,p0,p1)
- local Data = {Style = Styles[Type],PointA = p0,PointB = p1}
- return function(Perc)
- local Perc = Data.Style(Perc)
- return Data.PointA:lerp(Data.PointB,Perc)
- end
- end
- -- Interpolate('easeInSine',CFrame.new(0,0,0),CFrame.new(10,10,10))(.5)
- -- error('script end')
- function NewLimbAnim(anim)
- for _,v in pairs(Joints)do
- v:NewAnim(anim)
- end
- end
- function reset()
- local cc=newAnim(.5,false,_,true){
- [.5]=init;
- }cc:Play()cc:Wait()cc:Stop()
- for i,v in pairs(Joints)do v:revertToOrig() end
- -- for i,v in pairs(Animations)do v:Stop()end
- end
- words={
- love={"I love you", "Gimme a hug", "You're gonna love me", "Love is \nall we have"}
- }
- function wordParticles(part,category,color,size,speed)
- local list=words[category]
- local bbg=New"BillboardGui"{_P=part;Adornee=part;Size=udim'4,4';AlwaysOnTop=true;}
- while wait(speed/4)do
- local tl=New"TextLabel"{_P=bbg;Size=udim(0,0);
- Text=list[#list];Position=udim(mr(),mr());FontSize=12;
- TextColor3=bcol(color).Color;TextTransparency=.6}
- tl:TweenSizeAndPosition(udim'0,0',udim(math.random(),math.random()),'Out','Quad',speed,false,function()
- tl:Destroy()end)
- end
- end
- function newAnim(lenght,loop,style,strange) --Epic wrapper for epic skids
- local t_len=0
- for i,v in pairs(Animations)do t_len=t_len+1 end
- local name='anim_'..tostring(t_len)
- -- NewLimbAnim(name)
- for _,v in pairs(Joints)do
- v:NewAnim(name)
- end
- local Anim={
- Span=lenght;Loop=false;
- Location=name;
- Count=0;stay=true;
- Keyframes={}; --Aliases
- Playing=false;Loop=false;
- reset_on_loop=true;
- Name=name;
- }
- for i,v in pairs(Joints)do
- Anim.Keyframes[i]=v
- end
- function Anim:Play()
- self.Playing=true
- self.Count=0
- end
- function Anim:Remove()
- Animations[self.Name]=nil
- end
- function Anim:Stop()
- self.Playing=false
- self.Count=0
- -- RevertAll()
- end
- local Time=tick()
- function Anim:Add(Time,limb,c0,c1)
- if Time>self.Span then error"one simply does not travel to future..."end
- local Tab={TimeOfAction=Time,Joint=limb,frame={C0=c0 or self.Keyframes[limb].n_c0,C1=c1 or self.Keyframes[limb].n_c1}}
- table.insert(self.Keyframes[limb].keys[self.Location],Tab)
- table.sort(self.Keyframes[limb].keys[self.Location],function(a,b) return a.TimeOfAction < b.TimeOfAction end)
- end
- function Anim:Exec(smooth)
- local DT=tick()-Time
- Time=tick()
- local First,Current,Next
- if self.Playing then --Check if anim can play
- self.Count=self.Count+DT --it goes up
- if self.Loop then --Reset when at end if loop
- if self.Count >= self.Span then
- self.Count=0
- if self.onCycle then
- self.onCycle(self)
- end
- end
- elseif not self.Loop then
- if self.Count >= self.Span then
- self.Count=self.Span
- if self.onFinish then
- self.onFinish(self)
- end
- end
- end
- for i,v in pairs(self.Keyframes) do
- if v._can_kf then
- for i2,v2 in pairs(v.keys[self.Location]) do --cframes are stored in joints. self.Location is the name of animation
- First,Current,Next = v.keys[self.Location][1],v2,v.keys[self.Location][i2+1]
- if Next ~= nil and self.Count >= Current.TimeOfAction and self.Count <= Next.TimeOfAction then
- local Dis = (Next.TimeOfAction-Current.TimeOfAction)
- local Perc = (self.Count-Current.TimeOfAction)/Dis
- v.w.C0 = Interpolate(style or 'Linear',Current.frame.C0,Next.frame.C0)(Perc)
- v.w.C1 = Interpolate(style or 'Linear',Current.frame.C1,Next.frame.C1)(Perc)
- v.previous = v.w.C0
- end
- end end
- end
- end
- end
- Animations[name]=Anim
- local a=Anim
- if loop~=nil then
- a.Loop=loop
- end
- return function(kfs)
- if not kfs[0] then
- local t={}
- for j,v in pairs(Joints) do
- t[j]=v.previous*(v.n_c0:inverse())
- end
- kfs[0]=t
- end
- a.kfl=kfs
- function a:last()
- local n,o=-1,nil
- for i,v in pairs(self.kfl)do
- if i>n then
- n=i o=v
- if type(o)=='number' then
- o=self.kfl[o]
- end
- end
- end
- return o
- end
- function Anim:Wait(num)
- repeat wait()until self.Count>=(num or self.Span)
- end
- if lenght==0 then
- for i,v in pairs(kfs) do
- a.Span=i
- end
- end
- for tim,kf in pairs(kfs) do
- local kk=kf
- if type(kf) =='number'then
- kk=kfs[kf]
- end
- for j,v in pairs(kk) do
- if not strange then
- a:Add(tim,j, (v == 0 and Joints[j].n_c0 or (Joints[j].n_c0 * v) ))
- else
- a:Add(tim,j, (v == 0 and Joints[j].n_c0 or v ))
- end
- end
- end
- return Anim
- end
- end
- end --Animation stuf... END
- lazor_snd=New"Sound"{_P=Main;SoundId='rbxassetid://147627083';Pitch=.75;Volume=.8}
- found=false
- ra=25
- function rainbow()
- holding=true
- local kfs={}
- local kfs2={}
- local b=true
- for i=0,1,.1 do
- b=not b
- kfs[#kfs+1]=numkp(i,(b and i*5 or (i*5)/2))
- end
- while holding do
- eye:op"White"
- for o=1,3 do
- angle=ang(md(mr(-ra,ra)),md(mr(-ra,ra)))
- stp=l(eye.center)*ang(PI/2)
- enp=l(stp*angle,0,0,-20)
- local obj,pos=Workspace:FindPartOnRay(Ray.new(stp.p,enp.lookVector*20),character)
- if (obj and pos) then
- if obj.Parent.Name~='M_CAR' then
- local siz_x,siz_y,siz_z=obj.Size.x,obj.Size.y,obj.Size.z
- if (siz_x+siz_y+siz_z)/3 < 50 then
- local mag=(stp.p-pos).magnitude
- local r=Part(1,mag,1,'',.5)_1.Anchored=true _1.Color=eye.parts[1].Color
- _1.Material='Neon'
- _1.CFrame=(cfn(stp.p,pos)*cfn(0,0,-mag/2))*ang(PI/2)
- local pp=Part(.1,.1,.1,'',1)--_1.Anchored=true
- _1.CFrame=cfn(l(r,0,-mag/2).p)
- CJ=cfn(pp.Position)
- New"Weld"{_P=pp;_PP={pp,obj};C0=pp.CFrame:inverse()*CJ;
- C1=obj.CFrame:inverse()*CJ}
- New"ParticleEmitter"{_P=pp;
- Size=NumberSequence.new(kfs);
- Transparency=NumberSequence.new{numkp(0,0);numkp(1,1)};
- Color=ColorSequence.new(r.Color);
- VelocitySpread=180;
- LightEmission=1;
- Lifetime=NumberRange.new(.25,2);
- Speed=NumberRange.new(1,4);
- }
- DEBRIS:AddItem(pp,1)
- local hum=recurseHum(obj)
- if hum then hum:TakeDamage(-5)
- end
- DEBRIS:AddItem(r,.1)
- found=true
- end
- end
- end
- end
- wait()
- if found then found=false
- if not lazor_snd.IsPlaying then lazor_snd:Play()
- elseif not found and not lazor_snd.IsPlaying then lazor_snd:Stop()
- end
- end
- end
- lazor_snd:Stop()
- eye:clo()
- end
- function laser(st,en,r)
- total_mag=(st-en).magnitude
- prev=cfn(st)
- local mo=New"Model"{_P=Main}
- set_parent=mo
- local pm={-1,1}
- for i=0,1,.1 do
- local pos=cfn(st):lerp(cfn(en),i)
- local pos2=pos*cfn(pm[mr(#pm)]*r,0,pm[mr(#pm)]*r)
- local mag=(prev.p-pos2.p).magnitude
- local laz=Part(.1,mag,.1,'Cyan',.5)_1.Anchored=true _1.Material='Neon'
- Mesh(_1,'bl',.5,1,.5)
- _1.CFrame=(cfn(prev.p,pos2.p)*cfn(0,0,-mag/2))*ang(PI/2)
- if i>.9 then
- _1.CFrame=(cfn(prev.p,pos2.p)*cfn(0,0,-mag/2))*ang(PI/2)
- end
- prev=pos2
- end
- set_parent=nil
- DEBRIS:AddItem(mo,.025)
- end
- red_snd=New"Sound"{_P=Main;SoundId='rbxassetid://163826750'}
- function red()
- eye:op'Really red'
- local bl=Part(1,1,1,'Black',.75)_1.Material='Neon'
- local bl2=Part(1,1,1,'Bright red',.5)_1.Material='Slate'
- Weld(bl,eye.center)
- Weld(bl2,eye.center)
- local msh=Mesh(bl,'s')
- local ra=20
- local msh2=Mesh(bl2,'s')
- red_snd:Play()
- for i=0,1,.1 do
- msh.Scale=v3n(ra,ra,ra)*i
- msh2.Scale=v3n(ra-1,ra-1,ra-1)*i
- wait()
- end
- local ign=nil
- local humlist={}
- for o=0,3 do
- for i,v in pairs(findHum(torso.Position,ra))do
- if v.Parent~=character then
- for _,v2 in pairs(v.Parent:children())do
- if v2:IsA'Model'then v2:Destroy()
- elseif v2:IsA'Part' and v2.Name~='HumanoidRootPart'then
- v2.Transparency=0
- elseif v2:IsA'BaseScript' and not isIn(v2.Name,{'Animate','Health','Sound'})then
- v2.Disabled=true
- end
- end
- -- v.Health=v.Health-5
- v.Torso.Velocity=cfn(torso.Position,v.Torso.Position).lookVector*100
- Spawn(function()v.PlatformStand=true wait()v.PlatformStand=false end)
- v:UnequipTools()
- local pl=game.Players:GetPlayerFromCharacter(v.Parent)
- ign=v.Parent
- -- pacify(v.Parent)
- if pl then
- -- pl:ClearCharacterAppearance()
- for i,v in pairs(pl.Backpack:children()) do
- if v:IsA'BackpackItem' then
- v:Destroy()
- end
- end
- end end
- end
- end
- for i=1,0,-.1 do
- msh.Scale=v3n(ra,ra,ra)*i
- msh2.Scale=v3n(ra-1,ra-1,ra-1)*i
- wait()
- end
- bl:Destroy()bl2:Destroy()
- eye:clo()
- end
- blue_snd=New"Sound"{_P=Main;SoundId='rbxassetid://314580397'}
- function blue()
- eye:op'Bright blue'
- local poses={}
- local ring=Part(1,1,1,'Bright blue')_1.Anchored=true _1.CFrame=l(torso,0,-2,0,PI/2)
- local msh=Mesh(_1,mesh_ids.ring)
- Spawn(function()
- for i=0,1,.05 do
- msh.Scale=v3n(i*40,i*40,1)
- ring.Transparency=i
- wait()
- end
- ring:Destroy()
- end)
- blue_snd:Play()
- for i,v in pairs(findHum(l(torso).p,30)) do
- if v.Parent~=character then
- local pose=forcePose(v){
- r_arm=cfn(-.4,0,-.5)*ang(md'45',0,md'-45');
- l_arm=cfn(.4,0,-.5)*ang(md'45',0,md'45');
- r_leg=ang(md'-80',0,md'25');
- l_leg=ang(md'-80',0,md'-25');
- hipheight=-.5;
- }
- pose.bg=New"BodyGyro"{_P=v.Torso;maxTorque=v3n(1,1,1)*9e+009;P=900000;cframe=cfn(l(v.Torso).p,l(torso).p)}
- table.insert(poses,pose)
- end end
- local ti=tick()
- if #poses>0 then
- repeat
- for i,v in pairs(poses)do
- if v.bg then
- v.bg.cframe=cfn(v.torso.Position,torso.Position)
- local vec=(torso.Position-v.torso.Position)
- if vec.magnitude>5 then
- v.huma:MoveTo((cfn(torso.Position,v.torso.Position)*cfn(0,0,-5)).p)
- else
- v.huma:Move(v3n(0,0,0))
- end
- end
- end wait()
- until (tick()-ti)>3
- for i,v in pairs(poses)do v:revert() end
- else
- wait'.1'
- end
- eye:clo()
- end
- function green()
- local r=4
- eye:op'Lime green'
- holding=true
- orig_ws=character.Humanoid.WalkSpeed
- character.Humanoid.WalkSpeed=80
- while holding do
- for i=1,3 do
- local p=Part(.1,.1,.1,'Lime green',.5)_1.Material='Neon'
- _1.Anchored=true
- _1.CFrame=l(torso,mr(-r,r),mr(-2,r),mr(-r,r),mr(-4,4),mr(-4,4),mr(-4,4))
- DEBRIS:AddItem(_1,.1)
- end
- wait()
- end
- character.Humanoid.WalkSpeed=orig_ws
- eye:clo()
- end
- function black()
- for i,v in pairs(findHum(l(torso).p,10))do
- if v.Parent~=character then
- local pl=game.Players:GetPlayerFromCharacter(v.Parent)
- if pl then
- tokill[#tokill+1]={pl=pl;Count=4}
- end
- end
- end
- end
- yel_snd=New"Sound"{_P=Main;SoundId='rbxassetid://138111999'}
- function yellow()
- eye:op'New Yeller'
- yel_snd:Play()
- local mod=New"Model"{_P=Workspace;Name='M_CAR'}
- set_parent=mod
- set_collide=true
- cassis=Part(4,.75,6)_1.TopSurface='Weld'
- _1.CFrame=l(torso,0,5,-7)
- vs=New"VehicleSeat"{_P=mod;Size=v3n(2,1,2);CFrame=l(cassis,0,.75/2+.5,0,0,PI);BottomSurface='Weld';
- BrickColor=bcol'Black'}vs.CanCollide=false
- vs.MaxSpeed=7222
- wheel=Part(5,5,5)_1.Shape=0
- _1.RightSurface='Hinge'
- _1.CFrame=l(cassis,-4.5,0,-3)
- wheel2=Part(5,5,5)_1.Shape=0
- _1.RightSurface='Hinge'
- _1.CFrame=l(cassis,4.5,-.25,-3,0,PI)
- wheel3=Part(5,5,5)_1.Shape=0
- _1.RightSurface='Hinge'
- _1.CFrame=l(cassis,-4.5,0,3)
- wheel4=Part(5,5,5)_1.Shape=0
- _1.RightSurface='Hinge'
- _1.CFrame=l(cassis,4.5,-.25,3,0,PI)
- set_collide=false
- for i,v in pairs{wheel,wheel2,wheel3,wheel4}do
- v.Transparency=.9
- v.Material='Neon'
- Part(4,4,4,'New Yeller')
- Mesh(_1,'s')
- Weld(_1,v)
- end
- --Lights...
- kehys=Part(4,2,.1)Weld(_1,cassis,0,.75/2+1,3-.05)
- Part(1,1,.1,'New Yeller')Weld(_1,kehys,-1,0,.1)_1.Material='Neon'
- Part(1,1,.1,'New Yeller')Weld(_1,kehys,1,0,.1)_1.Material='Neon'
- pil=Part(2,6,.1)Weld(_1,cassis,0,.75/2+_1.Size.y/2,-2)
- roof=Part(5,4,.1)New"Weld"{_P=_1;_PP={_1,pil};C1=cfn(0,pil.Size.y/2,0)*ang(-PI/2);C0=cfn(0,_1.Size.y/2,0)}
- local p=Part(5,4-2,.5)Weld(_1,roof,0,0,roof.Size.z/2+.25)
- roof=p
- local p2=Part(5,p.Size.z,1)Mesh(_1,'w')
- Weld(_1,p,0,p.Size.y/2+p2.Size.z/2,0,PI/2)
- local p2=Part(5,p.Size.z,1)Mesh(_1,'w')
- Weld(_1,p,0,-(p.Size.y/2+p2.Size.z/2),0,PI/2,PI)
- local seat=New"Seat"{_P=mod;Size=v3n(1,.2,1);BrickColor=bcol'Black';CanCollide=false}
- Weld(seat,roof,0,0,seat.Size.y/2+roof.Size.z/2,-PI/2,0,PI)
- Part(.1,6,1.5)Mesh(_1,'w')
- Weld(_1,pil,-1-_1.Size.z/2,0,0,PI,PI/2)
- Part(.1,6,_1.Size.z)Mesh(_1,'w')
- Weld(_1,pil,1+_1.Size.z/2,0,0,PI,-PI/2)
- p=Part(4,4,.1,'New Yeller',.75)
- New"Weld"{_P=_1;_PP={_1,kehys};C1=cfn(0,1,0)*ang(-md(15));C0=cfn(0,-2,0)}
- -- Part(2,2,2)Weld(_1,cassis,0,3)
- set_collide=true
- vs.MaxSpeed=80
- mod:MakeJoints()
- set_collide=true
- set_parent=nil
- set_collide=false
- wait(.24)
- eye:clo()
- repeat wait()until yel_snd.TimePosition>=.37
- eye:op'New Yeller'
- repeat wait() until yel_snd.IsPlaying==false
- eye:clo()
- end
- poses={
- pickup={rw=cfn(0,.75,-.5)*ang(md'30',0,md'-60')*cfn(0,-1,0)};
- }
- function reset()
- for _,v in pairs(Joints)do
- v.beg=v.w.C0
- end
- for i=0,1,.1 do
- for _,v in pairs(Joints)do
- v.w.C0=v.beg:lerp(v.n_c0,i)
- end
- wait()
- end
- end
- init={rw=0}
- heart_snd=New"Sound"{_P=Main;SoundId='rbxassetid://130785805'}
- heart_snd2=New"Sound"{_P=Main;SoundId='http://www.roblox.com/Asset/?id=11945266';Pitch=.5}
- heart_snd3=New"Sound"{_P=Main;SoundId='rbxassetid://138014729';Name='Hoo'}
- function white()
- eq()
- pickup.Count=0
- pickup:Play()
- repeat wait() until pickup.Count>=.5
- repeat
- local bullet=Part(1,1,1,'White')
- local snd2=heart_snd2:Clone() snd2.Parent=bullet
- local cl=heart_snd:Clone()cl.Parent=Main cl:Play()
- DEBRIS:AddItem(cl,1)
- local msh=Mesh(_1,mesh_ids.heart,.5,.5,.5)
- _1.CFrame=cfn(l(rarm,0,-1.25).p)*(l(torso)-l(torso).p)
- New"BodyVelocity"{_P=_1;velocity=l(torso).lookVector*30}
- DEBRIS:AddItem(_1,2)
- local con
- con = bullet.Touched:connect(function(hit)
- if hit:IsDescendantOf(character)then return end
- local hum=recurseHum(hit)
- if hum then
- for _,v in pairs(findHum(l(hum.Torso).p,40))do
- if v ~= hum then
- v:MoveTo(l(hum.Torso).p)
- if v.Parent~=character then
- local poo=forcePose(v,{'r_arm','l_arm'}){
- l_arm=ang(PI/2);
- r_arm=ang(PI/2);
- }
- Spawn(function()wait(2)poo:revert()end)
- end
- if not v.Torso:FindFirstChild'Hoo'then
- local heart=Part(1,1,1,'White')
- Weld(_1,v.Torso,0,4)local msh=Mesh(_1,mesh_ids.heart,0,0,0)
- local cl=heart_snd3:Clone()cl.Parent=v.Torso
- cl:Play()
- Spawn(function()
- for i=0,1,.1 do
- msh.Scale=v3n(.9*i,.9*i,.9*i)
- wait()
- end
- heart:Destroy()end)
- DEBRIS:AddItem(cl,1)
- end
- end
- end
- end
- snd2:Play()
- local hearts={}
- con:disconnect()
- for i=1,4 do
- local mini=Part(.1,.1,.1,'White',.5)Mesh(_1,mesh_ids.heart,.25,.25,.25)
- _1.CFrame=l(bullet,mr(-3,3),mr(-3,3),mr(-3,3))
- _1.CFrame=cfn(mini.Position,bullet.Position)
- New"BodyVelocity"{_P=_1;
- -- velocity=(l(_1)*ang(mr(-5,5),mr(-5,5),mr(-5,5))).lookVector*20;
- velocity=cfn(_1.Position,bullet.Position).lookVector*-20;
- }
- table.insert(hearts,mini)
- end
- bullet.Anchored=true
- for i=0,1,.1 do
- Edit(hearts){Transparency=i}
- msh.Scale=v3n(.5,.5,.5)+v3n(i*4,i*4,i*4)
- bullet.Transparency=i
- wait()
- end
- bullet:Destroy()
- for _,v in pairs(hearts)do v:Destroy()end
- end)
- wait(.1)
- until pickup.Count>=pickup.Span
- pickup:Stop()
- for _,v in pairs(Joints)do
- v.beg=v.previous
- end
- for i=0,1,.1 do
- for _,v in pairs(Joints)do
- v.w.C0=v.beg:lerp(v.n_c0,i)
- end
- wait()
- end
- uneq()
- end
- local function doSine(a,b,c)
- return math.sin((tick()*a)+b)*c
- end
- function shake()
- eq()
- -- seq.Count=0
- -- seq:Wait(.5)
- -- local pp=Part(1,1,1)
- -- pp.CFrame=torso.CFrame
- -- _1.Anchored=true
- local stcf=rw.n_c0*ang(md(90))
- local victims=findHum(torso.Position,10,character)
- if #victims>0 then
- local victim=victims[1].Torso
- holding=true
- while holding do
- rw.w.C0=stcf*ang(doSine(20,1,md'45')/2,0,doSine(10,100,md'45')/2)
- local center=cfn(l(rarm,0,-7).p)
- victim.CFrame=center
- wait()
- end
- reset()
- end
- uneq()
- end
- knife_snd=New"Sound"{_P=Main;SoundId='http://www.roblox.com/asset?id=153647529'}
- knife_snd2=New"Sound"{_P=Main;SoundId='http://www.roblox.com/Asset/?id=10756118';Pitch=3}
- function sword()
- eq()
- seq:Play()
- seq:Wait(.5)
- local knife=Part(.4,3,.7)Mesh(knife,'rbxassetid://121944778')_3.TextureId='rbxassetid://121944805'
- local kw=Weld(_1,rarm,0,-1.1,-1,-PI/2)
- local cl=New(knife){_P=Main;BrickColor=bcol'New Yeller';
- Transparency=.75;Reflectance=.25}_4.Mesh.Scale=v3n(1.01,1.01,1.01)
- _4.Mesh.TextureId=''_4:BreakJoints()
- Weld(_4,knife)
- local snd=New(knife_snd2){_P=knife;Looped=true}
- Spawn(function() --sparks
- repeat laser(l(bag).p,knife.Position,1)wait()until knife.Parent==nil
- end)
- seq:Wait(1.3)
- knife_snd:Play()
- local bv=New"BodyVelocity"{_P=knife;velocity=l(torso).lookVector*50}
- local bg=New"BodyGyro"{_P=knife;maxTorque=v3n(1,1,1)*9e+009;cframe=torso.CFrame*ang(-PI/2)}
- knife.Touched:connect(function(hit)
- if hit:IsDescendantOf(character)then return end
- local r=md'65'
- local hum=recurseHum(hit)
- if hum and hum.Parent~= character then
- Spawn(function()
- snd:Play()
- local tim=tick()
- repeat
- hum.Torso.CFrame=hum.Torso.CFrame*ang(mr(-r,r)*mr(),mr(-r,r)*mr(),mr(-r,r)*mr())
- wait()
- until (tick()-tim)>3
- snd:Stop()
- end)
- end
- bg:Destroy()bv:Destroy()
- local CJ=cfn(knife.Position)
- New"Weld"{_P=knife;_PP={knife,hit};C0=l(knife):inverse()*CJ;
- C1=l(hit):inverse()*CJ
- }
- end)
- DEBRIS:AddItem(knife,2)
- kw:Destroy()
- knife.CFrame=l(torso,1.5,.5,-1.1,-PI/2)
- seq:Wait()
- uneq()
- end
- pickup=newAnim(1){
- [0]=init;
- [.5]=poses.pickup;
- [1]={rw=cfn(.3,.3,-.5)*ang(md'120',0,md'60')}
- }
- seq=newAnim(2){
- [0]=init;
- [.5]=poses.pickup;
- [1.25]={rw=ang(md'170',0,0,md'75')};
- [1.3]={rw=ang(md'90')};
- [1.4]={rw=ang(md'-45')};
- [2]=init;
- }
- klist={
- fq=rainbow;
- q=red;
- e=blue;
- r=yellow;
- g=white;
- t=function()for i,v in pairs(Workspace:children())do if v.Name=='M_CAR'then v:Destroy()end end end;
- cq=green;
- zq=sword;
- }
- equipped=false
- attacking=false
- pcall(function()player.Backpack['E.Y.E']:Destroy()end)
- Tool=New"Tool"{_P=player.Backpack;Name='E.Y.E';RequiresHandle=false}
- Tool.Equipped:connect(function(Mouse)
- -- eq()
- equipped=true
- Mouse.KeyUp:connect(function(key)
- for i,v in pairs(klist)do
- if key == i:sub(1,1) and i:sub(2,2) == 'q' then
- holding=false
- end
- end
- end)
- Mouse.KeyDown:connect(function(key)
- if attacking then return end
- attacking=true
- for i,v in pairs(klist)do
- if key==i:sub(1,1) then
- v(Mouse)
- end
- end
- attacking=false
- end)
- end)
- Tool.Unequipped:connect(function()equipped=false end)
- script.Name='riimu'
- -- GPlayr by ModernLukest. Made for v3rmillion, , etc.
- -- Note that anyone can hear the music that you play. Just a clarification for what LocalScripts can do.
- local char = game.Players.LocalPlayer.Character
- -- CREATING BUTTONS, LABELS, FRAMES, ETC.
- local gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui) -- CoreGui is buggy, since GPlayr is designed for PlayerGuis, not CoreGuis.
- local openbtn = Instance.new("TextButton", gui)
- local closebtn = Instance.new("TextButton", gui)
- local openguibtn = Instance.new("TextButton", gui)
- local playmusicint = Instance.new("Frame", gui)
- local playmusicbtn = Instance.new("ImageButton", playmusicint)
- local stopmusicbtn = Instance.new("ImageButton", playmusicint)
- local musicidbox = Instance.new("TextBox", playmusicint)
- local credit = Instance.new("TextLabel", playmusicint)
- local title = Instance.new("TextLabel", playmusicint)
- -- SIZING --
- openbtn.Size = UDim2.new(0, 100, 0, 50)
- closebtn.Size = UDim2.new(0, 100, 0, 50)
- openguibtn.Size = UDim2.new(0, 100, 0, 50)
- playmusicbtn.Size = UDim2.new(0, 50, 0, 50)
- stopmusicbtn.Size = UDim2.new(0, 57, 0, 57)
- musicidbox.Size = UDim2.new(0, 300, 0, 50)
- credit.Size = UDim2.new(0, 300, 0, 20)
- title.Size = UDim2.new(0, 300, 0, 30)
- playmusicint.Size = UDim2.new(0, 300, 0, 500)
- -- POSITIONING --
- openbtn.Position = UDim2.new(0, 0, 0, 510)
- closebtn.Position = UDim2.new(0, 0, 0, 510)
- openguibtn.Position = UDim2.new(0, 0, 0, 590)
- playmusicbtn.Position = UDim2.new(0, 50, 0, 200)
- stopmusicbtn.Position = UDim2.new(0, 175, 0, 197)
- musicidbox.Position = UDim2.new(0, 0, 0, 100)
- credit.Position = UDim2.new(0, 0, 0, 470)
- title.Position = UDim2.new(0, 0, 0, 0)
- playmusicint.Position = UDim2.new(0, 200, 0, 100)
- -- SET TEXT --
- title.Text = "GPlayr (BETA)"
- credit.Text = "GPlayr & radio scripting by Developer / ModernLukest"
- musicidbox.Text = "Enter Sound ID Here"
- openbtn.Text = "Take Out Radio"
- closebtn.Text = "Put Away Radio"
- openguibtn.Text = "Open/Close Music GUI"
- -- SET IMAGE IDS --
- playmusicbtn.Image = "rbxassetid://499381047"
- stopmusicbtn.Image = "rbxassetid://499381006"
- -- BACKGROUND COLOR3 --
- playmusicint.BackgroundColor3 = Color3.new(136, 136, 136)
- openbtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- closebtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- openguibtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- musicidbox.BackgroundColor3 = Color3.fromRGB(109, 109, 109)
- -- BACKGROUND TRANSPARENCY --
- playmusicint.BackgroundTransparency = 0.9
- playmusicbtn.BackgroundTransparency = 1
- stopmusicbtn.BackgroundTransparency = 1
- musicidbox.BackgroundTransparency = 0.43
- credit.BackgroundTransparency = 1
- title.BackgroundTransparency = 1
- -- BORDER SIZE PIXEL --
- musicidbox.BorderSizePixel = 0
- openbtn.BorderSizePixel = 3
- closebtn.BorderSizePixel = 3
- openguibtn.BorderSizePixel = 3
- -- FONTS --
- musicidbox.Font = "SourceSansLight"
- credit.Font = "SourceSansLight"
- title.Font = "SourceSansLight"
- -- TEXT SCALED --
- credit.TextScaled = true
- title.TextScaled = true
- -- TEXT WRAPPED --
- musicidbox.TextWrapped = true
- credit.TextWrapped = true
- title.TextWrapped = true
- openguibtn.TextWrapped = true
- -- FONT SIZE --
- musicidbox.FontSize = "Size28"
- -- ACTIVE --
- playmusicint.Active = true
- -- DRAGGABLE --
- playmusicint.Draggable = true
- -- GUI FUNCTIONS (MAIN) --
- -- set up the stuff --
- isGuiOpen = false
- closebtn.Visible = false
- playmusicint.Visible = false
- openguibtn.Visible = false
- openbtn.MouseButton1Click:connect(function()
- openbtn.Visible = false
- closebtn.Visible = true
- local radio = Instance.new("Part", char)
- radio.Name = "Radio"
- local mesh = Instance.new("FileMesh", radio)
- mesh.MeshId = "http://www.roblox.com/asset/?id=212302951"
- mesh.TextureId = "http://www.roblox.com/asset/?id=212303049"
- mesh.Scale = Vector3.new(4, 4, 4)
- mesh.VertexColor = Vector3.new(1, 1, 1)
- mesh.Offset = Vector3.new(0, 0, 0)
- local function weldBetween(a, b)
- local weld = Instance.new("ManualWeld")
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = CFrame.new()
- weld.C1 = b.CFrame:inverse() * a.CFrame
- weld.Parent = a
- return weld;
- end
- local hand = radio:clone()
- hand.Parent=char
- hand.CFrame=char:WaitForChild("Torso").CFrame*CFrame.new(Vector3.new(0,0,0.9))*CFrame.Angles(0,math.rad(180),math.rad(45))
- weldBetween(char:WaitForChild("Torso"), hand)
- hand.CanCollide=true
- hand.Anchored=false
- sound = Instance.new("Sound", hand) -- we will now call the radio "hand"
- sound.Volume = 0.5
- sound.Pitch = 1
- openguibtn.Visible = true
- char:FindFirstChild("Radio"):Destroy()
- end)
- closebtn.MouseButton1Click:connect(function()
- openbtn.Visible = true
- closebtn.Visible = false
- openguibtn.Visible = false
- playmusicint.Visible = false
- isGuiOpen = false
- char:WaitForChild("Radio"):Destroy()
- end)
- playmusicbtn.MouseButton1Click:connect(function()
- sound:stop()
- wait(0.2)
- sound.SoundId = "rbxassetid://"..musicidbox.Text
- sound:play()
- end)
- stopmusicbtn.MouseButton1Click:connect(function()
- sound:stop()
- end)
- openguibtn.MouseButton1Click:connect(function()
- if isGuiOpen == false then isGuiOpen = true
- playmusicint.Visible = true else isGuiOpen = false playmusicint.Visible = false
- end
- end)
- --Windows95/FR34KY @V3rm
- local player=game.Players.LocalPlayer;
- local char=game.Players.LocalPlayer.Character;
- local humanoid = player.Character.Humanoid;
- Tool=Instance.new('Tool', game.Players.LocalPlayer.Backpack);
- Tool.GripForward=Vector3.new(-0.161, 0, -0.987);
- Tool.GripPos=Vector3.new(0.1, 0, 0.1);
- Tool.GripRight=Vector3.new(0.217, 0, -0.976);
- Tool.GripUp=Vector3.new(0, 1, 0);
- Tool.Name='Smoke Grenade'
- Handle=Instance.new('Part', Tool);
- Handle.Name = 'Handle';
- Handle.Size=Vector3.new(1, 1.2, 1);
- c4mesh=Instance.new('SpecialMesh', Handle);
- c4mesh.MeshType = 'FileMesh';
- c4mesh.MeshId='http://www.roblox.com/asset/?id=16975131';
- c4mesh.TextureId='http://www.roblox.com/asset/?id=16975111';
- c4mesh.Scale=Vector3.new(0.75, 0.75, 0.75);
- light=Instance.new('PointLight', Handle);
- light.Color = Color3.new(255,0,0)
- light.Range=10;
- light.Enabled=false;
- beep=Instance.new('Sound',Handle)
- beep.Volume=5;
- beep.SoundId='rbxassetid://252141949'
- access=Instance.new('Sound',Handle)
- access.Volume=5;
- access.SoundId='rbxassetid://131644923'
- beeptone=Instance.new('Sound',Handle)
- beeptone.Volume=5;
- beeptone.SoundId='rbxassetid://75338648'
- local Prepare=Instance.new("Animation");
- Prepare.AnimationId="http://www.roblox.com/Asset?ID=75322014";
- local Launch=Instance.new("Animation");
- Launch.AnimationId="http://www.roblox.com/Asset?ID=94157627";
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled=false;
- local LaunchAnim = humanoid:LoadAnimation(Launch);
- LaunchAnim:Play();
- wait(0.4)
- local p = Handle:Clone();
- local dir = char.Head.CFrame.lookVector;
- p.Velocity = (dir * 80) + Vector3.new(0,8,0);
- p.CanCollide = true;
- p.Parent = game.Workspace;
- p.Name='c4';
- beep.Parent=p;
- light.Parent=p;
- Handle.Transparency=1;
- wait(0.2)
- smokee=Instance.new('ParticleEmitter', p)
- smokee.Size = NumberSequence.new(31)
- smokee.Speed = NumberRange.new(10)
- smokee.RotSpeed = NumberRange.new(-255, 250)
- smokee.Texture = 'http://www.roblox.com/asset/?id=241539438'
- smokee.LightEmission = 1
- ex=Instance.new('Explosion',workspace);
- ex.BlastPressure=6;
- ex.BlastRadius=6;
- ex.Position=p.Position;
- smokee.VelocitySpread = 30
- smokee.Rate = 500
- smokee.Enabled=true;
- ss=Instance.new('Sound',p);
- ss.Volume=5;
- ss.SoundId='rbxassetid://424618966';
- ss:Play();
- Handle.Transparency=1;
- wait(16)
- p:remove();
- Handle.Transparency=0
- Tool.Enabled=true;
- end
- Tool.Activated:connect(onActivated);
- --[[
- Herex's Mechanic Gauntlets
- Heyo, Fen's first 2014 script. If ever you want details of Herex, who he is, and his backstory,
- just message me.
- ]]
- Player = game:GetService("Players").kiko43123152
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- LS = Torso["Left Shoulder"]
- LH = Torso["Left Hip"]
- RS = Torso["Right Shoulder"]
- RH = Torso["Right Hip"]
- Neck = Torso.Neck
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- MMouse=nil
- combo=0
- Mode="Normal"
- throwcube=false
- --player
- player = nil
- --save shoulders
- RSH, LSH = nil, nil
- --welds
- RW, LW = Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- local AnimJoints = {}
- table.insert(AnimJoints,RW)
- table.insert(AnimJoints,LW)
- if Character:findFirstChild("Mechanic Gauntlets",true) ~= nil then
- Character:findFirstChild("Mechanic Gauntlets",true).Parent = nil
- end
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp = it("Part")
- fp.formFactor = formfactor
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked=true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = Torso.Position
- fp.BottomSurface="Smooth"
- fp.TopSurface="Smooth"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh = it(Mesh)
- mesh.Parent = part
- if Mesh=="SpecialMesh" then
- mesh.MeshType = meshtype
- mesh.MeshId = meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld = it("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0
- return weld
- end
- function SetWeld(weld, i, loops, origpos,origangle, nextpos,nextangle,smooth)
- smooth = smooth or 1
- local obj
- for i, v in pairs(AnimJoints) do
- if v[1] == weld then
- obj = v
- break
- end
- end
- if not obj then
- obj = {weld,NV}
- table.insert(AnimJoints,obj)
- end
- local perc = (smooth == 1 and math.sin((math.pi/2)/loops*i)) or i/loops
- local tox,toy,toz = 0,0,0
- tox = math.abs(origangle.x - nextangle.x) *perc
- toy = math.abs(origangle.y - nextangle.y) *perc
- toz = math.abs(origangle.z - nextangle.z) *perc
- tox = (origangle.x > nextangle.x and -tox) or tox
- toy = (origangle.y > nextangle.y and -toy) or toy
- toz = (origangle.z > nextangle.z and -toz) or toz
- local tox2,toy2,toz2 = 0,0,0
- tox2 = math.abs(origpos.x - nextpos.x) *perc
- toy2 = math.abs(origpos.y - nextpos.y) *perc
- toz2 = math.abs(origpos.z - nextpos.z) *perc
- tox2 = (origpos.x > nextpos.x and -tox2) or tox2
- toy2 = (origpos.y > nextpos.y and -toy2) or toy2
- toz2 = (origpos.z > nextpos.z and -toz2) or toz2
- obj[2] = Vector3.new(origangle.x + tox, origangle.y + toy, origangle.z + toz)
- weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
- end
- local Hitbox=part(3,nil,0,0,BrickColor.new("White"),"Hitbox",vt(1,1,1))
- Hitbox.Anchored=true
- Hitbox.Transparency=1
- local modelzorz = Instance.new("Model")
- modelzorz.Parent = Character
- modelzorz.Name = "Mechanic Gauntlets"
- --[[LEFT GAUNTLET]]--
- local Lprt1=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Left Part1",vt(1,1,1))
- local Lprt3=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part3",vt(1,1,1))
- local Lprt5=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part5",vt(1,1,1))
- local Lprt6=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part6",vt(1,1,1))
- local Lprt7=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Left Part7",vt(1,1,1))
- local Lprt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Left Part8",vt(1,1,1))
- local Lprt9=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part9",vt(1,1,1))
- local Lprt10=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part10",vt(1,1,1))
- local Lprt11=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part11",vt(1,1,1))
- Lmsh1=mesh("BlockMesh",Lprt1,"","",vt(0,0,0),vt(1.03,1,1.03))
- Lmsh3=mesh("BlockMesh",Lprt3,"","",vt(0,0,0),vt(0.1,1.05,1.06))
- Lmsh5=mesh("BlockMesh",Lprt5,"","",vt(0,0,0),vt(1.025,2,0.2))
- Lmsh6=mesh("BlockMesh",Lprt6,"","",vt(0,0,0),vt(0.2,2,1.025))
- Lmsh7=mesh("CylinderMesh",Lprt7,"","",vt(0,0,0),vt(0.4,0.2,0.4))
- Lmsh8=mesh("CylinderMesh",Lprt8,"","",vt(0,0,0),vt(0.3,0.21,0.3))
- Lmsh9=mesh("SpecialMesh",Lprt9,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0.17,0.17,0.1))
- Lmsh10=mesh("SpecialMesh",Lprt10,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0.07,0.07,0.1))
- Lmsh11=mesh("BlockMesh",Lprt11,"","",vt(0,0,0),vt(0.15,0.02,0.02))
- local Lwld1=weld(Lprt1,Lprt1,LeftArm,euler(0,0,0)*cf(0,0.51,0))
- local Lwld3=weld(Lprt3,Lprt3,Lprt1,euler(0,0,0)*cf(0.3,0,0))
- local Lwld5=weld(Lprt5,Lprt5,Lprt1,euler(0,0,0)*cf(0,-0.55,0))
- local Lwld6=weld(Lprt6,Lprt6,Lprt1,euler(0,0,0)*cf(0,-0.55,0))
- local Lwld7=weld(Lprt7,Lprt7,Lprt1,euler(0,0,1.57)*cf(0.45,-1.2,0))
- local Lwld8=weld(Lprt8,Lprt8,Lprt7,euler(0,0,0)*cf(0,0,0))
- local Lwld9=weld(Lprt9,Lprt9,Lprt7,euler(1.57,0,0)*cf(-0.02,0.1,0))
- local Lwld10=weld(Lprt10,Lprt10,Lprt7,euler(1.57,0,0)*cf(0,0.1,0))
- local Lwld11=weld(Lprt11,Lprt11,Lprt7,euler(0,0,0)*cf(0.07,0.1,0))
- numb=0.4
- for i=1,4 do
- local Lprt2=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part2",vt(1,1,1))
- Lmsh2=mesh("BlockMesh",Lprt2,"","",vt(0,0,0),vt(1.06,1.05,0.1))
- local Lwld2=weld(Lprt2,Lprt2,Lprt1,euler(0,0,0)*cf(0,0,numb))
- local Lprt4=part(3,modelzorz,0,0,BrickColor.new("Light stone grey"),"Left Part4",vt(1,1,1))
- Lmsh4=mesh("SpecialMesh",Lprt4,"Wedge","",vt(0,0,0),vt(0.09,0.1,0.3))
- local Lwld4=weld(Lprt4,Lprt4,Lprt2,euler(1.57,-1.57,0)*cf(0.54,0.5,0))
- numb=numb-0.275
- end
- numb=0
- for i=1,4 do
- local Lprt7=part(3,modelzorz,0,0,BrickColor.new("Light stone grey"),"Left Part7",vt(1,1,1))
- Lmsh7=mesh("SpecialMesh",Lprt7,"Wedge","",vt(0,0,0),vt(0.2,0.1,0.3))
- local Lwld7=weld(Lprt7,Lprt7,Lprt1,euler(1.57,0,3.14)*cf(0,-0.5,0.54)*euler(0,numb,0))
- numb=numb+1.57
- end
- --[[RIGHT GAUNTLET]]--
- local Rprt1=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Right Part1",vt(1,1,1))
- local Rprt3=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part3",vt(1,1,1))
- local Rprt5=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part5",vt(1,1,1))
- local Rprt6=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part6",vt(1,1,1))
- local Rprt7=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Right Part7",vt(1,1,1))
- local Rprt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Right Part8",vt(1,1,1))
- local Rprt9=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part9",vt(1,1,1))
- local Rprt10=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part10",vt(1,1,1))
- local Rprt11=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part11",vt(1,1,1))
- Rmsh1=mesh("BlockMesh",Rprt1,"","",vt(0,0,0),vt(1.03,1,1.03))
- Rmsh3=mesh("BlockMesh",Rprt3,"","",vt(0,0,0),vt(0.1,1.05,1.06))
- Rmsh5=mesh("BlockMesh",Rprt5,"","",vt(0,0,0),vt(1.025,2,0.2))
- Rmsh6=mesh("BlockMesh",Rprt6,"","",vt(0,0,0),vt(0.2,2,1.025))
- Rmsh7=mesh("CylinderMesh",Rprt7,"","",vt(0,0,0),vt(0.4,0.2,0.4))
- Rmsh8=mesh("CylinderMesh",Rprt8,"","",vt(0,0,0),vt(0.3,0.21,0.3))
- Rmsh9=mesh("SpecialMesh",Rprt9,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0.17,0.17,0.1))
- Rmsh10=mesh("SpecialMesh",Rprt10,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0.07,0.07,0.1))
- Rmsh11=mesh("BlockMesh",Rprt11,"","",vt(0,0,0),vt(0.15,0.02,0.02))
- local Rwld1=weld(Rprt1,Rprt1,RightArm,euler(0,3.14,0)*cf(0,0.51,0))
- local Rwld3=weld(Rprt3,Rprt3,Rprt1,euler(0,0,0)*cf(0.3,0,0))
- local Rwld5=weld(Rprt5,Rprt5,Rprt1,euler(0,0,0)*cf(0,-0.55,0))
- local Rwld6=weld(Rprt6,Rprt6,Rprt1,euler(0,0,0)*cf(0,-0.55,0))
- local Rwld7=weld(Rprt7,Rprt7,Rprt1,euler(0,0,1.57)*cf(0.45,-1.2,0))
- local Rwld8=weld(Rprt8,Rprt8,Rprt7,euler(0,0,0)*cf(0,0,0))
- local Rwld9=weld(Rprt9,Rprt9,Rprt7,euler(1.57,0,0)*cf(-0.02,0.1,0))
- local Rwld10=weld(Rprt10,Rprt10,Rprt7,euler(1.57,0,0)*cf(0,0.1,0))
- local Rwld11=weld(Rprt11,Rprt11,Rprt7,euler(0,0,0)*cf(0.07,0.1,0))
- numb=0.4
- for i=1,4 do
- local Rprt2=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part2",vt(1,1,1))
- Rmsh2=mesh("BlockMesh",Rprt2,"","",vt(0,0,0),vt(1.06,1.05,0.1))
- local Rwld2=weld(Rprt2,Rprt2,Rprt1,euler(0,0,0)*cf(0,0,numb))
- local Rprt4=part(3,modelzorz,0,0,BrickColor.new("Light stone grey"),"Right Part4",vt(1,1,1))
- Rmsh4=mesh("SpecialMesh",Rprt4,"Wedge","",vt(0,0,0),vt(0.09,0.1,0.3))
- local Rwld4=weld(Rprt4,Rprt4,Rprt2,euler(1.57,-1.57,0)*cf(0.54,0.5,0))
- numb=numb-0.275
- end
- numb=0
- for i=1,4 do
- local Rprt7=part(3,modelzorz,0,0,BrickColor.new("Light stone grey"),"Right Part7",vt(1,1,1))
- Rmsh7=mesh("SpecialMesh",Rprt7,"Wedge","",vt(0,0,0),vt(0.2,0.1,0.3))
- local Rwld7=weld(Rprt7,Rprt7,Rprt1,euler(1.57,0,3.14)*cf(0,-0.5,0.54)*euler(0,numb,0))
- numb=numb+1.57
- end
- if (script.Parent.className ~= "HopperBin") then
- Tool = Instance.new("HopperBin")
- Tool.Parent = Backpack
- Tool.Name = "Mechanic Gauntlets"
- script.Parent = Tool
- end
- Bin = script.Parent
- local Bg = it("BodyGyro")
- Bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- Bg.P = 20e+003
- Bg.Parent = nil
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- wait()
- sou:play()
- wait(6)
- sou:Remove()
- end))
- end
- function hideanim()
- equipped=false
- end
- function equipanim()
- equipped=true
- Neck.C0=necko
- for i = 0,1,0.1 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(0.2*i,1.57*i,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1*i,0,-0.2*i)
- end
- end
- function attackone()
- attack=true
- local armprt=part(3,modelzorz,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
- armprt.Transparency=1
- local armprtwld=weld(armprt,armprt,LeftArm,euler(0,0,0)*cf(0,1,0))
- for i=0,1,0.2 do
- wait()
- ElecEffect(armprt.CFrame,1,1,1)
- RootJoint.C0=RootCF*euler(0,0,0.2*i)
- LW.C0=cf(-1.5,0.5,0)*euler((walkoffset1-walkoffset1*i)+.2,1.57,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2-0.4*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler((walkoffset1-walkoffset1*i)+.1,0,-0.2+0.8*i)
- end
- local boom=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
- boom.Transparency=1
- boom.Anchored=true
- boom.CFrame=Head.CFrame*cf(0,-1,-4)
- so("http://www.roblox.com/asset/?id=153092315",boom,1,0.5)
- for i=0,1,0.2 do
- wait()
- ElecEffect(armprt.CFrame,1,1,1)
- Neck.C0=necko*euler(0,0,0.6*i)
- RootJoint.C0=RootCF*euler(0,0,0.2-0.8*i)
- LW.C0=cf(-1.5,0.5,0)*euler(0.2+1.37*i,1.57,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.6+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1,0,0.6)
- end
- boommsh=mesh("SpecialMesh",boom,"Sphere","",vt(0,0,0),vt(2.5,2.5,2.5))
- boom.Transparency=0.5
- boom.Anchored=true
- boom.CFrame=Head.CFrame*cf(0,-1,-4)
- Hitbox.Parent=workspace
- Hitbox.CFrame=boom.CFrame
- con1=Hitbox.Touched:connect(function(hit) Damagefunc1(hit,1,5,0) end)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- while Part.Parent~=nil do
- wait()
- derp=math.random()
- Mesh.Scale=vt(2.5+derp,2.5+derp,2.5+derp)
- ElecEffect(Part.CFrame,2,2,2)
- MagicBlock(BrickColor.new("White"),Part.CFrame,1,1,1,0.1,0.1,0.1)
- Hitbox.CFrame=boom.CFrame*cf(math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),math.random(-1,0)+math.random())
- end
- end),boom,boommsh)
- for i=0,1,0.2 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(1.57,1.57,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.4+0.1*i,0,0)
- end
- coroutine.resume(coroutine.create(function(Part1,Part2,Part3,Con)
- wait(2)
- Con:disconnect()
- Part2.Parent=nil
- Part3.Parent=nil
- Part1.Parent=nil
- wait(1)
- end),Hitbox,boom,armprt,con1)
- --[[Hitbox.Parent=nil
- con1:disconnect()
- boom.Parent=nil
- armprt.Parent=nil]]
- attack=false
- end
- function attacktwo()
- attack=true
- for i=0,1,0.2 do
- wait()
- Neck.C0=necko*euler(0,0,0.6-0.6*i)
- RootJoint.C0=RootCF*euler(0,0,-0.6+0.6*i)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57,1.57-1.57*i,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.3+0.3*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1+1.47*i,0,0.6-0.6*i)
- end
- local boom=part(3,modelzorz,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
- boom.Transparency=0.5
- boommsh=mesh("SpecialMesh",boom,"Sphere","",vt(0,0,0),vt(0,0,0))
- local boomwld=weld(boom,boom,Head,euler(0,0,0)*cf(0,1,4))
- con1=Hitbox.Touched:connect(function(hit) Damagefunc1(hit,5,10,20) end)
- for i=0,1,0.2 do
- wait()
- ElecEffect(boom.CFrame,3,3,3)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,0.1*i)
- RW.C0=cf(1.5,0.5,0)*euler(1.57,0,-0.1*i)
- boommsh.Scale=vt(0.5*(i*3),0.5*(i*3),0.5*(i*3))
- Hitbox.CFrame=boom.CFrame
- end
- con1:disconnect()
- boomwld.Parent=nil
- boom.Anchored=true
- coroutine.resume(coroutine.create(function(Part)
- local c=game.Workspace:GetChildren()
- for i=1,#c do
- local hum=c[i]:findFirstChild("Humanoid")
- if hum~=nil and hum.Health~=0 then
- local head=c[i]:findFirstChild("Head")
- if head~=nil then
- local targ=head.Position - Part.Position
- local mag=targ.magnitude
- if mag<=10 and c[i].Name~=Player.Name then
- attackdebounce=false
- Damagefunc1(head,10,20,70)
- end
- end
- end
- end
- so("http://www.roblox.com/asset/?id=2974249",Part,1,1)
- so("http://www.roblox.com/asset/?id=1369158",Part,1,2)
- numb=0
- for i=0,20 do
- wait()
- MagicBlock(BrickColor.new("White"),Part.CFrame,0.5,0.5,0.5,1,1,1)
- if numb>=8 then
- MagicRing(BrickColor.new("White"),Part.CFrame,1,1,1,math.random(-50,50),math.random(-50,50),math.random(-50,50),0.5,0.5,0.5)
- numb=0
- end
- numb=numb+1
- end
- end),boom)
- for i=0,1,0.2 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,0.1-0.7*i)
- RW.C0=cf(1.5,0.5,0)*euler(1.57,0,-0.1+0.7*i)
- end
- wait(0.2)
- boom.Parent=nil
- attack=false
- end
- function attackthree()
- attack=true
- for i=0,1,0.1 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i,0,-0.6)
- RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i,0,0.6)
- end
- so("http://www.roblox.com/asset/?id=153092348",Torso,1,1)
- vel=Instance.new("BodyVelocity")
- vel.Parent=RootPart
- vel.maxForce=vt(4e+005,4e+005,4e+005)*1
- vel.velocity=Head.CFrame.lookVector*50
- ArmHit=false
- armcon=RightArm.Touched:connect(function(hit)
- if hit~=nil and hit.Parent:findFirstChild("Humanoid")~=nil and ArmHit==false then
- armcon:disconnect()
- vel.Parent=nil
- ArmHit=true
- print("HITTED")
- Damagefunc1(hit,10,30,20)
- MagicBlock(BrickColor.new("White"),hit.CFrame*cf(0,-1,0),0.5,0.5,0.5,1,1,1)
- for i=1,3 do
- Lightning(hit.Position,hit.Position+vt(math.random(-10,10),math.random(-10,10),math.random(-10,10)),5,1,"White",0.3,0.1,0.5)
- end
- so("http://www.roblox.com/asset/?id=153092334",Torso,1,1)
- for i=0,1,0.2 do
- wait()
- Neck.C0=necko*euler(0,0,-1+2*i)
- RootJoint.C0=RootCF*euler(0,0,1-2*i)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.6)
- RW.C0=cf(1.5,0.5,0)*euler(1.57-1.77*i,0,1)
- end
- wait(0.4)
- if Anim=="Idle" then
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0,0,1-1*i)
- RootJoint.C0=RootCF*euler(0,0,-1+1*i)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.4*i,1.57*i,-0.6+0.6*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(-0.2+0.3*i,0,1-1.2*i)
- end
- end
- end
- end)
- for i=0,1,0.2 do
- wait()
- MagicBlock(BrickColor.new("White"),RightArm.CFrame*cf(0,-2.5,0),0.5,0.5,0.5,0.6,0.6,0.6)
- Neck.C0=necko*euler(0,0,-1*i)
- RootJoint.C0=RootCF*euler(0,0,1*i)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i,0,-0.6)
- RW.C0=cf(1.5,0.5,0)*euler(1.57*i,0,0.6+0.4*i)
- end
- for i=0,1,0.1 do
- wait()
- MagicBlock(BrickColor.new("White"),RightArm.CFrame*cf(0,-2.5,0),0.5,0.5,0.5,0.6,0.6,0.6)
- end
- vel.Parent=nil
- wait(0.5)
- if ArmHit==false then
- armcon:disconnect()
- if Anim=="Idle" then
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0,0,-1+1*i)
- RootJoint.C0=RootCF*euler(0,0,1-1*i)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.4*i,1.57*i,-0.6+0.6*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(1.57-1.47*i,0,1-1.2*i)
- end
- end
- end
- attack=false
- end
- function Electra()
- attack=true
- Mode="Electra"
- Anim="Switching"
- for i=0,1,0.1 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(0.2-0.4*i,1.57-1.57*i,-0.2*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1-0.3*i,0,-0.2+0.4*i)
- RootJoint.C0=RootCF*cf(0,2*i,0)*euler(0,0,0)
- end
- wait(1)
- attack=false
- end
- function Normal()
- attack=true
- Mode="Normal"
- RootJoint.C0=RootCF
- wait(1)
- attack=false
- end
- function MakeCube()
- attack=true
- for i=0,1,0.1 do
- wait()
- MagicBlock(BrickColor.new("White"),Torso.CFrame*cf(0,0.5,-2),0.5,0.5,0.5,0.3,0.3,0.3)
- ElecEffect(Torso.CFrame*cf(0,0.5,-2),1,1,1)
- Neck.C0=necko*euler(0.1*i,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(0.2+1.27*i,1.57-1.57*i,0.4*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1+1.37*i,0,-0.2-0.2*i)
- end
- numb=2
- for i=0,1,0.1 do
- MagicBlock(BrickColor.new("White"),Torso.CFrame*cf(0,0.5,-2),0.5,0.5,0.5,0.3,0.3,0.3)
- ElecEffect(Torso.CFrame*cf(0,0.5,-2),1,1,1)
- Neck.C0=necko*euler(0.1+0.1*(i*numb),0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.47+0.1*(i*numb),0,0.4+0.1*(i*numb))
- RW.C0=cf(1.5,0.5,0)*euler(1.47+0.1*(i*numb),0,-0.4-0.1*(i*numb))
- numb=numb-0.1
- wait()
- end
- NewCube()
- wait(0.5)
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2-0.2*i,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.37*i,1.57*i,0.5-0.5*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(1.57-1.47*i,0,-0.5+0.3*i)
- end
- Neck.C0=necko
- attack=false
- end
- function GetCube()
- if MMouse.Target~=nil and MMouse.Target.Name=="Cube Vertex2" and MMouse.Target.Parent:findFirstChild("Cube Vertex1")~=nil then
- attack=true
- throwcube=false
- print("GOT CUBE")
- mainpart=MMouse.Target
- coroutine.resume(coroutine.create(function(Model)
- while holdz==true do
- wait()
- Model["Cube Vertex1"].CFrame=Torso.CFrame*cf(0,0.5,-2)
- end
- end),mainpart.Parent)
- for i=0,1,0.1 do
- wait()
- ElecEffect(mainpart.CFrame,1,1,1)
- Neck.C0=necko*euler(0.1*i,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(0.2+1.27*i,1.57-1.57*i,0.4*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1+1.37*i,0,-0.2-0.2*i)
- end
- while holdz==true do
- wait()
- ElecEffect(mainpart.CFrame,1,1,1)
- end
- if throwcube==false then
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.1-0.1*i,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.47-1.27*i,1.57*i,0.4-0.4*i)
- LW.C1=cf(0, 0.5, 0)*euler(0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(1.47-1.37*i,0,-0.4+0.4*i)
- end
- end
- attack=false
- end
- end
- function ThrowCube()
- attack=true
- Main=mainpart.Parent["Cube Vertex1"]
- --[[CF=Main.CFrame
- for i=0,20 do
- wait()
- Main.CFrame=CF*cf(0,0,-i)
- end
- numb=1
- for i=0,1,0.1 do
- wait()
- Main.CFrame=CF*cf(0,0,-20-10*(i*numb))
- numb=numb-0.05
- end]]
- wait()
- Main.CFrame=CFrame.new(MMouse.Hit.p)*cf(math.random(-1,1),math.random(0,1),math.random(-1,1))
- attack=false
- end
- function GatherCubes()
- attack=true
- c=workspace:children()
- for i=1,#c do
- if c[i].Name=="Cube" then
- rand1=math.random(-5,5)
- rand2=math.random(0,5)
- rand3=math.random(-5,5)
- coroutine.resume(coroutine.create(function(Model,Rand1,Rand2,Rand3)
- while holdx==true do
- wait()
- Model["Cube Vertex1"].CFrame=Torso.CFrame*cf(Rand1,Rand2,Rand3)
- ElecEffect(Model["Cube Vertex2"].CFrame,1,1,1)
- end
- end),c[i],rand1,rand2,rand3)
- end
- end
- for i=0,1,0.1 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(0.2+1.37*i,1.57-1.57*i,-1.57*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1+1.47*i,0,-0.2+1.77*i)
- end
- while holdx==true do
- wait()
- end
- attack=false
- end
- function ThrowCube2()
- wait()
- if MMouse.Target~=nil then
- TargetHit=MMouse.Target
- if TargetHit.Anchored==false then
- c=workspace:children()
- for i=1,#c do
- coroutine.resume(coroutine.create(function(Model)
- if Model.Name=="Cube" then
- while attack==false do
- wait(0.1)
- MainPrt=Model["Cube Vertex1"]
- MainPrt.CFrame=TargetHit.CFrame*cf(math.random(-2,2),math.random(-2,2),math.random(-2,2))
- end
- end
- end),c[i])
- end
- else
- c=workspace:children()
- for i=1,#c do
- if c[i].Name=="Cube" then
- CubModel=c[i]
- MainPrt=CubModel["Cube Vertex1"]
- MainPrt.CFrame=CFrame.new(MMouse.Hit.p)*cf(math.random(-5,5),math.random(0,5),math.random(-5,5))
- end
- end
- end
- end
- end
- function TeleCube()
- if MMouse.Target~=nil and MMouse.Target.Name=="Cube Vertex2" and MMouse.Target.Parent:findFirstChild("Cube Vertex1")~=nil then
- attack=true
- MainPart=MMouse.Target
- so("http://www.roblox.com/asset/?id=2101137",Torso,0.7,1)
- for i=0,1,0.1 do
- wait()
- ElecEffect(MainPart.CFrame,1,1,1)
- ElecEffect(Torso.CFrame,4,2,4)
- Neck.C0=necko*euler(0,0,1.57*i)
- RootJoint.C0=RootCF*euler(0,0,-1.57*i)
- LW.C0=cf(-1.5,0.5,0)*euler(0.2+1.37*i,1.57-1.57*i,-1.57*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1+1.47*i,0,-0.2+1.77*i)
- end
- for i=0,1,0.1 do
- wait()
- ElecEffect(MainPart.CFrame,1,1,1)
- ElecEffect(Torso.CFrame,4,2,4)
- end
- for i=1,2 do
- MagicBlock(BrickColor.new("White"),Torso.CFrame,0.5,0.5,0.5,2,2,2)
- end
- so("http://roblox.com/asset/?id=2101144",Torso,1,2)
- Torso.CFrame=MainPart.CFrame
- for i=1,2 do
- MagicBlock(BrickColor.new("White"),Torso.CFrame,0.5,0.5,0.5,2,2,2)
- end
- Neck.C0=necko
- RootJoint.C0=RootCF
- attack=false
- end
- end
- function Apocalypse()
- attack=true
- c=workspace:children()
- for i=1,#c do
- if c[i].Name=="Cube" then
- so("http://www.roblox.com/asset/?id=2974249",c[i]["Cube Vertex2"],1,1)
- coroutine.resume(coroutine.create(function(Model)
- while Model.Parent~=nil do
- MagicBlock(BrickColor.new("White"),Model["Cube Vertex2"].CFrame,0.5,0.5,0.5,0.5,0.5,0.5)
- wait()
- end
- end),c[i])
- end
- end
- for i=0,1,0.2 do
- wait()
- LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0.2+0.2*i,1.57-1.57*i,0.6*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(0.1+0.3*i,0,-0.2-0.4*i)
- end
- numb=2
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.1*(i*numb),0,0)
- LW.C0=cf(-1,0.5,-0.5)*euler(0.4+0.2*(i*numb),0,0.6+0.4*(i*numb))
- RW.C0=cf(1,0.5,-0.5)*euler(0.4+0.2*(i*numb),0,-0.6-0.4*(i*numb))
- numb=numb-0.1
- end
- c3=workspace:children()
- for i=1,#c3 do
- if c3[i].Name=="Cube" then
- CubeMod=c3[i]
- for i=1,2 do
- MagicRing(BrickColor.new("White"),CubeMod["Cube Vertex2"].CFrame,1,1,1,math.random(-50,50),math.random(-50,50),math.random(-50,50),3,3,0.5)
- end
- for i=1,3 do
- Lightning(CubeMod["Cube Vertex2"].Position,CubeMod["Cube Vertex2"].Position+vt(math.random(-10,10),math.random(-10,10),math.random(-10,10)),5,1,"White",0.3,0.1,0.8)
- end
- MagicCircle(BrickColor.new("Blue"),CubeMod["Cube Vertex2"].CFrame,1,1,1,3,3,3,0.05)
- local c2=game.Workspace:GetChildren()
- for i=1,#c2 do
- local hum=c2[i]:findFirstChild("Humanoid")
- if hum~=nil and hum.Health~=0 then
- local head=c2[i]:findFirstChild("Head")
- if head~=nil then
- local targ=head.Position - CubeMod["Cube Vertex2"].Position
- local mag=targ.magnitude
- if mag<=15 and c2[i].Name~=Player.Name then
- attackdebounce=false
- Damagefunc1(head,10,20,0)
- end
- end
- end
- end
- local cubesoundprt=part(3,workspace,0,1,BrickColor.new("White"),"Cube Sound Part",vt(1,1,1))
- cubesoundprt.Anchored=true
- cubesoundprt.CFrame=CubeMod["Cube Vertex2"].CFrame
- game.Debris:AddItem(cubesoundprt,3)
- --so("http://www.roblox.com/asset/?id=2974249",Part,1,1)
- so("http://www.roblox.com/asset/?id=1369158",cubesoundprt,1,2)
- CubeMod:Destroy()
- end
- end
- for i=0,1,0.2 do
- wait()
- Neck.C0=necko*euler(0.1+0.05*i,0,0)
- LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(0.6+0.87*i,0,1-2.47*i)
- RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(0.6+0.87*i,0,-1+2.47*i)
- end
- numb=2
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.15+0.05*i,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.47+0.1*(i*numb),0,-1.47-0.1*(i*numb))
- RW.C0=cf(1.5,0.5,0)*euler(1.47+0.1*(i*numb),0,1.47+0.1*(i*numb))
- numb=numb-0.1
- end
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2-0.2*i,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.37*i,1.57*i,-1.57+1.57*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(1.57-1.47*i,0,1.57-1.37*i)
- end
- attack=false
- end
- function Turbine()
- if MMouse.Target~=nil and MMouse.Target.Name=="Cube Vertex2" and MMouse.Target.Parent:findFirstChild("Cube Vertex1")~=nil then
- BoomCube=MMouse.Target
- TargetPart=BoomCube.Parent["Cube Vertex1"]
- attack=true
- bg=Instance.new("BodyGyro")
- bg.maxTorque = vt(0,math.huge,0)
- bg.P = 3000
- bg.cframe = cf(RootPart.Position,BoomCube.Position)
- bg.Parent = RootPart
- so("http://www.roblox.com/asset/?id=2101137",BoomCube,1,1)
- for i=0,1,0.2 do
- wait()
- Neck.C0=necko*euler(0,0,1*i)
- RootJoint.C0=RootCF*euler(0,0,-1*i)
- LW.C0=cf(-1.5,0.5,0)*euler(0.2+1.37*i,1.57-1.57*i,-1*i)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1+1.47*i,0,-0.2+1.77*i)
- Lightning(LeftArm.Position,BoomCube.Position,5,1,"White",0.3,0.1,0.1)
- end
- for i=1,10 do
- wait()
- Lightning(LeftArm.Position,BoomCube.Position,5,1,"White",0.3,0.1,0.1)
- end
- for i=1,2 do
- MagicBlock(BrickColor.new("White"),BoomCube.CFrame,0.5,0.5,0.5,2,2,2)
- end
- MagicCircle(BrickColor.new("Blue"),BoomCube.CFrame,1,1,1,2,2,2,0.08)
- so("http://www.roblox.com/asset/?id=2697431",BoomCube,1,0.2)
- local c2=game.Workspace:GetChildren()
- for i=1,#c2 do
- local hum=c2[i]:findFirstChild("Humanoid")
- if hum~=nil and hum.Health~=0 then
- local head=c2[i]:findFirstChild("Head")
- if head~=nil then
- local targ=head.Position - BoomCube.Position
- local mag=targ.magnitude
- if mag<=12 and c2[i].Name~=Player.Name then
- attackdebounce=false
- Damagefunc2(head,10,20,0,BoomCube)
- end
- end
- end
- end
- TargetPart.CFrame=LeftArm.CFrame*cf(0,-3,0)
- wait(0.5)
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0,0,1-1*i)
- RootJoint.C0=RootCF*euler(0,0,-1+1*i)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.37*i,1.57*i,-1+1*i)
- LW.C1=cf(0, 0.5, 0)*euler(0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(1.57-1.47*i,0,1.57-1.77*i)
- end
- bg.Parent=nil
- attack=false
- end
- end
- function NewCube()
- Cube=Instance.new("Model")
- Cube.Parent=workspace
- Cube.Name="Cube"
- local cubevertex=part(3,Cube,0,0.6,BrickColor.new("White"),"Cube Vertex1",vt(1,1,1))
- cubevertex.Anchored=true
- cubevertex.CFrame=Torso.CFrame*cf(0,0.5,-2)
- cubevertexmsh=mesh("SpecialMesh",cubevertex,"Sphere","",vt(0,0,0),vt(0.3,0.3,0.3))
- local cube=part(3,Cube,0,0.2,BrickColor.new("White"),"Cube Vertex2",vt(1.5,1.5,1.5))
- cube.CFrame=Torso.CFrame
- cubemsh=mesh("BlockMesh",cube,"","",vt(0,0,0),vt(0.4,0.4,0.4))
- cubemsh=mesh("SpecialMesh",cube,"Sphere","",vt(0,0,0),vt(0.2,0.2,0.2))
- local actualcube=part(3,Cube,0,0.3,BrickColor.new("Bright blue"),"Cube",vt(1,1,1))
- actualcube.CFrame=Torso.CFrame
- --actualcubemsh=mesh("SpecialMesh",actualcube,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
- actualcubemsh=mesh("BlockMesh",actualcube,"","",vt(0,0,0),vt(0.7,0.7,0.7))
- local cubewld=weld(actualcube,actualcube,cube,cf(0,0,0))
- coroutine.resume(coroutine.create(function(Part,Model)
- while Part.Parent~=nil do
- wait()
- end
- Model.Parent=nil
- end),actualcube,Cube)
- local spark=Instance.new("Sparkles")
- spark.Parent=cube
- spark.Color=Color3.new(0,0,255)
- spark.Enabled=true
- light=Instance.new("PointLight")
- light.Brightness=.8
- light.Color=Color3.new(.2,.2,255)
- light.Range=10
- light.Parent=cube
- coroutine.resume(coroutine.create(function(Part,Weld)
- numb1=0
- numb2=0
- numb3=0
- while Part.Parent~=nil do
- wait()
- Weld.C0=Weld.C0*angles(numb1,numb2,numb3)
- numb1=math.pi/math.random(10,20)
- numb2=math.pi/math.random(20,30)
- numb3=math.pi/math.random(20,30)
- end
- end),actualcube,cubewld)
- prop=Instance.new("RocketPropulsion")
- prop.MaxSpeed=5000
- prop.CartoonFactor=0
- prop.MaxThrust=10000
- prop.Parent=cube
- prop.Target=cubevertex
- prop.ThrustD=1.5
- prop.TurnD=0
- prop.TurnP=0
- print(prop.ThrustD)
- prop:Fire()
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function Lightning(p0,p1,tym,ofs,col,th,tra,last)
- local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
- for i=1,tym do
- local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
- li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
- light1=Instance.new("PointLight")
- light1.Brightness=.8
- light1.Color=Color3.new(.2,255,.2)
- light1.Range=8
- light1.Parent=li
- local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
- if tym == i then
- local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
- li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
- end
- curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
- end
- end
- function ElecEffect(cff,x,y,z)
- local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
- prt.Anchored=true
- xval=math.random()
- yval=math.random()
- zval=math.random()
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
- coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
- Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
- for i=1,8 do
- wait()
- xvaal=xvaal-0.1
- yvaal=yvaal-0.1
- zvaal=zvaal-0.1
- Mesh.Scale=vt(xvaal,yvaal,zvaal)
- Part.Transparency=Part.Transparency+0.09
- end
- Part.Parent=nil
- end),prt,msh,cff,xval,yval,zval)
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(x2,y2,z2)
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.03 do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- wait()
- sou:play()
- wait(6)
- sou:Remove()
- end))
- end
- function findNearestTorso(pos)
- local list = game:service("Workspace"):children()
- local torso = nil
- local dist = 50
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "Fenrier") then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- Damagefunc1=function(hit,minim,maxim,Knockback)
- if hit.Parent==nil then
- return
- end
- CPlayer=Bin
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if attackdebounce == false then
- attackdebounce = true
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- attackdebounce = false
- end))
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print("herp")
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- print(block.Value)
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,BrickColor:Red())
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- vp.velocity=Head.CFrame.lookVector*Knockback+Head.Velocity/1.05
- if Knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.25)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- end
- Damagefunc2=function(hit,minim,maxim,Knockback,MainPart)
- if hit.Parent==nil then
- return
- end
- CPlayer=Bin
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if attackdebounce == false then
- attackdebounce = true
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- attackdebounce = false
- end))
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print("herp")
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- print(block.Value)
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,BrickColor:Red())
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- newpos2=MainPart.Position
- local angle = (hit.Position-(newpos2+Vector3.new(0,-3,0))).unit
- print(angle)
- hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,1)
- --end
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,.7)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=tostring(Dealt)
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.BrickColor=Color
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- function ob1d(mouse)
- if holdz==true then
- throwcube=true
- holdz=false
- ThrowCube()
- return end
- if holdx==true then
- throwcube=true
- holdx=false
- ThrowCube2()
- return end
- if attack == true then return end
- hold=true
- if combo==0 then
- combo=1
- attackone()
- elseif combo==1 then
- combo=2
- attacktwo()
- elseif combo==2 then
- combo=3
- attackthree()
- end
- coroutine.resume(coroutine.create(function()
- wait(0.5)
- if attack==false then
- combo=0
- Neck.C0=necko
- RootJoint.C0=RootCF
- LW.C0=cf(-1.5,0.5,0)*euler(0.2,1.57,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1,0,-0.2)
- end
- end))
- end
- function ob1u(mouse)
- hold = false
- end
- buttonhold = false
- holdz=false
- holdx=false
- eul=0
- function key(key)
- if attack == true then return end
- --[[if key=="f" then
- if Mode=="Normal" then
- Electra()
- elseif Mode=="Electra" then
- Normal()
- end
- end]]
- if key=="q" then
- Apocalypse()
- end
- if key=="e" then
- Turbine()
- end
- if key=="f" then
- MakeCube()
- end
- if key=="z" then
- holdz=true
- GetCube()
- end
- if key=="x" then
- holdx=true
- GatherCubes()
- end
- if key=="c" then
- TeleCube()
- end
- end
- function key2(key)
- if key=="z" then
- holdz=false
- end
- if key=="x" then
- holdx=false
- end
- end
- function s(mouse)
- mouse.Button1Down:connect(function() ob1d(mouse) end)
- mouse.Button1Up:connect(function() ob1u(mouse) end)
- mouse.KeyDown:connect(key)
- mouse.KeyUp:connect(key2)
- unsheathed = true
- player = Player
- ch = Character
- MMouse = mouse
- RSH = ch.Torso["Right Shoulder"]
- LSH = ch.Torso["Left Shoulder"]
- --
- RSH.Parent = nil
- LSH.Parent = nil
- --
- RW.Part0 = ch.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = ch["Right Arm"]
- RW.Parent = ch.Torso
- --_G.R = RW
- --
- LW.Part0 = ch.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = ch["Left Arm"]
- LW.Parent = ch.Torso
- --_G.L = LW
- --
- equipanim()
- end
- function ds(mouse)
- hideanim()
- wait(0)
- RW.Parent = nil
- LW.Parent = nil
- RSH.Parent = player.Character.Torso
- LSH.Parent = player.Character.Torso
- end
- Bin.Selected:connect(s)
- Bin.Deselected:connect(ds)
- Humanoid.Died:connect(function()
- c=workspace:children()
- for i=1,#c do
- if c[i].Name=="Cube" then
- c[i]:Remove()
- end
- end
- end)
- --[[function onRunning(speed)
- if attack==true then return end
- if speed>0 then
- walking = true
- for i = 0,1,0.1 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(0.2-0.4*i,1.57,0)
- end
- else
- walking = false
- for i = 0,1,0.1 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.4*i,1.57,0)
- end
- end
- end
- Character.Humanoid.Running:connect(onRunning) ]]
- Anim="Idle"
- walkoffset1=0
- walkoffset2=0
- Switching=false
- while true do
- wait()
- if Mode=="Normal" then
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- if RootPart.Velocity.y > 2 then
- if Anim~="Jump" then
- Anim="Jump"
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.2 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(0.2-0.6*i,1.57-1.57*i,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1-0.1*i,0,-0.2)
- end
- end))
- end
- elseif RootPart.Velocity.y < -2 then
- if Anim~="Fall" then
- Anim="Fall"
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.2 do
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(-0.4+2.8*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0,0,-0.2)
- end
- end))
- end
- elseif torvel < 1 then
- if Anim~="Idle" then
- Anim="Idle"
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- while Switching==true do
- wait()
- end
- while Anim=="Idle" do
- for i = 0,1,0.02 do
- if Anim=="Idle" and attack==false then
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(0.2-0.1*i,1.57-0.05*i,0)
- RW.C0=cf(1.5,0.5-0.1*i,0)*euler(0.1+0.1*i,0,-0.2)
- end
- end
- for i = 0,1,0.02 do
- if Anim=="Idle" and attack==false then
- wait()
- LW.C0=cf(-1.5,0.5,0)*euler(0.1+0.1*i,1.52+0.05*i,0)
- RW.C0=cf(1.5,0.4+0.1*i,0)*euler(0.2-0.1*i,0,-0.2)
- end
- end
- wait(0)
- end
- if Anim=="Walk" and attack==false then
- print("Switch to Walk")
- Switching=true
- walkoffset1=0
- walkoffset2=0
- for i=0,1,0.15 do
- wait()
- walkoffset1=0.2+0.8*i
- walkoffset2=0.1-0.9*i
- LW.C0=cf(-1.5,0.5,0)*euler(walkoffset1,1.57-1.57*i,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(walkoffset2,0,-0.2+0.2*i)
- end
- Switching=false
- elseif Anim=="Run" and attack==false then
- print("Switch to Run")
- Switching=true
- for i=0,1,0.1 do
- wait()
- if Anim=="Run" and attack==false then
- print("runnin")
- RootJoint.C0=RootCF*euler(0.5*i,0,0)
- Neck.C0=necko*euler(-0.3*i,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(0.2-1.2*i,1.57-1.57*i,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2+0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0.1-1.1*i,0,-0.2+0.2*i)
- end
- end
- Switching=false
- end
- end))
- end
- elseif torvel < 19 then
- if Anim~="Walk" then
- Anim="Walk"
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- while Switching==true do
- wait()
- end
- while Anim=="Walk" do
- for i=0,1,0.15 do
- if Anim=="Walk" and attack==false then
- wait()
- walkoffset1=1-2*i
- walkoffset2=-1+2*i
- LW.C0=cf(-1.5,0.5,0)*euler(walkoffset1,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(walkoffset2,0,0)
- end
- end
- for i=0,1,0.15 do
- if Anim=="Walk" and attack==false then
- wait()
- walkoffset1=-1+2*i
- walkoffset2=1-2*i
- LW.C0=cf(-1.5,0.5,0)*euler(walkoffset1,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(walkoffset2,0,0)
- end
- end
- wait(0)
- end
- if Anim=="Idle" and attack==false then
- print("Switch to Idle")
- Switching=true
- for i=0,1,0.1 do
- wait()
- if Anim=="Idle" and attack==false then
- LW.C0=cf(-1.5,0.5,0)*euler((walkoffset1-walkoffset1*i)+(0.2*i),1.57*i,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler((walkoffset2-walkoffset2*i)+(0.1*i),0,-0.2*i)
- end
- end
- walkoffset1=0
- walkoffset2=0
- Switching=false
- end
- end))
- end
- elseif torvel >= 30 then
- if Anim~="Run" then
- Anim="Run"
- coroutine.resume(coroutine.create(function()
- while Anim=="Run" do
- wait()
- if Anim=="Run" and attack==false then
- LW.C0=cf(-1.5,0.5,0)*euler(-1,0,0)
- LW.C1=cf(0, 0.5, 0)*euler(0,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(-1,0,0)
- end
- end
- if Anim=="Idle" and attack==false then
- print("Switch to Idle")
- Switching=true
- for i=0,1,0.1 do
- wait()
- RootJoint.C0=RootCF*euler(0.5-0.5*i,0,0)
- Neck.C0=necko*euler(-0.3+0.3*i,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-1+1.2*i,1.57*i,0)
- LW.C1=cf(0, 0.5, 0)*euler(-0.2*i,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(-1+1.1*i,0,-0.2*i)
- end
- Switching=false
- end
- end))
- end
- end
- elseif Mode=="Electra" then
- end
- end
- print("Mechanic Gauntlets loaded.")
- --[[
- Copyrighted (C) Fenrier 2014
- ]]
- --bird wings Gifted by harrypotterfan249, Local Script!
- --Jump Two Time
- --Down Press Q
- script.Parent = nil
- function fly()
- for i,v in pairs(script:GetChildren()) do
- pcall(function() v.Value = "" end)
- game:GetService("Debris"):AddItem(v,.1)
- end
- function weld(p0,p1,c0,c1,par)
- local w = Instance.new("Weld",p0 or par)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- return w
- end
- local motors = {}
- function motor(p0,p1,c0,c1,des,vel,par)
- local w = Instance.new("Motor6D",p0 or par)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- w.MaxVelocity = tonumber(vel) or .05
- w.DesiredAngle = tonumber(des) or 0
- return w
- end
- function lerp(a,b,c)
- return a+(b-a)*c
- end
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- function ccomplerp(c1,c2,al)
- local com1 = {c1:components()}
- local com2 = {c2:components()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(unpack(com1))
- end
- function tickwave(time,length,offset)
- return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
- end
- function invcol(c)
- c = c.Color
- return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
- end
- local oc = oc or function(...) return ... end
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local tor = char.Torso
- local hum = char.Humanoid
- hum.PlatformStand = false
- pcall(function()
- char.Wings:Destroy()
- end)
- pcall(function()
- char.Angel:Destroy() -- hat
- end)
- local mod = Instance.new("Model",char)
- mod.Name = "Wings"
- local special = {
- --antiboomz0r = {"Really black","Institutional white",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
- antiboomz0r = {"New Yeller",nil,0.4,0.7,true,Color3.new(1,1,.95),Color3.new(1,1,.6)},
- --antiboomz0r = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
- taart = {"Royal purple",nil,.4,.4,true},
- mitta = {"Black",nil,0,0,false},
- penjuin3 = {"White",nil,0,0,false},
- thepc8110 = {"Black","Bright red",.5,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
- nonspeaker = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
- littleau999 = {"Reddish brown",1030,0,0,false},
- unscripter = {"Really black","Really black",.2,0,true,Color3.new(0,0,0),Color3.new(0,0,0)},
- oxcool1 = {"Really black","White",.2,0,false,Color3.new(0,0,0),Color3.new(0,0,0)},
- krodmiss = {"Really black",nil,0,0,false},
- }
- local topcolor = invcol(char.Torso.BrickColor)
- local feacolor = char.Torso.BrickColor
- local ptrans = 0
- local pref = 0
- local fire = false
- local fmcol = Color3.new()
- local fscol = Color3.new()
- local spec = special[plr.Name:lower()]
- if spec then
- topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
- end
- local part = Instance.new("Part")
- part.FormFactor = "Custom"
- part.Size = Vector3.new(.2,.2,.2)
- part.TopSurface,part.BottomSurface = 0,0
- part.CanCollide = false
- part.BrickColor = topcolor
- part.Transparency = ptrans
- part.Reflectance = pref
- local ef = Instance.new("Fire",fire and part or nil)
- ef.Size = .15
- ef.Color = fmcol or Color3.new()
- ef.SecondaryColor = fscol or Color3.new()
- part:BreakJoints()
- function newpart()
- local clone = part:Clone()
- clone.Parent = mod
- clone:BreakJoints()
- return clone
- end
- local feath = newpart()
- feath.BrickColor = feacolor
- feath.Transparency = 0
- Instance.new("SpecialMesh",feath).MeshType = "Sphere"
- function newfeather()
- local clone = feath:Clone()
- clone.Parent = mod
- clone:BreakJoints()
- return clone
- end
- ---------- RIGHT WING
- local r1 = newpart()
- r1.Size = Vector3.new(.3,1.5,.3)*1.2
- local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
- local r2 = newpart()
- r2.Size = Vector3.new(.4,1.8,.4)*1.2
- local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1)
- local r3 = newpart()
- r3.Size = Vector3.new(.3,2.2,.3)*1.2
- local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1)
- local r4 = newpart()
- r4.Size = Vector3.new(.25,1.2,.25)*1.2
- local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1)
- local feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,3,.3)
- weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,2.3,.3)
- weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.35,2.2,.25)
- weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
- local rf3 = {}
- for i=0,7 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2,.35)
- table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local rf2 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2-i*.08,.3)
- table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local rf1 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.37,1.65-i*.06,.25)
- table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- ---------- LEFT WING
- local l1 = newpart()
- l1.Size = Vector3.new(.3,1.5,.3)*1.2
- local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1)
- local l2 = newpart()
- l2.Size = Vector3.new(.4,1.8,.4)*1.2
- local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1)
- local l3 = newpart()
- l3.Size = Vector3.new(.3,2.2,.3)*1.2
- local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1)
- local l4 = newpart()
- l4.Size = Vector3.new(.25,1.2,.25)*1.2
- local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1)
- local feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,3,.3)
- weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,2.3,.3)
- weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.35,2.2,.25)
- weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
- local lf3 = {}
- for i=0,7 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2,.35)
- table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local lf2 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2-i*.08,.3)
- table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local lf1 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.37,1.65-i*.06,.25)
- table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
- end
- local rwing = {rm1,rm2,rm3,rm4}
- local lwing = {lm1,lm2,lm3,lm4}
- local oc0 = {}
- for i,v in pairs(rwing) do
- oc0[v] = v.C0
- end
- for i,v in pairs(lwing) do
- oc0[v] = v.C0
- end
- function gotResized()
- if lastsize then
- if tor.Size == lastsize then return end -- This shouldn't happen?
- local scaleVec = tor.Size/lastsize
- for i,v in pairs(oc0) do
- oc0[i] = v-v.p+scaleVec*v.p
- end
- lastsize = tor.Size
- end
- lastsize = tor.Size
- end
- tor.Changed:connect(function(p)
- if p == "Size" then
- gotResized()
- end
- end)
- gotResized()
- local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
- local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
- local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
- local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
- local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
- local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
- function setwings(tab,time)
- time = time or 10
- for i=1,4 do
- rwing[i].DesiredAngle = tab[i]
- lwing[i].DesiredAngle = tab[i]
- rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
- lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
- local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
- local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
- end
- for i,v in pairs(rf1) do
- v.DesiredAngle = tab[9]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf1) do
- v.DesiredAngle = tab[9]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(rf2) do
- v.DesiredAngle = tab[10]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf2) do
- v.DesiredAngle = tab[10]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(rf3) do
- v.DesiredAngle = tab[11]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf3) do
- v.DesiredAngle = tab[11]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- end
- setwings(outhigh,1)
- flying = false
- moving = false
- for i,v in pairs(tor:GetChildren()) do
- if v.ClassName:lower():match("body") then
- v:Destroy()
- end
- end
- local ctor = tor:Clone()
- ctor:ClearAllChildren()
- ctor.Name = "cTorso"
- ctor.Transparency = 1
- ctor.CanCollide = false
- ctor.FormFactor = "Custom"
- ctor.Size = Vector3.new(.2,.2,.2)
- ctor.Parent = mod
- weld(tor,ctor)
- local bg = Instance.new("BodyGyro",ctor)
- bg.maxTorque = Vector3.new()
- bg.P = 15000
- bg.D = 1000
- local bv = Instance.new("BodyVelocity",ctor)
- bv.maxForce = Vector3.new()
- bv.P = 15000
- vel = Vector3.new()
- cf = CFrame.new()
- flspd = 0
- keysdown = {}
- keypressed = {}
- ktime = {}
- descendtimer = 0
- jumptime = tick()
- hum.Jumping:connect(function()
- jumptime = tick()
- end)
- cam = workspace.CurrentCamera
- kd = plr:GetMouse().KeyDown:connect(oc(function(key)
- keysdown[key] = true
- keypressed[key] = true
- if key == "q" then
- descendtimer = tick()
- elseif key == " " and not hum.Jump then
- jumptime = tick()
- elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
- reqrotx = key == "a" and math.pi*2 or -math.pi*2
- end
- ktime[key] = tick()
- end))
- ku = plr:GetMouse().KeyUp:connect(function(key)
- keysdown[key] = false
- if key == " " then
- descendtimer = tick()
- end
- end)
- function mid(a,b,c)
- return math.max(a,math.min(b,c or -a))
- end
- function bn(a)
- return a and 1 or 0
- end
- function gm(tar)
- local m = 0
- for i,v in pairs(tar:GetChildren()) do
- if v:IsA("BasePart") then
- m = m + v:GetMass()
- end
- m = m + gm(v)
- end
- return m
- end
- reqrotx = 0
- local grav = 196.2
- local con
- con = game:GetService("RunService").Stepped:connect(oc(function()
- --[[if not mod:IsDescendantOf(workspace) then
- pcall(function() kd:disconnect() end)
- pcall(function() ku:disconnect() end)
- bg:Destroy()
- bv:Destroy()
- con:disconnect()
- script:Destroy()
- return
- end]]
- local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
- local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
- if flying then
- local lfldir = fldir
- fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
- local lmoving = moving
- moving = fldir.magnitude > .1
- if lmoving and not moving then
- idledir = lfldir*Vector3.new(1,0,1)
- descendtimer = tick()
- end
- local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
- if moving and keysdown["0"] and lmoving then
- fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
- end
- local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
- local descending = (not moving and keysdown["q"] and not keysdown[" "])
- cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
- local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
- hum.PlatformStand = true
- bg.maxTorque = Vector3.new(1,1,1)*9e5
- local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
- bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
- reqrotx = reqrotx - reqrotx/10
- bv.maxForce = Vector3.new(1,1,1)*9e4*.5
- local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
- local ani = tickwave(1.5-anioff,1)
- bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
- vel = moving and cf.lookVector*flspd or Vector3.new()
- flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4))
- setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
- for i=1,4 do
- --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1)
- rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2)
- lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2)
- end
- local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
- if hit and down.Y < -.85 and tick()-flystart > 1 then
- flying = false
- hum.PlatformStand = false
- tor.Velocity = Vector3.new()
- end
- else
- bg.maxTorque = Vector3.new()
- bv.maxForce = Vector3.new()
- local ani = tickwave(walking and .8 or 4.5,1)
- setwings(idle,10)
- local x,y,z = fspd/160,uspd/700,sspd/900
- for i=1,4 do
- rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2)
- lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2)
- end
- if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
- vel = Vector3.new(0,50,0)
- bv.velocity = vel
- idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
- cf = tor.CFrame * CFrame.Angles(-.01,0,0)
- tor.CFrame = cf
- bg.cframe = cf
- flystart = tick()
- flying = true
- end
- end
- keypressed = {}
- end))
- end fly()
- --Bird Wings By Rosemarijohn2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement