local v_u_1 = {
["player"] = game.Players.LocalPlayer
}
v_u_1.gui = v_u_1.player.PlayerGui.ScreenGui
v_u_1.gui2 = v_u_1.player.PlayerGui.ScreenGui2
v_u_1.Scope = v_u_1.gui2.Scope
v_u_1.bgui = v_u_1.gui.Tycoon.BaseMenu
v_u_1.Health0 = 100
v_u_1.AlliedPlayers = {}
v_u_1.AimSensitivityMultiplier = 1
function v_u_1.f_ugs(p2)
-- upvalues: (copy) v_u_1
if _G.ostype == "cs" then
v_u_1.GuiService.SelectedObject = p2
end
end
if _G.ostype == "cs" then
v_u_1.gui.IgnoreGuiInset = true
v_u_1.player.PlayerGui.PlayerListGui.IgnoreGuiInset = true
end
function v_u_1.f_uis(p3, p4)
local v5 = p3:FindFirstChild("SelectedBorder")
if v5 == nil then
v5 = game.ReplicatedStorage.Assets.SelectedBorder:Clone()
v5.Parent = p3
for _, v6 in v5:GetChildren() do
if v6.ClassName == "Frame" then
v6.ZIndex = p3.ZIndex + 1
end
end
end
if p4 == "Check" then
return v5.Visible
elseif p4 == "Normal" then
v5.Visible = false
elseif p4 == "Selected" then
v5.Visible = true
end
end
function v_u_1.f_uisGC(p7, p8)
-- upvalues: (copy) v_u_1
local v9 = p8:GetChildren()
for v10 = 1, #v9 do
if v9[v10].Name == p7 then
v_u_1.f_uis(v9[v10], "Selected")
elseif v9[v10].Name ~= "Close" then
v_u_1.f_uis(v9[v10], "Normal")
end
end
end
function v_u_1.f_hlb2(p11, p12)
-- upvalues: (copy) v_u_1
v_u_1.f_uisGC(p11, p12)
local v13 = p12:GetChildren()
for v14 = 1, #v13 do
if (v13[v14].ClassName == "TextButton" or v13[v14]:FindFirstChild("Button")) and v13[v14].Name ~= "Menus" then
if v13[v14].Name == p11 then
v13[v14].BackgroundTransparency = 0
v13[v14].BackgroundColor3 = Color3.new(1, 1, 1)
elseif v13[v14].Name ~= "Close" then
v13[v14].BackgroundTransparency = 0.6
v13[v14].BackgroundColor3 = Color3.new(0.6392156862745098, 0.6352941176470588, 0.6470588235294118)
end
end
end
end
function v_u_1.f_hlf2(p15, p16, p17)
-- upvalues: (copy) v_u_1
local v18 = p16:GetChildren()
for v19 = 1, #v18 do
if v18[v19].ClassName == "Frame" or (v18[v19].ClassName == "ScrollingFrame" or v18[v19].ClassName == "ImageLabel") then
local v20 = v18[v19].Size.X.Scale
local v21
if _G.screentype == "ts s" then
v21 = v_u_1.sttings.TopButtonsSize.Y + v_u_1.sttings.ToolsSize.Y + 10 + v_u_1.sttings.topbaroffset
local v22 = v20 < 0.8 and 0.8 or v20
v18[v19].Size = UDim2.new(v22, v18[v19].Size.X.Offset, 1, -v21)
else
v21 = 0
end
local v23 = UDim2.new(-v18[v19].Size.X.Scale, -5, (1 - v18[v19].Size.Y.Scale) / 2, v_u_1.sttings.topbaroffset + v21 / 2)
local v24 = UDim2.new((1 - v18[v19].Size.X.Scale) / 2, 0, (1 - v18[v19].Size.Y.Scale) / 2, v_u_1.sttings.topbaroffset + v21 / 2)
local v25 = v_u_1.gui.Buttons.Menus:FindFirstChild(v18[v19].Name)
if v25 and v25:FindFirstChild("State") == nil then
v25 = nil
end
if v18[v19].Name == p15 then
v18[v19].Visible = true
if p17 == nil then
v18[v19].Position = v23
v18[v19]:TweenPosition(v24, "Out", "Quad", 1, true)
end
if v25 then
v25.State.Value = "Visible"
end
else
if p17 == nil then
v18[v19]:TweenPosition(v23, "Out", "Quad", 1, true)
else
v18[v19].Visible = false
end
if v25 then
v25.State.Value = "Hidden"
end
end
if v18[v19].Name == "Event" then
local v26 = v18[v19].ScrollingFrame1:FindFirstChild("LocalScriptBattlepass")
if v26 then
v26.Enabled = v18[v19].Visible
end
end
end
end
end
function v_u_1.f_vpc(p27)
local v28, v29, v30
if p27.Name == "Head" then
v28 = 2
v29 = 1.2
v30 = 1.2
elseif p27.Name == "HumanoidRootPart" then
v28 = 2
v29 = 2
v30 = 1
elseif p27.Name == "LeftHand" or p27.Name == "RightHand" then
v28 = 1
v29 = 1
v30 = 1
elseif p27.Name == "LeftLowerArm" or p27.Name == "RightLowerArm" then
v28 = 1.052
v29 = 1.2
v30 = 1
elseif p27.Name == "LeftUpperArm" or p27.Name == "RightUpperArm" then
v28 = 1.169
v29 = 1.2
v30 = 1
elseif p27.Name == "LeftFoot" or p27.Name == "RightFoot" then
v28 = 1.2
v29 = 0.7
v30 = 1.25
elseif p27.Name == "LeftLowerLeg" or p27.Name == "RightLowerLeg" then
v28 = 1
v29 = 1.193
v30 = 1
elseif p27.Name == "LeftUpperLeg" or p27.Name == "RightUpperLeg" then
v28 = 1
v29 = 1.217
v30 = 1
elseif p27.Name == "LowerTorso" then
v28 = 2
v29 = 1.05
v30 = 1.13
else
if p27.Name ~= "UpperTorso" then
return
end
v28 = 2.2
v29 = 1.9
v30 = 1.2
end
if p27.Size.X > v28 * 1.4 or (p27.Size.Y > v29 * 1.4 or p27.Size.Z > v30 * 1.4) then
game.ReplicatedStorage.RemoteEvent:FireServer("K", p27, p27.Size)
end
end
function v_u_1.f_ssf(p_u_31)
-- upvalues: (copy) v_u_1
local _, _ = pcall(function()
-- upvalues: (copy) p_u_31, (ref) v_u_1
p_u_31:WaitForChild("StatsLoaded", 120)
if p_u_31.Name ~= v_u_1.player.Name and p_u_31.Parent then
local v32 = p_u_31:GetChildren()
for v33 = 1, #v32 do
if v32[v33].Name == "Settings" then
local v34 = v32[v33]:GetChildren()
for v35 = 1, #v34 do
v34[v35]:Destroy()
end
elseif v32[v33].ClassName ~= "IntValue" and (v32[v33].ClassName ~= "NumberValue" and (v32[v33].ClassName ~= "StringValue" and v32[v33].ClassName ~= "BoolValue")) then
if _G.StatNames == nil then
v32[v33]:Destroy()
elseif _G.StatNames[v32[v33].Name] == nil then
v32[v33]:Destroy()
end
end
end
end
end)
end
function v_u_1.f_cvpi(p36, p37, p38, _)
-- upvalues: (copy) v_u_1
local v39 = p37.Position
if p37.KeyCode == Enum.KeyCode.Thumbstick2 then
if p36 == "Ended" then
v39 = Vector2.new()
else
v39 = Vector2.new(v39.X * 343, -v39.Y * 400)
end
end
if p36 == "Changed" then
local v40
if p38 == true then
v40 = Vector2.new(v39.X, v39.Y) - v_u_1.gui.MainMenu.CameraFrame.AbsolutePosition
else
v40 = Vector2.new(v39.X, v39.Y)
end
v_u_1.ModelRotation.Pos1 = v40 - v_u_1.ModelRotation.Pos0
local v41 = v_u_1.ModelRotation.Pos1.X / 2
local v42 = v_u_1.ModelRotation.Pos1.Y / 2
local v43 = v41 > 180 and 180 or (v41 < -180 and -180 or v41)
local v44 = v42 > 180 and 180 or (v42 < -180 and -180 or v42)
local _ = v_u_1.gui.MainMenu.CameraFrame.Frame.ViewportFrame.Size.X.Offset
local _ = v_u_1.gui.MainMenu.CameraFrame.Frame.ViewportFrame.Size.Y.Offset
if v_u_1.tName ~= nil and (v_u_1.MenuRoom.Model.Name ~= "Case" and v_u_1.MenuRoom.Model.Name ~= "Mannequin") then
v_u_1.ModelRotation.DesiredY = v44
v_u_1.ModelRotation.Y = v44
end
v_u_1.ModelRotation.DesiredX = v43
v_u_1.ModelRotation.X = v43
local v45 = CFrame.Angles
local v46 = v_u_1.ModelRotation.DesiredX
local v47 = math.rad(v46)
local v48 = v_u_1.ModelRotation.DesiredY
local v49 = v45(0, v47, (math.rad(v48)))
if v_u_1.MenuRoom.Model and v_u_1.MenuRoom.Model.PrimaryPart then
v_u_1.MenuRoom.Model:PivotTo(v_u_1.MenuRoom.PivotCF * v49)
return
end
else
if p36 == "Began" then
if p38 == true then
v_u_1.ModelRotation.Pos0 = Vector2.new(v39.X, v39.Y) - v_u_1.gui.MainMenu.CameraFrame.AbsolutePosition
v_u_1.ModelRotation.Rotate = "gui"
else
v_u_1.ModelRotation.Pos0 = Vector2.new(v39.X, v39.Y)
v_u_1.ModelRotation.Rotate = true
end
v_u_1.ModelRotation.DesiredX = 0
v_u_1.ModelRotation.DesiredY = 0
return
end
if p36 == "Ended" then
v_u_1.ModelRotation.Pos0 = Vector2.new()
v_u_1.ModelRotation.DesiredX = 0
v_u_1.ModelRotation.DesiredY = 0
v_u_1.ModelRotation.Rotate = false
end
end
end
function v_u_1.f_gunVP(p50, p51)
-- upvalues: (copy) v_u_1
v_u_1.gui.MainMenu.CameraFrame.Visible = p50
if p50 == true then
v_u_1.gui.StatCard.Visible = false
v_u_1.gui.MainMenu.CameraFrame.TextLabel.Text = ""
else
if v_u_1.gui.MainMenu.CameraFrame.CaseGui.Visible == true then
v_u_1.f_fe("Case Opened")
end
v_u_1.gui.MainMenu.CameraFrame.CaseGui.Visible = false
v_u_1.gui.MainMenu.CameraFrame.CaseGuiMultiple.Visible = false
v_u_1.gui.MainMenu.CameraFrame.Rewards.Visible = false
end
local v52 = v_u_1.gui.MainMenu.Loadout.Buttons.Position.Y.Offset + v_u_1.gui.MainMenu.Loadout.Buttons.Size.Y.Offset + v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Size.Y.Offset + 5
local v53 = -(v_u_1.gui.MainMenu.Loadout.Buttons.Position.Y.Offset + v_u_1.gui.MainMenu.Loadout.Buttons.Size.Y.Offset + v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Size.Y.Offset + 10)
if p51 == "Avatar" then
local v54 = v_u_1.gui.MainMenu.Bar1.Position.Y.Offset + v_u_1.gui.MainMenu.Bar1.Size.Y.Offset + 5
local v55 = -(v_u_1.gui.MainMenu.Bar1.Position.Y.Offset + v_u_1.gui.MainMenu.Bar1.Size.Y.Offset + 10)
v_u_1.gui.MainMenu.CameraFrame.Position = UDim2.new(0, 0, 0, v54)
v_u_1.gui.MainMenu.CameraFrame.Size = UDim2.new(0.5, 0, 1, v55)
v_u_1.gui.MainMenu.CameraFrame.Frame.Size = UDim2.new(1, 0, 0.75, 0)
v_u_1.gui.MainMenu.CameraFrame.BackgroundTransparency = 0
v_u_1.mannequin.Parent = v_u_1.gui.MainMenu.CameraFrame.Frame.ViewportFrame.WorldModel
if v_u_1.MenuRoom.Model and v_u_1.MenuRoom.Model.Name ~= "Mannequin" then
v_u_1.MenuRoom.Model:Destroy()
end
v_u_1.MenuRoom.Model = v_u_1.mannequin
local _, _ = v_u_1.MenuRoom.Model:GetBoundingBox()
v_u_1.MenuRoom.DefaultCF = v_u_1.MenuRoom.Model.PrimaryPart.CFrame
v_u_1.MenuRoom.PivotCF = v_u_1.MenuRoom.Model.PrimaryPart.CFrame
v_u_1.mannequin:PivotTo(v_u_1.MenuRoom.PivotCF)
v_u_1.f_upd_vpf(v_u_1.mannequin)
return
else
v_u_1.gui.MainMenu.CameraFrame.Frame.Size = UDim2.new(1, 0, 1, 0)
v_u_1.gui.MainMenu.CameraFrame.ImageLabel1.Visible = false
v_u_1.gui.MainMenu.CameraFrame.ImageLabel2.Visible = false
v_u_1.gui.MainMenu.CameraFrame.ImageLabel3.Visible = false
if p51 == "Modify" then
v_u_1.gui.MainMenu.CameraFrame.Position = UDim2.new(0, 0, 0, v52)
v_u_1.gui.MainMenu.CameraFrame.Size = UDim2.new(0.5, 0, 1, v53)
v_u_1.gui.MainMenu.CameraFrame.BackgroundTransparency = 0
return
elseif p51 == "Melee" then
local v56 = v_u_1.gui.MainMenu.Loadout.Buttons.Position.Y.Offset + v_u_1.gui.MainMenu.Loadout.Buttons.Size.Y.Offset + 5
local v57 = -(v_u_1.gui.MainMenu.Loadout.Buttons.Position.Y.Offset + v_u_1.gui.MainMenu.Loadout.Buttons.Size.Y.Offset + 10)
v_u_1.gui.MainMenu.CameraFrame.Position = UDim2.new(0, 0, 0, v56)
v_u_1.gui.MainMenu.CameraFrame.Size = UDim2.new(0.5, 0, 1, v57)
v_u_1.gui.MainMenu.CameraFrame.BackgroundTransparency = 0
return
elseif p51 == "Main" then
v_u_1.gui.MainMenu.CameraFrame.Position = UDim2.new(0.2, 0, 0, v52)
v_u_1.gui.MainMenu.CameraFrame.Size = UDim2.new(0.6, 0, 1, v53)
v_u_1.gui.MainMenu.CameraFrame.BackgroundTransparency = 1
v_u_1.f_wg(v_u_1.mala[v_u_1.customisation.Weapon], true)
elseif p51 == "Cases" then
local v58 = v_u_1.gui.MainMenu.Bar1.Position.Y.Offset + v_u_1.gui.MainMenu.Bar1.Size.Y.Offset + 5
local v59 = -(v_u_1.gui.MainMenu.Bar1.Position.Y.Offset + v_u_1.gui.MainMenu.Bar1.Size.Y.Offset + 10)
v_u_1.gui.MainMenu.CameraFrame.Position = UDim2.new(0, 0, 0, v58)
v_u_1.gui.MainMenu.CameraFrame.Size = UDim2.new(0.5, 0, 1, v59)
v_u_1.gui.MainMenu.CameraFrame.BackgroundTransparency = 0
v_u_1.sttings.ViewPortSubject = "Cases"
v_u_1.f_updvi()
v_u_1.f_showcs("Element 115 Case")
end
end
end
function v_u_1.f_showcs(p60)
-- upvalues: (copy) v_u_1
if v_u_1.MenuRoom.Model then
if v_u_1.MenuRoom.Model.Name == "Mannequin" then
v_u_1.mannequin.Parent = workspace.MenuRoom
v_u_1.MenuRoom.Model = nil
else
v_u_1.MenuRoom.Model:Destroy()
end
end
local v61 = game.ReplicatedStorage.Assets.Case:Clone()
v61.Color.Material = v_u_1.casearray[p60].Material
v61.Color.BrickColor = v_u_1.casearray[p60].BrickColour
v61.Color1.Material = v_u_1.casearray[p60].Material
v61.Color1.BrickColor = v_u_1.casearray[p60].BrickColour
v61.PrimaryPart = v61.Pivot
v61.Parent = v_u_1.gui.MainMenu.CameraFrame.Frame.ViewportFrame.WorldModel
v_u_1.MenuRoom.Model = v61
local v62, _ = v_u_1.MenuRoom.Model:GetBoundingBox()
v_u_1.MenuRoom.Model.PrimaryPart.CFrame = v62
v_u_1.MenuRoom.DefaultCF = v_u_1.MenuRoom.Model.PrimaryPart.CFrame
v_u_1.MenuRoom.PivotCF = v_u_1.MenuRoom.Model.PrimaryPart.CFrame
v61:PivotTo(v62)
v_u_1.f_upd_vpf(v61)
end
function v_u_1.f_upd_vpf(p63)
-- upvalues: (copy) v_u_1
local v64 = v_u_1.gui.MainMenu.CameraFrame.Frame.ViewportFrame
local v65 = v_u_1.viewportCam
v64.CurrentCamera = v65
if p63:FindFirstChild("HumanoidRootPart") then
p63.PrimaryPart = p63.HumanoidRootPart
elseif p63:FindFirstChild("Pivot") then
p63.PrimaryPart = p63.Pivot
else
p63.PrimaryPart = p63.Trigger
end
local v66, v67 = p63:GetBoundingBox()
local v68
if p63.Name == "Mannequin" or p63.Name == "Case" then
v68 = CFrame.Angles(0, 3.141592653589793, 0)
else
v68 = CFrame.Angles(0, -1.5707963267948966, 0)
end
local v69 = v68:VectorToObjectSpace(v67)
local v70 = v69.X
local v71 = math.abs(v70)
local v72 = v69.Y
local v73 = math.abs(v72)
local v74 = v69.Z
local v75 = math.abs(v74)
local v76 = v65.FieldOfView / 2
local v77 = math.rad(v76)
local v78 = v73 / (math.tan(v77) * 2) + v75 / 2
local v79 = v64.Parent.AbsoluteSize.X
local v80 = v64.Parent.AbsoluteSize.Y
local v81 = v73 < v71 and v79 and v79 or v79 * (v71 / v73)
local v82 = v71 < v73 and v80 and v80 or v79 * (v73 / v71)
if v_u_1.tName and v_u_1.weaponclasses[v_u_1.tName].Type == "Melee" then
v64.Size = UDim2.new(1, 0, 0, v82)
v64.Position = UDim2.new(0, 0, 0.5, -v82 / 2)
else
v64.Size = UDim2.new(0, v81, 0, v82)
v64.Position = UDim2.new(0.5, -v81 / 2, 0.5, -v82 / 2)
end
v65.CFrame = v66 * v68 * CFrame.new(0, 0, v78)
end
function v_u_1.f_acb(p83)
-- upvalues: (copy) v_u_1
if p83 == "Reset" then
for v84 = 1, #v_u_1.buttons.weaponclassframe do
v_u_1.buttons.weaponclassframe[v84].Visible = false
end
v_u_1.gui.MainMenu.Loadout.Menu["Attachment Classes Buttons"].Visible = false
v_u_1.upd_acf(false)
for v85 = 1, #v_u_1.attachmentbuttons.classesbuttons do
v_u_1.f_uis(v_u_1.attachmentbuttons.classesbuttons[v85], "Normal")
end
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Visible = false
v_u_1.gui.StatCard.Visible = false
return
else
v_u_1.f_psl2("Click")
for v86 = 1, #v_u_1.buttons.weaponclassframe do
v_u_1.buttons.weaponclassframe[v86].Visible = false
end
v_u_1.upd_acf(false)
for v87 = 1, #v_u_1.attachmentbuttons.classesbuttons do
v_u_1.f_uis(v_u_1.attachmentbuttons.classesbuttons[v87], "Normal")
end
v_u_1.gui.MainMenu.Loadout.Menu["Attachment Classes Buttons"].Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Visible = false
v_u_1.f_gunVP(false)
if v_u_1.f_uis(p83, "Check") == true then
v_u_1.f_uis(p83, "Normal")
v_u_1.gui.MainMenu.Loadout.Menu.Tiers[p83.Name].Visible = false
else
v_u_1.f_uis(p83, "Selected")
for v88 = 1, #v_u_1.buttons.tierbuttons do
if v_u_1.buttons.tierbuttons[v88] ~= p83 then
v_u_1.f_uis(v_u_1.buttons.tierbuttons[v88], "Normal")
end
end
for v89 = 1, #v_u_1.buttons.weaponclassframe do
v_u_1.buttons.weaponclassframe[v89].Visible = false
end
v_u_1.gui.MainMenu.Loadout.Menu.Tiers[p83.Name].Visible = true
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Visible = false
local v90 = false
local v91, v92
if p83.Name == "Event Tier" then
v90 = true
if p83.Text == "Premiums" then
v91 = {
{
["Text"] = "These weapons earn +50% money and experience"
},
{
["Text"] = "They are as strong as tier 9 weapons"
},
{
["Text"] = "They do not unlock tiers 1-11"
}
}
v92 = {
["Locked"] = false,
["Text"] = "PREMIUM WEAPONS"
}
else
v91 = {
{
["Text"] = "Level up the battlepass or use Gold to get them"
},
{
["Text"] = "Press the \'Event\' button at the top of the screen"
},
{
["Text"] = "They do not unlock tiers 1-11"
}
}
v92 = {
["Locked"] = false,
["Text"] = "EVENT WEAPONS"
}
end
else
local v93 = string.gsub(p83.Name, "%D", "")
local v94 = tonumber(v93)
v92 = {
["Locked"] = true,
["Text"] = "TIER " .. tostring(v94) .. " IS LOCKED"
}
v91 = {}
if v_u_1._stats.TierUnlocked.Value < v94 then
local v95 = {}
local v96 = v94 - 1
v95.Text = "You do not own all of tier " .. tostring(v96)
v95.Locked = true
table.insert(v91, v95)
v90 = true
end
if v_u_1.gametype == "Tycoon" then
local v97 = v_u_1.weaponmodule.MinBaseLevelPerTier[v94]
local v98 = v_u_1.weaponmodule.MinRebirthsPerTier[v94]
if v97 then
if v_u_1._stats.BaseLevel.Value < v97 and v_u_1._stats.Rebirths.Value == 0 then
local v99 = {
["Text"] = "Base is not level " .. tostring(v97) .. "+",
["Locked"] = true
}
table.insert(v91, v99)
v90 = true
elseif v_u_1._stats.Rebirths.Value > 0 then
local v100 = {
["Text"] = "Base was level " .. tostring(v97) .. " before tycoon rebirth",
["Locked"] = false
}
table.insert(v91, v100)
else
local v101 = {
["Text"] = "Base is level " .. tostring(v97),
["Locked"] = false
}
table.insert(v91, v101)
end
end
if v98 then
if v_u_1._stats.Rebirths.Value < v98 then
local v102 = {
["Text"] = tostring(v98) .. " tycoon rebirths",
["Locked"] = true
}
table.insert(v91, v102)
v90 = true
else
local v103 = {
["Text"] = tostring(v98) .. " tycoon rebirths",
["Locked"] = false
}
table.insert(v91, v103)
end
end
end
end
if v90 == true then
local v104 = 0
for v105 = 1, 3 do
local v106 = 1
local v107 = v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Frame:FindFirstChild("TextLabel" .. tostring(v105))
if v107 and (v91[v105] and v91[v105].Text) then
v104 = v104 + 1
v107.Text = v91[v105].Text
if v91[v105].Locked == true then
v107.TextLabel.Text = "\226\157\140"
v106 = 0.8
elseif v91[v105].Locked == false then
v107.TextLabel.Text = "\226\156\133"
v106 = 0.8
else
v107.TextLabel.Text = ""
end
v107.Size = UDim2.new(v106, -10, 0, 0)
else
v107.Text = ""
v107.TextLabel.Text = ""
end
end
for v108 = v104, 1, -1 do
local v109 = v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Frame:FindFirstChild("TextLabel" .. tostring(v108))
if v109 then
v109.Size = UDim2.new(v109.Size.X.Scale, v109.Size.X.Offset, 1 / v104, v109.Size.Y.Offset)
v109.Position = UDim2.new(0, 5, 1 - 1 / v104 * v108, 0)
end
end
local v110 = v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Bar.TextLabel
v110.Text = v92.Text
if v92.Locked == true then
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Bar.ImageLabelLock.Visible = true
v110.Size = UDim2.new(0.8, v110.Size.X.Offset, v110.Size.Y.Scale, v110.Size.Y.Offset)
elseif v92.Locked == false then
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Bar.ImageLabelLock.Visible = false
v110.Size = UDim2.new(1, v110.Size.X.Offset, v110.Size.Y.Scale, v110.Size.Y.Offset)
end
local v111 = {
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Bar.TextLabel,
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Frame.TextLabel1,
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Frame.TextLabel2,
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Frame.TextLabel3
}
local v112 = v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Frame:GetChildren()
for v113 = 1, #v112 do
if (v112[v113].ClassName == "TextLabel" or v112[v113].ClassName == "TextButton") and v112[v113].Text ~= "" then
local v114 = v112[v113]
table.insert(v111, v114)
end
end
v_u_1.f_ltfs(v111)
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Visible = true
end
end
end
end
function v_u_1.f_cil(p115, p116)
p116.TextXAlignment = Enum.TextXAlignment.Left
local v117
if p116:FindFirstChild("ImageLabel") then
v117 = p116.ImageLabel
v117.Image = p115
else
v117 = Instance.new("ImageLabel", p116)
v117.BackgroundTransparency = 1
v117.Size = UDim2.new(0, p116.Size.Y.Offset, 0, p116.Size.Y.Offset)
v117.Position = UDim2.new(1, -p116.Size.Y.Offset, 0, 0)
v117.Image = p115
v117.ZIndex = 10
end
v117.ImageColor3 = Color3.new(0, 0, 0)
end
function v_u_1.f_harch(p118)
-- upvalues: (copy) v_u_1
if v_u_1.weaponclasses[p118.Name].Tier == 1 or v_u_1.weaponclasses[p118.Name].TierName == "Event Tier" then
return true
end
if v_u_1._stats.TierUnlocked.Value < v_u_1.weaponclasses[p118.Name].Tier then
return false
end
if v_u_1.gametype == "Tycoon" then
local v119 = v_u_1.weaponmodule.MinBaseLevelPerTier[v_u_1.weaponclasses[p118.Name].Tier]
local v120 = v_u_1.weaponmodule.MinRebirthsPerTier[v_u_1.weaponclasses[p118.Name].Tier]
if v119 and (v_u_1._stats.BaseLevel.Value < v119 and v_u_1._stats.Rebirths.Value == 0) then
return false
end
if v120 and v_u_1._stats.Rebirths.Value < v120 then
return false
end
end
return true
end
function v_u_1.f_updo(p121)
-- upvalues: (copy) v_u_1
for v122 = 1, #v_u_1.buttons.weaponbuttons do
if v_u_1.f_osg(v_u_1.buttons.weaponbuttons[v122].Name) == true then
v_u_1.buttons.weaponbuttons[v122].BackgroundTransparency = 0
v_u_1.buttons.weaponbuttons[v122].Active = true
v_u_1.f_cil("", v_u_1.buttons.weaponbuttons[v122])
elseif v_u_1.f_harch(v_u_1.buttons.weaponbuttons[v122]) then
v_u_1.buttons.weaponbuttons[v122].BackgroundTransparency = 0.25
v_u_1.f_cil("rbxassetid://1505620351", v_u_1.buttons.weaponbuttons[v122])
else
v_u_1.buttons.weaponbuttons[v122].BackgroundTransparency = 0.75
v_u_1.f_cil("rbxassetid://1507348057", v_u_1.buttons.weaponbuttons[v122])
end
end
if p121 == true then
for v123 = 1, #v_u_1.buttons.tierbuttons do
if v_u_1.buttons.tierbuttons[v123].Visible == true and v_u_1.buttons.tierbuttons[v123].Name ~= "Event Tier" then
local v124 = string.gsub(v_u_1.buttons.tierbuttons[v123].Name, "%D", "")
local v125 = tonumber(v124)
local v126 = v_u_1._stats.TierUnlocked.Value < v125
if v_u_1.gametype == "Tycoon" and v126 == false then
local v127 = v_u_1.weaponmodule.MinBaseLevelPerTier[v125]
local v128 = v_u_1.weaponmodule.MinRebirthsPerTier[v125]
if v127 then
v126 = v_u_1._stats.BaseLevel.Value < v127 and v_u_1._stats.Rebirths.Value == 0
end
if v128 and v126 == false then
v126 = v_u_1._stats.Rebirths.Value < v128
end
end
v_u_1.buttons.tierbuttons[v123].ImageLabelLock.Visible = v126
end
end
end
end
function v_u_1.f_updwl()
-- upvalues: (copy) v_u_1
local v129 = v_u_1.gui.MainMenu.Loadout.Menu.Tiers:GetChildren()
for v130 = 1, #v129 do
local v131 = v129[v130]:GetChildren()
for v132 = 1, #v131 do
local v133 = v131[v132]:GetChildren()
for v134 = 1, #v133 do
local v135 = nil
if v_u_1._stats:FindFirstChild("Owned") then
if v_u_1._stats.Owned:FindFirstChild(v133[v134].Name) and v_u_1._stats.Owned[v133[v134].Name]:FindFirstChild("Level") then
v135 = v_u_1._stats.Owned[v133[v134].Name].Level.Value
end
if v_u_1._stats.Owned:FindFirstChild("PRESTIGED_" .. v133[v134].Name) and v_u_1._stats.Owned["PRESTIGED_" .. v133[v134].Name]:FindFirstChild("Level") then
v135 = v_u_1._stats.Owned["PRESTIGED_" .. v133[v134].Name].Level.Value
end
if v135 then
v133[v134].Level.Visible = true
v133[v134].Level.Text = "Level " .. v135
else
v133[v134].Level.Visible = false
end
end
end
end
end
end
function v_u_1.f_resetg()
-- upvalues: (copy) v_u_1
v_u_1.f_acb("Reset")
v_u_1.Scope.Visible = false
v_u_1.crosshair.Visible = v_u_1.deployed
v_u_1.gui.Notifications.Armory.Visible = false
v_u_1.gui.MainMenu.Character.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Melee.Visible = false
v_u_1.gui.MainMenu.Cases.Visible = false
v_u_1.gui.MainMenu.Prestige.Visible = false
v_u_1.gui.Spectate.Visible = false
local v136 = v_u_1.gui.MainMenu.Bar1:GetChildren()
for v137 = 1, #v136 do
v136[v137].Visible = v136[v137].Name ~= "Back"
end
local v138 = v_u_1.gui.MainMenu:GetChildren()
for v139 = 1, #v138 do
v138[v139].Visible = v138[v139].Name == "Bar1"
end
v_u_1.f_gunVP(false)
v_u_1.gui.MainMenu.CameraFrame.CaseGui.Frame:ClearAllChildren()
v_u_1.gui.MainMenu.CameraFrame.CaseGuiMultiple.Frame:ClearAllChildren()
end
function v_u_1.f_updostype()
-- upvalues: (copy) v_u_1
if _G.armory == true or (v_u_1.deployed == false or _G.ostype ~= "ts") then
v_u_1.player.PlayerGui.TouchControls.Enabled = false
else
v_u_1.player.PlayerGui.TouchControls.Enabled = true
end
end
function v_u_1.ActionButtonColour(p140, p141)
-- upvalues: (copy) v_u_1
local v142 = v_u_1.tgui:GetChildren()
for v143 = 1, #v142 do
if v142[v143].Name == p140 then
v142[v143].ImageColor3 = p141
end
end
end
function v_u_1.f_shcs(p144)
-- upvalues: (copy) v_u_1
v_u_1.gui.MainMenu.CameraFrame.Rewards.Visible = true
v_u_1.gui.MainMenu.CameraFrame.Rewards.TextLabel5.Text = ""
v_u_1.gui.MainMenu.CameraFrame.Rewards.TextLabel5.TextLabel.Text = ""
v_u_1.gui.MainMenu.CameraFrame.Rewards.TextLabel6.Text = ""
v_u_1.gui.MainMenu.CameraFrame.Rewards.TextLabel6.TextLabel.Text = ""
local v145 = nil
for v146 = 1, #v_u_1.casemodule do
if v_u_1.casemodule[v146].Name == p144 then
v145 = v_u_1.casemodule[v146]
break
end
end
local v147 = 1
for v148 = 1, #v145.Rewards do
if v_u_1.gui.MainMenu.CameraFrame.Rewards:FindFirstChild("TextLabel" .. tostring(v148)) then
v147 = v147 - v145.Rewards[v148][1]
local v149 = v_u_1.gui.MainMenu.CameraFrame.Rewards["TextLabel" .. tostring(v148)].TextLabel
if v145.Rewards[v148][1] == 0 then
local v150 = v_u_1.gui.MainMenu.CameraFrame.Rewards["TextLabel" .. tostring(v148)]
local v151 = v147 * 1000 + 0.5
local v152 = math.floor(v151) / 10
v150.Text = tostring(v152) .. "%"
else
local v153 = v_u_1.gui.MainMenu.CameraFrame.Rewards["TextLabel" .. tostring(v148)]
local v154 = v145.Rewards[v148][1] * 100
v153.Text = tostring(v154) .. "%"
end
v149.Text = v145.Rewards[v148][2]
if v145.Rewards[v148][2] == "Melee" then
v149.TextColor3 = BrickColor.new("Royal purple").Color
elseif v145.Rewards[v148][2] == "Legendary Skin" then
v149.TextColor3 = BrickColor.new("Neon orange").Color
elseif v145.Rewards[v148][2] == "Epic Skin" then
v149.TextColor3 = BrickColor.new("Bright blue").Color
elseif v145.Rewards[v148][2] == "Rare Skin" then
v149.TextColor3 = BrickColor.new("Bright red").Color
elseif v145.Rewards[v148][2] == "Uncommon Skin" then
v149.TextColor3 = BrickColor.new("Copper").Color
elseif v145.Rewards[v148][2] == "Common Skin" then
v149.TextColor3 = BrickColor.new("Dark stone grey").Color
else
local v155 = v145.Rewards[v148][2]
if string.sub(v155, 1, 1) == "$" then
v149.TextColor3 = BrickColor.new("Lime green").Color
elseif string.find(v145.Rewards[v148][2], "Points") == nil then
v149.TextColor3 = v_u_1.casearray[v145.Rewards[v148][2]].BrickColour.Color
else
v149.TextColor3 = BrickColor.new("Pearl").Color
end
end
end
end
end
function v_u_1.f_aps(p156, p157)
-- upvalues: (copy) v_u_1
if p156 then
local v158 = v_u_1.customisation.Module.Stats[p156]
if v158 then
if p157 == 1 and v_u_1.customisation.Colour1[v_u_1.customisation.Weapon] then
if v158.Material then
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Material = v158.Material
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Texture = nil
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].ShowColour = false
elseif v158.Texture then
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Material = nil
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Texture = v158.Texture
local v159 = v_u_1.customisation.Colour1[v_u_1.customisation.Weapon]
local v160 = v158.Colours
if v160 then
v160 = v158.CustomColour3 == nil
end
v159.ShowColour = v160
elseif v158.BrickColour then
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Colour = v158.BrickColour.Number
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Texture = nil
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Material = nil
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Skin = nil
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].ShowColour = false
end
if v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].ShowColour == false and v158.BrickColour == nil then
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Colour = nil
end
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Skin = p156
v_u_1.f_fe("Update skins", v_u_1.mala[v_u_1.customisation.Weapon], {
["Colour1"] = {
["Colour"] = v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Colour,
["Skin"] = p156
}
})
return
end
if p157 == 2 and v_u_1.customisation.Colour2[v_u_1.customisation.Weapon] then
if v158.Material then
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Material = v158.Material
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Texture = nil
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].ShowColour = false
elseif v158.Texture then
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Material = nil
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Texture = v158.Texture
local v161 = v_u_1.customisation.Colour2[v_u_1.customisation.Weapon]
local v162 = v158.Colours
if v162 then
v162 = v158.CustomColour3 == nil
end
v161.ShowColour = v162
elseif v158.BrickColour then
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Colour = v158.BrickColour.Number
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Texture = nil
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Material = nil
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Skin = nil
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].ShowColour = false
end
if v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].ShowColour == false and v158.BrickColour == nil then
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Colour = nil
end
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Skin = p156
v_u_1.f_fe("Update skins", v_u_1.mala[v_u_1.customisation.Weapon], {
["Colour2"] = {
["Colour"] = v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Colour,
["Skin"] = p156
}
})
return
end
end
else
if p157 == 1 and v_u_1.customisation.Colour1[v_u_1.customisation.Weapon] then
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Texture = nil
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Material = nil
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Skin = nil
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].ShowColour = false
v_u_1.f_fe("Update skins", v_u_1.mala[v_u_1.customisation.Weapon], {
["Colour1"] = {
["Colour"] = v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Colour,
["Skin"] = nil
}
})
return
end
if p157 == 2 and v_u_1.customisation.Colour2[v_u_1.customisation.Weapon] then
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Texture = nil
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Material = nil
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Skin = nil
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].ShowColour = false
v_u_1.f_fe("Update skins", v_u_1.mala[v_u_1.customisation.Weapon], {
["Colour2"] = {
["Colour"] = v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Colour,
["Skin"] = nil
}
})
end
end
end
function v_u_1.f_updos()
-- upvalues: (copy) v_u_1
if v_u_1._stats and (v_u_1._stats:FindFirstChild("Owned") and v_u_1._stats:FindFirstChild("StatsLoaded")) then
if v_u_1._stats.Owned:FindFirstChild("Skins_Universal") then
for v163 = 1, #v_u_1.buttons.skinbuttons do
local v164 = v_u_1.customisation.Module.Stats[v_u_1.buttons.skinbuttons[v163].Name]
local v165 = v_u_1._stats.Owned.Skins_Universal:FindFirstChild(v_u_1.buttons.skinbuttons[v163].Name) ~= nil
local v166 = false
local v167
if v164.Level == nil then
v167 = false
else
v167 = v_u_1._stats.Level.Value >= v164.Level
end
local v168
if v164.USSF == nil then
v168 = false
else
v168 = v_u_1._stats.Rank.Value >= 1
end
if v_u_1.mala[v_u_1.customisation.Weapon] then
local v169 = v_u_1._stats.Owned:FindFirstChild(v_u_1.mala[v_u_1.customisation.Weapon])
if v169 then
v166 = v169.Skins_Weapon:FindFirstChild(v_u_1.buttons.skinbuttons[v163].Name) ~= nil
else
warn("No weapon folder in Stats.Owned for", v_u_1.customisation.Weapon)
end
end
if v165 == true then
v_u_1.buttons.skinbuttons[v163].Lock.Visible = false
v_u_1.buttons.skinbuttons[v163].Requirement2.Visible = true
v_u_1.buttons.skinbuttons[v163].Requirement2.TextColor3 = Color3.new(1, 1, 1)
v_u_1.buttons.skinbuttons[v163].Requirement2.Text = "Universal"
elseif v166 == true then
v_u_1.buttons.skinbuttons[v163].Lock.Visible = false
v_u_1.buttons.skinbuttons[v163].Requirement2.Visible = true
v_u_1.buttons.skinbuttons[v163].Requirement2.TextColor3 = Color3.new(1, 1, 1)
local v170 = v_u_1.buttons.skinbuttons[v163].Requirement2
local v171 = v_u_1.mala[v_u_1.customisation.Weapon]
v170.Text = tostring(v171)
elseif v167 == true then
v_u_1.buttons.skinbuttons[v163].Lock.Visible = false
v_u_1.buttons.skinbuttons[v163].Requirement2.Visible = false
elseif v168 == true then
v_u_1.buttons.skinbuttons[v163].Lock.Visible = false
v_u_1.buttons.skinbuttons[v163].Requirement2.Visible = false
else
v_u_1.buttons.skinbuttons[v163].Lock.Visible = true
end
if v_u_1.buttons.skinbuttons[v163].Parent.Name ~= "ColourSpectrum" then
if v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Owned.Visible == true and (v165 == true or (v166 == true or (v167 == true or v168 == true))) then
v_u_1.buttons.skinbuttons[v163].Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Owned
elseif v164.Prestige == nil and (v164.BattlepassSkin == nil and v164.Category ~= "Special") then
if v164.Level == nil and (v164.USSF == nil and v164.Category ~= "Free") then
v_u_1.buttons.skinbuttons[v163].Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Store
else
v_u_1.buttons.skinbuttons[v163].Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Free
end
else
v_u_1.buttons.skinbuttons[v163].Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Special
end
end
end
return
end
warn("Owned.Skins_Universal nil 1")
end
end
function v_u_1.f_psp(p172)
-- upvalues: (copy) v_u_1
local v173 = v_u_1.customisation.Module.Stats[p172]
if not v173 then
warn("No Skins.Stats for skin", p172)
end
v_u_1.gui.Notifications.Buy.Visible = true
v_u_1.gui.Notifications.Buy.TextLabel2.Target.Value = p172
v_u_1.gui.Notifications.Buy.TextLabel1.Text = "Skin: " .. p172 .. " for " .. v_u_1.customisation.WeaponName
v_u_1.gui.Notifications.Buy.TextLabel2.ParentFolder.Value = "Skins"
if v173.Price then
v_u_1.gui.Notifications.Buy.TextLabel2.Text = "$" .. v_u_1.f_ac(v173.Price)
v_u_1.gui.Notifications.Buy.TextLabel2.TextColor3 = BrickColor.new("Lime green").Color
elseif v173.Gold then
v_u_1.gui.Notifications.Buy.TextLabel2.Text = v_u_1.f_ac(v173.Gold) .. " Gold"
v_u_1.gui.Notifications.Buy.TextLabel2.TextColor3 = BrickColor.new("New Yeller").Color
end
v_u_1.f_ugs(v_u_1.gui.Notifications.Buy.Buy)
end
function v_u_1.f_chkgp(p174)
-- upvalues: (copy) v_u_1
if v_u_1.gamearrays.gamepasses[p174] and v_u_1.gamearrays.gamepasses[p174].Owned ~= nil then
return v_u_1.gamearrays.gamepasses[p174].Owned
else
return false
end
end
function _G.f_chkgp(p175)
-- upvalues: (copy) v_u_1
return v_u_1.f_chkgp(p175)
end
function _G.f_pgpp(p176)
-- upvalues: (copy) v_u_1
if v_u_1.gamearrays.gamepasses[p176] then
v_u_1.mps:PromptGamePassPurchase(v_u_1.player, v_u_1.gamearrays.gamepasses[p176].Id)
end
end
function v_u_1.f_eqs(p177, p178)
-- upvalues: (copy) v_u_1
local v179 = v_u_1.customisation.Module.Stats[p177]
local v180
if v_u_1._stats.Owned:FindFirstChild("Skins_Universal") then
v180 = v_u_1._stats.Owned.Skins_Universal:FindFirstChild(p177) ~= nil
else
v180 = false
end
local v181 = false
if v_u_1.mala[v_u_1.customisation.Weapon] then
local v182 = v_u_1._stats.Owned:FindFirstChild(v_u_1.mala[v_u_1.customisation.Weapon])
if v182 then
v181 = v182.Skins_Weapon:FindFirstChild(p177) ~= nil
else
warn("No weapon folder in Stats.Owned for", v_u_1.customisation.Weapon)
end
else
warn("No weapon for", v_u_1.customisation.Weapon)
end
local v183 = false
if v179.USSF == true then
v183 = v_u_1._stats.Rank.Value > 0 and true or v183
elseif v179.Level then
v183 = (v179.Level <= v_u_1._stats.Level.Value or (v180 == true or v181 == true)) and true or v183
elseif v179.Price or v179.Gold then
if v180 == true or v181 == true then
v183 = true
else
v_u_1.f_psp(p177)
end
elseif v179.Prestige then
local v184 = v_u_1._stats.Owned[v_u_1.mala[v_u_1.customisation.Weapon]].Level.Value
local v185 = v_u_1._stats.Prestige.Value
if v179.WeaponLevel <= v184 then
if v179.Prestige <= v185 and (v180 == true or v181 == true) then
v183 = true
else
v_u_1.f_mc("Bottom", 4, "Skin locked to prestige " .. v179.Prestige .. "!")
end
else
v_u_1.f_mc("Bottom", 4, "Skin locked to weapon level " .. v179.WeaponLevel .. "!")
end
elseif v179.BattlepassSkin then
local v186 = v_u_1._stats.Owned[v_u_1.mala[v_u_1.customisation.Weapon]].Level.Value
local _ = v_u_1._stats.Prestige.Value
if v180 == true or v181 == true then
if v179.WeaponLevel <= v186 then
v183 = true
else
v_u_1.f_mc("Bottom", 4, "Skin locked to weapon level " .. v179.WeaponLevel .. "!")
end
else
v_u_1.f_mc("Bottom", 4, "Reward for season " .. v179.BattlepassSkin .. " battle pass.")
end
elseif v179.Gamepass then
if v180 == true or v181 == true then
v183 = true
else
_G.f_pgpp(v179.Gamepass)
end
end
if v183 == true then
if p178 == nil then
v_u_1.f_aps(p177, v_u_1.customisation.Section)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.Visible = v_u_1.customisation.Module.Stats[p177].Colours
elseif v_u_1.customisation.Section == 1 then
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Colour = BrickColor.new(p178).Number
v_u_1.f_fe("Update skins", v_u_1.mala[v_u_1.customisation.Weapon], {
["Colour1"] = {
["Colour"] = v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Colour,
["Skin"] = v_u_1.customisation.Colour1[v_u_1.customisation.Weapon].Skin
}
})
elseif v_u_1.customisation.Section == 2 then
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Colour = BrickColor.new(p178).Number
v_u_1.f_fe("Update skins", v_u_1.mala[v_u_1.customisation.Weapon], {
["Colour2"] = {
["Colour"] = v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Colour,
["Skin"] = v_u_1.customisation.Colour2[v_u_1.customisation.Weapon].Skin
}
})
end
v_u_1.f_wg(v_u_1.mala[v_u_1.customisation.Weapon], true)
end
end
function v_u_1.f_updsb()
-- upvalues: (copy) v_u_1
local v187 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Template.TemplateButton:Clone()
local v188 = { v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Template.UIGridLayout, v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.UIGridLayout }
local v189 = {
["XScale"] = 0.25,
["YSize"] = 150,
["Padding"] = 5
}
if _G.ostype == "cs" then
v189 = {
["XScale"] = 0.25,
["YSize"] = 200,
["Padding"] = 10
}
elseif _G.screentype == "ts s" then
v189 = {
["XScale"] = 0.25,
["YSize"] = 125,
["Padding"] = 5
}
elseif _G.screentype == "ts l" then
v189 = {
["XScale"] = 0.25,
["YSize"] = 150,
["Padding"] = 5
}
end
for v190 = 1, #v188 do
v188[v190].CellSize = UDim2.new(v189.XScale, -v189.Padding, 0, v189.YSize)
v188[v190].CellPadding = UDim2.new(0, v189.Padding, 0, v189.Padding)
end
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Template.TemplateButton:Destroy()
local v191 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Template:Clone()
local v192 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Template:Clone()
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Template:Destroy()
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Template:Destroy()
local v_u_193 = {}
for v194, v195 in pairs(v_u_1.customisation.Module.Stats) do
if v195.Level then
v_u_193[v195.Level] = v194
end
end
v_u_1._stats.Level.Changed:Connect(function()
-- upvalues: (copy) v_u_193, (ref) v_u_1
if v_u_193[v_u_1._stats.Level.Value] then
v_u_1.f_mc("Skin", 10, v_u_193[v_u_1._stats.Level.Value])
v_u_1.f_updos()
end
end)
local v_u_196 = {}
local v197 = {
["Name"] = "Owned",
["Color"] = BrickColor.new("Ghost grey").Color,
["List"] = {}
}
table.insert(v_u_196, v197)
for v198 = 1, #v_u_1.customisation.Module.Categories do
local v199 = v_u_1.customisation.Module.Categories[v198]
table.insert(v_u_196, v199)
end
for v_u_200 = 1, #v_u_196 do
local v201 = v192:Clone()
v201.Name = v_u_196[v_u_200].Name
v201.Text = v_u_196[v_u_200].Name
v201.BackgroundColor3 = v_u_196[v_u_200].Color
v201.Size = UDim2.new(1 / #v_u_196, 0, 1, 0)
v201.Position = UDim2.new((v_u_200 - 1) * (1 / #v_u_196), 0, 0, 0)
v201.Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2
v201.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_196, (copy) v_u_200
v_u_1.f_psl2("Click")
v_u_1.f_slcsm(v_u_196[v_u_200].Name)
end)
local v202 = v191:Clone()
v202.Name = v_u_196[v_u_200].Name
v202.Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame
if v_u_196[v_u_200].Name == "Free" then
v202.UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
end
end
for v_u_203, v204 in pairs(v_u_1.customisation.Module.Stats) do
local v205 = v187:Clone()
v205.Name = v_u_203
v205.Title.Text = v_u_203
v205.BackgroundTransparency = v204.Transparency
if v204.Colour1 then
v205.BackgroundColor3 = v204.Colour1
else
v205.BackgroundColor3 = BrickColor.new("White").Color
end
if v204.BackgroundColor then
v205.BackgroundColor3 = v204.BackgroundColor
end
if v204.CustomImage then
v205.Image = v204.CustomImage
elseif v204.Texture then
v205.Image = v204.Texture
else
v205.Image = ""
end
if v204.Colour1 and v204.Colour2 then
local v206 = game.ReplicatedStorage.Assets.SpecialSkins.LocalScriptGui:Clone()
v206.One.Value = v204.Colour1
v206.Two.Value = v204.Colour2
v206.Parent = v205
end
if v204.Colours == true then
v205.TileSize = UDim2.new(10, 0, 10, 0)
v205.Colour.Image = "rbxassetid://5182349219"
v205.Colour.Visible = true
else
v205.TileSize = UDim2.new(1, 0, 1, 0)
v205.Colour.Visible = false
end
if v204.Level then
v205.Requirement.Visible = true
v205.Requirement.Text = "Player Level " .. v204.Level
v205.Requirement.TextColor3 = BrickColor.new("New Yeller").Color
local v207 = Instance.new("IntValue")
v207.Name = "Level"
v207.Value = v204.Level
v207.Parent = v205
v205.LayoutOrder = v204.Level
elseif v204.Price then
v205.Requirement.Visible = true
v205.Requirement.Text = "$" .. v_u_1.f_ac(v204.Price)
elseif v204.Prestige then
v205.Requirement.Visible = true
v205.Requirement.Text = "Prestige " .. v204.Prestige
v205.Requirement.TextColor3 = BrickColor.new("Institutional white").Color
v205.Requirement.Size = UDim2.new(0.7, -5, 0.25, 0)
v205.Requirement2.Visible = true
v205.Requirement2.Text = "Weapon Level " .. v204.WeaponLevel
elseif v204.BattlepassSkin then
v205.Requirement.Visible = true
v205.Requirement.Text = "Season " .. v204.BattlepassSkin
v205.Requirement.TextColor3 = BrickColor.new("Institutional white").Color
v205.Requirement.Size = UDim2.new(0.7, -5, 0.25, 0)
v205.Requirement2.Visible = true
v205.Requirement2.Text = "Battle Pass Level 50"
elseif v204.Gold then
v205.Requirement.Visible = true
v205.Requirement.Text = v_u_1.f_ac(v204.Gold) .. " Gold"
v205.Requirement.TextColor3 = BrickColor.new("New Yeller").Color
local v208 = Instance.new("IntValue")
v208.Name = "Gold"
v208.Value = v204.Gold
v208.Parent = v205
elseif v204.Gamepass then
v205.Requirement.Visible = true
v205.Requirement.Text = "Pass"
v205.Requirement.TextColor3 = BrickColor.new("Lime green").Color
elseif v204.USSF then
v205.Requirement.Visible = true
v205.Requirement.Text = "USSF Membership"
v205.Requirement.TextColor3 = BrickColor.new("Institutional white").Color
end
local v209 = v_u_1.buttons.skinbuttons
table.insert(v209, 1, v205)
v205.Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame[v204.Category]
v205.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_203
v_u_1.f_psl2("Click")
v_u_1.f_eqs(v_u_203)
end)
end
v_u_1.f_slcsm("Store")
for v210 = 1, #v_u_1.customisation.Module.Colours do
local v_u_211 = v_u_1.customisation.Module.Colours[v210]
local v212 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame:FindFirstChild("Color " .. v_u_211, true):Clone()
v212.Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum
local v213 = v_u_1.buttons.skinbuttons
table.insert(v213, 1, v212)
v212.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_211
v_u_1.f_psl2("Click")
v_u_1.f_eqs("Color " .. v_u_211, v_u_211)
end)
end
local function v_u_219()
-- upvalues: (ref) v_u_1
local v214 = { v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour, v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Reset }
local v215 = 1
for v216 = 1, #v214 do
if v214[v216].Visible == true then
v215 = v215 - v214[v216].Size.X.Scale
end
end
if v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.Visible == true then
v215 = v215 / 2
end
local v217 = { v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section1, v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2 }
for v218 = 1, #v217 do
if v217[v218].Visible == true then
v217[v218].Size = UDim2.new(v215, 0, 1, 0)
v217[v218].Position = UDim2.new(v215 * (v218 - 1), 0, 0, 0)
end
end
end
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.Changed:Connect(function(p220)
-- upvalues: (copy) v_u_219
if p220 == "Visible" then
v_u_219()
end
end)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Reset.Changed:Connect(function(p221)
-- upvalues: (copy) v_u_219
if p221 == "Visible" then
v_u_219()
end
end)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.Changed:Connect(function(p222)
-- upvalues: (copy) v_u_219
if p222 == "Visible" then
v_u_219()
end
end)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.Activated:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.f_psl2("Click")
v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.Visible = not v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.Visible
if v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.Visible then
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.BorderColor3 = Color3.new(1, 0, 0)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.BorderSizePixel = 3
if _G.ostype == "cs" and v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum:FindFirstChild("Black") then
v_u_1.f_ugs(v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.Black)
return
end
else
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Visible = true
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Visible = true
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.BorderColor3 = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.BorderSizePixel = 1
end
end)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Reset.Activated:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.f_psl2("Click")
if v_u_1.customisation.Section == 1 then
v_u_1.customisation.Colour1[v_u_1.customisation.Weapon] = {
["Material"] = nil,
["Texture"] = nil,
["Colour"] = nil,
["Skin"] = nil
}
local v223 = {
["Colour1"] = {
["Colour"] = nil,
["Skin"] = nil
}
}
v_u_1.f_fe("Update skins", v_u_1.mala[v_u_1.customisation.Weapon], v223)
elseif v_u_1.customisation.Section == 2 then
v_u_1.customisation.Colour2[v_u_1.customisation.Weapon] = {
["Material"] = nil,
["Texture"] = nil,
["Colour"] = nil,
["Skin"] = nil
}
local v224 = {
["Colour2"] = {
["Colour"] = nil,
["Skin"] = nil
}
}
v_u_1.f_fe("Update skins", v_u_1.mala[v_u_1.customisation.Weapon], v224)
end
v_u_1.f_wg(v_u_1.mala[v_u_1.customisation.Weapon], true)
end)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section1.Activated:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.f_psl2("Click")
v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.BorderColor3 = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.BorderSizePixel = 1
if v_u_1.customisation.Section == 1 then
v_u_1.customisation.Section = nil
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section1.BorderColor3 = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section1.BorderSizePixel = 1
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Reset.Visible = false
else
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section1.BorderColor3 = Color3.new(1, 0, 0)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section1.BorderSizePixel = 3
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Visible = true
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Visible = true
v_u_1.customisation.Section = 1
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Reset.Visible = true
end
if v_u_1.customisation.Section and (v_u_1.customisation.Colour1[v_u_1.customisation.Section] and v_u_1.customisation.Colour1[v_u_1.customisation.Section].Skin) then
local v225 = v_u_1.customisation.Colour1[v_u_1.customisation.Section].Skin
local v226 = v_u_1.customisation.Module.Stats[v225]
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.Visible = v226.Colours == true
else
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.Visible = false
end
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.BorderColor3 = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.BorderSizePixel = 1
v_u_1.f_updwsv()
end)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.Activated:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.f_psl2("Click")
v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.BorderColor3 = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.BorderSizePixel = 1
if v_u_1.customisation.Section == 2 then
v_u_1.customisation.Section = nil
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.BorderColor3 = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.BorderSizePixel = 1
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Reset.Visible = false
else
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.BorderColor3 = Color3.new(1, 0, 0)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section2.BorderSizePixel = 3
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Visible = true
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Visible = true
v_u_1.customisation.Section = 2
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Reset.Visible = true
end
if v_u_1.customisation.Section and (v_u_1.customisation.Colour1[v_u_1.customisation.Section] and v_u_1.customisation.Colour1[v_u_1.customisation.Section].Skin) then
local v227 = v_u_1.customisation.Colour1[v_u_1.customisation.Section].Skin
local v228 = v_u_1.customisation.Module.Stats[v227]
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.Visible = v228.Colours == true
else
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Colour.Visible = false
end
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section1.BorderColor3 = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Section1.BorderSizePixel = 1
v_u_1.f_updwsv()
end)
end
function v_u_1.f_sprtangles(p229)
-- upvalues: (copy) v_u_1
if v_u_1.changinggun == true and _G.armed == true or v_u_1.sprinting == true and v_u_1.changinggun == false then
if v_u_1.desiredsprint[1] > 0 then
if v_u_1.sprintangles[1] < v_u_1.desiredsprint[1] then
local v230 = v_u_1.sprintangles
v230[1] = v230[1] + v_u_1.desiredsprint[1] / 0.25 / (1 / p229)
elseif v_u_1.sprintangles[1] > v_u_1.desiredsprint[1] then
v_u_1.sprintangles[1] = v_u_1.desiredsprint[1]
end
elseif v_u_1.sprintangles[1] > v_u_1.desiredsprint[1] then
local v231 = v_u_1.sprintangles
v231[1] = v231[1] + v_u_1.desiredsprint[1] / 0.25 / (1 / p229)
elseif v_u_1.sprintangles[1] < v_u_1.desiredsprint[1] then
v_u_1.sprintangles[1] = v_u_1.desiredsprint[1]
end
if v_u_1.sprintangles[2] < v_u_1.desiredsprint[2] then
local v232 = v_u_1.sprintangles
v232[2] = v232[2] + v_u_1.desiredsprint[2] / 0.25 / (1 / p229)
elseif v_u_1.sprintangles[2] > v_u_1.desiredsprint[2] then
v_u_1.sprintangles[2] = v_u_1.desiredsprint[2]
end
if v_u_1.sprintangles[3] < v_u_1.desiredsprint[3] then
local v233 = v_u_1.sprintangles
v233[3] = v233[3] + v_u_1.desiredsprint[3] / 0.25 / (1 / p229)
return
end
if v_u_1.sprintangles[3] > v_u_1.desiredsprint[3] then
v_u_1.sprintangles[3] = v_u_1.desiredsprint[3]
return
end
elseif (v_u_1.sprinting == false or _G.armed == false) and v_u_1.changinggun == false then
if v_u_1.desiredsprint[1] > 0 then
if v_u_1.sprintangles[1] > 0 then
local v234 = v_u_1.sprintangles
v234[1] = v234[1] - v_u_1.desiredsprint[1] / 0.25 / (1 / p229)
elseif v_u_1.sprintangles[1] < 0 then
v_u_1.sprintangles[1] = 0
end
elseif v_u_1.sprintangles[1] < 0 then
local v235 = v_u_1.sprintangles
v235[1] = v235[1] - v_u_1.desiredsprint[1] / 0.25 / (1 / p229)
elseif v_u_1.sprintangles[1] > 0 then
v_u_1.sprintangles[1] = 0
end
if v_u_1.sprintangles[2] > 0 then
local v236 = v_u_1.sprintangles
v236[2] = v236[2] - v_u_1.desiredsprint[2] / 0.25 / (1 / p229)
elseif v_u_1.sprintangles[2] < 0 then
v_u_1.sprintangles[2] = 0
end
if v_u_1.sprintangles[3] > 0 then
local v237 = v_u_1.sprintangles
v237[3] = v237[3] - v_u_1.desiredsprint[3] / 0.25 / (1 / p229)
return
end
if v_u_1.sprintangles[3] < 0 then
v_u_1.sprintangles[3] = 0
end
end
end
function v_u_1.f_sprt()
-- upvalues: (copy) v_u_1
if v_u_1.downed ~= true and (v_u_1.free ~= false or (v_u_1.reloading ~= false or v_u_1.bolting ~= false)) and (v_u_1.aimed ~= true and (v_u_1.aiming ~= true and (v_u_1.crouching ~= true and (v_u_1.crouched ~= true and (v_u_1.proning ~= true and v_u_1.proned ~= true))))) then
v_u_1.sprinting = true
v_u_1.ActionButtonColour("Sprint", Color3.new(1, 0, 0))
end
end
function v_u_1.f_ssprt()
-- upvalues: (copy) v_u_1
v_u_1.sprinting = false
v_u_1.key.Shift = false
v_u_1.ActionButtonColour("Sprint", Color3.new(1, 1, 1))
end
function v_u_1.f_st()
-- upvalues: (copy) v_u_1
if v_u_1.downed == false then
if v_u_1.humanoid.Sit == false and v_u_1.deployed == true then
if v_u_1.crouching == true or v_u_1.proning == true then
return
end
if v_u_1.crouched == true then
v_u_1.crouching = true
v_u_1.crouched = false
v_u_1.crouching = false
v_u_1.f_updA()
elseif v_u_1.proned == true then
v_u_1.crouching = true
v_u_1.proned = false
v_u_1.crouched = true
v_u_1.crouching = false
v_u_1.f_updA()
end
end
if _G.ostype == "ts" then
if v_u_1.proned == true or v_u_1.crouched == true then
v_u_1.ActionButtonColour("Crouch", Color3.new(1, 0, 0))
return
end
v_u_1.ActionButtonColour("Crouch", Color3.new(1, 1, 1))
end
end
end
function v_u_1.f_cr()
-- upvalues: (copy) v_u_1
if v_u_1.downed ~= true and (v_u_1.crouching ~= true and v_u_1.proning ~= true) then
if v_u_1.sprinting == true then
v_u_1.f_ssprt()
end
if v_u_1.crouched == false and v_u_1.proned == false then
v_u_1.crouching = true
v_u_1.crouched = true
v_u_1.crouching = false
v_u_1.f_updA()
elseif v_u_1.crouched == true then
v_u_1.proning = true
v_u_1.crouched = false
v_u_1.proning = false
v_u_1.proned = true
v_u_1.f_updA()
end
if _G.ostype == "ts" then
if v_u_1.proned == true or v_u_1.crouched == true then
v_u_1.ActionButtonColour("Crouch", Color3.new(1, 0, 0))
return
end
v_u_1.ActionButtonColour("Crouch", Color3.new(1, 1, 1))
end
end
end
function v_u_1.f_updtpk()
-- upvalues: (copy) v_u_1
v_u_1.gui.Deployed.PerkBar:ClearAllChildren()
local v238 = 0
for _, v239 in pairs(v_u_1.perks_temporary) do
if v239.Acquired == true then
v238 = v238 + 1
local v240 = v_u_1.poweruptemplate:Clone()
v240.BackgroundColor3 = BrickColor.new(v239.BrickColour).Color
v240.TextLabel.Text = v239.ShortDesc
v240.Position = UDim2.new(0, 0, 1 - v238 * 0.16666666666666666, 0)
v240.Parent = v_u_1.gui.Deployed.PerkBar
end
end
end
function v_u_1.f_pdwned()
-- upvalues: (copy) v_u_1
v_u_1.gui.Deployed.Downed.Visible = true
local v241 = v_u_1.gui.Deployed.Downed.Perks:GetChildren()
for v242 = 1, #v241 do
if v_u_1.perks_temporary[v241[v242].Name] and v_u_1.perks_temporary[v241[v242].Name].Acquired == true then
v241[v242].Visible = true
else
v241[v242].Visible = false
end
end
local v243 = 0
local v244 = {
"Quick Revive",
"Juggerblox",
"Witches Brew",
"Bloxy Cola",
"Bloxilicious Gum",
"Goala Cola"
}
if v_u_1.perks_temporary["Quick Revive"].Acquired == true then
v_u_1.gui.Deployed.Downed.Bar2.Visible = true
task.spawn(function()
-- upvalues: (ref) v_u_1
for v245 = 1, 150 do
v_u_1.gui.Deployed.Downed.Bar2.Bar.Size = UDim2.new(v245 / 150, 0, 1, 0)
if v_u_1.downed == false then
break
end
task.wait(0.03333333333333333)
end
if v_u_1.downed == true then
v_u_1.f_fe("Revive", v_u_1.player)
end
end)
else
v_u_1.gui.Deployed.Downed.Bar2.Visible = false
end
local v246 = 30
for v247 = 1200, 1, -1 do
if v247 % 30 == 0 then
v246 = v247 / 30
end
if v247 % (1200 / #v244) == 0 then
v243 = v243 + 1
if v_u_1.perks_temporary[v244[v243]].Acquired == true and v243 > 1 then
v_u_1.perks_temporary[v244[v243]].Acquired = false
v_u_1.f_updtpk()
v_u_1.f_fe("Perk Lost", v244[v243])
end
end
v_u_1.gui.Deployed.Downed.TextLabel.Text = v246
v_u_1.gui.Deployed.Downed.Bar.Size = UDim2.new(v247 / 1200, 0, 1, 0)
if v_u_1.downed == false then
break
end
local v248 = game.Players:GetChildren()
if v_u_1.perks_temporary["Quick Revive"].Acquired == false and #v248 == 1 then
break
end
task.wait(0.03333333333333333)
end
if v_u_1.downed == true then
v_u_1.f_fe("Reset")
end
end
function v_u_1.f_sm()
-- upvalues: (copy) v_u_1
task.spawn(function()
-- upvalues: (ref) v_u_1
if v_u_1.sliding == false then
v_u_1.sliding = true
if #v_u_1.slidesteps == 0 then
v_u_1.slidesteps = { v_u_1.module.slidenormal:lerp(v_u_1.module.slideback, 0.5), v_u_1.module.slideback }
end
if v_u_1.module.slide2normal and #v_u_1.slide2steps == 0 then
v_u_1.slide2steps = { v_u_1.module.slide2normal:lerp(v_u_1.module.slide2back, 0.5), v_u_1.module.slide2back }
end
local v249 = 0
local v250 = v_u_1.t:FindFirstChild("SlideInvisible")
if v250 then
v250.Transparency = 1
end
for v251 = 1, #v_u_1.slidesteps do
if v_u_1.welds[5] and v_u_1.slidesteps[v251] then
v_u_1.welds[5].C0 = v_u_1.slidesteps[v251]
end
if v_u_1.welds[7] and v_u_1.slide2steps[v251] then
v_u_1.welds[7].C0 = v_u_1.slide2steps[v251]
end
task.wait()
end
for v252 = #v_u_1.slidesteps, 1, -1 do
if v_u_1.welds[5] and v_u_1.slidesteps[v252] then
v_u_1.welds[5].C0 = v_u_1.slidesteps[v252]
end
if v_u_1.welds[7] and v_u_1.slide2steps[v252] then
v_u_1.welds[7].C0 = v_u_1.slide2steps[v252]
end
task.wait()
end
if v_u_1.welds[5] then
if v_u_1.ammo.Mag.Value <= 0 and v_u_1.module.SlideWhenEmpty == true then
v_u_1.f_sbf()
v249 = 1
else
if v_u_1.welds[5] and v_u_1.module.slidenormal then
v_u_1.welds[5].C0 = v_u_1.module.slidenormal
end
if v_u_1.welds[7] and v_u_1.module.slide2normal then
v_u_1.welds[7].C0 = v_u_1.module.slide2normal
end
end
end
if v250 then
v250.Transparency = v249
end
v_u_1.sliding = false
end
end)
end
function v_u_1.f_bstrpT()
-- upvalues: (copy) v_u_1
if v_u_1.ammo.Mag.Value <= 13 and v_u_1.rsaimed == false then
for v253 = 1, #v_u_1.bulletstrips2 do
local v254 = v_u_1.bulletstrips2[v253].Name
if string.len(v254) <= 2 then
if v_u_1.bulletstrips2[v253].Name == "1" then
if v_u_1.ammo.Mag.Value <= 1 then
v_u_1.bulletstrips2[v253].Transparency = 1
else
v_u_1.bulletstrips2[v253].Transparency = 0
end
else
local v255 = v_u_1.bulletstrips2[v253].Name
if tonumber(v255) > v_u_1.ammo.Mag.Value then
v_u_1.bulletstrips2[v253].Transparency = 1
else
v_u_1.bulletstrips2[v253].Transparency = 0
end
end
else
local v256 = v_u_1.bulletstrips2[v253].Name
if string.len(v256) == 3 then
local _ = v_u_1.bulletstrips2[v253].Name == "1"
local v257 = v_u_1.bulletstrips2[v253].Name
local v258 = string.sub(v257, 1, 1)
if tonumber(v258) > v_u_1.ammo.Mag.Value then
v_u_1.bulletstrips2[v253].Transparency = 1
else
v_u_1.bulletstrips2[v253].Transparency = 0
end
else
local v259 = v_u_1.bulletstrips2[v253].Name
if string.len(v259) == 4 then
local v260 = v_u_1.bulletstrips2[v253].Name
local v261 = string.sub(v260, 1, 2)
if tonumber(v261) > v_u_1.ammo.Mag.Value - 1 then
v_u_1.bulletstrips2[v253].Transparency = 1
else
v_u_1.bulletstrips2[v253].Transparency = 0
end
end
end
end
end
end
end
function v_u_1.f_bstrp()
-- upvalues: (copy) v_u_1
task.spawn(function()
-- upvalues: (ref) v_u_1
if v_u_1.rsaimed == false and v_u_1.aiming == false then
for v262 = 1, #v_u_1.bulletstrips1 do
if v_u_1.bulletstrips1[v262].Name ~= "1" and (v_u_1.bulletstrips1[v262]:FindFirstChild("SourceWeld") and v_u_1.bulletstrips1[v262].SourceWeld.C0 == v_u_1.bulletstrips1[v262].SourceWeld.OrigCFrame.Value) then
local v263 = v_u_1.bulletstrips1[v262].Name
if tonumber(v263) <= v_u_1.ammo.Mag.Value then
local v264 = v_u_1.bulletstrips1[v262].Parent
local v265 = v_u_1.bulletstrips1[v262].Name
local v266 = tonumber(v265) - 1
local v267 = v264:FindFirstChild((tostring(v266)))
if v267 and (v_u_1.bulletstrips1[v262]:FindFirstChild("SourceWeld") and v267:FindFirstChild("SourceWeld")) then
local v268 = v267.SourceWeld.OrigCFrame.Value
v_u_1.bulletstrips1[v262].SourceWeld.C0 = v_u_1.bulletstrips1[v262].SourceWeld.C0:lerp(v268, 0.5)
task.wait()
if v_u_1.bulletstrips1 and (v_u_1.bulletstrips1[v262] and (v_u_1.bulletstrips1[v262]:FindFirstChild("SourceWeld") and v_u_1.bulletstrips1[v262].Parent)) then
v_u_1.bulletstrips1[v262].SourceWeld.C0 = v_u_1.bulletstrips1[v262].SourceWeld.OrigCFrame.Value
local v269 = v_u_1.bulletstrips1[v262].Name
if tonumber(v269) >= v_u_1.ammo.Mag.Value then
v_u_1.bulletstrips1[v262].Transparency = 1
else
v_u_1.bulletstrips1[v262].Transparency = 0
end
end
end
end
end
end
v_u_1.f_bstrpT()
end
end)
end
function v_u_1.f_b1d(p270)
-- upvalues: (copy) v_u_1
if p270 == false and (v_u_1.gunnaseo ~= 4 and (v_u_1.mala[v_u_1.gunnaseo] ~= "Medkit" and v_u_1.mala[v_u_1.gunnaseo] ~= "First Aid")) then
v_u_1.f_ssprt()
end
if _G.ostype == "ts" or (v_u_1.ammo.Mag.Value > 0 or (v_u_1.reloading ~= false or v_u_1.free ~= true)) then
if v_u_1.f_ran("B1") then
if v_u_1.aiming == true and v_u_1.aim.n < 0.5 or (v_u_1.reloading or (v_u_1.held or (v_u_1.firing or (v_u_1.bolting or v_u_1.gunnaseo ~= 4 and (v_u_1.mala[v_u_1.gunnaseo] ~= "Medkit" and (v_u_1.mala[v_u_1.gunnaseo] ~= "First Aid" and v_u_1.sprinting == true))))) or (v_u_1.free == false or v_u_1.module.mode == "Bolt" and (v_u_1.bolted == false and v_u_1.ammo.Mag.Value > 0) or (v_u_1.breakreload or v_u_1.throwing))) then
if v_u_1.module.magsize > 1 and (v_u_1.module.mode == "Bolt" and (v_u_1.bolted == false and v_u_1.ammo.Mag.Value > 0)) then
v_u_1.f_aq("Bolt")
end
return
end
if v_u_1.module.mode == "Bolt" then
v_u_1.bolted = false
end
v_u_1.firing = true
if v_u_1.module.mode == "Auto" or (_G.screentype == "ts s" or _G.screentype == "ts l") and v_u_1.module.mode == "Semi" then
v_u_1.held = true
end
local v271 = v_u_1.ammo.Mag.Value
v_u_1.f_s()
if v_u_1.module.slideback ~= nil then
v_u_1.f_sm()
end
if v_u_1.module.mode == "Bolt" and (v_u_1.module.magsize > 1 and v271 - 1 > 0) then
v_u_1.f_aq("Bolt")
end
if v_u_1.t:FindFirstChild("1") then
v_u_1.f_bstrp()
end
if v_u_1.module.mode ~= "Bolt" and (v_u_1.module.rpm and (v_u_1.module.mode ~= "Rocket" or (v_u_1.mala[v_u_1.gunnaseo] == "PAW-20" or v_u_1.mala[v_u_1.gunnaseo] == "MGL"))) then
if v_u_1.module.rpm_burst then
task.wait(60 / v_u_1.module.rpm_burst)
else
task.wait(60 / v_u_1.module.rpm)
end
end
if v_u_1.module.mode == "Burst" then
v_u_1.firing = true
for v272 = 1, 2 do
if v_u_1.ammo.Mag.Value <= 0 then
break
end
v_u_1.f_s()
if v_u_1.module.slideback ~= nil and v_u_1.module.slideonce ~= true then
v_u_1.f_sm()
end
if v_u_1.module.rpm_burst and v272 ~= 2 then
task.wait(60 / v_u_1.module.rpm_burst)
else
task.wait(60 / v_u_1.module.rpm)
end
end
end
if v_u_1.held == true then
while v_u_1.held == true and (v_u_1.gunnaseo == 4 or (v_u_1.mala[v_u_1.gunnaseo] == "Medkit" or (v_u_1.mala[v_u_1.gunnaseo] == "First Aid" or v_u_1.sprinting == false))) and (v_u_1.ammo.Mag.Value > 0 and (v_u_1.reloading == false and (v_u_1.ce_in_action == false and v_u_1.breakreload == false))) do
v_u_1.firing = true
if v_u_1.t:FindFirstChild("1") then
v_u_1.f_bstrp()
end
v_u_1.f_s()
if v_u_1.module.slideback ~= nil then
v_u_1.f_sm()
end
task.wait(60 / v_u_1.module.rpm)
if (_G.screentype == "ts s" or _G.screentype == "ts l") and v_u_1.module.mode == "Semi" then
task.wait(0.03)
end
end
end
v_u_1.firing = false
end
else
local v273 = v_u_1.ammo.Stored.Value
if v273 and v273 > 0 then
v_u_1.f_aq("Reload")
return
end
end
end
function v_u_1.TouchInput(p274)
-- upvalues: (copy) v_u_1
if v_u_1.deployed ~= false then
if p274 ~= "Sprint" and (p274 ~= "Reload" and (p274 ~= "Jump" and v_u_1.sprinting)) then
v_u_1.key.Shift = false
v_u_1.f_ssprt()
end
if p274 == "Aim" then
if v_u_1.vf and v_u_1.vf.VehicleArray.Seated == true then
v_u_1.vf.Settings.FOV = v_u_1.vf.Settings.FOV == v_u_1.vf.Settings.FOV2 and v_u_1.vf.Settings.FOV1 or v_u_1.vf.Settings.FOV2
return
end
if v_u_1.aimed == false then
v_u_1.b2 = true
return
end
if v_u_1.aimed == true then
v_u_1.b2 = false
return
end
elseif p274 == "Reload" then
v_u_1.key.R = true
if v_u_1.vf and v_u_1.vf.VehicleArray.Seated == true then
if v_u_1.vf.VehicleArray.Armed == true then
v_u_1.vf.f_fe("Reload", v_u_1.vf.Array.WeaponNo)
return
end
elseif v_u_1.gunnaseo ~= 4 and (v_u_1.reloading == false and (v_u_1.free == true and (v_u_1.cameramode == "fps" or v_u_1.cameramode == "3ps"))) then
local v275 = v_u_1.ammo.Stored.Value
if v275 and v275 > 0 then
v_u_1.f_aq("Reload")
return
end
end
else
if p274 == "Nade" then
v_u_1.f_tg()
return
end
if p274 == "Stance" then
if v_u_1.crouched == false and (v_u_1.proned == false and (v_u_1.crouching == false and v_u_1.proning == false)) or v_u_1.Direction == nil then
v_u_1.Direction = "Down"
elseif v_u_1.proned == true then
v_u_1.Direction = "Up"
end
if v_u_1.Direction == "Down" then
v_u_1.f_cr()
else
v_u_1.f_st()
end
end
if p274 == "Sprint" then
if v_u_1.crouched or v_u_1.proned then
v_u_1.f_st()
return
end
v_u_1.key.Shift = not v_u_1.key.Shift
if v_u_1.sprinting == true then
v_u_1.f_ssprt()
return
end
if v_u_1.sprinting == false then
v_u_1.f_sprt()
return
end
elseif p274 == "CameraMode" and v_u_1.deployed == true then
if v_u_1.vf and v_u_1.vf.VehicleArray.Seated == true then
if v_u_1.vf.VehicleArray.CameraMode == "VehicleFPS" then
v_u_1.vf.f_cm("Vehicle3PS")
else
v_u_1.vf.f_cm("VehicleFPS")
end
v_u_1.f_updmouse()
_G.f_updml()
return
end
if v_u_1._stats.Settings.CameraMode.Value == "fps" then
v_u_1.f_cm("3ps")
return
end
v_u_1.f_cm("fps")
end
end
end
end
function v_u_1.BindAction(p_u_276, _)
-- upvalues: (copy) v_u_1
v_u_1.tgui[p_u_276].Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) p_u_276
v_u_1.tgui[p_u_276].Image = "https://www.roblox.com/asset/?id=97166756"
task.wait(0.07)
v_u_1.tgui[p_u_276].Image = "https://www.roblox.com/asset/?id=97166444"
end)
if p_u_276 == "Fire" then
v_u_1.tgui[p_u_276].MouseButton1Down:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.b1 = true
if v_u_1.vf and v_u_1.vf.VehicleArray.Seated == true then
v_u_1.vf.Keys.B1 = true
v_u_1.vf.f_f(v_u_1.vf.Array.WeaponNo)
elseif v_u_1.b1 == true and _G.armed == true then
if v_u_1.gunnaseo == 4 then
v_u_1.f_swng()
return
end
v_u_1.firstShot = true
v_u_1.f_b1d(false)
end
end)
v_u_1.tgui[p_u_276].MouseButton1Up:Connect(function()
-- upvalues: (ref) v_u_1, (copy) p_u_276
if v_u_1.tgui[p_u_276].UIDragDetector.Enabled == false then
if v_u_1.vf and v_u_1.vf.VehicleArray.Seated == true then
v_u_1.vf.Keys.B1 = false
end
v_u_1.b1 = false
v_u_1.held = false
end
end)
return
elseif p_u_276 == "Jump" then
v_u_1.tgui[p_u_276].MouseButton1Down:Connect(function()
-- upvalues: (ref) v_u_1, (copy) p_u_276
if v_u_1.sttings.JumpCoolDown == nil and v_u_1.tgui[p_u_276].UIDragDetector.Enabled == false then
v_u_1.sttings.JumpCoolDown = true
v_u_1.sttings.SelectedButton = v_u_1.tgui[p_u_276]
v_u_1.humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
v_u_1.tgui[p_u_276].MouseButton1Up:Connect(function()
-- upvalues: (ref) v_u_1, (copy) p_u_276
if v_u_1.sttings.SelectedButton == v_u_1.tgui[p_u_276] and v_u_1.tgui[p_u_276].UIDragDetector.Enabled == false then
v_u_1.sttings.SelectedButton = nil
end
end)
else
v_u_1.tgui[p_u_276].MouseButton1Down:Connect(function()
-- upvalues: (ref) v_u_1, (copy) p_u_276
v_u_1.sttings.SelectedButton = v_u_1.tgui[p_u_276]
end)
v_u_1.tgui[p_u_276].MouseButton1Up:Connect(function()
-- upvalues: (ref) v_u_1, (copy) p_u_276
if v_u_1.sttings.SelectedButton == v_u_1.tgui[p_u_276] and v_u_1.tgui[p_u_276].UIDragDetector.Enabled == false then
v_u_1.TouchInput(p_u_276)
end
end)
end
end
function _G.ToggleTouchButtons()
-- upvalues: (copy) v_u_1
local v277 = {
["Aim"] = {
["VehUnarmed"] = true,
["VehArmed"] = true,
["Armed"] = true,
["Unarmed"] = false
},
["CameraMode"] = {
["VehUnarmed"] = true,
["VehArmed"] = true,
["Armed"] = true,
["Unarmed"] = true
},
["Fire"] = {
["VehUnarmed"] = false,
["VehArmed"] = true,
["Armed"] = true,
["Unarmed"] = false,
["SettingValue"] = {
["Name"] = "AutoFire",
["Value"] = false
}
},
["Jump"] = {
["VehUnarmed"] = false,
["VehArmed"] = false,
["Armed"] = true,
["Unarmed"] = true
},
["Nade"] = {
["VehUnarmed"] = false,
["VehArmed"] = false,
["Armed"] = true,
["Unarmed"] = false
},
["Reload"] = {
["VehUnarmed"] = false,
["VehArmed"] = true,
["Armed"] = true,
["Unarmed"] = false
},
["Sprint"] = {
["VehUnarmed"] = false,
["VehArmed"] = false,
["Armed"] = true,
["Unarmed"] = true
},
["Stance"] = {
["VehUnarmed"] = false,
["VehArmed"] = false,
["Armed"] = true,
["Unarmed"] = true
}
}
local v278 = v_u_1.vf and (v_u_1.vf.VehicleArray.Seated == true and v_u_1.humanoid)
if v278 then
v278 = v_u_1.humanoid.Health > 0
end
local v279 = v_u_1.vf
if v279 then
if v278 == true then
v279 = v_u_1.vf.VehicleArray.Armed == true
else
v279 = false
end
end
for v280, v281 in pairs(v277) do
if v281.SettingValue == nil or (v_u_1._stats.Settings[v281.SettingValue.Name].Value == v281.SettingValue.Value or v279 == true) then
if v278 == true then
if v281.VehUnarmed == true and v278 == true then
v_u_1.tgui[v280].Visible = true
elseif v281.VehArmed == true and v279 == true then
v_u_1.tgui[v280].Visible = true
else
v_u_1.tgui[v280].Visible = false
end
elseif v281.Armed == true and _G.armed == true then
v_u_1.tgui[v280].Visible = true
elseif v281.Unarmed == true and _G.armed == false then
v_u_1.tgui[v280].Visible = true
else
v_u_1.tgui[v280].Visible = false
end
elseif v280 == "Fire" and (_G.armed == true and (v_u_1.module and v_u_1.module.NoAutoFire == true)) then
v_u_1.tgui[v280].Visible = true
elseif v281.SettingValue == nil or v_u_1._stats.Settings[v281.SettingValue.Name].Value == v281.SettingValue.Value then
v_u_1.tgui[v280].Visible = false
else
v_u_1.tgui[v280].Visible = false
end
end
end
function v_u_1.ToggleButton(p282, p283)
-- upvalues: (copy) v_u_1
v_u_1.tgui[p282].Visible = p283
end
function v_u_1.f_updsttings()
-- upvalues: (copy) v_u_1
local v284 = {}
for _, v285 in pairs(v_u_1._stats.Settings:GetChildren()) do
v284[v285.Name] = v285.Value
end
v_u_1.f_fe("Settings", v284)
end
function v_u_1.f_updsttingsgui(p286)
-- upvalues: (copy) v_u_1
local v287 = v_u_1._stats.Settings:FindFirstChild(p286)
if p286 == "MissionsList" then
local v288 = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame2.MissionsList
v288.TextButton.BackgroundColor3 = v287.Value == true and Color3.new(0.29411764705882354, 0.592156862745098, 0.29411764705882354) or Color3.new(0.7686274509803922, 0.1568627450980392, 0.10980392156862745)
v288.TextButton.Text = v287.Value == true and "On" or "Off"
if _G.screentype == "ts s" or _G.screentype == "ts l" then
v_u_1.gui.Deployed.Missions.Visible = false
else
v_u_1.gui.Deployed.Missions.Visible = v287.Value
end
if v_u_1._stats:FindFirstChild("EventLevel") == nil then
v_u_1.gui.Deployed.Missions.Visible = false
return
end
elseif p286 == "MissionsShown" then
v_u_1.gui.Deployed.Missions.TextLabel.Text = v_u_1._stats.Settings.MissionsShown.Value == true and "Daily Missions" or "Seasonal Missions"
v_u_1.gui.Deployed.Missions.SeasonFrame.Visible = v_u_1._stats.Settings.MissionsShown.Value == false
v_u_1.gui.Deployed.Missions.DailyFrame.Visible = v_u_1._stats.Settings.MissionsShown.Value == true
if v_u_1._stats:FindFirstChild("EventLevel") == nil then
v_u_1.gui.Deployed.Missions.Visible = false
end
end
end
function v_u_1.f_tbu(p289)
-- upvalues: (copy) v_u_1
if v_u_1.TouchButtons0 ~= {} then
if p289 == "Show" or p289 == "Confirm" then
v_u_1.gui.EditButtons.Visible = p289 == "Show"
for _, v290 in pairs(v_u_1.tgui:GetChildren()) do
if v290.ClassName == "ImageButton" then
v290.UIDragDetector.Enabled = p289 == "Show"
v290.ImageButtonResize.Visible = false
end
end
end
local v291 = {}
local v292 = v_u_1.gui.EditButtons.Visible
if p289 == "Confirm" then
v_u_1.gui.EditButtons.Visible = false
for _, v293 in pairs(v_u_1.tgui:GetChildren()) do
if v293.ClassName == "ImageButton" and v_u_1.TouchButtons0[v293.Name] then
v291["Button_" .. v293.Name .. "_Size"] = v293.Size.X.Offset
v291["Button_" .. v293.Name .. "_PositionXScale"] = v293.Position.X.Scale
v291["Button_" .. v293.Name .. "_PositionXOffset"] = v293.Position.X.Offset
v291["Button_" .. v293.Name .. "_PositionYScale"] = v293.Position.Y.Scale
v291["Button_" .. v293.Name .. "_PositionYOffset"] = v293.Position.Y.Offset
end
end
elseif p289 == "Reset" then
for _, v294 in pairs(v_u_1.tgui:GetChildren()) do
if v294.ClassName == "ImageButton" and v_u_1.TouchButtons0[v294.Name] then
v294.Size = v_u_1.TouchButtons0[v294.Name].Size
v294.Position = v_u_1.TouchButtons0[v294.Name].Position
v291["Button_" .. v294.Name .. "_Size"] = 10000
v291["Button_" .. v294.Name .. "_PositionXScale"] = 10000
v291["Button_" .. v294.Name .. "_PositionXOffset"] = 10000
v291["Button_" .. v294.Name .. "_PositionYScale"] = 10000
v291["Button_" .. v294.Name .. "_PositionYOffset"] = 10000
else
warn("f.TouchButtons0[" .. v294.Name .. "] = nil")
end
end
end
for _, v295 in pairs(v_u_1._stats.Settings:GetChildren()) do
if v291[v295.Name] ~= nil then
v295.Value = v291[v295.Name]
end
end
if v291 ~= {} and v292 == true or p289 == "Confirm" then
v_u_1.f_updsttings()
end
end
end
function v_u_1.upd_gui()
-- upvalues: (copy) v_u_1
repeat
task.wait()
until _G.UILoaded == true
local _ = workspace.CurrentCamera.ViewportSize.X
local _ = workspace.CurrentCamera.ViewportSize.Y
local v296 = _G.screentype == "cs" and 35 or (_G.screentype == "ts s" and 30 or 25)
v_u_1.gui.Deployed.Missions.SeasonFrame.Template.Size = UDim2.new(1, 0, 0, v296)
if v_u_1.sttings.Missions == nil then
v_u_1.sttings.Missions = {
["Template1"] = v_u_1.gui.Buttons.Menus.Event.ScrollingFrame2.SeasonFrame.Template:Clone(),
["Template2"] = v_u_1.gui.Deployed.Missions.SeasonFrame.Template:Clone()
}
end
local v297 = 0.1
local v298 = 0.1
local v299 = 0.2
if _G.screentype == "cs" then
v_u_1.sttings.topbaroffset = 0
v_u_1.gui.Deployed.Boss.Size = UDim2.new(0.6, 0, 0, 50)
v_u_1.gui.Notifications.EventBuy.Size = UDim2.new(0.7, 0, 0.8, 0)
v298 = 0.125
v297 = 0.125
v299 = 0.3
elseif _G.screentype == "ts s" or _G.screentype == "ts l" then
if _G.screentype == "ts l" then
v298 = 0.1
v297 = 0.15
v299 = 0.25
elseif _G.screentype == "ts s" then
v298 = 0.15
v297 = 0.15
v299 = 0.25
end
v_u_1.gui.PowerUpMessage.Round.FontSize = Enum.FontSize.Size24
v_u_1.gui.PowerUpMessage.Title.FontSize = Enum.FontSize.Size24
v_u_1.gui.RoundMessage.Round.FontSize = Enum.FontSize.Size24
v_u_1.gui.RoundMessage.Title.FontSize = Enum.FontSize.Size24
v_u_1.gui.Deployed.Boss.Size = UDim2.new(0.4, 0, 0, 15)
v_u_1.gui.Promotion.Position = v_u_1.gui.Promotion.Position - UDim2.new(0, 0, 0, 80)
v_u_1.gui.Notifications.EventBuy.Size = UDim2.new(0.7, 0, 0.8, 0)
v_u_1.gui.MatchmakingFrame.BackgroundTransparency = 1
for _, v300 in pairs(v_u_1.gui.Deployed.Stats:GetChildren()) do
if v300.ClassName == "Frame" then
v300.BackgroundTransparency = 1
end
end
end
local v301 = v298 * 0.75 * 100
local v302 = math.floor(v301) / 100
v_u_1.gui.Deployed.Boss.Position = UDim2.new((1 - v_u_1.gui.Deployed.Boss.Size.X.Scale) / 2, 0, 0, 5)
v_u_1.gui.Notifications.EventBuy.Position = UDim2.new((1 - v_u_1.gui.Notifications.EventBuy.Size.X.Scale) / 2, 0, (1 - v_u_1.gui.Notifications.EventBuy.Size.Y.Scale) / 2, 0)
v_u_1.gui.MatchmakingFrame.Size = UDim2.new(v297, 0, v302, 0)
v_u_1.gui.MatchmakingFrame.Position = UDim2.new(0, 5, 1 - v302, -5)
v_u_1.gui.Deployed.PerkBar.Size = UDim2.new(v297, 0, v302, 0)
v_u_1.gui.Deployed.PerkBar.Position = UDim2.new(0, 5, 1 - v302 * 2, -10)
v_u_1.gui.Messages.Skin.Template.Position = UDim2.new(0, -105, 1, -v302 - 5 - v_u_1.gui.Messages.Skin.Template.Size.Y.Offset)
v_u_1.gui.Deployed.Stats.Size = UDim2.new(v297, 0, v298, 0)
v_u_1.gui.Deployed.Stats.Position = UDim2.new(1 - v297, -5, 1 - v298, -5)
if _G.screentype == "kb" or _G.screentype == "cs" then
local v303 = _G.screentype ~= "cs" and 0 or v_u_1.sttings.buttonsettings.Size
v_u_1.gui.Deployed.Missions.Size = UDim2.new(v299, 0, v302, 0)
v_u_1.gui.Deployed.Missions.Position = UDim2.new(1 - v299, -5, v303, 5)
v_u_1.gui.Deployed.Missions.SeasonFrame.Size = UDim2.new(1, v_u_1.gui.Deployed.Missions.SeasonFrame.Size.X.Offset, 0, v_u_1.sttings.Missions.Template2.Size.Y.Offset * 7)
v_u_1.gui.Deployed.Missions.DailyFrame.Size = UDim2.new(1, v_u_1.gui.Deployed.Missions.DailyFrame.Size.X.Offset, 0, v_u_1.sttings.Missions.Template2.Size.Y.Offset * 5)
v_u_1.gui.Deployed.Missions.SeasonFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
v_u_1.gui.Deployed.Missions.DailyFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
else
v_u_1.gui.Deployed.Missions.Size = UDim2.new(v299, 0, v302, 0)
v_u_1.gui.Deployed.Missions.Position = UDim2.new(0, 5, 0, 5)
v_u_1.gui.Deployed.Missions.TextLabel.TextXAlignment = Enum.TextXAlignment.Left
v_u_1.gui.Deployed.Missions.SeasonFrame.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
v_u_1.gui.Deployed.Missions.DailyFrame.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
v_u_1.gui.Deployed.Missions.SeasonFrame.Size = UDim2.new(1, 0, 0, v_u_1.sttings.Missions.Template2.Size.Y.Offset * 5)
v_u_1.gui.Deployed.Missions.DailyFrame.Size = UDim2.new(1, 0, 0, v_u_1.sttings.Missions.Template2.Size.Y.Offset * 5)
v_u_1.gui.Deployed.Missions.SeasonFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
v_u_1.gui.Deployed.Missions.DailyFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
end
local v304 = _G.screentype == "cs" and 2 or (_G.screentype == "ts s" and 0.8 or 1.2)
local v305 = v304 * 35
local v306 = math.ceil(v305)
local v307 = v_u_1.gui.Buttons.Menus:GetChildren()
for v308 = 1, #v307 do
v307[v308].Position = UDim2.new(-v307[v308].Size.X.Scale, -v307[v308].Size.X.Scale - 5, v307[v308].Position.Y.Scale, v_u_1.sttings.topbaroffset)
v307[v308].Size = UDim2.new(v307[v308].Size.X.Scale, v307[v308].Size.X.Offset, v307[v308].Size.Y.Scale, 0)
local v309 = v307[v308]:GetChildren()
for v310 = 1, #v309 do
if v309[v310].ClassName == "ScrollingFrame" then
v309[v310].Position = UDim2.new(v309[v310].Position.X.Scale, v309[v310].Position.X.Offset, v309[v310].Position.Y.Scale, v306 + 5)
v309[v310].Size = UDim2.new(v309[v310].Size.X.Scale, v309[v310].Size.X.Offset, v309[v310].Size.Y.Scale, -(v306 + 10))
elseif v309[v310].Name == "DividerFrame" then
v309[v310].Position = UDim2.new(v309[v310].Position.X.Scale, v309[v310].Position.X.Offset, v309[v310].Position.Y.Scale, v306 + 5)
v309[v310].Size = UDim2.new(v309[v310].Size.X.Scale, v309[v310].Size.X.Offset, v309[v310].Size.Y.Scale, -(v306 + 10))
elseif v309[v310].ClassName == "TextLabel" or v309[v310].ClassName == "TextButton" then
v309[v310].Size = UDim2.new(v309[v310].Size.X.Scale, v309[v310].Size.X.Offset, v309[v310].Size.Y.Scale, v306)
elseif v309[v310].ClassName ~= "StringValue" then
v309[v310].Position = UDim2.new(v309[v310].Position.X.Scale, v309[v310].Position.X.Offset, v309[v310].Position.Y.Scale, 5)
end
end
end
local v311 = {
["Rank1"] = {
["Frame"] = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame1,
["TopLayer"] = {
{
["Name"] = "TextLabel1",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Game Statistics"
},
{
["Name"] = "Level",
["YSize"] = 25,
["Type"] = "Info",
["Text"] = "Level"
},
{
["Name"] = "Experience",
["YSize"] = 25,
["Text"] = "Experience"
},
{
["Name"] = "Kills",
["YSize"] = 25,
["Type"] = "Info",
["Text"] = "Kills"
},
{
["Name"] = "MaxRound",
["YSize"] = 25,
["Type"] = "Info",
["Text"] = "Maximum Round",
["GameType"] = "Zombies"
},
{
["Name"] = "FunctionalRound",
["YSize"] = 25,
["Type"] = "Info",
["Text"] = "Joined At",
["GameType"] = "Zombies"
},
{
["Name"] = "TextLabel6",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Kills Leaderboard",
["GameType"] = "Zombies"
},
{
["Name"] = "LeaderboardKills",
["YSize"] = "Unchanged",
["GameType"] = "Zombies"
},
{
["Name"] = "TextLabel7",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Level Leaderboard",
["GameType"] = "Zombies"
},
{
["Name"] = "LeaderboardLevel",
["YSize"] = "Unchanged",
["GameType"] = "Zombies"
},
{
["Name"] = "TextLabel8",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Max Round Leaderboard",
["GameType"] = "Zombies"
},
{
["Name"] = "LeaderboardMaxRound",
["YSize"] = "Unchanged",
["GameType"] = "Zombies"
}
}
},
["Rank2"] = {
["Frame"] = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2,
["TopLayer"] = {
{
["Name"] = "TextLabel2",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "USSF Statistics"
},
{
["Name"] = "Rank",
["YSize"] = 25,
["Type"] = "Info",
["Text"] = "USSF Rank"
},
{
["Name"] = "Rank Requirements",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Rank Requirements"
},
{
["Name"] = "Ranks",
["YSize"] = "Unchanged"
},
{
["Name"] = "TextLabel4",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "How to Join"
},
{
["Name"] = "Information",
["YSize"] = 300
},
{
["Name"] = "TextLabel5",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Badges"
},
{
["Name"] = "Badges",
["YSize"] = 500
}
}
},
["Event1"] = {
["Frame"] = v_u_1.gui.Buttons.Menus.Event.ScrollingFrame1,
["TopLayer"] = {
{
["Name"] = "TextLabel1",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Rewards"
},
{
["Name"] = "Rewards",
["YSize"] = "Unchanged"
}
}
},
["Event2"] = {
["Frame"] = v_u_1.gui.Buttons.Menus.Event.ScrollingFrame2,
["TopLayer"] = {
{
["Name"] = "TextLabel1",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Information"
},
{
["Name"] = "EventInformation",
["YSize"] = 30,
["Type"] = "Info",
["Text"] = "Guide",
["Text2"] = "Log in daily and do missions to level up"
},
{
["Name"] = "Date0",
["YSize"] = 30,
["Type"] = "Info",
["Text"] = "Start"
},
{
["Name"] = "Date1",
["YSize"] = 30,
["Type"] = "Info",
["Text"] = "End"
},
{
["Name"] = "EventLevel",
["YSize"] = 25,
["Text"] = "Season Level"
},
{
["Name"] = "EventExperience",
["YSize"] = 25,
["Text"] = "Season Experience"
},
{
["Name"] = "TextLabel3",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Premium Content"
},
{
["Name"] = "BattlepassGamepass",
["YSize"] = 60,
["GamepassOnly"] = true
},
{
["Name"] = "BattlepassLevels",
["YSize"] = 30
},
{
["Name"] = "TextLabel4",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Daily Missions"
},
{
["Name"] = "NewMissionTime",
["YSize"] = 30,
["Type"] = "Info",
["Text"] = "New Missions In"
},
{
["Name"] = "DailyFrame",
["YSize"] = v_u_1.sttings.Missions.Template1.Size.Y.Offset * 5 + 20
},
{
["Name"] = "TextLabel5",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Season Missions"
},
{
["Name"] = "SeasonFrame",
["YSize"] = v_u_1.sttings.Missions.Template1.Size.Y.Offset * #v_u_1.missionmodule.Season + (#v_u_1.missionmodule.Season - 1) * 5
}
}
}
}
for v312 = 1, #v311.Event2.TopLayer do
if v311.Event2.TopLayer[v312] and (v311.Event2.TopLayer[v312].GamepassOnly == true and v_u_1.gamearrays.gamepasses["Premium Battle Pass"] == nil) then
local v313 = v_u_1.gui.Buttons.Menus.Event.ScrollingFrame2:FindFirstChild(v311.Event2.TopLayer[v312].Name)
if v313 then
v313.Visible = false
end
table.remove(v311.Event2.TopLayer, v312)
end
end
if v_u_1.gametype == "Tycoon" then
v311.Shop1 = {
["Frame"] = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame1,
["TopLayer"] = {
{
["Name"] = "TextLabel1",
["YSize"] = 30
},
{
["Name"] = "Gamepasses",
["YSize"] = "Unchanged"
}
}
}
v311.Shop2 = {
["Frame"] = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame2,
["TopLayer"] = {
{
["Name"] = "TitleMoney",
["YSize"] = 30
},
{
["Name"] = "Money",
["YSize"] = "Unchanged"
},
{
["Name"] = "TitlePoints",
["YSize"] = 30
},
{
["Name"] = "Points",
["YSize"] = "Unchanged"
},
{
["Name"] = "TitleGold",
["YSize"] = 30
},
{
["Name"] = "Gold",
["YSize"] = "Unchanged"
}
}
}
else
v311.Shop1 = {
["Frame"] = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame1,
["TopLayer"] = {
{
["Name"] = "TextLabel1",
["YSize"] = 30
},
{
["Name"] = "Gamepasses",
["YSize"] = "Unchanged"
}
}
}
v311.Shop2 = {
["Frame"] = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame2,
["TopLayer"] = {
{
["Name"] = "TitleMoney",
["YSize"] = 30
},
{
["Name"] = "Money",
["YSize"] = "Unchanged"
},
{
["Name"] = "TitleGold",
["YSize"] = 30
},
{
["Name"] = "Gold",
["YSize"] = "Unchanged"
}
}
}
end
v311.Settings1 = {
["Frame"] = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame1,
["TopLayer"] = {
{
["Name"] = "TextLabel5",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Mouse Cursor"
},
{
["Name"] = "Cursors",
["YSize"] = "Unchanged",
["GUIInstance"] = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame1.Cursors
}
}
}
v311.Settings2 = {
["Frame"] = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame2,
["TopLayer"] = {
{
["Name"] = "Save",
["YSize"] = 25,
["Type"] = "Info",
["Text"] = "Last Save"
},
{
["Name"] = "Daily",
["YSize"] = 25,
["Type"] = "Info",
["Text"] = "Next Daily Reward"
},
{
["Name"] = "TextLabel2",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Audio"
},
{
["Name"] = "MusicCredit",
["YSize"] = 30,
["Type"] = "Info",
["Text"] = "Song Name"
},
{
["Name"] = "Music",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Music",
["Binary"] = { "On", "Off" },
["Value"] = "Music"
},
{
["Name"] = "VolumeMusic",
["YSize"] = 30,
["Type"] = "Range",
["Text"] = "Music Volume",
["Value"] = "VolumeMusic"
},
{
["Name"] = "VolumeGuns",
["YSize"] = 30,
["Type"] = "Range",
["Text"] = "Weapon Volume",
["Value"] = "VolumeGuns"
},
{
["Name"] = "VolumeReload",
["YSize"] = 30,
["Type"] = "Range",
["Text"] = "Reload Volume",
["Value"] = "VolumeReload"
},
{
["Name"] = "VolumeZombies",
["YSize"] = 30,
["Type"] = "Range",
["Text"] = "Zombie Volume",
["Value"] = "VolumeZombies"
},
{
["Name"] = "VolumeEffects",
["YSize"] = 30,
["Type"] = "Range",
["Text"] = "Effects Volume",
["Value"] = "VolumeEffects"
},
{
["Name"] = "TextLabel1",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Gameplay"
},
{
["Name"] = "EditButtons",
["YSize"] = 30,
["Type"] = "Custom",
["Text"] = "Edit Buttons",
["TemplateName"] = "Open",
["Platform"] = {
["ts"] = true,
["cs"] = false,
["kb"] = false
}
},
{
["Name"] = "CameraMode",
["YSize"] = 25,
["Type"] = "Toggle",
["Text"] = "Camera Mode",
["Value"] = "CameraMode"
},
{
["Name"] = "Mode3PS",
["YSize"] = 25,
["Type"] = "Toggle",
["Text"] = "Third Person Mode (Mouse)",
["Value"] = "Mode3PS"
},
{
["Name"] = "AutoFire",
["YSize"] = 25,
["Type"] = "Toggle",
["Text"] = "Automatic Fire",
["Binary"] = { "On", "Off" },
["Value"] = "AutoFire",
["Platform"] = {
["ts"] = true,
["cs"] = true,
["kb"] = false
}
},
{
["Name"] = "AimAssist",
["YSize"] = 25,
["Type"] = "Toggle",
["Text"] = "Aim Assistance",
["Binary"] = { "On", "Off" },
["Value"] = "AimAssist",
["Platform"] = {
["ts"] = true,
["cs"] = true,
["kb"] = false
}
},
{
["Name"] = "ToggleAim",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Aim Button",
["Binary"] = { "Toggle", "Hold" },
["Value"] = "ToggleAim",
["Platform"] = {
["ts"] = false,
["cs"] = true,
["kb"] = true
}
},
{
["Name"] = "TextLabel3",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Graphics"
},
{
["Name"] = "OHGP",
["YSize"] = 25,
["Type"] = "Open",
["Text"] = "Overhead Name",
["GameType"] = "Zombies"
},
{
["Name"] = "GlobalShadows",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Shadows",
["Binary"] = { "Medium", "Low" },
["Value"] = "GlobalShadows"
},
{
["Name"] = "MuzzleFlash",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Muzzle Flash",
["Binary"] = { "On", "Off" },
["Value"] = "MuzzleFlash"
},
{
["Name"] = "Particles",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Bullet Holes",
["Binary"] = { "On", "Off" },
["Value"] = "Particles",
["GameType"] = "Zombies"
},
{
["Name"] = "TextLabel6",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Interface"
},
{
["Name"] = "ValueMessage",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Crosshair Income",
["Binary"] = { "On", "Off" },
["Value"] = "ValueMessage"
},
{
["Name"] = "MissionsList",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Show Missions",
["Value"] = "MissionsList",
["Platform"] = {
["ts"] = false,
["cs"] = true,
["kb"] = true
}
},
{
["Name"] = "MissionsShown",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Missions Shown",
["Binary"] = { "Daily", "Weekly" },
["Value"] = "MissionsShown",
["Platform"] = {
["ts"] = false,
["cs"] = true,
["kb"] = true
}
},
{
["Name"] = "Killfeed",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Kill Feed",
["Binary"] = { "On", "Off" },
["Value"] = "Killfeed",
["Platform"] = {
["ts"] = false,
["cs"] = true,
["kb"] = true
}
},
{
["Name"] = "StatsFrameAlways",
["YSize"] = 30,
["Type"] = "Toggle",
["Text"] = "Stats Bar Visibility",
["Binary"] = { "Always", "Player List" },
["Value"] = "StatsFrameAlways"
},
{
["Name"] = "StatsFrameSize",
["YSize"] = 30,
["Type"] = "Range",
["Text"] = "Stats Bar Size",
["Value"] = "StatsFrameSize"
},
{
["Name"] = "TextLabel7",
["YSize"] = 30,
["Type"] = "TextLabel",
["Text"] = "Pop-up Menus"
},
{
["Name"] = "Changelog",
["YSize"] = 30,
["Type"] = "Open",
["Text"] = "Update Changelog"
},
{
["Name"] = "DailyReward",
["YSize"] = 30,
["Type"] = "Open",
["Text"] = "Daily Reward"
},
{
["Name"] = "Tutorial",
["YSize"] = 25,
["Type"] = "Open",
["Text"] = "Tutorial",
["GameType"] = "Tycoon"
}
}
}
local v314 = _G.screentype == "ts s" and 14 or (_G.screentype == "cs" and 26 or 20)
v_u_1.gui.Crosshair.EXP.TextSize = v314
v_u_1.gui.Crosshair.Money.TextSize = v314
v_u_1.gui.Crosshair.Points.TextSize = v314
local v315 = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame2:GetChildren()
local v316 = {}
for v317 = 1, #v315 do
v316[v315[v317].Name] = v315[v317]
end
for v318, v319 in pairs(v311) do
local v320
if v319.Frame then
v320 = v319.Frame
else
v320 = v_u_1.gui.Buttons.Menus[v318].ScrollingFrame
end
local v_u_321 = v319.TopLayer
local v322 = 0
for v_u_323 = 1, #v_u_321 do
if v_u_321[v_u_323].GameType == nil or v_u_321[v_u_323].GameType == v_u_1.gametype then
local v_u_324 = nil
local v_u_325
if v_u_321[v_u_323].GUIInstance then
v_u_325 = v_u_321[v_u_323].GUIInstance
elseif v_u_321[v_u_323].Type then
if v_u_321[v_u_323].Type == "Custom" then
v_u_325 = v316["Template_" .. v_u_321[v_u_323].TemplateName]:Clone()
else
v_u_325 = v316["Template_" .. v_u_321[v_u_323].Type]:Clone()
end
v_u_325.Parent = v320
else
v_u_325 = v320:FindFirstChild(v_u_321[v_u_323].Name)
end
if v_u_325 == nil then
warn("Nil Item for", v318, "/", v_u_321[v_u_323])
else
v_u_325.Name = v_u_321[v_u_323].Name
if v_u_321[v_u_323].Value then
v_u_324 = v_u_1._stats.Settings[v_u_321[v_u_323].Value]
end
if v_u_321[v_u_323].Name == "Cursors" then
local function v_u_329(p326)
-- upvalues: (ref) v_u_1, (ref) v_u_325
v_u_1._stats.Settings.MouseCursor.Value = p326.ID
if _G.armed == true then
v_u_1.f_updmouse("Visible")
end
local v327 = v_u_325:GetChildren()
for v328 = 1, #v327 do
if v327[v328].Name == p326.Name then
v_u_1.f_uis(v327[v328], "Selected")
else
v_u_1.f_uis(v327[v328], "Normal")
end
end
end
local v330 = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame1.Cursors.Template
local v331 = UDim2.new
local v332 = v330.Size.X.Scale
local v333 = 150 * v304
v330.Size = v331(v332, 0, 0, (math.ceil(v333)))
local v334 = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame1.Cursors.Template:Clone()
v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame1.Cursors.Template:Destroy()
local v335 = require(game.ReplicatedStorage.ModuleScripts.MouseCursors)
local v336 = 0
local v337 = 1
for _, v_u_338 in ipairs(v335) do
local v339 = v334:Clone()
v339.ImageLabel.Image = "rbxassetid://" .. v_u_338.ID
v339.Name = v_u_338.Name
v339.TextLabel.Text = v_u_338.Name
v339.TextLabel2.Text = v_u_338.ID
v339.Position = UDim2.new(v336 * 0.25, 0, 0, (v337 - 1) * (v339.Size.Y.Offset + 5))
v336 = v336 + 1
if v336 == 4 then
v337 = v337 + 1
v336 = 0
end
v339.Parent = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame1.Cursors
v339.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_329, (copy) v_u_338
v_u_1.f_psl2("Click")
v_u_329(v_u_338)
v_u_1.f_updsttings()
end)
end
if v336 == 0 then
v337 = v337 - 1
end
v_u_325.Size = UDim2.new(1, v320.Size.X.Offset, 0, v334.Size.Y.Offset * v337 + (v337 - 1) * 5)
local v340 = nil
for _, v341 in ipairs(v335) do
if v341.ID == v_u_1._stats.Settings.MouseCursor.Value then
v340 = v341.Name
break
end
end
if v340 then
v_u_329({
["Name"] = v340,
["ID"] = v_u_1._stats.Settings.MouseCursor.Value
})
else
v_u_329({
["Name"] = "USSF"
})
end
elseif v_u_321[v_u_323].Name == "Tutorial" then
v_u_1.tm = require(game.ReplicatedStorage.ModuleScripts.TutorialModule)
task.spawn(function()
-- upvalues: (ref) v_u_1
repeat
task.wait(1)
until v_u_1.deployed == true
if v_u_1._stats.Tutorial.Value == false then
v_u_1.tm.f_init()
end
end)
v_u_325.TextButton.Activated:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.f_psl2("Click")
if v_u_1.tm.TutorialState == false then
if v_u_1.hrp then
local v342 = CFrame.new(v_u_1.hrp.Position)
local v343 = CFrame.Angles
local v344 = _G.Base.Baseplate.Orientation.X
local v345 = math.rad(v344)
local v346 = _G.Base.Baseplate.Orientation.Y
local v347 = math.rad(v346)
local v348 = _G.Base.Baseplate.Orientation.Z
local v349 = (v342 * v343(v345, v347, (math.rad(v348)))):ToObjectSpace(_G.Base.Origin).Position
local v350 = v349.X + 5 - (v349.X + 5) % _G.Base.Grid
local v351 = v349.Z + 5 - (v349.Z + 5) % _G.Base.Grid
local v352 = _G.BaseStatsArray[v_u_1.tf._stats.BaseLevel.Value].GridSize
if v350 / 10 > 0 and (v350 / 10 <= v352 and (v351 / 10 > 0 and v351 / 10 <= v352)) then
v_u_1.tm.f_init(true)
else
v_u_1.f_mc("Bottom", 3, "Stand inside your base first.")
end
end
else
v_u_1.f_mc("Bottom", 3, "Tutorial already in progress.")
end
end)
elseif v_u_321[v_u_323].Name == "FunctionalRound" then
game.ReplicatedStorage.Matchmaking.Round.Changed:Connect(function()
-- upvalues: (ref) v_u_325
if game.ReplicatedStorage.Matchmaking.Round.Value <= 1 then
v_u_325.TextLabel.Text = "Round " .. game.ReplicatedStorage.Matchmaking.Round.Value
end
end)
v_u_325.TextLabel.Text = "Round " .. game.ReplicatedStorage.Matchmaking.Round.Value
elseif v_u_321[v_u_323].Name == "Kills" then
v_u_325.TextLabel.Text = v_u_1.f_ac(v_u_1._stats.Kills.Value)
v_u_1._stats.Kills.Changed:Connect(function()
-- upvalues: (ref) v_u_325, (ref) v_u_1
v_u_325.TextLabel.Text = v_u_1.f_ac(v_u_1._stats.Kills.Value)
end)
elseif v_u_321[v_u_323].Name == "MaxRound" then
v_u_325.TextLabel.Text = "Round " .. v_u_1.f_ac(v_u_1._stats["Max Round"].Value)
v_u_1._stats["Max Round"].Changed:Connect(function()
-- upvalues: (ref) v_u_325, (ref) v_u_1
v_u_325.TextLabel.Text = "Round " .. v_u_1.f_ac(v_u_1._stats["Max Round"].Value)
end)
elseif v_u_321[v_u_323].Type == "Toggle" then
local function v_u_353()
-- upvalues: (copy) v_u_321, (copy) v_u_323, (ref) v_u_324, (ref) v_u_325, (ref) v_u_1
if v_u_321[v_u_323].Name == "Mode3PS" then
if v_u_324.Value == "Following" then
v_u_325.TextButton.Text = "Follow Mouse"
else
v_u_325.TextButton.Text = "Classic"
end
else
if v_u_321[v_u_323].Name == "CameraMode" then
if v_u_324.Value == "fps" then
v_u_325.TextButton.Text = "1st Person"
return
end
if v_u_324.Value == "3ps" then
v_u_325.TextButton.Text = "3rd Person"
return
end
else
if v_u_321[v_u_323].Name == "MissionsList" or v_u_321[v_u_323].Name == "MissionsShown" then
v_u_1.f_updsttingsgui(v_u_321[v_u_323].Name)
return
end
v_u_325.TextButton.BackgroundColor3 = v_u_324.Value == true and Color3.new(0.29411764705882354, 0.592156862745098, 0.29411764705882354) or Color3.new(0.7686274509803922, 0.1568627450980392, 0.10980392156862745)
v_u_325.TextButton.Text = v_u_324.Value == true and v_u_321[v_u_323].Binary[1] or v_u_321[v_u_323].Binary[2]
if v_u_321[v_u_323].Name == "AutoFire" then
v_u_1.ToggleButton("Fire", not v_u_324.Value)
return
end
if v_u_321[v_u_323].Name == "MissionShown" then
v_u_1.gui.Deployed.Missions.SeasonFrame.Visible = v_u_324.Value == false
v_u_1.gui.Deployed.Missions.DailyFrame.Visible = v_u_324.Value == true
return
end
if v_u_321[v_u_323].Name == "Music" then
workspace.Sounds.Music.Volume = v_u_324.Value == true and (workspace.Sounds.Music.VolumeValue.Value / 100 or 0) or 0
return
end
if v_u_321[v_u_323].Name == "StatsFrameAlways" then
_G.StatsFrame()
return
end
if v_u_321[v_u_323].Name == "GlobalShadows" then
game.Lighting.GlobalShadows = v_u_324.Value
if v_u_324.Value == true then
game.Lighting.Ambient = Color3.fromRGB(144, 144, 144)
else
game.Lighting.Ambient = Color3.fromRGB(100, 100, 100)
end
game.Lighting.OutdoorAmbient = Color3.fromRGB(110, 110, 110)
end
end
return
end
end
v_u_324.Changed:Connect(function()
-- upvalues: (copy) v_u_353
v_u_353()
end)
v_u_325.TextButton.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_321, (copy) v_u_323, (ref) v_u_324
v_u_1.f_psl2("Click")
if v_u_321[v_u_323].Name == "Mode3PS" then
if v_u_1._stats.Settings.Mode3PS.Value == "Following" then
v_u_324.Value = "Classic"
else
v_u_324.Value = "Following"
end
elseif v_u_321[v_u_323].Name == "CameraMode" then
if v_u_324.Value == "fps" then
v_u_324.Value = "3ps"
else
v_u_324.Value = "fps"
end
if v_u_1.deployed == true then
v_u_1.f_cm(v_u_1._stats.Settings.CameraMode.Value)
end
else
v_u_324.Value = not v_u_324.Value
end
v_u_1.f_updsttings()
end)
v_u_353()
elseif v_u_321[v_u_323].Name == "EventLevel" then
if v_u_1._stats:FindFirstChild("EventLevel") then
local function v_u_358()
-- upvalues: (ref) v_u_1, (ref) v_u_325
if v_u_1._stats.EventLevel.Value >= 75 then
v_u_325.Frame.TextLabel.Text = "Level " .. v_u_1._stats.EventLevel.Value
v_u_325.Frame.Bar.Size = UDim2.new(1, 0, 1, 0)
else
v_u_325.Frame.TextLabel.Text = "Level " .. v_u_1._stats.EventLevel.Value
v_u_325.Frame.Bar.Size = UDim2.new(v_u_1._stats.EventLevel.Value / 75, 0, 1, 0)
end
if v_u_1._stats.EventLevel.Value < 10 then
local v354 = v_u_1.gui.Notifications.EventBuy.TextLabel2
local v355 = v_u_1._stats.EventLevel.Value
v354.Text = "Level 0" .. tostring(v355) .. "/75"
else
local v356 = v_u_1.gui.Notifications.EventBuy.TextLabel2
local v357 = v_u_1._stats.EventLevel.Value
v356.Text = "Level " .. tostring(v357) .. "/75"
end
end
v_u_1._stats.EventLevel.Changed:Connect(function()
-- upvalues: (copy) v_u_358, (ref) v_u_1
v_u_358()
v_u_1.f_eventgui()
end)
v_u_358()
end
elseif v_u_321[v_u_323].Name == "EventExperience" then
if v_u_1._stats:FindFirstChild("EventLevel") then
local function v_u_360()
-- upvalues: (ref) v_u_1, (ref) v_u_325
if v_u_1._stats.EventLevel.Value >= 75 then
v_u_325.Frame.TextLabel.Text = "Completed"
v_u_325.Frame.Bar.Size = UDim2.new(1, 0, 1, 0)
else
local v359 = v_u_1._stats.EventEXP.Value % 10
v_u_325.Frame.TextLabel.Text = v359 / 10 * 100 .. "%"
v_u_325.Frame.Bar.Size = UDim2.new(v359 / 10, 0, 1, 0)
end
end
v_u_1._stats.EventLevel.Changed:Connect(function()
-- upvalues: (copy) v_u_360
v_u_360()
end)
v_u_1._stats.EventEXP.Changed:Connect(function()
-- upvalues: (copy) v_u_360
v_u_360()
end)
v_u_360()
end
elseif v_u_321[v_u_323].Name == "Date0" then
if v_u_1._stats:FindFirstChild("EventName") then
v_u_1.gui.Buttons.Menus.Event.TextLabel.Text = v_u_1._stats.EventName.Value .. " Battle Pass"
else
warn("No EventName")
end
if v_u_1._stats:FindFirstChild("EventDates0") then
v_u_325.TextLabel.Text = v_u_1._stats.EventDates0.Value
else
warn("No EventDates0")
end
elseif v_u_321[v_u_323].Name == "Date1" then
if v_u_1._stats:FindFirstChild("EventDates1") then
v_u_325.TextLabel.Text = v_u_1._stats.EventDates1.Value
else
warn("No EventDates1")
end
elseif v_u_321[v_u_323].Type == "Range" then
local function v_u_363()
-- upvalues: (ref) v_u_324, (ref) v_u_325, (copy) v_u_321, (copy) v_u_323, (ref) v_u_1
if v_u_324.Value > 0 then
local v361 = v_u_325.TextButton.TextLabel
local v362 = v_u_324.Value * 10
v361.Text = tostring(v362) .. "%"
v_u_325.TextButton.Bar.Size = UDim2.new(v_u_324.Value / 10, 0, 1, 0)
v_u_325.TextButton.Bar.Visible = true
else
v_u_325.TextButton.TextLabel.Text = "0%"
v_u_325.TextButton.Bar.Visible = false
end
if v_u_321[v_u_323].Name == "VolumeGuns" then
game.SoundService.Weapons.Volume = v_u_324.Value / 10
return
elseif v_u_321[v_u_323].Name == "VolumeMusic" then
game.SoundService.Music.Volume = v_u_324.Value / 10
return
elseif v_u_321[v_u_323].Name == "VolumeZombies" then
game.SoundService.Zombies.Volume = v_u_324.Value / 10
return
elseif v_u_321[v_u_323].Name == "VolumeReload" then
game.SoundService.Reload.Volume = v_u_324.Value / 10
return
elseif v_u_321[v_u_323].Name == "VolumeEffects" then
game.SoundService.Effects.Volume = v_u_324.Value / 10
return
elseif v_u_321[v_u_323].Name == "StatsFrameSize" then
v_u_1.f_upd_sft()
else
game.SoundService[v_u_321[v_u_323].Name].Volume = v_u_324.Value
end
end
v_u_324.Changed:Connect(function()
-- upvalues: (copy) v_u_363
v_u_363()
end)
v_u_325.TextButton.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (ref) v_u_324, (copy) v_u_321, (copy) v_u_323
v_u_1.f_psl2("Click")
local v364 = v_u_324
v364.Value = v364.Value + 1
if v_u_324.Value > 10 then
if v_u_321[v_u_323].Name == "StatsFrameSize" then
v_u_324.Value = 5
else
v_u_324.Value = 0
end
end
v_u_1.f_updsttings()
end)
v_u_363()
elseif v_u_321[v_u_323].Type == "Open" then
v_u_325.TextButton.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_321, (copy) v_u_323
v_u_1.f_psl2("Click")
v_u_1.f_mpgui(v_u_321[v_u_323].Name)
end)
elseif v_u_321[v_u_323].Type == "Custom" and v_u_321[v_u_323].Name == "EditButtons" then
v_u_325.TextButton.Activated:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.f_psl2("Click")
if v_u_1.deployed == true and _G.armory == false then
_G.f_bfa("Hide")
v_u_1.f_tbu("Show")
else
v_u_1.f_mc("Bottom", 5, "This cannot be opened in the main menu.")
end
end)
end
if v_u_321[v_u_323].Text then
v_u_325.Text = v_u_321[v_u_323].Text
end
if v_u_321[v_u_323].Text2 then
v_u_325.TextLabel.Text = v_u_321[v_u_323].Text2
end
v_u_325.Position = UDim2.new(v_u_325.Position.X.Scale, v_u_325.Position.X.Offset, v_u_325.Position.Y.Scale, v322)
local v365 = 0
local v366
if v_u_321[v_u_323].YSize == "Unchanged" then
v366 = v365 + (v_u_325.Size.Y.Offset + 5)
elseif v_u_321[v_u_323].Name == "DailyFrame" or v_u_321[v_u_323].Name == "SeasonFrame" then
v_u_325.Size = UDim2.new(v_u_325.Size.X.Scale, v_u_325.Size.X.Offset, v_u_325.Size.Y.Scale, v_u_321[v_u_323].YSize)
v366 = v365 + (v_u_321[v_u_323].YSize + 5)
else
local v367 = v_u_321[v_u_323].YSize * v304
local v368 = math.ceil(v367)
v_u_325.Size = UDim2.new(v_u_325.Size.X.Scale, v_u_325.Size.X.Offset, v_u_325.Size.Y.Scale, v368)
v366 = v365 + (v368 + 5)
end
if (v_u_321[v_u_323].GameType == nil or v_u_321[v_u_323].GameType == v_u_1.gametype) and (v_u_321[v_u_323].Platform == nil or v_u_321[v_u_323].Platform.ts == true and (_G.screentype == "ts s" or _G.screentype == "ts l") or (v_u_321[v_u_323].Platform.cs == true and _G.screentype == "cs" or v_u_321[v_u_323].Platform.kb == true and _G.screentype == "kb")) then
v_u_325.Visible = true
v322 = v322 + v366
else
v_u_325.Visible = false
end
end
end
end
if v318 == "Settings1" or v318 == "Settings2" then
v320.CanvasSize = UDim2.new(0, 0, 0, v322 + 5)
end
end
v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame2.MusicCredit.TextLabel.Text = workspace.Sounds.Music.Credit.Value
workspace.Sounds.Music.Credit.Changed:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame2.MusicCredit.TextLabel.Text = workspace.Sounds.Music.Credit.Value
end)
workspace.Sounds.Music.Played:Connect(function()
-- upvalues: (ref) v_u_1
if v_u_1._stats.Settings.Music.Value == false then
workspace.Sounds.Music.Volume = 0
end
end)
for v369 = 1, #v315 do
v315[v369]:Destroy()
end
local v370 = v304 * 35
local v371 = math.ceil(v370)
v_u_1.gui.MainMenu.Bar1.Size = UDim2.new(1, 0, 0, v371)
local v372 = 5 + v371 + 5
local v373 = 50 * v304
local v374 = math.ceil(v373)
v_u_1.gui.Tip.Position = UDim2.new(0.2, 0, 1, -v374 - 15)
v_u_1.gui.Tip.Size = UDim2.new(0.6, 0, 0, v374)
v_u_1.gui.MainMenu.Prestige.Position = UDim2.new(0, 0, 0, v372)
v_u_1.gui.MainMenu.Prestige.Size = UDim2.new(1, 0, 1, -v372 - 5)
v_u_1.gui.MainMenu.Cases.Position = UDim2.new(0.5, 0, 0, v372)
v_u_1.gui.MainMenu.Cases.Size = UDim2.new(0.5, 0, 1, -v372 - 5)
local v375 = 150 * v304
local v376 = math.ceil(v375)
v_u_1.gui.MainMenu.Cases.ScrollingFrame.Template.Size = UDim2.new(0.5, 0, 0, v376)
local v377 = 50 * v304
local v378 = math.ceil(v377)
v_u_1.gui.MainMenu.Loadout.Buttons.Position = UDim2.new(0, 0, 0, v372)
v_u_1.gui.MainMenu.Loadout.Buttons.Size = UDim2.new(1, 0, 0, v378)
local v379 = v372 + v378 + 5
v_u_1.gui.MainMenu.Loadout.Menu.Position = UDim2.new(0, 0, 0, v379)
v_u_1.gui.MainMenu.Loadout.Menu.Size = UDim2.new(1, 0, 1, -v379 - 5)
local v380 = v304 * 35
local v381 = math.ceil(v380)
v_u_1.gui.MainMenu.Loadout.Menu.TierButtons.Size = UDim2.new(1, 0, 0, v381)
local v382 = v381 + 5
v_u_1.gui.MainMenu.Loadout.Menu.Tiers.Position = UDim2.new(0, 0, 0, v382)
v_u_1.gui.MainMenu.Loadout.Menu.Tiers.Size = UDim2.new(1, 0, 1, -v382)
local v383 = v304 * 35
local v384 = math.ceil(v383)
v_u_1.gui.MainMenu.Loadout.Menu.Tiers.Template.Primary.Template.Size = UDim2.new(1, 0, 0, v384)
local v385 = v304 * 35
local v386 = math.ceil(v385)
v_u_1.gui.MainMenu.Loadout.Menu["Attachment Classes Buttons"].Position = UDim2.new(0, 0, 0, 0)
v_u_1.gui.MainMenu.Loadout.Menu["Attachment Classes Buttons"].Size = UDim2.new(0.5, 0, 0, v386)
v_u_1.gui.MainMenu.Loadout.Menu["Attachment Classes"].Position = UDim2.new(0.5, 0, 0, 0)
v_u_1.gui.MainMenu.Loadout.Menu["Attachment Classes"].Size = UDim2.new(0.5, 0, 1, 0)
local v387 = v304 * 35
local v388 = math.ceil(v387)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Position = UDim2.new(0, 0, 0, 0)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1.Size = UDim2.new(0.5, 0, 0, v388)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Position = UDim2.new(0.5, 0, 0, 0)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2.Size = UDim2.new(0.5, 0, 0, v388)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.Position = UDim2.new(0.5, 0, 0, 0)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum.Size = UDim2.new(0.5, 0, 1, 0)
local _ = v388 + 5
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Position = UDim2.new(0.5, 0, 0, v388)
v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Size = UDim2.new(0.5, 0, 1, -v388)
local v389 = v_u_1.gui.MainMenu.Bar1.Size.Y.Offset + 10
local v390 = 40 * v304
local v391 = math.ceil(v390)
v_u_1.gui.MainMenu.Character.Bar.Position = UDim2.new(0, 0, 0, v389)
v_u_1.gui.MainMenu.Character.Bar.Size = UDim2.new(1, 0, 0, v391)
local v392 = v389 + v391
v_u_1.gui.MainMenu.Character.Menus.Position = UDim2.new(0, 0, 0, v392)
v_u_1.gui.MainMenu.Character.Menus.Size = UDim2.new(1, 0, 1, -v392 - 5)
local v393 = 170 * v304
local v394 = math.ceil(v393)
v_u_1.gui.MainMenu.Character.Menus.Template.TemplateSingle.Size = UDim2.new(0.25, 0, 0, v394)
local v395 = 225 * v304
local v396 = math.ceil(v395)
v_u_1.gui.MainMenu.Character.Menus.Template.TemplateDual.Size = UDim2.new(0.5, 0, 0, v396)
local v397 = 30 * v304
local v398 = math.ceil(v397)
v_u_1.gui.MainMenu.Character.Menus.Template.TemplateTitle.Size = UDim2.new(0.5, 0, 0, v398)
local v399 = 30 * v304
local v400 = math.ceil(v399)
local v401 = { v_u_1.gui.MenuPrompt.Bar.TextLabel, v_u_1.gui.MenuPrompt.Bar.Close }
local v402 = 0
local v403 = {}
for v404 = 1, #v_u_1.changelog.module.List do
local v405 = v_u_1.changelog.module.List[v404]
if v405.Type == "Gap" then
v402 = v402 + v400
elseif v405.Type == "Image" then
local v406 = 1 / #v405.Images
for v407 = 1, #v405.Images do
local v408 = v_u_1.gui.MenuPrompt.Changelog.ScrollingFrame:FindFirstChild(tostring(v404) .. "-" .. tostring(v407))
if v408 == nil then
v408 = v_u_1.changelog.imagetemplate:Clone()
v408.Image = "rbxassetid://" .. v405.Images[v407]
v408.Name = tostring(v404) .. "-" .. tostring(v407)
v408.Name = tostring(v404)
v408.Parent = v_u_1.gui.MenuPrompt.Changelog.ScrollingFrame
end
if v405.Text[v407] ~= nil then
v408.TextLabel.Text = v405.Text[v407]
end
v408.Size = UDim2.new(v406, 0, 0, v405.ImageSize)
v408.Position = UDim2.new(v406 * (v407 - 1), 0, 0, v402)
end
v402 = v402 + v405.ImageSize
else
local v409 = v_u_1.gui.MenuPrompt.Changelog.ScrollingFrame:FindFirstChild((tostring(v404)))
if v409 == nil then
if v405.Type == "Title" then
v409 = v_u_1.changelog.texttemplatebold:Clone()
elseif v405.Type == "Line" then
v409 = v_u_1.changelog.texttemplate:Clone()
end
v409.Text = v405.Text
v409.Name = tostring(v404)
v409.Parent = v_u_1.gui.MenuPrompt.Changelog.ScrollingFrame
end
v409.Size = UDim2.new(1, 0, 0, v400)
v409.Position = UDim2.new(0, 0, 0, v402)
v402 = v402 + v400
table.insert(v403, v409)
end
end
if v_u_1.gametype == "Zombies" then
v_u_1.gui.MenuPrompt.StarterPack.TextLabel1.Text = "Get all tier 1-3 weapons and perks!"
v_u_1.gui.MenuPrompt.StarterPack.TextLabel2.Text = "Already-owned items give in-game money instead"
v_u_1.gui.MenuPrompt.StarterPack.TextLabel3.Text = "$3,000 is guaranteed, with up to $23,000 if tiers 1-3 are already owned"
v_u_1.gui.MenuPrompt.StarterPack.TextLabel4.Text = "460 Robux value for the price of 199"
v_u_1.gui.MenuPrompt.StarterPack.ImageLabel.Image = "rbxassetid://4980727300"
elseif v_u_1.gametype == "Tycoon" then
v_u_1.gui.MenuPrompt.StarterPack.TextLabel1.Text = "Get all tier 1-3 items and base level 2!"
v_u_1.gui.MenuPrompt.StarterPack.TextLabel2.Text = "Already-owned items give in-game money instead"
v_u_1.gui.MenuPrompt.StarterPack.TextLabel3.Text = "$3,000 is guaranteed, with up to $23,000 if tiers 1-3 are already owned"
v_u_1.gui.MenuPrompt.StarterPack.TextLabel4.Text = "460 Robux value for the price of 199"
v_u_1.gui.MenuPrompt.StarterPack.ImageLabel.Image = "rbxassetid://14592982087"
end
local v410 = v_u_1.gui.MenuPrompt:GetChildren()
for v411 = 1, #v410 do
if v410[v411].Name == "StarterPack" or v410[v411].Name == "AK-47" then
local v412 = v410[v411]:GetChildren()
for v413 = 1, #v412 do
if v412[v413].Name == "Buy" then
local v414 = v412[v413]
table.insert(v401, v414)
elseif v412[v413].ClassName == "TextLabel" then
local v415 = v412[v413]
table.insert(v403, v415)
end
end
end
end
v_u_1.f_ltfs(v401)
v_u_1.f_ltfs(v403)
local v416 = 0.3
local v417 = 0.2
if _G.screentype == "cs" or _G.screentype == "ts s" then
v416 = 0.4
v417 = 0.35
elseif _G.screentype == "ts l" then
v416 = 0.35
v417 = 0.3
end
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Size = UDim2.new(v416, 0, v417, 0)
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Position = UDim2.new((1 - v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Size.X.Scale) / 2, 0, 1 - v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Size.Y.Scale - 0.05, 0)
function v_u_1.f_updOHBB()
-- upvalues: (ref) v_u_1
local v418 = v_u_1.gui.MenuPrompt.OHGP.PreviewFrame.BBG
local v419 = v_u_1._stats.Settings:GetChildren()
local v420 = {}
v418.Rank.Text = v_u_1._stats.Role.Value
if v_u_1.player.Team then
v418.Rank.TextColor3 = v_u_1.player.Team.TeamColor.Color
v418.ImageLabel.ImageColor3 = v_u_1.player.Team.TeamColor.Color
end
for v421 = 1, #v419 do
if v419[v421].Name == "OHGP_DisplayName" then
if v419[v421].Value == true then
v418.PlayerName.Text = v_u_1.player.DisplayName
else
v418.PlayerName.Text = v_u_1.player.Name
end
elseif v419[v421].Name == "OHGP_ShowRank" then
v418.Rank.Visible = v419[v421].Value
elseif v419[v421].Name == "OHGP_ShowData" then
if v419[v421].Value == "Prestige" then
if v_u_1._stats.Prestige.Value > 0 then
v418.Data.Visible = true
local v422 = v418.Data
local v423 = v_u_1._stats.Prestige.Value
v422.Text = "Prestige " .. tostring(v423)
else
v418.Data.Visible = false
end
elseif v419[v421].Value == "Level" then
v418.Data.Visible = true
local v424 = v418.Data
local v425 = v_u_1._stats.Level.Value
v424.Text = "Level " .. tostring(v425)
elseif v419[v421].Value == "None" then
v418.Data.Visible = false
end
elseif v419[v421].Name == "OHGP_Colour" then
if v419[v421].Value == "" then
v418.PlayerName.TextColor3 = Color3.new(1, 1, 1)
else
v418.PlayerName.TextColor3 = BrickColor.new(v419[v421].Value).Color
end
elseif v419[v421].Name == "OHGP_ColourRank" and v419[v421].Value ~= "" then
v418.Rank.TextColor3 = BrickColor.new(v419[v421].Value).Color
elseif v419[v421].Name == "OHGP_ColourData" then
if v419[v421].Value == "" then
if v_u_1._stats.Settings.OHGP_ShowData.Value == "Prestige" then
local v426 = nil
if v_u_1._stats.Prestige.Value == 1 then
v426 = Color3.new(1, 0, 0.4980392156862745)
elseif v_u_1._stats.Prestige.Value == 2 then
v426 = Color3.new(0, 1, 0)
elseif v_u_1._stats.Prestige.Value == 3 then
v426 = Color3.new(1, 0, 0)
elseif v_u_1._stats.Prestige.Value == 4 then
v426 = Color3.new(0.01568627450980392, 0.6862745098039216, 0.9254901960784314)
elseif v_u_1._stats.Prestige.Value >= 5 then
v426 = Color3.new(0.9372549019607843, 0.7215686274509804, 0.2196078431372549)
end
if v426 then
v418.Data.TextColor3 = v426
else
v418.Data.TextColor3 = Color3.new(1, 1, 1)
end
elseif v_u_1._stats.Settings.OHGP_ShowData.Value == "Level" then
v418.Data.TextColor3 = Color3.new(1, 1, 1)
end
else
v418.Data.TextColor3 = BrickColor.new(v419[v421].Value).Color
end
end
end
local v427 = { "Data", "Rank", "PlayerName" }
local v428 = 0.1
for v429 = 1, #v427 do
local v430 = v418[v427[v429]]
if v430.Visible == true then
v428 = v428 + v430.Size.Y.Scale
v430.Position = UDim2.new(v430.Position.X.Scale, v430.Position.X.Offset, 1 - v428, v430.Position.Y.Offset)
end
end
local v431 = v418:GetChildren()
for v432 = 1, #v431 do
if v431[v432].ClassName == "TextLabel" or v431[v432].ClassName == "TextButton" then
local v433 = v431[v432]
table.insert(v420, v433)
local v434 = v431[v432]:GetChildren()
for v435 = 1, #v434 do
if v434[v435].ClassName == "TextLabel" or v434[v435].ClassName == "TextButton" then
local v436 = v434[v435]
table.insert(v420, v436)
end
end
end
end
v_u_1.f_ltfs(v420)
end
function v_u_1.f_updOHGP(p437)
-- upvalues: (ref) v_u_1
local v438 = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame:FindFirstChild(p437)
local v439 = v_u_1._stats.Settings:FindFirstChild(p437)
if v439 then
if v439.Name == "OHGP_DisplayName" then
if v439.Value == true then
v438.TextButton.Text = "Display Name"
else
v438.TextButton.Text = "Username"
end
elseif v439.Name == "OHGP_ShowRank" then
if v439.Value == true then
v438.TextButton.Text = "Visible"
v438.TextButton.BackgroundColor3 = Color3.new(0.29411764705882354, 0.592156862745098, 0.29411764705882354)
else
v438.TextButton.Text = "Hidden"
v438.TextButton.BackgroundColor3 = Color3.new(0.7686274509803922, 0.1568627450980392, 0.10980392156862745)
end
elseif v439.Name == "OHGP_ShowData" then
if v439.Value == "None" then
v438.TextButton.BackgroundColor3 = Color3.new(0.7686274509803922, 0.1568627450980392, 0.10980392156862745)
else
v438.TextButton.BackgroundColor3 = Color3.new(0.29411764705882354, 0.592156862745098, 0.29411764705882354)
end
v438.TextButton.Text = v439.Value
return
else
local v440 = v439.Value
if type(v440) == "boolean" then
if v439.Value == true then
v438.TextButton.Text = "Yes"
v438.TextButton.BackgroundColor3 = Color3.new(0.29411764705882354, 0.592156862745098, 0.29411764705882354)
else
v438.TextButton.Text = "No"
v438.TextButton.BackgroundColor3 = Color3.new(0.7686274509803922, 0.1568627450980392, 0.10980392156862745)
end
elseif v439.Name == "OHGP_Colour" then
local v441 = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame.Colours:GetChildren()
for v442 = 1, #v441 do
v441[v442].SelectedFrame.Visible = v441[v442].Name == v439.Value
end
return
elseif v439.Name == "OHGP_ColourRank" then
local v443 = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame.ColoursRank:GetChildren()
for v444 = 1, #v443 do
v443[v444].SelectedFrame.Visible = v443[v444].Name == v439.Value
end
return
elseif v439.Name == "OHGP_ColourData" then
local v445 = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame.ColoursPrestige:GetChildren()
for v446 = 1, #v445 do
v445[v446].SelectedFrame.Visible = v445[v446].Name == v439.Value
end
else
local v447 = warn
local v448 = v439.Value
v447("No code for", type(v448), v439:GetFullName())
end
end
else
warn("No Setting for", p437)
return
end
end
local v449 = 30 * v304
local v450 = math.ceil(v449)
local v451 = {}
local v_u_452 = {
"TextLabel1",
"OHGP_DisplayName",
"ExtraData1",
"OHGP_ShowRank",
"OHGP_ShowData",
"ExtraData2",
"OHGP_SelfVisible",
"TextLabel2"
}
local v453 = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame
local v454 = v_u_1.gui.MenuPrompt.OHGP.PreviewFrame.TextLabel1
v454.Size = UDim2.new(v454.Size.X.Scale, v454.Size.X.Offset, v454.Size.Y.Scale, v450)
table.insert(v451, v454)
local v455 = 0
local v_u_456 = { "OHGP_Colour", "OHGP_ColourRank", "OHGP_ColourData" }
local v457 = {}
local v458 = {}
for v_u_459 = 1, #v_u_452 do
local v460 = v453:FindFirstChild(v_u_452[v_u_459])
if v460 then
v460.Position = UDim2.new(v460.Position.X.Scale, v460.Position.X.Offset, v460.Position.Y.Scale, v455)
v460.Size = UDim2.new(v460.Size.X.Scale, v460.Size.X.Offset, v460.Size.Y.Scale, v450)
v455 = v455 + (v450 + 5)
v453.CanvasSize = UDim2.new(v453.CanvasSize.X.Scale, v453.CanvasSize.X.Offset, v453.CanvasSize.Y.Scale, v453.CanvasSize.Y.Offset + v450 + 5)
v460.Visible = true
if v460:FindFirstChild("TextButton") then
v460.TextButton.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_452, (copy) v_u_459
v_u_1.f_psl2("Click")
if v_u_1.f_chkgp("Custom Overhead Colors") == true then
local v461 = v_u_1._stats.Settings:FindFirstChild(v_u_452[v_u_459])
if v461 then
if v_u_452[v_u_459] == "OHGP_ShowData" then
if v461.Value == "Prestige" then
v461.Value = "Level"
elseif v461.Value == "Level" then
v461.Value = "None"
else
v461.Value = "Prestige"
end
if v461.Value == "Prestige" and v_u_1._stats.Prestige.Value == 0 then
v_u_1.f_mc("Bottom", 3, "You have not prestiged yet")
end
else
v461.Value = not v461.Value
if v_u_452[v_u_459] == "OHGP_DisplayName" and v_u_1.player.DisplayName == v_u_1.player.Name then
v_u_1.f_mc("Bottom", 3, "Your username and display name are the same")
end
end
v_u_1.f_updsttings()
else
warn("No Setting instance for", v_u_452[v_u_459])
end
else
v_u_1.mps:PromptGamePassPurchase(v_u_1.player, v_u_1.gamearrays.gamepasses["Custom Overhead Colors"].Id)
v_u_1.f_mc("Bottom", 4, "You do not own the gamepass")
return
end
end)
local v462 = v460.Name
table.insert(v_u_456, v462)
local v463 = v460.TextButton
table.insert(v451, v463)
elseif v460:FindFirstChild("TextLabel") then
local v464 = v460.TextLabel
table.insert(v451, v464)
end
table.insert(v451, v460)
end
end
local v465 = 50 * v304
local v466 = math.ceil(v465)
local v467 = v453.Colours.Template:Clone()
v453.Colours.Template:Destroy()
local v468 = {
"",
"Institutional white",
"Ghost grey",
"Smoky grey",
"Black",
"Really black",
"New Yeller",
"Deep orange",
"Neon orange",
"Reddish brown",
"Medium brown",
"Burnt Sienna",
"Salmon",
"Pink",
"Hot pink",
"Really red",
"Persimmon",
"Maroon",
"Alder",
"Magenta",
"Royal purple",
"Dark indigo",
"Lime green",
"Bright green",
"Parsley green",
"Earth green",
"Toothpaste",
"Cyan",
"Medium blue",
"Really blue",
"Bright bluish green",
"Dark blue",
"Navy blue"
}
v453.Colours.Position = UDim2.new(v453.Colours.Position.X.Scale, v453.Colours.Position.X.Offset, v453.Colours.Position.Y.Scale, v455)
local v469 = v455 + v466
v453.Colours.Size = UDim2.new(v453.Colours.Size.X.Scale, v453.Colours.Size.X.Offset, v453.Colours.Size.Y.Scale, v453.Colours.Size.Y.Offset + v466)
v453.CanvasSize = UDim2.new(v453.CanvasSize.X.Scale, v453.CanvasSize.X.Offset, v453.CanvasSize.Y.Scale, v453.CanvasSize.Y.Offset + v466)
local v470 = 0
local v471 = 0
for v472 = 1, #v468 do
local v473 = v467:Clone()
if v468[v472] == "" then
v473.TextLabel.Text = "Default"
else
v473.TextLabel.Text = v468[v472]
v473.BackgroundColor3 = BrickColor.new(v468[v472]).Color
end
v473.Name = v468[v472]
v473.Position = UDim2.new(v470, v473.Position.X.Offset, v473.Position.Y.Scale, v471)
v473.Size = UDim2.new(v473.Size.X.Scale, v473.Size.X.Offset, v473.Size.Y.Scale, v466)
v470 = v470 + 0.25
if v470 >= 1 then
v471 = v471 + v466
v469 = v469 + v466
v453.Colours.Size = UDim2.new(v453.Colours.Size.X.Scale, v453.Colours.Size.X.Offset, v453.Colours.Size.Y.Scale, v453.Colours.Size.Y.Offset + v466)
v453.CanvasSize = UDim2.new(v453.CanvasSize.X.Scale, v453.CanvasSize.X.Offset, v453.CanvasSize.Y.Scale, v453.CanvasSize.Y.Offset + v466)
v470 = 0
end
v473.Parent = v453.Colours
end
local v474 = {
{
["Name"] = "ColoursRank",
["TextLabel"] = "TextLabel3",
["Stat"] = "OHGP_ColourRank"
},
{
["Name"] = "ColoursPrestige",
["TextLabel"] = "TextLabel4",
["Stat"] = "OHGP_ColourData"
}
}
local v475 = v469 + 5
for v476 = 1, #v474 do
local v477 = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame:FindFirstChild(v474[v476].TextLabel)
v477.Size = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame.TextLabel1.Size
table.insert(v457, v477)
v453.CanvasSize = UDim2.new(v453.CanvasSize.X.Scale, v453.CanvasSize.X.Offset, v453.CanvasSize.Y.Scale, v453.CanvasSize.Y.Offset + v477.Size.Y.Offset + 5)
v477.Position = UDim2.new(v477.Position.X.Scale, v477.Position.X.Offset, v477.Position.Y.Scale, v475)
local v478 = v475 + (v477.Size.Y.Offset + 5)
local v479 = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame.Colours:Clone()
v479.Name = v474[v476].Name
v479.Parent = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame
v479.Position = UDim2.new(v479.Position.X.Scale, v479.Position.X.Offset, v479.Position.Y.Scale, v478)
v475 = v478 + (v479.Size.Y.Offset + 5)
v453.CanvasSize = UDim2.new(v453.CanvasSize.X.Scale, v453.CanvasSize.X.Offset, v453.CanvasSize.Y.Scale, v453.CanvasSize.Y.Offset + v479.Size.Y.Offset + 5)
end
local v480 = v_u_1.gui.MenuPrompt.OHGP.ScrollingFrame:GetChildren()
for v481 = 1, #v480 do
local v_u_482 = v480[v481].Name == "Colours" and "OHGP_Colour" or (v480[v481].Name == "ColoursRank" and "OHGP_ColourRank" or (v480[v481].Name == "ColoursPrestige" and "OHGP_ColourData" or nil))
if v_u_482 then
local v_u_483 = v480[v481]:GetChildren()
for v_u_484 = 1, #v_u_483 do
local v485 = v_u_483[v_u_484].TextLabel
table.insert(v458, v485)
v_u_483[v_u_484].Activated:Connect(function()
-- upvalues: (ref) v_u_1, (ref) v_u_482, (copy) v_u_483, (copy) v_u_484
v_u_1.f_psl2("Click")
if v_u_1.f_chkgp("Custom Overhead Colors") == true then
v_u_1._stats.Settings[v_u_482].Value = v_u_483[v_u_484].Name
v_u_1.f_updsttings()
else
v_u_1.mps:PromptGamePassPurchase(v_u_1.player, v_u_1.gamearrays.gamepasses["Custom Overhead Colors"].Id)
v_u_1.f_mc("Bottom", 4, "You do not own the gamepass")
end
end)
end
end
end
v_u_1.f_ltfs(v451)
v_u_1.f_ltfs(v458)
v_u_1.f_ltfs(v457)
for v_u_486 = 1, #v_u_456 do
v_u_1.f_updOHGP(v_u_456[v_u_486])
local v487 = v_u_1._stats.Settings:FindFirstChild(v_u_456[v_u_486])
if v487 then
v487.Changed:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_456, (copy) v_u_486
v_u_1.f_updOHGP(v_u_456[v_u_486])
v_u_1.f_updOHBB()
end)
end
end
v_u_1.f_updOHBB()
local v488 = {
{
["ImageName"] = "ButtonY",
["ImageColor"] = Color3.new(0.9254901960784314, 0.8588235294117647, 0.2),
["List"] = { v_u_1.gui.Tycoon.BaseMenu.Bar.SelectAll }
},
{
["ImageName"] = "ButtonX",
["ImageColor"] = Color3.new(0.25098039215686274, 0.8, 0.8156862745098039),
["List"] = { v_u_1.gui.Tycoon.BaseMenu.PurchasePrompt.Frame1, v_u_1.gui.Tycoon.BaseMenu.Bar.Sell, v_u_1.gui.Tycoon.BaseMenu.ConfirmPrompt.Buy }
},
{
["ImageName"] = "ButtonA",
["ImageColor"] = Color3.new(0.23529411764705882, 0.8588235294117647, 0.3058823529411765),
["List"] = { v_u_1.gui.Tycoon.BaseMenu.Bar.Upgrade }
},
{
["ImageName"] = "ButtonB",
["ImageColor"] = Color3.new(0.8156862745098039, 0.25882352941176473, 0.25882352941176473),
["List"] = {
v_u_1.gui.StatCard.Close,
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Close,
v_u_1.gui.MenuPrompt.Bar.Close,
v_u_1.gui.Vehicles.Purchase.Close,
v_u_1.bgui.Bar.Close,
v_u_1.bgui.Structures.Bar.Close,
v_u_1.bgui.Base.Bar.Close,
v_u_1.gui.Tycoon.BaseMenu.PurchasePrompt.Frame2,
v_u_1.gui.Tycoon.BaseMenu.ConfirmPrompt.Close,
v_u_1.gui.Tutorial.Bottom.TextButton.Close.ImageLabelConsole,
v_u_1.gui.Tycoon.BaseMenu.Rebirths.Bar.Close
}
}
}
local v489 = v_u_1.gui.Notifications:GetChildren()
for v490 = 1, #v489 do
if v489[v490]:FindFirstChild("Close") then
local v491 = v488[3]
local v492 = v489[v490].Close
table.insert(v491, v492)
end
end
local v493 = v_u_1.gui.Buttons.Menus:GetChildren()
for v494 = 1, #v493 do
if v493[v494]:FindFirstChild("Close") then
local v495 = v488[3]
local v496 = v493[v494].Close
table.insert(v495, v496)
end
end
for v497 = 1, #v488 do
for v498 = 1, #v488[v497].List do
local v499 = v488[v497].List[v498]:FindFirstChild("ImageLabelConsole")
if _G.screentype == "cs" then
if v499 == nil then
v499 = Instance.new("ImageLabel")
v499.ImageColor3 = Color3.new(1, 1, 1)
v499.Name = "ImageLabelConsole"
v499.BackgroundTransparency = 1
v499.Size = UDim2.new(1, -10, 1, -10)
v499.Position = UDim2.new(0, 5, 0, 5)
v499.ZIndex = v488[v497].List[v498].ZIndex
v499.ScaleType = Enum.ScaleType.Fit
v499.Parent = v488[v497].List[v498]
if (v488[v497].List[v498].ClassName == "TextLabel" or v488[v497].List[v498].ClassName == "TextButton") and (string.lower(v488[v497].List[v498].Text) == "cancel" or string.lower(v488[v497].List[v498].Text) == "close") then
v499.Size = UDim2.new(0.25, -10, 1, -10)
end
else
v499.ImageColor3 = Color3.new(1, 1, 1)
v499.Visible = true
end
v499.Image = v_u_1.ControlsModule.GetImage(v499, v488[v497].ImageName).Image
v499.ImageColor3 = v488[v497].ImageColor
if (v488[v497].List[v498].ClassName == "TextLabel" or v488[v497].List[v498].ClassName == "TextButton") and string.lower(v488[v497].List[v498].Text) == "x" then
v488[v497].List[v498].Text = ""
end
elseif v499 ~= nil then
v499:Destroy()
end
end
end
end
function v_u_1.f_ltfs(p500, p501, p502)
-- upvalues: (copy) v_u_1
local v503 = 0
for v_u_504 = 1, 100 do
local v505 = true
for _, v506 in ipairs(p500) do
v506.RichText = true
end
for _, v_u_507 in ipairs(p500) do
local v_u_508 = v_u_507.RichText == true and v_u_507.ContentText or v_u_507.Text
local v_u_509 = nil
local v511, _ = pcall(function()
-- upvalues: (copy) v_u_508, (copy) v_u_507, (copy) v_u_504, (ref) v_u_509, (ref) v_u_1
local v510 = Instance.new("GetTextBoundsParams")
v510.Text = v_u_508
v510.Font = Font.fromEnum(v_u_507.Font)
v510.Size = v_u_504
v510.Width = v_u_507.AbsoluteSize.X
v_u_509 = v_u_1.TextService:GetTextBoundsAsync(v510)
v510:Destroy()
end)
if v511 == false then
v_u_509 = v_u_1.TextService:GetTextBoundsAsync(v_u_508, v_u_504, v_u_507.Font, Vector2.new(v_u_507.AbsoluteSize.X, v_u_507.AbsoluteSize.Y))
end
if v_u_509.X + 1 > v_u_507.AbsoluteSize.X or v_u_509.Y + 1 > v_u_507.AbsoluteSize.Y then
v505 = false
break
end
end
if v505 ~= true then
break
end
v503 = v_u_504
end
local v512 = 5
local v513 = _G.screentype == "cs" and 18 or 12
if p501 == nil then
p501 = v503
elseif p501 >= v503 then
p501 = v503
end
local v514 = p502 == true and 0 or v512
local v515
if v513 <= p501 - v514 then
v515 = p501 - v514
else
v515 = p501 < 10 and 10 or p501
end
for _, v516 in ipairs(p500) do
v516.TextScaled = false
v516.TextWrapped = true
v516.TextSize = v515
end
end
function v_u_1.f_ac(p517)
local v518 = tostring(p517)
return #v518 % 3 == 0 and v518:reverse():gsub("(%d%d%d)", "%1,"):reverse():sub(2) or v518:reverse():gsub("(%d%d%d)", "%1,"):reverse()
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading text.."
v_u_1.casegui = v_u_1.gui.MainMenu.CameraFrame.CaseGui
v_u_1.caseguiM = v_u_1.gui.MainMenu.CameraFrame.CaseGuiMultiple
local v_u_519 = v_u_1.casegui.Frame.Template:Clone()
v_u_1.casegui.Frame.Template:Destroy()
function v_u_1.f_ams2(p520, p521, p522)
-- upvalues: (copy) v_u_1
local v523 = nil
local v524 = v_u_1.customisation.Module.MeleeSkins[p520]
if v524 then
for v525 = 1, #v524 do
if v524[v525].Name == p521 then
if v524[v525].Sections and v524[v525].Sections.Blade then
v523 = v524[v525].Sections.Blade
end
break
end
end
local v526 = game.ReplicatedStorage.Assets.GunModels[p520]:Clone()
v526.Parent = p522.ViewportFrame
local v527, _ = v526:GetBoundingBox()
v526.PrimaryPart = v526.Trigger
v526.PrimaryPart.CFrame = v527
if v523 then
local v528 = v526:GetChildren()
for v529 = 1, #v528 do
if v528[v529].Name == "Section1" then
if v523.BrickColour then
v528[v529].BrickColor = BrickColor.new(v523.BrickColour)
end
if v523.Material then
v528[v529].Material = v523.Material
end
if v523.Texture then
v_u_1.f_at(v528[v529], v523.Texture, 2)
end
end
end
if v523.BrickColour then
p522.BackgroundTransparency = 0.5
p522.BackgroundColor3 = BrickColor.new(v523.BrickColour).Color
end
if v523.Texture then
p522.BackgroundTransparency = 0.5
p522.Image = v523.Texture
end
end
local v530 = p522.ViewportFrame
local v531 = Instance.new("Camera")
v531.FieldOfView = 1
v531.Parent = v530
v530.CurrentCamera = v531
local v532, v533 = v526:GetBoundingBox()
local v534 = CFrame.Angles(0, -1.5707963267948966, 0)
local v535 = v534:VectorToObjectSpace(v533)
local v536 = v535.X
local v537 = math.abs(v536)
local v538 = v535.Y
local v539 = math.abs(v538)
local v540 = v535.Z
local v541 = math.abs(v540)
local v542 = v531.FieldOfView / 2
local v543 = math.rad(v542)
local v544 = v539 / (math.tan(v543) * 2) + v541 / 2
local v545 = v530.Parent.AbsoluteSize.X
local v546 = v530.Parent.AbsoluteSize.Y
local v547 = v539 < v537 and v545 and v545 or v545 * (v537 / v539)
local v548 = v537 < v539 and v546 and v546 or v545 * (v539 / v537)
v530.Size = UDim2.new(0, v547, 0, v548)
v530.Position = UDim2.new(0.5, -v547 / 2, 0.5, -v548 / 2)
v531.CFrame = v532 * v534 * CFrame.new(0, 0, v544)
end
end
function v_u_1.f_csanim()
-- upvalues: (copy) v_u_1
v_u_1.f_psl(nil, 4416840411, 1, 1, nil, v_u_1.SoundService.Effects)
for v549 = 1, 30 do
if v549 == 15 then
v_u_1.f_psl(nil, 3908308607, 1, 1, nil, v_u_1.SoundService.Effects)
end
if v_u_1.MenuRoom.Model and (v_u_1.MenuRoom.Model.Name == "Case" and v_u_1.MenuRoom.Model.Parent) then
local v550 = v_u_1.MenuRoom.Model.Hinge
local v551 = v_u_1.MenuRoom.Model.Hinge0.CFrame
local v552 = CFrame.Angles
local v553 = 60 * (v549 / 30)
v550.CFrame = v551 * v552(math.rad(v553), 0, 0)
end
task.wait(0.016666666666666666)
end
v_u_1.f_psl(nil, 936628495, 1, 1, nil, v_u_1.SoundService.Effects)
task.delay(0.5, function()
-- upvalues: (ref) v_u_1
v_u_1.f_psl2("Rank 2")
end)
end
function v_u_1.f_opncs(p554, p555, p556)
-- upvalues: (copy) v_u_1, (copy) v_u_519
v_u_1.casegui.Frame:ClearAllChildren()
v_u_1.caseguiM.Frame:ClearAllChildren()
v_u_1.caseguiM.Visible = false
v_u_1.casegui.Visible = false
local v557 = 1
local v558 = 1
if p555 and p556 then
v_u_1.casegui.Frame:TweenPosition(UDim2.new(0, 0, 0.2, 0), "Out", "Quad", 0.01, true)
else
v_u_1.caseguiM.Visible = true
task.wait(0.2)
end
local v559 = v_u_1._stats.Owned:GetChildren()
local v560 = {}
for v561 = 1, #v559 do
if v_u_1.weaponclasses[v559[v561].Name] and (v_u_1.weaponclasses[v559[v561].Name].Type == "Primary" or v_u_1.weaponclasses[v559[v561].Name].Type == "Secondary") then
local v562 = v559[v561].Name
table.insert(v560, v562)
end
end
for v563 = 1, #p554 do
local v564 = nil
local v565 = nil
local v566 = v_u_519:Clone()
local v567 = p554[v563]
local v568
if type(v567) == "table" then
v568 = p554[v563].Name
v564 = p554[v563].Skin
else
v568 = p554[v563]
end
v566.Name = v568
local v569 = ""
if string.sub(v568, 1, 1) == "$" then
local v570 = string.gsub(v568, "%D", "")
local v571 = tonumber(v570)
if v571 <= 1000 then
v569 = "rbxassetid://" .. 7074815912
elseif v571 <= 5000 then
v569 = "rbxassetid://" .. 7074816575
elseif v571 <= 25000 then
v569 = "rbxassetid://" .. 7074816948
else
v569 = "rbxassetid://" .. 7074817229
end
elseif string.find(v568, "Points") == nil then
if v_u_1.casearray[v568] then
v569 = "rbxassetid://" .. v_u_1.casearray[v568].Image
elseif v_u_1.customisation.Module.Stats[v568] then
v569 = v_u_1.customisation.Module.Stats[v568].Texture
v565 = v560[v_u_1.rng:NextInteger(1, #v560)]
end
else
v566.BackgroundColor3 = BrickColor.new("Pearl").Color
end
if v569 then
v566.Image = v569
else
v566.Image = ""
end
if v_u_1.customisation.Module.Stats[v568] and v_u_1.customisation.Module.Stats[v568].BackgroundColor then
v566.BackgroundColor3 = v_u_1.customisation.Module.Stats[v568].BackgroundColor
end
v566.TextLabel.Text = v568
if p555 and p556 then
v566.Position = UDim2.new(v_u_519.Size.X.Scale * (v563 - 1), 0, 0, 0)
v566.Parent = v_u_1.casegui.Frame
else
task.wait(0.2)
if v558 > 4 then
v557 = v557 + 1
v558 = 1
end
v566.Size = UDim2.new(0.25, 0, 0, 100)
v566.Position = UDim2.new((v558 - 1) * 0.25, 0, 0, (v557 - 1) * 100)
v566.Parent = v_u_1.caseguiM.Frame
v_u_1.f_psl(nil, 3908308607, 1, 1, nil, v_u_1.SoundService.Effects)
v558 = v558 + 1
v_u_1.caseguiM.Frame.CanvasSize = UDim2.new(0, 0, 0, v557 * 100)
v_u_1.caseguiM.Frame.CanvasPosition = Vector2.new(0, v557 * 100)
end
if v_u_1.customisation.Module.MeleeSkins[v568] then
v_u_1.f_ams2(v568, v564, v566)
v566.TextLabel3.Text = v564
elseif p554[v563].WeaponName then
v566.TextLabel2.Text = "For " .. p554[v563].WeaponName
elseif v565 then
v566.TextLabel2.Text = "For " .. v565
end
if p554[v563].Rarity then
v566.TextLabel3.Text = p554[v563].Rarity
if p554[v563].Rarity == "Legendary Skin" then
v566.TextLabel3.TextColor3 = BrickColor.new("Neon orange").Color
elseif p554[v563].Rarity == "Epic Skin" then
v566.TextLabel3.TextColor3 = BrickColor.new("Bright blue").Color
elseif p554[v563].Rarity == "Rare Skin" then
v566.TextLabel3.TextColor3 = BrickColor.new("Bright red").Color
elseif p554[v563].Rarity == "Uncommon Skin" then
v566.TextLabel3.TextColor3 = BrickColor.new("Copper").Color
elseif p554[v563].Rarity == "Common Skin" then
v566.TextLabel3.TextColor3 = BrickColor.new("Dark stone grey").Color
end
end
end
v_u_1.f_ugs(v_u_1.casegui.Bar.TextButton)
if p555 and p556 then
v_u_1.casegui.Frame.Position = UDim2.new(0, 0, 0.2, 0)
v_u_1.casegui.Visible = true
task.wait()
local v572 = 0.5 - v_u_519.Size.X.Scale * (#p554 - p556) - v_u_1.rng:NextNumber(0, v_u_519.Size.X.Scale / 2)
local v573 = UDim2.new(v572, 0, 0.2, 0)
local v_u_574 = 7
task.spawn(function()
-- upvalues: (ref) v_u_574, (ref) v_u_1, (ref) v_u_519
local v575 = 0
local v576 = false
local v577 = 1
while v575 <= v_u_574 and v_u_1.sttings.OpeningCase == true do
v575 = v575 + task.wait(0.016666666666666666)
if v_u_1.casegui.Frame.Position.X.Scale <= -v_u_519.Size.X.Scale * v577 then
v_u_1.f_psl(v_u_1.player.PlayerGui, 3539509626, 1, 1, nil, v_u_1.SoundService.Effects)
v577 = v577 + 1
end
if v575 >= 6 and v576 == false then
v_u_1.f_csanim()
v576 = true
end
end
if v576 == false then
v_u_1.f_csanim()
end
end)
v_u_1.sttings.CaseEndPos = v573
v_u_1.casegui.Frame:TweenPosition(v573, "Out", "Quad", v_u_574, true)
repeat
task.wait(0.2)
v_u_574 = v_u_574 - 0.2
until v_u_574 <= 0.1 or v_u_1._stats.CaseReady.Value == true
else
v_u_1.f_psl2("Rank 2")
v_u_1.caseguiM.Bar.Visible = true
end
if v_u_1.sttings.OpeningCase == true then
v_u_1.f_fe("Case Opened")
end
end
function v_u_1.spngnew(p578)
local v_u_579 = tick()
local v_u_580 = p578 or 0
local v_u_581 = p578 and Vector3.new() or 0
local v_u_582 = p578 or 0
local v_u_583 = 1
local v_u_584 = 1
local function v_u_600(p585)
-- upvalues: (ref) v_u_579, (ref) v_u_580, (ref) v_u_582, (ref) v_u_584, (ref) v_u_583, (ref) v_u_581
local v586 = p585 - v_u_579
local v587 = v_u_580 - v_u_582
if v_u_584 == 0 then
return v_u_580, 0
end
if v_u_583 >= 1 then
local v588 = v_u_581 / v_u_584 + v587
local v589 = v_u_584 * v586
local v590 = math.exp(v589)
return v_u_582 + (v587 + v588 * v_u_584 * v586) / v590, v_u_584 * (v588 - v587 - v588 * v_u_584 * v586) / v590
end
local v591 = 1 - v_u_583 ^ 2
local v592 = math.sqrt(v591)
local v593 = (v_u_581 / v_u_584 + v_u_583 * v587) / v592
local v594 = v592 * v_u_584 * v586
local v595 = math.cos(v594)
local v596 = v592 * v_u_584 * v586
local v597 = math.sin(v596)
local v598 = v_u_583 * v_u_584 * v586
local v599 = math.exp(v598)
return v_u_582 + (v587 * v595 + v593 * v597) / v599, v_u_584 * ((v592 * v593 - v_u_583 * v587) * v595 - (v592 * v587 + v_u_583 * v593) * v597) / v599
end
local v605 = {
["accelerate"] = function(_, p601)
-- upvalues: (copy) v_u_600, (ref) v_u_580, (ref) v_u_581, (ref) v_u_579
local v602 = tick()
local v603, v604 = v_u_600(v602)
v_u_580 = v603
v_u_581 = v604 + p601
v_u_579 = v602
end
}
local v640 = {
["__index"] = function(_, p606)
-- upvalues: (copy) v_u_600, (ref) v_u_579, (ref) v_u_580, (ref) v_u_582, (ref) v_u_584, (ref) v_u_583, (ref) v_u_581
if p606 == "value" or (p606 == "position" or p606 == "p") then
local v607, _ = v_u_600(tick())
return v607
end
if p606 == "velocity" or p606 == "v" then
local _, v608 = v_u_600(tick())
return v608
end
if p606 == "acceleration" or p606 == "a" then
local v609 = tick() - v_u_579
local v610 = v_u_580 - v_u_582
if v_u_584 == 0 then
return 0
end
if v_u_583 >= 1 then
local v611 = v_u_581 / v_u_584 + v610
local v612 = v_u_584 ^ 2 * (v610 - 2 * v611 + v611 * v_u_584 * v609)
local v613 = v_u_584 * v609
return v612 / math.exp(v613)
end
local v614 = 1 - v_u_583 ^ 2
local v615 = math.sqrt(v614)
local v616 = (v_u_581 / v_u_584 + v_u_583 * v610) / v615
local v617 = v610 * v_u_583 ^ 2 - v615 * 2 * v_u_583 * v616 - v610 * v615 ^ 2
local v618 = v615 * v_u_584 * v609
local v619 = v617 * math.cos(v618)
local v620 = v616 * v_u_583 ^ 2 + v615 * 2 * v_u_583 * v610 - v616 * v615 ^ 2
local v621 = v615 * v_u_584 * v609
local v622 = v620 * math.sin(v621)
local v623 = v_u_584 ^ 2 * (v619 + v622)
local v624 = v_u_583 * v_u_584 * v609
return v623 / math.exp(v624)
end
if p606 == "target" or p606 == "t" then
return v_u_582
end
if p606 == "damper" or p606 == "d" then
return v_u_583
end
if p606 == "speed" or p606 == "s" then
return v_u_584
end
if p606 == "magnitude" or p606 == "m" then
local v625, _ = v_u_600(tick())
return v625.magnitude
end
error(p606 .. " is not a valid member of spring", 0)
end,
["__newindex"] = function(_, p626, p627)
-- upvalues: (copy) v_u_600, (ref) v_u_580, (ref) v_u_581, (ref) v_u_582, (ref) v_u_583, (ref) v_u_584, (ref) v_u_579
local v628 = tick()
if p626 == "value" or (p626 == "position" or p626 == "p") then
local _, v629 = v_u_600(v628)
v_u_580 = p627
v_u_581 = v629
elseif p626 == "velocity" or p626 == "v" then
local v630, _ = v_u_600(v628)
v_u_580 = v630
v_u_581 = p627
elseif p626 == "acceleration" or p626 == "a" then
local v631, v632 = v_u_600(v628)
local v633 = v632 + p627
v_u_580 = v631
v_u_581 = v633
elseif p626 == "target" or p626 == "t" then
local v634, v635 = v_u_600(v628)
v_u_580 = v634
v_u_581 = v635
v_u_582 = p627
elseif p626 == "damper" or p626 == "d" then
local v636, v637 = v_u_600(v628)
v_u_580 = v636
v_u_581 = v637
v_u_583 = p627 < 0 and 0 or (p627 < 1 and p627 and p627 or 1)
elseif p626 == "speed" or p626 == "s" then
local v638, v639 = v_u_600(v628)
v_u_580 = v638
v_u_581 = v639
v_u_584 = p627 < 0 and 0 or p627
else
error(p626 .. " is not a valid member of spring", 0)
end
v_u_579 = v628
end
}
return setmetatable(v605, v640)
end
function v_u_1.f_ms(p641)
local v642 = math.rad(p641)
return math.sin(v642)
end
function v_u_1.f_nl(p643, p644, p645)
return p643 + (p644 - p643) * p645
end
function v_u_1.f_ra(p646, p647)
-- upvalues: (copy) v_u_1
return v_u_1.f_nl(p646, p647, v_u_1.rng:NextNumber())
end
function v_u_1.f_UItfs()
-- upvalues: (copy) v_u_1
local v878, v879 = pcall(function()
-- upvalues: (ref) v_u_1
v_u_1.f_updsil()
local v648 = { v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame1.Experience.Frame.TextLabel, v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame1.Level.TextLabel, v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2.Rank.TextLabel }
local v649 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame1:GetChildren()
for v650 = 1, #v649 do
if v649[v650].ClassName == "TextLabel" then
local v651 = v649[v650]
table.insert(v648, v651)
end
end
local v652 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2:GetChildren()
for v653 = 1, #v652 do
if v652[v653].ClassName == "TextLabel" then
local v654 = v652[v653]
table.insert(v648, v654)
end
end
v_u_1.f_ltfs(v648)
local v655 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2.Information.Civilian:GetChildren()
local v656 = {}
for v657 = 1, #v655 do
if v655[v657].ClassName == "TextLabel" then
local v658 = v655[v657]
table.insert(v656, v658)
end
end
v_u_1.f_ltfs(v656)
local v659 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2.Information.USSF:GetChildren()
local v660 = {}
for v661 = 1, #v659 do
if v659[v661].ClassName == "TextLabel" then
local v662 = v659[v661]
table.insert(v660, v662)
end
end
v_u_1.f_ltfs(v660)
local v663 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2.Ranks:GetChildren()
local v664 = {}
for v665 = 1, #v663 do
local v666 = v663[v665]:GetChildren()
for v667 = 1, #v666 do
if v666[v667].ClassName == "TextLabel" then
local v668 = v666[v667]
table.insert(v664, v668)
end
end
end
v_u_1.f_ltfs(v664)
local v669 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2.Badges:GetChildren()
local v670 = {}
for v671 = 1, #v669 do
local v672 = v669[v671]:GetChildren()
for v673 = 1, #v672 do
if v672[v673].ClassName == "TextLabel" and v672[v673].Name ~= "Description" then
local v674 = v672[v673]
table.insert(v670, v674)
end
end
end
v_u_1.f_ltfs(v670)
local v675 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame1.LeaderboardKills:GetChildren()
local v676 = {}
for v677 = 1, #v675 do
local v678 = v675[v677]:GetChildren()
for v679 = 1, #v678 do
if v678[v679].ClassName == "TextLabel" and v678[v679].Name ~= "Description" then
local v680 = v678[v679]
table.insert(v676, v680)
end
end
end
local v681 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame1.LeaderboardLevel:GetChildren()
for v682 = 1, #v681 do
local v683 = v681[v682]:GetChildren()
for v684 = 1, #v683 do
if v683[v684].ClassName == "TextLabel" and v683[v684].Name ~= "Description" then
local v685 = v683[v684]
table.insert(v676, v685)
end
end
end
if v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame1:FindFirstChild("LeaderboardMaxRound") then
local v686 = v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame1.LeaderboardMaxRound:GetChildren()
for v687 = 1, #v686 do
local v688 = v686[v687]:GetChildren()
for v689 = 1, #v688 do
if v688[v689].ClassName == "TextLabel" and v688[v689].Name ~= "Description" then
local v690 = v688[v689]
table.insert(v676, v690)
end
end
end
v_u_1.f_ltfs(v676)
end
local v691 = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame1:GetChildren()
local v692 = {}
for v693 = 1, #v691 do
if v691[v693].ClassName == "TextLabel" then
local v694 = v691[v693]
table.insert(v692, v694)
end
local v695 = v691[v693]:GetChildren()
for v696 = 1, #v695 do
if (v695[v696].ClassName == "TextLabel" or v695[v696].ClassName == "TextButton") and v691[v693].Name ~= "MusicCredit" then
local v697 = v695[v696]
table.insert(v692, v697)
end
end
end
local v698 = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame2:GetChildren()
for v699 = 1, #v698 do
if v698[v699].ClassName == "TextLabel" then
local v700 = v698[v699]
table.insert(v692, v700)
end
local v701 = v698[v699]:GetChildren()
for v702 = 1, #v701 do
if (v701[v702].ClassName == "TextLabel" or v701[v702].ClassName == "TextButton") and v698[v699].Name ~= "MusicCredit" then
local v703 = v701[v702]
table.insert(v692, v703)
end
end
end
v_u_1.f_ltfs(v692)
local v704 = v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame1.Cursors:GetChildren()
local v705 = {}
local v706 = {}
for v707 = 1, #v704 do
local v708 = v704[v707]:GetChildren()
for v709 = 1, #v708 do
if v708[v709].Name == "TextLabel" then
local v710 = v708[v709]
table.insert(v706, v710)
elseif v708[v709].Name == "TextLabel2" then
local v711 = v708[v709]
table.insert(v705, v711)
end
end
end
v_u_1.f_ltfs(v706)
v_u_1.f_ltfs(v705)
local v712 = v_u_1.gui.Buttons.Menus.Event.ScrollingFrame1:GetChildren()
local v713 = {}
local v714 = {}
local v715 = {}
local v716 = {}
for v717 = 1, #v712 do
if v712[v717].ClassName == "TextLabel" then
local v718 = v712[v717]
table.insert(v714, v718)
if v712[v717]:FindFirstChild("Frame") then
local v719 = v712[v717].Frame.TextLabel
table.insert(v713, v719)
end
elseif v712[v717].ClassName == "TextButton" then
local v720 = v712[v717]:GetChildren()
for v721 = 1, #v720 do
local v722 = v720[v721]:GetChildren()
for v723 = 1, #v722 do
if v722[v723].ClassName == "TextLabel" then
local v724 = v722[v723]
table.insert(v713, v724)
end
end
end
local v725 = v712[v717]
table.insert(v714, v725)
elseif v712[v717].ClassName == "ImageLabel" then
local v726 = v712[v717]:GetChildren()
for v727 = 1, #v726 do
if v726[v727].ClassName == "TextLabel" or v726[v727].ClassName == "TextButton" then
local v728 = v726[v727]
table.insert(v713, v728)
local v729 = v726[v727]:GetChildren()
for v730 = 1, #v729 do
if v729[v730].ClassName == "TextLabel" then
local v731 = v729[v730]
table.insert(v713, v731)
end
end
end
end
end
end
local v732 = v_u_1.gui.Buttons.Menus.Event.ScrollingFrame1.Rewards:GetChildren()
for v733 = 1, #v732 do
local v734 = v732[v733]:GetChildren()
for v735 = 1, #v734 do
if v734[v735].ClassName == "TextLabel" or v734[v735].ClassName == "TextButton" then
local v736 = v734[v735]
table.insert(v714, v736)
end
end
end
local v737 = v_u_1.gui.Buttons.Menus.Event.ScrollingFrame2:GetChildren()
for v738 = 1, #v737 do
if v737[v738].ClassName == "TextLabel" then
local v739 = v737[v738]
table.insert(v716, v739)
local v740 = v737[v738]:GetChildren()
for v741 = 1, #v740 do
if v740[v741].ClassName == "TextLabel" or v740[v741].ClassName == "TextButton" then
local v742 = v737[v738]
table.insert(v716, v742)
end
end
elseif v737[v738].ClassName == "ScrollingFrame" then
local v743 = v737[v738]:GetChildren()
for v744 = 1, #v743 do
local v745 = v743[v744]:GetChildren()
for v746 = 1, #v745 do
if v745[v746].ClassName == "TextLabel" or v745[v746].ClassName == "TextButton" then
local v747 = v745[v746]
table.insert(v715, v747)
end
end
end
end
end
v_u_1.f_ltfs(v714)
v_u_1.f_ltfs(v713)
v_u_1.f_ltfs(v716)
v_u_1.f_ltfs(v715)
local v748 = v_u_1.gui.Deployed.Missions:GetChildren()
local v749 = {}
local v750 = {}
for v751 = 1, #v748 do
if v748[v751].ClassName == "TextLabel" then
local v752 = v748[v751]
table.insert(v750, v752)
elseif v748[v751].ClassName == "ScrollingFrame" then
local v753 = v748[v751]:GetChildren()
for v754 = 1, #v753 do
local v755 = v753[v754]:GetChildren()
for v756 = 1, #v755 do
if v755[v756].Name == "TextLabel1" then
local v757 = v755[v756]
table.insert(v750, v757)
elseif v755[v756].Name == "TextLabel2" then
local v758 = v755[v756]
table.insert(v749, v758)
end
end
end
end
end
v_u_1.f_ltfs(v750)
v_u_1.f_ltfs(v749)
local v759 = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame1:GetChildren()
local v760 = {}
for v761 = 1, #v759 do
if v759[v761].ClassName == "TextLabel" then
local v762 = v759[v761]
table.insert(v760, v762)
end
end
local v763 = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame2:GetChildren()
for v764 = 1, #v763 do
if v763[v764].ClassName == "TextLabel" then
local v765 = v763[v764]
table.insert(v760, v765)
end
end
v_u_1.f_ltfs(v760)
local v766 = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame2.Money:GetChildren()
local v767 = {}
local v768 = {}
local v769 = {}
for v770 = 1, #v766 do
if v766[v770].ClassName == "Frame" then
local v771 = v766[v770]:GetChildren()
for v772 = 1, #v771 do
if v771[v772].ClassName == "TextButton" then
local v773 = v771[v772]
table.insert(v769, v773)
elseif v771[v772].Name == "Description" then
local v774 = v771[v772]
table.insert(v768, v774)
elseif v771[v772].Name == "Price" then
local v775 = v771[v772]
table.insert(v767, v775)
end
end
end
end
v_u_1.f_ltfs(v769)
v_u_1.f_ltfs(v768)
v_u_1.f_ltfs(v767)
local v776 = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame2.Points:GetChildren()
local v777 = {}
local v778 = {}
local v779 = {}
for v780 = 1, #v776 do
if v776[v780].ClassName == "Frame" then
local v781 = v776[v780]:GetChildren()
for v782 = 1, #v781 do
if v781[v782].ClassName == "TextButton" then
local v783 = v781[v782]
table.insert(v779, v783)
elseif v781[v782].Name == "Description" then
local v784 = v781[v782]
table.insert(v778, v784)
elseif v781[v782].Name == "Price" then
local v785 = v781[v782]
table.insert(v777, v785)
end
end
end
end
v_u_1.f_ltfs(v779)
v_u_1.f_ltfs(v778)
v_u_1.f_ltfs(v777)
local v786 = v_u_1.gui.Buttons.Menus.Shop.ScrollingFrame2.Gold:GetChildren()
local v787 = {}
local v788 = {}
local v789 = {}
for v790 = 1, #v786 do
if v786[v790].ClassName == "Frame" then
local v791 = v786[v790]:GetChildren()
for v792 = 1, #v791 do
if v791[v792].ClassName == "TextButton" then
local v793 = v791[v792]
table.insert(v789, v793)
elseif v791[v792].Name == "Description" then
local v794 = v791[v792]
table.insert(v788, v794)
elseif v791[v792].Name == "Price" then
local v795 = v791[v792]
table.insert(v787, v795)
end
end
end
end
v_u_1.f_ltfs(v789)
v_u_1.f_ltfs(v788)
v_u_1.f_ltfs(v787)
local v796 = v_u_1.gui.MainMenu.Prestige.Personal:GetChildren()
local v797 = {}
for v798 = 1, #v796 do
if v796[v798].ClassName == "TextLabel" or v796[v798].ClassName == "TextButton" then
local v799 = v796[v798]
table.insert(v797, v799)
end
end
v_u_1.f_ltfs(v797)
local v800 = v_u_1.gui.MainMenu.Prestige.ScrollingFrame:GetChildren()
local v801 = {}
for v802 = 1, #v800 do
local v803 = v800[v802]:GetChildren()
for v804 = 1, #v803 do
if v803[v804].ClassName == "TextLabel" then
local v805 = v803[v804]
table.insert(v801, v805)
end
local v806 = v803[v804]:GetChildren()
for v807 = 1, #v806 do
if v806[v807].ClassName == "TextLabel" then
local v808 = v806[v807]
table.insert(v801, v808)
end
end
end
end
v_u_1.f_ltfs(v801)
local v809 = v_u_1.gui.Notifications:GetChildren()
for v810 = 1, #v809 do
if v809[v810].Name == "EventBuy" then
local v811 = v809[v810]:GetChildren()
local v812 = {}
for v813 = 1, #v811 do
if v811[v813].ClassName == "TextLabel" or v811[v813].ClassName == "TextButton" then
local v814 = v811[v813]
table.insert(v812, v814)
elseif v811[v813].ClassName == "Frame" then
local v815 = v811[v813]:GetChildren()
for v816 = 1, #v815 do
if v815[v816].ClassName == "TextLabel" or v815[v816].ClassName == "TextButton" then
local v817 = v815[v816]
table.insert(v812, v817)
local v818 = v815[v816]:GetChildren()
for v819 = 1, #v818 do
local v820 = v818[v819]:GetChildren()
for v821 = 1, #v820 do
local v822 = v820[v821]
table.insert(v812, v822)
end
end
end
end
end
end
v_u_1.f_ltfs(v812)
else
local v823 = v809[v810]:GetChildren()
local v824 = {}
for v825 = 1, #v823 do
if (v823[v825].ClassName == "TextLabel" or v823[v825].ClassName == "TextButton") and (v823[v825].Name ~= "TextLabel1" or v809[v810].Name ~= "Armory") then
local v826 = v823[v825]
table.insert(v824, v826)
end
end
v_u_1.f_ltfs(v824)
end
end
local v827 = { v_u_1.gui.MatchmakingFrame.Round.Title, v_u_1.gui.MatchmakingFrame.Zombies.Title }
v_u_1.f_ltfs(v827)
local v828 = { v_u_1.gui.MatchmakingFrame.Round.TextLabel1, v_u_1.gui.MatchmakingFrame.Round.Fade }
v_u_1.f_ltfs(v828)
local v829 = { v_u_1.gui.MatchmakingFrame.Zombies.TextLabel1, v_u_1.gui.MatchmakingFrame.Zombies.Fade, v_u_1.gui.MatchmakingFrame.Time.TextLabel1 }
v_u_1.f_ltfs(v829)
local v830 = { v_u_1.gui.Deployed.Stats.Ammunition.TextLabel1, v_u_1.gui.Deployed.Stats.Ammunition.TextLabel1.Fade }
v_u_1.f_ltfs(v830)
local v831 = { v_u_1.gui.Deployed.Stats.Ammunition.TextLabel2, v_u_1.gui.Deployed.Stats.Ammunition.TextLabel2.Fade }
v_u_1.f_ltfs(v831)
local v832 = { v_u_1.gui.Deployed.Stats.Health.TextLabel, v_u_1.gui.Deployed.Stats.Weapon.TextLabel1, v_u_1.gui.Deployed.Stats.Weapon.TextLabel2 }
v_u_1.f_ltfs(v832)
local v833 = v_u_1.gui.MainMenu.Cases.ScrollingFrame:GetChildren()
local v834 = {}
local v835 = {}
for v836 = 1, #v833 do
local v837 = v833[v836]:GetChildren()
for v838 = 1, #v837 do
if v837[v838].ClassName == "TextLabel" or v837[v838].ClassName == "TextButton" then
if v837[v838].Name == "TitleLabel" then
local v839 = v837[v838]
table.insert(v835, v839)
else
local v840 = v837[v838]
table.insert(v834, v840)
end
end
end
end
v_u_1.f_ltfs(v835)
v_u_1.f_ltfs(v834)
local v841 = v_u_1.gui.MainMenu.Loadout.Menu.Melee.Bar:GetChildren()
local v842 = {}
local v843 = {}
for v844 = 1, #v841 do
local v845 = v841[v844]:GetChildren()
for v846 = 1, #v845 do
if v845[v846].ClassName == "TextLabel" or v845[v846].ClassName == "TextButton" then
if v845[v846].Name == "TextLabel1" then
local v847 = v845[v846]
table.insert(v843, v847)
elseif v845[v846].Name == "TextLabel2" then
local v848 = v845[v846]
table.insert(v842, v848)
end
end
end
end
v_u_1.f_ltfs(v843)
v_u_1.f_ltfs(v842)
local v849 = v_u_1.gui.MainMenu.Loadout.Menu.Melee.Menus:GetChildren()
local v850 = {}
local v851 = {}
local v852 = {}
for v853 = 1, #v849 do
local v854 = v849[v853]:GetChildren()
for v855 = 1, #v854 do
local v856 = v854[v855]:GetChildren()
for v857 = 1, #v856 do
if v856[v857].ClassName == "TextLabel" or v856[v857].ClassName == "TextButton" then
if v856[v857].Name == "TextLabel1" then
local v858 = v856[v857]
table.insert(v851, v858)
elseif v856[v857].Name == "TextLabel2" then
local v859 = v856[v857]
table.insert(v852, v859)
elseif v856[v857].Name == "Price" then
local v860 = v856[v857]
table.insert(v850, v860)
end
end
end
end
end
v_u_1.f_ltfs(v851)
v_u_1.f_ltfs(v852)
v_u_1.f_ltfs(v850)
local v861 = v_u_1.attachmentbuttons.classesbuttons
v_u_1.f_ltfs(v861)
local v862 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar1:GetChildren()
v_u_1.f_ltfs(v862)
local v863 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2:GetChildren()
v_u_1.f_ltfs(v863)
local v864 = v_u_1.gui.MainMenu.Character.Bar:GetChildren()
v_u_1.f_ltfs(v864)
local v865 = {}
local v866 = {}
for v867 = 1, #v_u_1.buttons.skinbuttons do
local v868 = v_u_1.buttons.skinbuttons[v867]:GetChildren()
for v869 = 1, #v868 do
if v868[v869].ClassName == "TextLabel" then
if v868[v869].Name == "Title" then
local v870 = v868[v869]
table.insert(v866, v870)
else
local v871 = v868[v869]
table.insert(v865, v871)
end
end
end
end
local v872 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.ColourSpectrum:GetChildren()
for v873 = 1, #v872 do
local v874 = v872[v873]:GetChildren()
for v875 = 1, #v874 do
if v874[v875].ClassName == "TextLabel" then
if v874[v875].Name == "Title" then
local v876 = v874[v875]
table.insert(v866, v876)
else
local v877 = v874[v875]
table.insert(v865, v877)
end
end
end
end
v_u_1.f_ltfs(v866)
v_u_1.f_ltfs(v865)
end)
if v878 == false and v879 then
warn(v879)
end
end
function v_u_1.f_a(p880)
local v881 = p880 % 60
local v882 = (p880 - v881) / 60
if v882 < 10 then
v882 = "0" .. tostring(v882)
end
if v881 < 10 then
v881 = "0" .. tostring(v881)
end
return v882 .. ":" .. v881
end
function v_u_1.f_f(p883)
return string.format("%02i", p883)
end
function v_u_1.f_fe(p884, ...)
-- upvalues: (copy) v_u_1
if p884 == "neckupdate" then
local v885 = CFrame.new(0, 0, (_G.armed == false or v_u_1.weaponclasses[v_u_1.mala[v_u_1.gunnaseo]].Type == "Secondary") and 0 or (v_u_1.proned == true and _G.armed == true and -1 or (v_u_1.cameramode == "fps" and -0.75 or 0)))
local v886 = v_u_1.RightShoulder.C0
local v887 = v_u_1.LeftShoulder.C0
if v_u_1.RightShoulder.C0 == v_u_1.RightShoulderC0 then
v886 = false
end
if v_u_1.LeftShoulder.C0 == v_u_1.LeftShoulderC0 then
v887 = false
end
game.ReplicatedStorage.RemoteEvent:FireServer("Update Neck", v_u_1.neck.C0, v_u_1.neck.C1, v_u_1.welds[1].C0, v_u_1.ftweld.C0 * v885, v_u_1.ftweld.C1, v_u_1.RightShoulder, v_u_1.LeftShoulder, v886, v887)
return
elseif p884 == "createblood" then
game.ReplicatedStorage.RemoteEvent:FireServer("Create Blood", ...)
return
elseif p884 == "createhips" then
game.ReplicatedStorage.RemoteEvent:FireServer("Create Hips", ...)
elseif p884 == "updategunandarms" then
if _G.armed == true then
local v888 = (v_u_1.gunnaseo <= 2 or v_u_1.gunnaseo == 4) and {
["Colour1"] = v_u_1.customisation.Colour1[v_u_1.gunnaseo].Colour,
["Skin1"] = v_u_1.customisation.Colour1[v_u_1.gunnaseo].Material or v_u_1.customisation.Colour1[v_u_1.gunnaseo].Texture,
["ShowColour1"] = v_u_1.customisation.Colour1[v_u_1.gunnaseo].ShowColour,
["Colour2"] = v_u_1.customisation.Colour2[v_u_1.gunnaseo].Colour,
["Skin2"] = v_u_1.customisation.Colour2[v_u_1.gunnaseo].Material or v_u_1.customisation.Colour2[v_u_1.gunnaseo].Texture,
["ShowColour2"] = v_u_1.customisation.Colour2[v_u_1.gunnaseo].ShowColour,
["Name1"] = v_u_1.customisation.Colour1[v_u_1.gunnaseo].Skin,
["Name2"] = v_u_1.customisation.Colour2[v_u_1.gunnaseo].Skin
} or nil
game.ReplicatedStorage.RemoteEvent:FireServer("Update Arms And Gun", v_u_1.mala[v_u_1.gunnaseo], v888, v_u_1.gunnaseo, v_u_1.attachments[v_u_1.gunnaseo])
return
end
if v_u_1.deployed == true then
game.ReplicatedStorage.RemoteEvent:FireServer("Update Arms And Gun", nil, nil)
return
end
else
if p884 == "ardu" then
game.ReplicatedStorage.RemoteEvent:FireServer("Ardu", ...)
return
end
game.ReplicatedStorage.RemoteEvent:FireServer(p884, ...)
end
end
function v_u_1.f_a2(p889)
-- upvalues: (copy) v_u_1
local v890 = (p889 - p889 % 60) / 60
local v891 = p889 - v890 * 60
local v892 = (v890 - v890 % 60) / 60
local v893 = v890 - v892 * 60
return v_u_1.f_f(v892) .. ":" .. v_u_1.f_f(v893) .. ":" .. v_u_1.f_f(v891)
end
function v_u_1.f_ic()
-- upvalues: (copy) v_u_1
local v894
if v_u_1.cameramode == "3ps" and (_G.ostype == "kb" and (v_u_1.head and v_u_1.aimassist.HitPos)) then
v894 = CFrame.lookAt(v_u_1.head.Position, v_u_1.aimassist.HitPos)
else
v894 = v_u_1.ceamara.CoordinateFrame
end
local v895 = v_u_1.cam
local v896 = v_u_1.cam
local v897, v898 = v_u_1.f_gyp(v894)
v895.initialX = v897
v896.initialY = v898
v_u_1.cam.camAng = -Vector2.new(v_u_1.cam.initialX, v_u_1.cam.initialY)
end
function v_u_1.f_gyp(p899)
local v900 = p899.lookVector
local v901 = v900.x
local v902 = -v900.z
local v903 = math.atan2(v901, v902)
local v904 = v900.y
local v905 = v900.x ^ 2 + v900.z ^ 2
local v906 = v904 / -math.sqrt(v905)
return v903, math.atan(v906)
end
function v_u_1.f_cgt(p907, p908)
local v909 = false
for v910 = 1, #p908 do
if p908[v910] == p907 then
v909 = true
end
end
return v909
end
function v_u_1.f_ct(p911)
-- upvalues: (copy) v_u_1
local v912 = {}
for v913, v915 in pairs(p911) do
if type(v915) == "table" then
local v915 = v_u_1.f_ct(v915)
end
v912[v913] = v915
end
return v912
end
function v_u_1.f_sw(p916, p917, p918)
local v919 = Instance.new("Weld")
v919.Parent = p916
v919.Part0 = p916
v919.Part1 = p917
if p918 == 2 then
v919.C0 = v919.Part0.CFrame:inverse() * v919.Part1.CFrame
return v919
elseif p918 == nil then
v919.C0 = CFrame.new()
return v919
else
v919.C0 = p918
return v919
end
end
function v_u_1.f_cv2(p920, p921, p922, p923)
local v924 = Instance.new(p920)
v924.Name = p922
v924.Value = p923
v924.Parent = p921
end
function v_u_1.f_unanc(p925)
local v926 = p925:GetChildren()
for v927 = 1, #v926 do
if v926[v927]:IsA("BasePart") then
v926[v927].Anchored = false
end
end
end
function v_u_1.f_cw(p928)
return p928.Transparency >= 0.9 and p928.Name ~= "Glass" and true or ((p928.Transparency == 1 or (p928.CanCollide == false or p928.Name == "HitMark")) and true or p928.ClassName == "UnionOperation")
end
function v_u_1.f_np(p929, p930, p931)
local v932 = (p929 - p931).magnitude
local v933 = (p930 - p931).magnitude
if math.min(v932, v933) == v932 then
p930 = p929 or p930
end
return p930
end
function v_u_1.f_www(p934, p935)
local v936 = p934 / p935 + 0.5
return math.floor(v936) * p935
end
function v_u_1.f_angr(p937, p938)
local v939 = p937:Dot(p938) / p937.magnitude * p938.magnitude
return math.acos(v939)
end
function v_u_1.f_angd(p940, p941)
local v942 = p940:Dot(p941) / p940.magnitude * p941.magnitude
return math.acos(v942)
end
function v_u_1.f_gv(p943, p944)
return CFrame.new(p943, p944)
end
function v_u_1.f_actb(p945)
-- upvalues: (copy) v_u_1
if p945.Parent.Parent == v_u_1.gui.Notifications then
v_u_1.f_psl2("Click")
p945.Parent.Visible = false
end
if p945.Parent == v_u_1.gui.Notifications.Buy then
v_u_1.gui.Notifications.Buy.Visible = false
v_u_1.gui.Notifications.Buy.TextLabel2.ParentFolder.Value = ""
v_u_1.f_ugs(v_u_1.gui.MainMenu.Loadout.Buttons.Primary)
return
elseif p945.Parent == v_u_1.gui.Notifications.Shop then
v_u_1.f_ugs(v_u_1.gui.MainMenu.Loadout.Buttons.Primary)
elseif p945.Parent == v_u_1.gui.Notifications.Armory then
v_u_1.f_ugs(v_u_1.gui.MainMenu.Loadout.Buttons.Primary)
end
end
function v_u_1.f_cbb()
-- upvalues: (copy) v_u_1
local v946 = {
v_u_1.gui.StatCard.Close,
v_u_1.gui.MainMenu.Loadout.Menu.Descriptor.Close,
v_u_1.gui.MenuPrompt.Bar.Close,
v_u_1.gui.Vehicles.Purchase.Close,
v_u_1.gui.Vehicles.Menu.Close
}
for v947 = 1, #v946 do
if v946[v947].Parent.Parent == v_u_1.gui.MenuPrompt then
v_u_1.f_psl2("Click")
v_u_1.f_mpgui()
elseif v946[v947].Parent.Visible then
v946[v947].Parent.Visible = false
v_u_1.f_psl2("Click")
return true
end
end
local v948 = v_u_1.gui.Buttons.Menus:GetChildren()
for v949 = 1, #v948 do
if v948[v949].Visible then
v948[v949].Visible = false
_G.f_bfa(v948[v949], false)
return true
end
end
local v950 = v_u_1.gui.Notifications:GetChildren()
for v951 = 1, #v950 do
if v950[v951].Visible then
v_u_1.f_actb(v950[v951].Close)
return true
end
end
if v_u_1.mainmenuenabled then
if v_u_1.gui.MenuPrompt.Visible then
v_u_1.f_ugs(v_u_1.gui.MenuPrompt.Bar.Close)
elseif v_u_1.gametype == "Zombies" then
v_u_1.f_ugs(v_u_1.gui.MainMenu.Bar1.Deploy)
end
end
return false
end
function v_u_1.f_ubf()
-- upvalues: (copy) v_u_1
local v952 = game.ReplicatedStorage.Matchmaking
local v953 = v_u_1.gui.Deployed.Boss.TextLabel
local v954 = string.upper
local v955 = v952.BossName.Value
v953.Text = v954((tostring(v955))) .. " : " .. v_u_1.f_ac(v952.Health.Value) .. " HP"
v_u_1.gui.Deployed.Boss.Visible = v952.Boss.Value
if v952.Bar.Value > 0 then
v_u_1.gui.Deployed.Boss.Frame.Size = UDim2.new(v952.Bar.Value, -2, 1, -2)
else
v_u_1.gui.Deployed.Boss.Frame.Size = UDim2.new(0, 0, 1, -2)
end
end
function v_u_1.f_uc()
-- upvalues: (copy) v_u_1
local v956 = game.ReplicatedStorage.Matchmaking
v_u_1.gui.MatchmakingFrame.Round.TextLabel1.Text = v956.Round.Value
if v956.Boss.Value == true then
v_u_1.gui.MatchmakingFrame.Time.TextLabel1.Text = "Boss"
v_u_1.gui.MatchmakingFrame.Zombies.TextLabel1.Text = ""
else
v_u_1.gui.MatchmakingFrame.Time.TextLabel1.Text = v_u_1.f_a(v956.Timer.Value)
end
end
function v_u_1.f_hlb1(p957)
-- upvalues: (copy) v_u_1
local v958 = v_u_1.gui.MainMenu.Bar1:GetChildren()
for v959 = 1, #v958 do
if v958[v959].Name ~= "Deploy" then
if v958[v959].Name == p957 then
v958[v959].BorderColor3 = BrickColor.new("Really red").Color
v958[v959].BorderSizePixel = 2
else
v958[v959].BorderColor3 = Color3.new(0, 0, 0)
v958[v959].BorderSizePixel = 1
end
end
end
end
function v_u_1.f_slmn(p960, p961, p962)
-- upvalues: (copy) v_u_1
v_u_1.f_psl2("Click")
v_u_1.gui.StatCard.Visible = false
v_u_1.f_hlf2("", v_u_1.gui.MainMenu.Character.Menus, false)
v_u_1.gui.MainMenu.Loadout.Visible = false
v_u_1.gui.MainMenu.Loadout.Menu.Melee.Visible = false
v_u_1.gui.MainMenu.Character.Visible = false
v_u_1.gui.MainMenu.Cases.Visible = false
v_u_1.gui.MainMenu.Prestige.Visible = false
v_u_1.gui.MainMenu.CameraFrame.CaseGui.Frame:ClearAllChildren()
v_u_1.gui.MainMenu.CameraFrame.CaseGuiMultiple.Frame:ClearAllChildren()
v_u_1.f_gunVP(false)
if p960 == "Back" then
local v963 = v_u_1.gui.MainMenu.Bar1:GetChildren()
for v964 = 1, #v963 do
v963[v964].Visible = v963[v964].Name ~= "Back"
end
local v965 = v_u_1.gui.MainMenu:GetChildren()
for v966 = 1, #v965 do
v965[v966].Visible = v965[v966].Name == "Bar1"
end
if not (v_u_1.deployed or p961) then
v_u_1.Tweens[1]:Play()
end
v_u_1.f_wg(v_u_1.mala[1], true)
else
if p962 == nil then
local v967 = v_u_1.gui.MainMenu.Bar1:GetChildren()
for v968 = 1, #v967 do
v967[v968].Visible = v967[v968].Name == "Back"
end
else
local v969 = v_u_1.gui.MainMenu.Bar1:GetChildren()
for v970 = 1, #v969 do
v969[v970].Visible = v969[v970].Name == "Deploy"
end
end
if p960 == "Loadout" then
if not (v_u_1.deployed or p961) then
v_u_1.Tweens[1]:Play()
end
v_u_1.f_wg(v_u_1.mala[1], true)
v_u_1.gui.MainMenu.Loadout.Visible = v_u_1.gui.MainMenu.Loadout.Visible == false
else
for v971 = 1, #v_u_1.buttons.weaponclassframe do
v_u_1.buttons.weaponclassframe[v971].Visible = false
end
for v972 = 1, #v_u_1.attachmentbuttons.classesbuttons do
v_u_1.f_uis(v_u_1.attachmentbuttons.classesbuttons[v972], "Normal")
end
for v973 = 1, #v_u_1.buttons.tierbuttons do
v_u_1.f_uis(v_u_1.buttons.tierbuttons[v973], "Normal")
end
if p960 == "Avatar" then
v_u_1.gui.MainMenu.Character.Visible = true
if not (v_u_1.deployed or p961) then
v_u_1.Tweens[2]:Play()
end
v_u_1.f_mup()
v_u_1.f_gunVP(true, "Avatar")
elseif p960 == "Cases" then
v_u_1.gui.MainMenu.Cases.Visible = true
v_u_1.f_gunVP(true, "Cases")
elseif p960 == "Prestige" then
v_u_1.gui.MainMenu.Prestige.Visible = true
end
end
end
v_u_1.f_hlb1(p960)
end
function v_u_1.f_at(p974, p975, p976)
local v977 = {}
for _ = 1, 6 do
local v978 = Instance.new("Texture")
v978.Texture = p975
if p976 then
v978.Color3 = p974.Color
end
v978.Parent = p974
v978.StudsPerTileU = 0.777
v978.StudsPerTileV = 0.777
table.insert(v977, 1, v978)
end
v977[1].Face = "Front"
v977[2].Face = "Back"
v977[3].Face = "Top"
v977[4].Face = "Bottom"
v977[5].Face = "Left"
v977[6].Face = "Right"
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (1).."
function v_u_1.f_prel(p979, p980)
-- upvalues: (copy) v_u_1
local v981 = tostring(p980)
local v982 = string.len(v981)
if v982 > 11 then
if v982 >= 19 and string.sub(v981, 1, 19) == "rbxasset://sounds//" then
return
end
if string.sub(v981, 1, 13) == "rbxassetid://" then
v981 = string.sub(v981, 14, v982)
end
end
if p979 == "Sound" then
if v_u_1.soundids[v981] then
return
end
elseif p979 == "Decal" and v_u_1.decalids[v981] then
return
end
if p979 == "Animation" then
if v_u_1.preloadedanimIDs[v981] ~= nil then
return
end
v_u_1.preloadedanimIDs[v981] = true
end
local v983 = Instance.new(p979)
if p979 == "Sound" then
v983.SoundId = "rbxassetid://" .. v981
v_u_1.soundids[tonumber(v981)] = true
elseif p979 == "Decal" then
v983.Texture = "rbxassetid://" .. v981
v_u_1.decalids[tonumber(v981)] = true
elseif p979 == "Animation" then
v983.AnimationId = "http://www.roblox.com/asset/?id=" .. v981
end
local v984 = v_u_1.preloadfolder
table.insert(v984, v983)
end
function v_u_1.f_ps(p985, p986, p987, p988, p989, p990)
-- upvalues: (copy) v_u_1
v_u_1.f_psl(nil, p985, p986, p987, p988, p989)
v_u_1.f_fe("Create Sound", p985, p986, p987, p988, p989, p990)
end
function v_u_1.f_psl(p991, p992, p993, p994, p995, p996)
-- upvalues: (copy) v_u_1
if v_u_1.soundids[p992] == nil then
warn("SOUND REJECTED: ", p992)
else
local v997 = Instance.new("Sound")
if p995 then
v997.SoundGroup = v_u_1.SoundService.Weapons
end
v997.SoundId = "rbxassetid://" .. p992
v997.Volume = p993
v997.PlaybackSpeed = p994
v997.Name = "Sound_" .. tostring(p992)
if p991 == nil then
if v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
p991 = v_u_1.head
else
p991 = v_u_1.player.PlayerGui
end
end
if p995 then
if v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
p991 = v_u_1.head
else
p991 = v_u_1.player.PlayerGui
end
end
local v998 = p991:FindFirstChild("Sound_" .. tostring(p992))
if v998 then
v998.Name = v998.Name .. "d"
v_u_1.Debris:AddItem(v998, 0.5)
end
if p996 then
v997.SoundGroup = p996
else
v997.SoundGroup = game.SoundService.Effects
end
v997.Parent = p991
v997:Play()
v_u_1.Debris:AddItem(v997, v997.TimeLength * p994 + 4)
end
end
function v_u_1.f_psl2(p999, p1000)
-- upvalues: (copy) v_u_1
local v1001 = Instance.new("Sound")
if v_u_1.sound[p999].Type == "Id" then
if v_u_1.sound[p999].Table then
v1001.SoundId = "rbxassetid://" .. v_u_1.sound[p999].List[v_u_1.rng:NextInteger(1, #v_u_1.sound[p999].List)]
else
v1001.SoundId = "rbxassetid://" .. v_u_1.sound[p999].List
end
else
v1001.SoundId = v_u_1.sound[p999].List
end
v1001.Volume = 1
v1001.TimePosition = v_u_1.sound[p999].StartTime
v1001.Name = "Sound_" .. p999
if v_u_1.sound[p999].Rand then
v1001.PlaybackSpeed = v_u_1.sound[p999].Pitch * v_u_1.rng:NextNumber(0.85, 1.15)
else
v1001.PlaybackSpeed = v_u_1.sound[p999].Pitch
end
local v1002 = v_u_1.gui:FindFirstChild("Sound_" .. p999)
if v1002 then
v1002.Name = v1002.Name .. "d"
v_u_1.Debris:AddItem(v1002, 0.5)
end
if v_u_1.sound[p999].SoundGroup then
v1001.SoundGroup = v_u_1.sound[p999].SoundGroup
else
v1001.SoundGroup = game.SoundService.Effects
end
if p1000 then
v1001.Parent = p1000
else
v1001.Parent = v_u_1.gui
end
v1001:Play()
v_u_1.Debris:AddItem(v1001, v1001.TimeLength * v_u_1.sound[p999].Pitch + 10)
end
function _G.psl2(...)
-- upvalues: (copy) v_u_1
v_u_1.f_psl2(...)
end
function v_u_1.f_updhb()
-- upvalues: (copy) v_u_1
if v_u_1.humanoid and v_u_1.character then
local v1003 = v_u_1.character:FindFirstChild("ForceField2")
local v1004 = v_u_1.humanoid.Health
local v1005 = v_u_1.humanoid.MaxHealth
if v1003 then
v_u_1.gui.Deployed.Stats.Health.TextLabel.Text = "Invulnerable"
v_u_1.gui.Deployed.Stats.Health.Bar.Size = UDim2.new(1, 0, 1, 0)
return
end
if v1004 <= 0 then
v_u_1.gui.Deployed.Stats.Health.TextLabel.Text = "0 Health"
v_u_1.gui.Deployed.Stats.Health.Bar.Size = UDim2.new(0, 0, 1, 0)
return
end
local v1006 = v_u_1.gui.Deployed.Stats.Health.TextLabel
local v1007 = math.ceil(v1004)
v1006.Text = tostring(v1007) .. " Health"
v_u_1.gui.Deployed.Stats.Health.Bar.Size = UDim2.new(v1004 / v1005, 0, 1, 0)
end
end
function _G.f_updhb()
-- upvalues: (copy) v_u_1
v_u_1.f_updhb()
end
function _G.HM(p1008)
-- upvalues: (copy) v_u_1
if v_u_1.deployed == true then
if p1008 == true then
local v1009 = v_u_1.gui.Hitmarker:GetChildren()
for v1010 = 1, #v1009 do
v1009[v1010].BackgroundColor3 = Color3.new(1, 0, 0)
end
elseif p1008 == "armour" then
local v1011 = v_u_1.gui.Hitmarker:GetChildren()
for v1012 = 1, #v1011 do
v1011[v1012].BackgroundColor3 = Color3.new(0, 0, 1)
end
else
local v1013 = v_u_1.gui.Hitmarker:GetChildren()
for v1014 = 1, #v1013 do
v1013[v1014].BackgroundColor3 = Color3.new(1, 1, 1)
end
end
v_u_1.gui.Hitmarker.Visible = true
v_u_1.f_psl2("Hitmarker")
if v_u_1.mala[v_u_1.gunnaseo] == "Karambit" or (v_u_1.mala[v_u_1.gunnaseo] == "KA-BAR" or (v_u_1.mala[v_u_1.gunnaseo] == "Bowie Knife" or (v_u_1.mala[v_u_1.gunnaseo] == "Katana" or v_u_1.mala[v_u_1.gunnaseo] == "Longsword"))) then
v_u_1.f_ps(v_u_1.MeleeHitSounds[v_u_1.rng:NextInteger(1, #v_u_1.MeleeHitSounds)], 1, v_u_1.rng:NextNumber(0.9, 1.1), nil, v_u_1.SoundService.Weapons, 100)
end
end
end
function v_u_1.f_ch(p1015, p1016, p1017, p1018)
-- upvalues: (copy) v_u_1
if not p1016.Parent:FindFirstChild("Humanoid") then
local _ = p1016.BrickColor
local v1019 = "Else"
local v1020
if p1016.Material == Enum.Material.Metal or (p1016.Material == Enum.Material.DiamondPlate or (p1016.Name == "Metal" or p1016.Name == "DiamondPlate")) then
v1020 = "Metal"
elseif p1016.Material == Enum.Material.Concrete or (p1016.Material == Enum.Material.Slate or (p1016.Material == Enum.Material.Brick or (p1016.Material == Enum.Material.Cobblestone or (p1016.Material == Enum.Material.Marble or (p1016.Material == Enum.Material.Granite or (p1016.Material == Enum.Material.Pebble or (p1016.Name == "Concrete" or (p1016.Name == "Slate" or (p1016.Name == "Brick" or (p1016.Name == "Cobblestone" or (p1016.Name == "Marble" or (p1016.Name == "Granite" or p1016.Name == "Pebble")))))))))))) then
v1020 = "Stone"
elseif p1016.Material == Enum.Material.Wood or (p1016.Material == Enum.Material.WoodPlanks or (p1016.Name == "Wood" or p1016.Name == "WoodPlanks")) then
v1020 = "Wood"
else
if p1016.Name == "Glass_Breakable" then
return
end
v1020 = (p1016.Name == "Glass" or p1016.Transparency ~= 0) and "Glass" or (p1016.Name == "Water" and "Water" or v1019)
end
local v1021
if v1020 == "Glass" then
v1021 = v_u_1.decals[8][v_u_1.rng:NextInteger(1, #v_u_1.decals[8])]
local _ = v_u_1.sounds[6][v_u_1.rng:NextInteger(1, #v_u_1.sounds[6])]
v_u_1.rng:NextNumber(1.5, 2.5)
elseif v1020 == "Water" then
local _ = v_u_1.sounds[4][v_u_1.rng:NextInteger(1, #v_u_1.sounds[4])]
v1021 = "rbxassetid://20686724"
elseif v1020 == "Metal" then
if p1016.BrickColor == BrickColor.new("Mid gray") then
v1021 = v_u_1.decals[3][v_u_1.rng:NextInteger(1, #v_u_1.decals[3])]
elseif p1016.BrickColor == BrickColor.new("Dark stone grey") then
v1021 = v_u_1.decals[2][v_u_1.rng:NextInteger(1, #v_u_1.decals[2])]
else
v1021 = v_u_1.decals[1][v_u_1.rng:NextInteger(1, #v_u_1.decals[1])]
end
BrickColor.new("New Yeller")
local _ = v_u_1.sounds[1][v_u_1.rng:NextInteger(1, #v_u_1.sounds[1])]
elseif v1020 == "Stone" then
if p1016.BrickColor == BrickColor.new("Mid gray") or p1016.BrickColor == BrickColor.new("Medium stone grey") then
v1021 = v_u_1.decals[4][v_u_1.rng:NextInteger(1, #v_u_1.decals[4])]
elseif p1016.BrickColor == BrickColor.new("Dark stone grey") or p1016.BrickColor == BrickColor.new("Black") then
v1021 = v_u_1.decals[6][v_u_1.rng:NextInteger(1, #v_u_1.decals[6])]
elseif p1016.BrickColor == BrickColor.new("Light orange") then
v1021 = v_u_1.decals[5][v_u_1.rng:NextInteger(1, #v_u_1.decals[5])]
else
v1021 = v_u_1.decals[7][v_u_1.rng:NextInteger(1, #v_u_1.decals[7])]
end
local _ = v_u_1.sounds[2][v_u_1.rng:NextInteger(1, #v_u_1.sounds[2])]
elseif v1020 == "Wood" then
v1021 = v_u_1.decals[9][v_u_1.rng:NextInteger(1, #v_u_1.decals[9])]
local _ = v_u_1.sounds[3][v_u_1.rng:NextInteger(1, #v_u_1.sounds[3])]
else
v1021 = v_u_1.decals[9][v_u_1.rng:NextInteger(1, #v_u_1.decals[9])]
local _ = v_u_1.sounds[5][v_u_1.rng:NextInteger(1, #v_u_1.sounds[5])]
end
if p1016 then
if not p1016.Anchored then
return
end
local v1022 = game.ReplicatedStorage.Assets.HitMark:Clone()
v1022.Decal.Texture = "rbxassetid://" .. v1021
v1022.CFrame = p1015
v1022.Parent = workspace.Ignore.Tracers
v_u_1.Debris:AddItem(v1022, v_u_1.rng:NextInteger(7, 10))
if p1017 and p1016.Parent:FindFirstChild("Humanoid") == nil then
v1022.Particle.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(1, 1, 0)), ColorSequenceKeypoint.new(0.5, p1016.Color), ColorSequenceKeypoint.new(1, p1016.Color) })
v1022.Particle:Emit(3)
if p1018 == 1 then
local v1023 = game.ReplicatedStorage.Assets.HitMarkEffect:Clone()
v1023.CFrame = p1015 + p1015.LookVector * v_u_1.sttings.HitMarkEffectOffset
v1023.Parent = workspace.Ignore.Tracers
v_u_1.Debris:AddItem(v1023, 1)
v1023.CircleEmitter:Emit(1)
v1023.SparkEmitter:Emit(1)
end
end
end
end
end
function v_u_1.f_cmupd(p1024, p1025)
-- upvalues: (copy) v_u_1
if p1024.Parent.Parent.Name == v_u_1.player.Team.Name then
local v1026 = p1025.Usernames:GetChildren()
for v1027 = 1, #v1026 do
v1026[v1027].Text = ""
end
local v1028 = p1024:GetChildren()
local v1029 = 1
for v1030 = 1, #v1028 do
if p1025.Usernames:FindFirstChild("TextLabel" .. v1029) then
p1025.Usernames["TextLabel" .. v1029].Text = v1028[v1030].Name
end
v1029 = v1029 + 1
end
end
end
function v_u_1.f_updl()
-- upvalues: (copy) v_u_1
if v_u_1.gametype == "Zombies" then
if v_u_1._stats.Spawnable.Value == false then
v_u_1.gui.MainMenu.Bar1.Deploy.Text = "Spectate"
return
end
if game.ReplicatedStorage.Matchmaking.Ready.Value and v_u_1.sttings.FrameworkLoaded == true then
v_u_1.gui.MainMenu.Bar1.Deploy.Text = "Play"
return
end
v_u_1.gui.MainMenu.Bar1.Deploy.Text = "Play - Map Loading"
end
end
function v_u_1.f_updmouse(_)
-- upvalues: (copy) v_u_1
local v1031
if v_u_1.vf == nil or v_u_1.vf.VehicleArray.Seated ~= true then
if _G.BaseCamera == true or (_G.armory == true or v_u_1.sttings.MouseLocked == false and _G.screentype ~= "cs") then
v1031 = v_u_1.sttings.MouseLocked == false and (_G.armed == true and v_u_1.cameramode == "3ps") and true or "Default"
else
v1031 = _G.armed ~= true and "Default" or (v_u_1.aimed ~= true and v_u_1.aiming ~= true and true or v_u_1.cameramode ~= "fps")
end
else
v1031 = v_u_1.vf.VehicleArray.CameraMode ~= "VehicleFPS" and (v_u_1.vf.VehicleArray.Armed == true and true or "Default") or false
end
if v1031 == true or v1031 == "Default" then
local v1032
if v1031 == "Default" then
v1032 = v_u_1.sttings.defaulticon
else
v1032 = "http://www.roblox.com/asset?id=" .. v_u_1._stats.Settings.MouseCursor.Value
end
if _G.ostype == "kb" then
v_u_1.UserInputService.MouseIconEnabled = true
v_u_1.crosshair.ImageLabel.Visible = false
elseif _G.screentype == "cs" and _G.BaseCamera == true then
v_u_1.UserInputService.MouseIconEnabled = true
v_u_1.crosshair.ImageLabel.Visible = false
else
v_u_1.UserInputService.MouseIconEnabled = false
v_u_1.crosshair.ImageLabel.Visible = true
end
v_u_1.UserInputService.MouseIcon = v1032
v_u_1.crosshair.ImageLabel.Image = v1032
else
v_u_1.UserInputService.MouseIconEnabled = false
v_u_1.crosshair.ImageLabel.Visible = false
end
end
function _G.moui(p1033)
-- upvalues: (copy) v_u_1
v_u_1.f_updmouse(p1033)
end
function v_u_1.f_kc(p1034, p1035, p1036, p1037, p1038)
local v1039 = ""
if p1034.Character and p1036.Character then
local v1040 = p1034.Character:FindFirstChild("HumanoidRootPart")
local v1041 = p1036.Character:FindFirstChild("HumanoidRootPart")
if v1040 and v1041 then
local v1042 = (v1040.Position - v1041.Position).magnitude * 10
v1039 = "From " .. math.ceil(v1042) / 10 .. " studs"
end
end
p1035.Killcam.Visible = true
p1035.Killcam.TextLabelPlayer.Text = p1036.Name
p1035.Killcam.TextLabelWeapon.Text = p1037
p1035.Killcam.TextLabelDistance.Text = v1039
p1035.Killcam.Frame.Bar.Size = UDim2.new(p1038 / 100, 0, 1, 0)
p1035.Killcam.Frame.TextLabel.Text = p1038 .. " HP"
p1035.Killcam.ImageLabelPortrait.Image = "https://www.roblox.com/bust-thumbnail/image?userId=" .. p1036.UserId .. "&width=420&height=420&format=png"
end
function v_u_1.f_upspd(p1043, p1044)
-- upvalues: (copy) v_u_1
if v_u_1.cameramode == "3ps" and v_u_1.module.spread then
local v1045 = v_u_1.module.spread.Min
local v1046 = v_u_1.module.spread.Max - v1045
if (_G.screentype == "ts s" or _G.screentype == "ts l") and v_u_1.gametype == "Zombies" then
v1046 = v1046 * 0.5
v1045 = 0
end
if p1043 == true then
local v1047 = v_u_1
v1047.currentspread = v1047.currentspread + v_u_1.module.spread.Increase
end
if v1046 < v_u_1.currentspread then
v_u_1.currentspread = v1046
end
if v_u_1.firing == false and v_u_1.currentspread > 0 then
v_u_1.currentspread = v_u_1.currentspread - v_u_1.module.spread.Decrease * p1044
if v_u_1.currentspread < 0 then
v_u_1.currentspread = 0
end
end
gunspread = v1045 + v_u_1.currentspread
elseif v_u_1.cameramode == "fps" or v_u_1.module.spread == nil then
gunspread = 0
end
end
function v_u_1.f_aq(p1048)
-- upvalues: (copy) v_u_1
for v1049 = 1, #v_u_1.queue.List do
if v_u_1.queue.List[v1049] == p1048 then
return
end
end
if p1048 == "Reload" then
if v_u_1.ce_in_action ~= true and (v_u_1.aiming ~= true and (v_u_1.bolting ~= true and (v_u_1.free ~= false and v_u_1.reloading ~= true))) and v_u_1.ammo.Mag.Value < v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value + (v_u_1.module.extrachamber == false and 0 or 1) then
if v_u_1.ammo.Stored.Value > 0 then
local v1050 = v_u_1.queue.List
table.insert(v1050, 1, p1048)
end
end
else
local v1051 = v_u_1.queue.List
table.insert(v1051, p1048)
end
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (2).."
function v_u_1.f_dw()
-- upvalues: (copy) v_u_1
if v_u_1.module and v_u_1.module.unequipanim then
local v1052 = nil
local v1053
if v_u_1.sttings.Attachments == false or v_u_1.sttings.Attachments and v_u_1.attachments[1].Grip == "" or v_u_1.gunnaseo ~= 1 then
v1053 = {
v_u_1.module.unequipanim[1],
v_u_1.module.unequipanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
0.1,
"finalstep",
v_u_1.module.unequipanim[8],
v_u_1.module.unequipanim[9]
}
else
v1053 = v_u_1.module.gripanim and {
v_u_1.module.gripanim[1],
v_u_1.module.gripanim[2],
v_u_1.module.gripanim[3],
v_u_1.module.gripanim[4],
v_u_1.module.gripanim[5],
0.1,
"finalstep"
} or v1052
end
if v1053 then
if v_u_1.welds[1] then
local v1054
if v1053[5] then
v1054 = v1053[1] * v1053[5]
else
v1054 = v1053[1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v1053[1] * v_u_1.PosWeldOffset, 0)
end
if v1054 then
v_u_1.f_tw(v_u_1.welds[1], v1054, 0)
end
end
if v_u_1.welds[2] and v1053[2] then
v_u_1.f_tw(v_u_1.welds[2], v1053[2], 0)
end
if v_u_1.welds[4] and v1053[3] then
v_u_1.f_tw(v_u_1.welds[4], v1053[3], 0)
end
if v_u_1.module.SlideWhenEmpty == nil and (v_u_1.welds[5] and v1053[4]) then
v_u_1.f_tw(v_u_1.welds[5], v1053[4], 0)
end
if v1053[9] and v_u_1.welds[6] then
v_u_1.f_tw(v_u_1.welds[6], v1053[9], 0)
end
end
if v_u_1.welds and (v_u_1.welds[4] and (v_u_1.welds[4].Part1 and (v_u_1.mala[v_u_1.gunnaseo] ~= "Kar98k" and v_u_1.module.VisibleRocket ~= true))) then
if v_u_1.welds[4].Part1:FindFirstChild("OrigT") then
v_u_1.welds[4].Part1.Transparency = v_u_1.welds[4].Part1.OrigT.Value
return
end
v_u_1.welds[4].Part1.Transparency = 0
end
end
end
function v_u_1.f_ran(p1055)
-- upvalues: (copy) v_u_1
if v_u_1.ammo.Mag == nil or v_u_1.ammo.Stored == nil then
return false
end
if v_u_1.reloading ~= true or (v_u_1.breakreload ~= false or (v_u_1.free ~= false or (v_u_1.deployed ~= true or v_u_1.ce_in_action ~= false))) or p1055 == "B1" and (v_u_1.bolting == true or v_u_1.module.mode == "Bolt" and v_u_1.module.pellets == nil or (_G.screentype == "ts s" or (_G.screentype == "ts l" or v_u_1.ammo.Mag.Value <= 0))) then
return true
end
v_u_1.free = false
v_u_1.breakreload = true
repeat
v_u_1.rs:Wait()
until v_u_1.reloading == false and v_u_1.bolting == false
if p1055 ~= "Change" then
v_u_1.f_dw()
end
v_u_1.free = true
v_u_1.free_to_aim = true
v_u_1.reloading = false
v_u_1.aiming = false
v_u_1.bolting = false
v_u_1.breakreload = false
return false
end
function v_u_1.f_tg()
-- upvalues: (copy) v_u_1
if _G.armed and (v_u_1.free ~= false and (not v_u_1.reloading and (not v_u_1.aimed and (not v_u_1.aiming and (not v_u_1.ce_in_action and (not v_u_1.throwing and (v_u_1.ammo.G.Value > 0 and not v_u_1.firing))))))) then
local v1056, v1057
if v_u_1.cameramode == "fps" then
v1056 = v_u_1.ceamara.CFrame
v1057 = v1056.Position + v1056.lookVector
elseif v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
v1056 = v_u_1.head.CFrame
if v_u_1.aimassist and v_u_1.aimassist.HitPos then
v1057 = v_u_1.aimassist.HitPos
else
v1057 = v_u_1.mouse.Hit.p
end
else
v1056 = v_u_1.head.CFrame
v1057 = v_u_1.mouse.Hit.p
end
local v1058 = CFrame.new(v1056.Position, v1057).lookVector
if v_u_1.gmodule.Stats[v_u_1.grenade].Adhesive or v_u_1.gmodule.Stats[v_u_1.grenade].Impact then
local v1059 = {
["PlayerName"] = v_u_1.player.Name,
["WeaponName"] = v_u_1.grenade,
["Model"] = v_u_1.character,
["ModelType"] = "Character",
["SourcePart"] = v_u_1.head,
["SourcePos"] = v_u_1.head.Position,
["TargetPos"] = v1057
}
game.ReplicatedStorage.RemoteEventF:FireServer(v1059)
else
v_u_1.f_fe("Grenade", v1058)
end
v_u_1.free = false
v_u_1.throwing = true
v_u_1.changinggun = true
local v1060 = v_u_1.gunnaseo
v_u_1.f_dea(v_u_1.gunnaseo, v1060)
v_u_1.f_ps(128951833007004, 0.5, 1, nil, v_u_1.SoundService.Weapons, 50)
v_u_1.f_ps(75217448133063, 1, 1, nil, v_u_1.SoundService.Weapons, 50)
task.wait()
v_u_1.f_updA(false)
if v_u_1.cameramode == "fps" then
v_u_1.f_mi(0, nil, 1)
end
local v1061 = v_u_1.animationsLoaded[13118874863]
v1061.TimePosition = 0
v1061:AdjustSpeed(1)
v1061:Play()
task.wait(v1061.Length)
v_u_1.f_updA(true)
v_u_1.f_rea(v1060)
if v_u_1.cameramode == "fps" then
v_u_1.f_mi(0)
else
v_u_1.f_mi(1)
end
v_u_1.sprintangles[1] = 18
v_u_1.sprintangles[2] = 63
v_u_1.sprintangles[3] = 27
task.wait(0.2)
v_u_1.changinggun = false
v_u_1.free = true
_G.armed = true
v_u_1.throwing = false
end
end
function v_u_1.f_cbv(p1062)
-- upvalues: (copy) v_u_1
if v_u_1.module.visiblebullets == true then
local v1063 = v_u_1.t.Mag:GetChildren()
for v1064 = 1, #v1063 do
if v1063[v1064]:IsA("BasePart") then
local v1065 = v1063[v1064].Name
local v1066 = tonumber(v1065)
if v1066 then
if p1062 == true or v1066 <= v_u_1.ammo.Mag.Value - p1062 then
v1063[v1064].Transparency = 0
else
v1063[v1064].Transparency = 1
end
end
end
end
if v_u_1.t:FindFirstChild("Rotator") then
local v1067 = v_u_1.t.Rotator:GetChildren()
for v1068 = 1, #v1067 do
if v1067[v1068]:IsA("BasePart") then
local v1069 = v1067[v1068].Name
local v1070 = tonumber(v1069)
if v1070 then
if p1062 == true or v1070 <= v_u_1.ammo.Mag.Value - p1062 then
v1067[v1068].Transparency = 0
else
v1067[v1068].Transparency = 1
end
end
end
end
end
end
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (3).."
function v_u_1.f_mf()
-- upvalues: (copy) v_u_1
if v_u_1.Scope.Visible == false and (v_u_1._stats.Settings.MuzzleFlash.Value and not v_u_1.aimed) then
local v1071 = v_u_1.t.Barrel:FindFirstChild("Flash")
if v1071 == nil then
v1071 = game.ReplicatedStorage.Assets.Flash:Clone()
v1071.Parent = v_u_1.t.Barrel
end
if v_u_1.module.No_Flash == true or v_u_1.sttings.Attachments and (v_u_1.gunnaseo == 1 and (v_u_1.attachments[1].Barrel == "Long Suppressor" or v_u_1.attachments[1].Barrel == "Suppressor")) or v_u_1.gunnaseo == 2 and (v_u_1.attachments[2].Barrel == "Long Suppressor" or v_u_1.attachments[2].Barrel == "Suppressor") then
v1071.Texture = "rbxassetid://" .. v_u_1.muzzles.smoke[v_u_1.rng:NextInteger(1, #v_u_1.muzzles.smoke)]
else
v1071.Texture = "rbxassetid://" .. v_u_1.muzzles.flashes[v_u_1.rng:NextInteger(1, #v_u_1.muzzles.flashes)]
end
v1071:Emit(1)
end
end
function v_u_1.f_updsil()
-- upvalues: (copy) v_u_1
local v1072 = v_u_1.Scope.ImageLabel.AbsoluteSize.Y
local v1073 = math.ceil(v1072)
v_u_1.Scope.ImageLabel.Size = UDim2.new(0, v1073, 1, -10)
v_u_1.Scope.ImageLabel.Position = UDim2.new(0.5, -v1073 / 2, 0, 5)
end
function v_u_1.f_s()
-- upvalues: (copy) v_u_1
v_u_1.f_upspd(true)
local v1074, v1075
if v_u_1.cameramode == "fps" then
v1074 = v_u_1.ceamara.CFrame
v1075 = v1074.Position + v1074.lookVector * 10
elseif v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
v1074 = v_u_1.head.CFrame
if v_u_1.aimassist and v_u_1.aimassist.HitPos then
v1075 = v_u_1.aimassist.HitPos
else
v1075 = v_u_1.mouse.Hit.p
end
else
v1074 = v_u_1.head.CFrame
v1075 = v_u_1.mouse.Hit.p
end
if v_u_1.module.Rocket == true or v_u_1.gametype == "Tycoon" then
local v1076 = CFrame.new(v1074.Position, v1075).lookVector
if v_u_1.ammo.Mag.Value == 1 then
v_u_1.ammo.Mag.Value = 0
if v_u_1.module.VisibleRocket == true then
v_u_1.t.Mag.Transparency = 1
end
end
local v1077 = {
["PlayerName"] = v_u_1.player.Name,
["WeaponName"] = v_u_1.mala[v_u_1.gunnaseo],
["Model"] = v_u_1.character,
["ModelType"] = "Character",
["SourcePart"] = v_u_1.head,
["SourcePos"] = v_u_1.head.Position,
["TargetPos"] = v1075
}
if v_u_1.gametype == "Tycoon" and (v_u_1.ostype == "ts" or v_u_1.ostype == "cs") and v_u_1._stats.Settings.AimAssist.Value == true then
local v1078 = v_u_1.rcm.Raycast(v1074, v1076, 3000, v_u_1.raycastParams)
if v1078 and (v1078.Instance and v1078.Position) then
v1077.SourceVelocity = Vector3.new()
v1077.TargetVelocity = v1078.Instance.AssemblyLinearVelocity
v1077.TargetPos = v1078.Position
end
end
if v_u_1.humanoid.Sit == true then
return
end
game.ReplicatedStorage.RemoteEventF:FireServer(v1077)
else
local v1079 = CFrame.new()
local v1080 = CFrame.new()
local v1081 = not v_u_1.module.pellets and 1 or v_u_1.module.pellets
if gunspread > 0 then
v1079 = CFrame.Angles(v_u_1.degree * (v_u_1.rng:NextInteger(-gunspread * 10, gunspread * 10) / 10), v_u_1.degree * (v_u_1.rng:NextInteger(-gunspread * 10, gunspread * 10) / 10), 0)
end
local v1082 = false
local v1083 = false
local v1084 = false
local v1085 = false
local v1086 = {}
local v1087 = nil
if v_u_1.module.DroppableBox == true then
v_u_1.f_swng()
if v_u_1.t:FindFirstChild("Box") then
local v1088 = v_u_1.t.Box:GetChildren()
for v1089 = 1, #v1088 do
if v1088[v1089]:IsA("BasePart") then
v1088[v1089].Transparency = 1
end
end
end
game.ReplicatedStorage.RemoteEvent:FireServer("Drop Box")
else
for _ = 1, v1081 do
if v_u_1.module.pellets then
local v1090 = v_u_1.degree * v_u_1.rng:NextNumber(-v_u_1.module.pspread, v_u_1.module.pspread)
local v1091 = v_u_1.degree * v_u_1.rng:NextNumber(-v_u_1.module.pspread, v_u_1.module.pspread)
v1080 = CFrame.Angles(v1090, v1091, 0)
end
local v1092 = (CFrame.new(v1074.Position, v1075) * v1079 * v1080).lookVector
local v1093 = v_u_1.rcm.Raycast(v1074, v1092, 2000, v_u_1.raycastParams)
local v1094 = v1093.Instance
local v1095 = v1093.Position
if v1094 and v1094.Parent then
if v_u_1.t and v_u_1.t:FindFirstChild("Barrel") then
local v1096 = (v_u_1.t.Barrel.Position - v1095).magnitude
v_u_1.f_fb(v1095, BrickColor.new(v_u_1.module.tracer), v_u_1.t.Barrel.Position, v1096)
end
if v_u_1.humanoid.Health > 0 then
if v1094.Parent:FindFirstChild("Humanoid") then
v1087 = v1094.Parent:FindFirstChild("Humanoid")
if v1094.Name == "Head" then
v1084 = true
end
elseif v1094.Parent.ClassName == "Accessory" and v1094.Parent.Parent:FindFirstChild("Humanoid") then
v1087 = v1094.Parent.Parent:FindFirstChild("Humanoid")
v1084 = true
end
if v1094.Parent:FindFirstChild("ZombieName") then
if v1084 == true and (v1094.Parent.ZombieName.Value == "Tank" or (v1094.Parent.ZombieName.Value == "Juggernaut Miniboss" or v1094.Parent.ZombieName.Value == "Champion Miniboss")) or (v1094.Name == "HumanoidRootPart" or (v1094.Name == "UpperTorso" or v1094.Name == "LowerTorso")) and (v1094.Parent.ZombieName.Value == "Winged Miniboss" or (v1094.Parent.ZombieName.Value == "Tank" or v1094.Parent.ZombieName.Value == "Soldier")) or v1094.Name == "Shield" then
v1082 = true
elseif v1094.Parent.ZombieName.Value == "Juggernaut Miniboss" or v1094.Parent.ZombieName.Value == "Champion Miniboss" then
v1082 = (v1094.Name == "UpperTorso" or (v1094.Name == "LowerTorso" or (v1094.Name == "Head" or (v1094.Name == "RightUpperArm" or v1094.Name == "LeftUpperArm")))) and true or v1082
end
end
local v1097 = v_u_1.attachments[v_u_1.gunnaseo]
if v1082 == true then
v1085 = v1084 == true and true or v1085
if v1097 then
local v1098 = v1097.Ammunition
if v1098 == "Armor Piercing" or v1098 == "AP RIP" then
v1082 = false
end
end
end
end
if v1094 then
if v_u_1.gametype == "Tycoon" and v1087 then
local v1099 = game.Players:FindFirstChild(v1087.Parent.Name)
if v1099 then
if v_u_1._stats.Alliances:FindFirstChild(v1099.Name) then
v1087 = nil
elseif game.ReplicatedStorage.Matchmaking.ServerDifficulty.Value == "Peaceful" then
v1087 = nil
end
end
end
if v1087 and v1087.Sit == false then
local v1100 = { v1087.Parent.Name, v1094.Name, v1094.CFrame:inverse() * CFrame.new(v1095) }
table.insert(v1086, v1100)
local v1101 = game.ReplicatedStorage.Assets.HitMarkCharacter:Clone()
v1101.CFrame = CFrame.new(v1095) + v1093.Normal * (0.1 + v_u_1.sttings.HitMarkEffectOffset)
v1101.WeldConstraint.Part0 = v1094
v1101.Parent = workspace.Ignore.Tracers
v_u_1.Debris:AddItem(v1101, 1)
v1101.CircleEmitter:Emit(1)
v1083 = true
else
local v1102 = { nil, nil, CFrame.new(v1095) }
table.insert(v1086, v1102)
v_u_1.f_pw(v1094, v1095, v1092, v1093.Normal, 0, (v1095 - v1074.Position).magnitude, v1087, false, 0, v_u_1.module.penetration)
end
else
local v1103 = { nil, nil, CFrame.new(v1095) }
table.insert(v1086, v1103)
end
else
local v1104 = (v_u_1.t.Barrel.Position - v1095).magnitude
v_u_1.f_fb(v1095, BrickColor.new(v_u_1.module.tracer), v_u_1.t.Barrel.Position, v1104)
end
end
game.ReplicatedStorage.RemoteEvent:FireServer(v_u_1.f, v1074.Position, v1086, tick())
end
if v1085 == true then
v_u_1.f_psl(nil, 988593556, 0.8, 1, nil, v_u_1.SoundService.Effects)
end
if v1083 == true then
if v1082 == true then
_G.HM("armour")
elseif v1084 == true then
_G.HM(true)
else
_G.HM()
end
end
end
if v_u_1.module.rotator and v_u_1.rotating == false then
v_u_1.rotating = true
task.spawn(function()
-- upvalues: (ref) v_u_1
if v_u_1.t.Rotator:FindFirstChild("SourceWeld") then
if v_u_1.module.dynamiclmgslide == true then
v_u_1.t["LMG Slide"].Transparency = 1
v_u_1.t.Rotator.Shells.Transparency = 0
end
local v1105 = nil
local v1106 = v_u_1.module.rotator[3] == nil and 3 or (v_u_1.module.rotator[3] or 3)
local v1107 = 360 / v_u_1.module.rotator[2] / v1106
if v_u_1.module.rotator[1] == "x" then
v1105 = CFrame.Angles(0, 0, (math.deg(v1107)))
elseif v_u_1.module.rotator[1] == "y" then
v1105 = CFrame.Angles(math.deg(v1107), 0, 0)
elseif v_u_1.module.rotator[1] == "z" then
v1105 = CFrame.Angles(0, 0, (math.deg(v1107)))
end
for _ = 1, v1106 do
local v1108 = v_u_1.t.Rotator.SourceWeld
v1108.C0 = v1108.C0 * v1105
task.wait()
end
if v_u_1.module.rotatorreset == true then
v_u_1.t.Rotator.SourceWeld.C0 = v_u_1.RotatorCF0
end
end
if v_u_1.module.dynamiclmgslide == true then
v_u_1.t["LMG Slide"].Transparency = 0
v_u_1.t.Rotator.Shells.Transparency = 1
end
v_u_1.rotating = false
end)
end
if v_u_1.ammo.Mag.Value == 1 then
v_u_1.ammo.Mag.Value = 0
end
v_u_1.f_cbv(1)
local v1109 = tick()
if v1109 - v_u_1.ratet > 2 then
v_u_1.ratet = v1109
game.ReplicatedStorage.RemoteEvent:FireServer("Sound Emitted", "Character", "Weapon")
end
if v_u_1.module.volume then
v_u_1.f_ps(v_u_1.module.sound, v_u_1.module.volume, v_u_1.module.pitch, true, v_u_1.SoundService.Weapons, 1000)
else
v_u_1.f_ps(v_u_1.module.sound, 0.5, v_u_1.module.pitch, true, v_u_1.SoundService.Weapons, 1000)
end
v_u_1.f_mf()
v_u_1.f_gr()
end
function v_u_1.f_w(p1110, p1111)
-- upvalues: (copy) v_u_1
for v1112 = 1, #p1111 do
if p1111[v1112]:IsA("BasePart") and (p1111[v1112]:FindFirstChild("SourceWeld") == nil and p1111[v1112] ~= p1110) then
local v1113 = Instance.new("Weld")
v1113.Parent = p1110
v1113.Name = "SourceWeld"
v1113.Part0 = p1110
v1113.Part1 = p1111[v1112]
v1113.C0 = v1113.Part0.CFrame:inverse() * v1113.Part1.CFrame
if p1111[v1112].Name == "Mag" then
v_u_1.welds[4] = v1113
elseif p1111[v1112].Name == "Slide" then
v_u_1.welds[5] = v1113
elseif p1111[v1112].Name == "LMG Slide" then
v_u_1.welds[6] = v1113
elseif p1111[v1112].Name == "Slide2" then
v_u_1.welds[7] = v1113
end
if p1111[v1112].Name == "Pos" then
v1113.Name = "PosWeld"
elseif p1111[v1112].Name == "Rotator" and v_u_1.mala[v_u_1.gunnaseo] == "Minigun" then
local v1114 = p1111[v1112].Parent.Pivot
v1113.Name = "SourceWeld"
v1113.Parent = p1111[v1112]
v1113.Part0 = v1114
v1113.Part1 = p1111[v1112]
v1113.C0 = v1113.Part0.CFrame:inverse() * v1113.Part1.CFrame
else
local v1115 = {
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12"
}
for v1116 = 1, #v1115 do
if p1111[v1112].Name == v1115[v1116] or p1111[v1112].Name == v1115[v1116] .. "-1" then
local v1117 = p1111[v1112].Parent.Mag
v1113.Parent = p1111[v1112]
v1113.Part0 = v1117
v1113.Part1 = p1111[v1112]
v1113.C0 = v1113.Part0.CFrame:inverse() * v1113.Part1.CFrame
local v1118 = Instance.new("CFrameValue")
v1118.Name = "OrigCFrame"
v1118.Value = v1113.C0
v1118.Parent = v1113
if p1111[v1112].Name == v1115[v1116] then
local v1119 = v_u_1.bulletstrips1
local v1120 = p1111[v1112]
table.insert(v1119, 1, v1120)
local v1121 = v_u_1.bulletstrips2
local v1122 = p1111[v1112]
table.insert(v1121, 1, v1122)
else
local v1123 = v_u_1.bulletstrips2
local v1124 = p1111[v1112]
table.insert(v1123, 1, v1124)
end
break
end
end
end
end
end
end
function v_u_1.f_updld(p1125, p1126, p1127, p1128, p1129, p1130, p1131)
-- upvalues: (copy) v_u_1
if v_u_1._stats:FindFirstChild("Owned") == nil then
local v1132 = os.time()
repeat
task.wait()
until v_u_1._stats:FindFirstChild("Owned") == nil or os.time() - v1132 > 2
end
if p1125 and (v_u_1._stats.Owned:FindFirstChild(p1125) and (p1131 == "Spawned" or v_u_1._stats.Loadout.Primary.Value ~= p1125)) then
v_u_1._stats.Loadout.Primary.Value = p1125
end
if p1126 and (v_u_1._stats.Owned:FindFirstChild(p1126) and (p1131 == "Spawned" or v_u_1._stats.Loadout.Secondary.Value ~= p1126)) then
v_u_1._stats.Loadout.Secondary.Value = p1126
end
if p1127 and (v_u_1._stats.Owned:FindFirstChild(p1127) and (p1131 == "Spawned" or v_u_1._stats.Loadout.Tertiary.Value ~= p1127)) then
v_u_1._stats.Loadout.Tertiary.Value = p1127
end
if p1128 and (v_u_1._stats.Owned:FindFirstChild(p1128) and (p1131 == "Spawned" or v_u_1._stats.Loadout.Melee.Value ~= p1128)) then
v_u_1._stats.Loadout.Melee.Value = p1128
end
if p1129 and (v_u_1._stats.Owned:FindFirstChild(p1129) and (p1131 == "Spawned" or v_u_1._stats.Loadout.Random.Value ~= p1129)) then
v_u_1._stats.Loadout.Random.Value = p1129
end
if p1130 and (v_u_1._stats.Owned:FindFirstChild(p1130) and (p1131 == "Spawned" or v_u_1._stats.Loadout.Perk.Value ~= p1130)) then
v_u_1._stats.Loadout.Perk.Value = p1130
end
end
function v_u_1.f_upddesspr()
-- upvalues: (copy) v_u_1
local v1133 = v_u_1.weaponclasses[v_u_1.mala[v_u_1.gunnaseo]].Class
if (v1133 == "Pistol" or (v1133 == "Automatic Pistol" or (v1133 == "Hand Cannon" or v1133 == "Derringer"))) and (v_u_1.mala[v_u_1.gunnaseo] ~= "Uzi" and (v_u_1.mala[v_u_1.gunnaseo] ~= "MAC-10" and v_u_1.mala[v_u_1.gunnaseo] ~= "MP5K")) then
v_u_1.desiredsprint[1] = -35
v_u_1.desiredsprint[2] = 0.1
v_u_1.desiredsprint[3] = 0.1
else
v_u_1.desiredsprint[1] = 18
v_u_1.desiredsprint[2] = 63
v_u_1.desiredsprint[3] = 27
end
end
function v_u_1.f_ADSt(_)
-- upvalues: (copy) v_u_1
local v1134 = 0.25
local v1135 = v_u_1.weaponclasses[v_u_1.mala[v_u_1.gunnaseo]].Class
if v1135 then
if v1135 == "Pistol" or (v1135 == "Automatic Pistol" or v1135 == "Derringer") then
return 0.15
end
if v1135 == "Personal Defense Weapon" then
return 0.2
end
if v1135 == "Carbine" then
return 0.25
end
if v1135 == "Assault Rifle" or (v1135 == "Battle Rifle" or v1135 == "Shotgun") then
return 0.3
end
if v1135 == "Sniper Rifle" or (v1135 == "Marksman Rifle" or v1135 == "Hand Cannon") then
return 0.35
end
if v1135 == "Light Machine Gun" or (v1135 == "Medium Machine Gun" or v1135 == "Heavy Machine Gun") then
return 0.4
end
v1134 = (v1135 == "Rkt. Launcher" or v1135 == "Grenade Launcher") and 0.45 or v1134
end
return v1134
end
function v_u_1.f_updm()
-- upvalues: (copy) v_u_1
v_u_1.module = v_u_1.f_ct(v_u_1.gunmodulestorage[v_u_1.mala[v_u_1.gunnaseo]])
local v1136 = 1
local v1137 = 1
if v_u_1.module.caliber and v_u_1.calibers[v_u_1.module.caliber] then
v1137 = v_u_1.calibers[v_u_1.module.caliber].Emitter
v_u_1.module.penetration = v_u_1.calibers[v_u_1.module.caliber].Penetration
else
v_u_1.module.caliber = "?"
v_u_1.calibers[v_u_1.module.caliber] = {
["Hole"] = 0.4,
["Emitter"] = 2,
["Debris"] = 0.05,
["Penetration"] = 2
}
v_u_1.module.penetration = 0
end
local v1138 = v_u_1.attachments[v_u_1.gunnaseo] and v_u_1.attachments[v_u_1.gunnaseo].Ammunition == "Explosive" and 2 or v1136
local v1139 = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, v1137 * v1138) })
local v1140 = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, v1137) })
local v1141 = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.1, v1137 * v1138), NumberSequenceKeypoint.new(1, 0) })
v_u_1.sttings.HitMarkEffectOffset = v1137 / 5 + 0.05
if v_u_1.sttings.HitMarkEffectOffset > 0.2 then
v_u_1.sttings.HitMarkEffectOffset = 0.2
end
local v1142 = game.ReplicatedStorage.Assets.HitMark
local v1143 = v_u_1.calibers[v_u_1.module.caliber].Hole
local v1144 = v_u_1.calibers[v_u_1.module.caliber].Hole
v1142.Size = Vector3.new(v1143, v1144, 0.01)
game.ReplicatedStorage.Assets.HitMark.Particle.Size = NumberSequence.new(v_u_1.calibers[v_u_1.module.caliber].Debris)
game.ReplicatedStorage.Assets.HitMarkEffect.CircleEmitter.Size = v1139
game.ReplicatedStorage.Assets.HitMarkEffect.SparkEmitter.Size = v1141
game.ReplicatedStorage.Assets.HitMarkCharacter.CircleEmitter.Size = v1140
local v1145 = 1
local v1146 = 1
local v1147 = 1
local v1148 = 1
local v1149 = 1
local v1150 = 1
local v1151 = 0
local v1152 = 0
if (_G.screentype == "ts s" or _G.screentype == "ts l") and v_u_1.gametype == "Zombies" then
v1150 = v1150 * 0.85
v1147 = v1147 * 0.85
end
v_u_1.silenced = false
v_u_1.lasersight = false
local v1153 = v_u_1.attachments[v_u_1.gunnaseo]
if v_u_1.sttings.Attachments and v1153 then
if v1153.Grip == "Ergonomic" then
v1150 = v1150 - 0.05
v1145 = v1145 - 0.25
elseif v1153.Grip == "Potato" then
v1150 = v1150 - 0.05
v1146 = v1146 - 0.25
elseif v1153.Grip == "Slanted" then
v1150 = v1150 - 0.05
v1147 = v1147 - 0.25
elseif v1153.Grip == "Angled" then
v1150 = v1150 - 0.03
v1149 = v1149 + 0.4
elseif v1153.Grip == "Stubby" then
v1150 = v1150 - 0.05
v1148 = v1148 - 0.2
elseif v1153.Grip == "Vertical" then
v1150 = v1150 - 0.15
v1148 = v1148 - 0.05
elseif v1153.Grip == "Advanced" then
v1150 = v1150 - 0.25
v1148 = v1148 - 0.1
end
if v1153.Barrel == "Compensator" then
v1151 = v1151 + 0.15
v1152 = v1152 + 0.07
elseif v1153.Barrel == "Suppressor" then
v1151 = v1151 + 0.05
v_u_1.silenced = true
elseif v1153.Barrel == "Muzzle Brake" then
v1151 = v1151 + 0.11
v1152 = v1152 + 0.1
elseif v1153.Barrel == "Long Suppressor" then
v1151 = v1151 + 0.1
v_u_1.silenced = true
elseif v1153.Barrel == "XL Muzzle Brake" then
v1150 = v1150 - 0.2
end
if v1153.Side == "Laser Pointer Red" then
v1148 = v1148 - 0.2
v1147 = v1147 - 0.2
v_u_1.lasersight = true
elseif v1153.Side == "Laser Pointer Green" then
v1148 = v1148 - 0.25
v1147 = v1147 - 0.25
v_u_1.lasersight = true
elseif v1153.Side == "Laser Pointer Blue" then
v1148 = v1148 - 0.3
v1147 = v1147 - 0.3
v_u_1.lasersight = true
end
end
if v_u_1.sttings.Attachments and (v_u_1.gunnaseo == 1 and (v_u_1.attachments[1].Barrel == "Long Suppressor" or v_u_1.attachments[1].Barrel == "Suppressor") or v_u_1.gunnaseo == 2 and (v_u_1.attachments[2].Barrel == "Long Suppressor" or v_u_1.attachments[2].Barrel == "Suppressor")) then
local v1154 = v_u_1.module.sound
if v1154 == 6832609648 or (v1154 == 6844479951 or v1154 == 6844481193) then
v_u_1.module.sound = 6841276548
v_u_1.module.volume = 0.8
elseif v1154 == 10817302765 then
v_u_1.module.sound = 10817211878
v_u_1.module.volume = 0.5
elseif v1154 == 6830832941 or (v1154 == 6844510870 or (v1154 == 6844587325 or (v1154 == 500981849 or v1154 == 500960183))) then
v_u_1.module.sound = 6844511377
v_u_1.module.volume = 0.8
elseif v1154 == 7909498720 then
v_u_1.module.sound = 7909572805
v_u_1.module.volume = 0.4
elseif v1154 == 5724697567 or v1154 == 5724697778 then
v_u_1.module.sound = 6855400727
v_u_1.module.volume = 0.9
elseif v1154 == 6844653042 or v1154 == 6844700498 then
v_u_1.module.sound = 6855136964
v_u_1.module.volume = 0.6
elseif v1154 == 6844505284 or v1154 == 6844507505 then
v_u_1.module.sound = 6855127944
v_u_1.module.volume = 0.5
elseif v1154 == 6844519494 or v1154 == 6844520196 then
v_u_1.module.sound = 6855194912
v_u_1.module.volume = 0.5
elseif v1154 == 6844376147 then
v_u_1.module.sound = 6855344504
v_u_1.module.volume = 0.6
elseif v1154 == 6844498982 or (v1154 == 6844493870 or v1154 == 6844491390) then
v_u_1.module.sound = 6855426469
v_u_1.module.volume = 0.7
elseif v1154 == 6844966245 then
v_u_1.module.sound = 6855447342
v_u_1.module.volume = 0.7
elseif v1154 == 6838391937 or v1154 == 6844853653 then
v_u_1.module.sound = 6855463677
v_u_1.module.volume = 0.7
elseif v1154 == 3855292863 or (v1154 == 6844524711 or (v1154 == 6844524946 or v1154 == 3723700663)) then
v_u_1.module.sound = 6855481610
v_u_1.module.volume = 0.7
elseif v1154 == 6129192630 then
v_u_1.module.sound = 7909572805
v_u_1.module.volume = 0.4
else
v_u_1.module.sound = 1957622334
v_u_1.module.volume = 0.7
end
end
if v_u_1.module.spread then
v_u_1.module.spread.Increase = v_u_1.module.spread.Increase * v1145
v_u_1.module.spread.Decrease = v_u_1.module.spread.Decrease * v1146 * 20
v_u_1.module.spread.Max = v_u_1.module.spread.Max * v1147
v_u_1.module.spread.Min = v_u_1.module.spread.Min * v1148
end
if v_u_1.module.recoil then
if v_u_1.module.recoil.Back[2] < 0.75 then
v_u_1.module.recoil.Back = { 0.75, 0.75 }
elseif v_u_1.module.recoil.Back[2] > 2 then
v_u_1.module.recoil.Back = { 2, 2 }
end
v_u_1.module.recoil.Tilt = { v_u_1.module.recoil.Tilt[1], v_u_1.module.recoil.Tilt[2] }
v_u_1.module.recoil.Side = { v_u_1.module.recoil.Side[1] * (v1150 - v1152) * 0.75, v_u_1.module.recoil.Side[2] * (v1150 - v1152) * 0.75 }
v_u_1.module.recoil.Vertical = { v_u_1.module.recoil.Vertical[1] * (v1150 - v1151), v_u_1.module.recoil.Vertical[2] * (v1150 - v1151) }
v_u_1.module.recoil.Back = { v_u_1.module.recoil.Back[1] * v1150, v_u_1.module.recoil.Back[2] * v1150 }
v_u_1.module.recoil.FirstShot = v_u_1.module.recoil.FirstShot * v1150
v_u_1.module.recoil.Aimed = v_u_1.module.recoil.Aimed * v1150
end
if v_u_1.module.recoil then
v_u_1.module.recoil.Aimed = 0.8
end
local v1155 = 1
local v1156 = 1
if v_u_1.perks_temporary["Bloxy Cola"].Acquired then
v1155 = v1155 * 1.33
end
if v_u_1.perks_temporary["Bloxilicious Gum"].Acquired then
v1156 = v1156 - 0.2
end
if v_u_1.perk == "Quick Hands" then
v1156 = v1156 - 0.1
elseif v_u_1.perk == "Steady Hands" then
v1156 = v1156 - 0.2
elseif v_u_1.perk == "Iron Hands" then
v1156 = v1156 - 0.25
elseif v_u_1.perk == "Dexterous" then
v1156 = v1156 - 0.3
end
local v1157 = v_u_1.attachments[v_u_1.gunnaseo]
if v1157 then
if v1157.Capacity == "Extended" then
v1156 = v1156 + 0.1
elseif v1157.Capacity == "Speed Loader" then
v1156 = v1156 - 0.15
elseif v1157.Capacity == "Ext. Speed Loader" then
v1156 = v1156 - 0.1
elseif v1157.Capacity == "XL Speed Loader" then
v1156 = v1156 - 0.07
elseif v1157.Capacity == "XXL Magazine" then
v1156 = v1156 + 0.07
elseif v1157.Capacity == "XXL Speed Loader" then
v1156 = v1156 - 0.1
end
end
if v1155 ~= 1 and v_u_1.module.boltanim then
for v1158 = 1, #v_u_1.module.boltanim do
v_u_1.module.boltanim[v1158][6] = v_u_1.module.boltanim[v1158][6] / (v1155 + (1 - v1156))
end
end
if v1156 ~= 1 and (v_u_1.module.reloadanim and v_u_1.module.reloadanim) then
for v1159 = 1, #v_u_1.module.reloadanim do
v_u_1.module.reloadanim[v1159][6] = v_u_1.module.reloadanim[v1159][6] * v1156
end
end
if v_u_1.module.secondarybolt == true then
v_u_1.module.secondary = #v_u_1.module.reloadanim
if v_u_1.module.boltanim then
for v1160 = 1, #v_u_1.module.boltanim do
local v1161 = v_u_1.f_ct(v_u_1.module.boltanim[v1160])
if v1160 == 1 then
v1161[6] = 0.25
end
local v1162 = v_u_1.module.reloadanim
table.insert(v1162, v1161)
end
end
end
if v_u_1.module.magsize == 1 then
local v1163 = 0
for v1164 = 1, #v_u_1.module.reloadanim do
v1163 = v1163 + v_u_1.module.reloadanim[v1164][6]
end
v_u_1.module.rpm = 60 / v1163
end
v_u_1.module.rpm = v_u_1.module.rpm * v1155
if v_u_1.upgradedguns[v_u_1.gunnaseo] == true then
if v_u_1.module.pitch then
v_u_1.module.pitch = v_u_1.module.pitch * 0.9
end
v_u_1.module.tracer = "Magenta"
end
if v_u_1.gunnaseo == 1 then
if v_u_1.sttings.Attachments and v_u_1.f_cgt(v_u_1.attachments[1].Optic, {
"ACOG",
"M145",
"PKA",
"PKA-S",
"PRISMA",
"PSO-1",
"RS",
"CL",
"BLS",
"PKS-07",
"PSO-1",
"Optic_Cross"
}) then
v_u_1.holographic = false
else
v_u_1.holographic = true
end
else
v_u_1.holographic = true
end
v_u_1.sttings.ADSModifier = v1149
v_u_1.sttings.tADS = 1 / v_u_1.f_ADSt(v_u_1.mala[v_u_1.gunnaseo])
local v1165 = {
v_u_1.module.reloadanim,
v_u_1.module.reloadloop,
v_u_1.module.boltanim,
v_u_1.module.gripanim,
v_u_1.module.unequipanim
}
for v1166 = 1, #v1165 do
if v1165[v1166] ~= nil then
if v1165[v1166][1] then
local v1167 = v1165[v1166][1]
if type(v1167) ~= "table" then
goto l171
end
for v1168 = 1, #v1165[v1166] do
local v1169 = v1165[v1166][v1168]
if v1169[5] and v1169[5] == v1169[1] then
v1169[5] = nil
print("Array[5] =", nil)
end
end
else
::l171::
local v1170 = v1165[v1166]
if v1170[5] and v1170[5] == v1170[1] then
v1170[5] = nil
print("Array[5] =", nil)
end
end
end
end
end
function v_u_1.f_sbf()
-- upvalues: (copy) v_u_1
v_u_1.welds[5].C0 = v_u_1.module.slideback
if v_u_1.module.slide2back and v_u_1.welds[7] then
v_u_1.welds[7].C0 = v_u_1.module.slide2back
end
local v1171 = v_u_1.t:FindFirstChild("SlideInvisible")
if v1171 then
v1171.Transparency = 1
end
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (4).."
function v_u_1.f_osg(p_u_1172, p_u_1173, p_u_1174)
-- upvalues: (copy) v_u_1
local v_u_1175 = false
local v1178, v1179 = pcall(function()
-- upvalues: (ref) v_u_1, (copy) p_u_1172, (copy) p_u_1173, (ref) v_u_1175, (copy) p_u_1174
if v_u_1.weaponclasses[p_u_1172].Type == "Melee" then
if v_u_1._stats and v_u_1._stats:FindFirstChild("Owned") then
local v1176 = v_u_1._stats.Owned:FindFirstChild(p_u_1172)
if v1176 then
if v1176:FindFirstChild("Skins_Weapon") then
if v1176.Skins_Weapon:FindFirstChild(p_u_1173) then
v_u_1175 = true
end
else
local v1177 = p_u_1172
warn("No", tostring(v1177) .. ".Skins_Weapon")
end
end
if p_u_1174 == true then
v_u_1175 = game.ReplicatedStorage.RemoteFunction:InvokeServer("Check Owned", v_u_1.weaponclasses[p_u_1172].Type, p_u_1172, p_u_1173)
return
end
end
else
if v_u_1._stats and (v_u_1._stats:FindFirstChild("Owned") and v_u_1._stats.Owned:FindFirstChild(p_u_1172)) then
v_u_1175 = true
return
end
if p_u_1174 == true then
v_u_1175 = game.ReplicatedStorage.RemoteFunction:InvokeServer("Check Owned", v_u_1.weaponclasses[p_u_1172].Type, p_u_1172, p_u_1173)
return
end
v_u_1175 = false
end
end)
if v1178 == false then
warn("f.f_osg ERROR:", v1179)
end
return v_u_1175
end
function v_u_1.f_updmb()
-- upvalues: (copy) v_u_1
local v1180 = v_u_1.gui.MainMenu.Loadout.Menu.Melee.Menus:GetChildren()
for v1181 = 1, #v1180 do
local v1182 = v1180[v1181]:GetChildren()
for v1183 = 1, #v1182 do
if v_u_1.f_osg(v1180[v1181].Name, v1182[v1183].Name) then
v1182[v1183].ImageLabel.Visible = false
v1182[v1183].Price.Visible = false
v1182[v1183].BackgroundTransparency = 0
end
end
end
end
function v_u_1.f_ams(p1184, p1185, p1186, p1187)
-- upvalues: (copy) v_u_1
local v1188 = nil
local v1189 = v_u_1.customisation.Module.MeleeSkins[p1184]
if v1189 then
for v1190 = 1, #v1189 do
if v1189[v1190].Name == p1185 then
if v1189[v1190].Sections and v1189[v1190].Sections.Blade then
v1188 = v1189[v1190].Sections.Blade
end
break
end
end
if v1188 then
local v1191
if v1188.BrickColour then
v1191 = BrickColor.new(v1188.BrickColour).Number
else
v1191 = nil
end
local v1192 = {
["Material"] = v1188.Material,
["Texture"] = v1188.Texture,
["Colour"] = v1191,
["Skin"] = p1185
}
if (v_u_1.cameramode == "menu" or _G.armory == true) and p1187 == nil then
v_u_1.f_wg(p1184, true, true, v1192)
end
if p1186 == true then
v_u_1.customisation.Colour1[4] = v1192
v_u_1.f_fe("Update skins", p1184, {
["Colour1"] = v1192
})
end
else
v_u_1.customisation.Colour1[4] = {}
v_u_1.f_fe("Update skins", p1184, {
["Colour1"] = {}
})
if (v_u_1.cameramode == "menu" or _G.armory == true) and p1187 == nil then
v_u_1.f_wg(p1184, true, true)
end
end
if p1186 == true then
v_u_1.mala[4] = p1184
end
end
end
function v_u_1.f_wg(p_u_1193, p1194, p1195, p1196)
-- upvalues: (copy) v_u_1
local v_u_1197 = nil
local v1198, v1199 = pcall(function()
-- upvalues: (ref) v_u_1197, (ref) v_u_1, (copy) p_u_1193
v_u_1197 = v_u_1.weaponclasses[p_u_1193].Type == "Melee" and true or nil
end)
if v1198 == false then
warn("f.f_wg()", p_u_1193, p1194, p1195, p1196)
warn(v1199)
end
local v1200 = v_u_1.weaponclasses[p_u_1193].Type == "Melee" and true or nil
if v_u_1.MenuRoom.Model then
if v_u_1.MenuRoom.Model.Name == "Mannequin" then
v_u_1.mannequin.Parent = workspace.MenuRoom
v_u_1.MenuRoom.Model = nil
else
v_u_1.MenuRoom.Model:Destroy()
end
end
local v1201 = v_u_1.holder:GetChildren()
for v1202 = 1, #v1201 do
if v1201[v1202].Name == "GunModel" then
v1201[v1202]:Destroy()
end
end
v_u_1.gunparts = {}
if v_u_1.t then
v_u_1.t:Destroy()
end
if game.ReplicatedStorage.Assets.Grenades:FindFirstChild(p_u_1193) then
local v1203 = game.ReplicatedStorage.Assets.Grenades[p_u_1193]:Clone()
v1203.Anchored = true
local v1204 = Instance.new("Model")
v1203.Parent = v1204
v1203.Trigger.Parent = v1204
v1203.Trail:Destroy()
v_u_1.t = v1204
else
v_u_1.t = game.ReplicatedStorage.Assets.GunModels[p_u_1193]:Clone()
end
if p_u_1193 == "Laser Saber" or p_u_1193 == "Double Laser Saber" then
v_u_1.t.Section1.Sound:Play()
end
v_u_1.RotatorCF0 = nil
if v_u_1.t:FindFirstChild("Rotator") and v_u_1.t.Rotator:FindFirstChild("SourceWeld") then
v_u_1.RotatorCF0 = v_u_1.t.Rotator.SourceWeld.C0
v_u_1.rotating = false
end
local v1205 = v_u_1.gui.Deployed.Image:GetChildren()
for v1206 = 1, #v1205 do
if v1205[v1206].Name ~= "1" then
v1205[v1206]:Destroy()
end
end
local v1207 = v_u_1.weaponclasses[p_u_1193].Type == "Secondary" and 2 or (v_u_1.weaponclasses[p_u_1193].Type == "Melee" and 4 or (v_u_1.gunnaseo == 1 and 1 or 0))
local v1208 = v_u_1.f_ct(v_u_1.gunmodulestorage[v_u_1.mala[v_u_1.gunnaseo]])
local v1209 = v_u_1.sttings.Attachments
if v1209 then
if v1207 == 1 and v_u_1.attachments[1].Optic ~= "" then
if v1208 then
if v_u_1.attachments[1].Optic == v1208.DefaultOptic then
v1209 = false
else
v1209 = p1195 == nil
end
else
v1209 = v1208
end
else
v1209 = false
end
end
if v1209 == true then
if v1208 then
if v1208.irons_cf1 ~= nil and v_u_1.t:FindFirstChild("IronSights1Pivot") then
v_u_1.t.IronSights1Pivot.CFrame = v_u_1.t.Trigger.CFrame * v1208.irons_cf1[2]
end
if v1208.irons_cf2 ~= nil and v_u_1.t:FindFirstChild("IronSights2Pivot") then
v_u_1.t.IronSights2Pivot.CFrame = v_u_1.t.Trigger.CFrame * v1208.irons_cf2[2]
end
end
elseif v1208 then
if v1208.irons_cf1 ~= nil and v_u_1.t:FindFirstChild("IronSights1Pivot") then
v_u_1.t.IronSights1Pivot.CFrame = v_u_1.t.Trigger.CFrame * v1208.irons_cf1[1]
end
if v1208.irons_cf2 ~= nil and v_u_1.t:FindFirstChild("IronSights2Pivot") then
v_u_1.t.IronSights2Pivot.CFrame = v_u_1.t.Trigger.CFrame * v1208.irons_cf2[1]
end
end
local v1210 = 0
if p1194 == nil then
v_u_1.f_updm()
v_u_1.f_w(v_u_1.t.Trigger, v_u_1.t:GetChildren())
local v1211 = nil
if v_u_1.sttings.Attachments and (v_u_1.attachments[1].Optic ~= "" and (v_u_1.attachmentarrays[v_u_1.attachments[1].Optic] and v1207 == 1)) then
v1211 = v_u_1.attachments[1].Optic
elseif v1208.DefaultOptic then
v1211 = v1208.DefaultOptic
end
if v1211 == nil then
if v1208.maxzoom then
v_u_1.aim.dZoomFOV = v_u_1.aim.FOV - v1208.maxzoom
else
v_u_1.aim.dZoomFOV = v_u_1.aim.FOV - 5
end
else
local v1212 = v_u_1.attachmentarrays[v1211]
v1210 = v1212.Offset
v_u_1.aim.dZoomFOV = v_u_1.aim.FOV - v_u_1.aim.FOV / v1212.Magnification
v_u_1.Scope.ImageLabel.Image = "rbxassetid://" .. v1212.ID
v_u_1.f_updsil()
end
end
if v1200 == nil and (v_u_1.weaponclasses[p_u_1193].Type == "Primary" or v_u_1.weaponclasses[p_u_1193].Type == "Secondary") and (v_u_1.sttings.Attachments and (p1195 == nil and v_u_1.f_osg(p_u_1193))) then
if v_u_1.attachments[1].Optic ~= "" and (v1207 == 1 and v_u_1.f_cgt(v_u_1.attachments[1].Optic, {
"ACOG",
"M145",
"PKA",
"PKA-S",
"PRISMA",
"PSO-1",
"RS",
"CL",
"BLS",
"PKS-07",
"PSO-1",
"Optic_Cross"
}) == false) then
local v1213 = game.ReplicatedStorage.Assets.Attachments.Optic:FindFirstChild(v_u_1.attachments[1].Optic)
if v1213 then
local v1214 = v1213.RedDot:GetChildren()
for v1215 = 1, #v1214 do
if v1214[v1215].ClassName == "SurfaceGui" then
local v1216 = v1214[v1215]:GetChildren()
for v1217 = 1, #v1216 do
if v1216[v1217].ClassName == "ImageLabel" then
v1216[v1217].ImageTransparency = 1
local v1218 = v_u_1.gui.Deployed.Image["1"]:Clone()
v1218.Name = "Image"
v1218.Image = v1216[v1217].Image
v1218.ImageColor3 = v1216[v1217].ImageColor3
local v1219 = _G.screentype == "ts s" and 150 or 180
local v1220
if v_u_1.attachments[1].Optic == "HOLO" then
v1220 = _G.screentype == "ts s" and 25 or 30
elseif v_u_1.attachments[1].Optic == "REFLEX" or v_u_1.attachments[1].Optic == "COYOTE" then
v1220 = _G.screentype == "ts s" and 50 or 60
else
v1220 = v_u_1.attachments[1].Optic == "HD-33" and (_G.screentype == "ts s" and 250 or 300) or v1219
end
v1218.Size = UDim2.new(0, v1220, 0, v1220)
v1218.Position = UDim2.new(0, -v1220 / 2, 0, -v1220 / 2)
v1218.Parent = v_u_1.gui.Deployed.Image
v1218.Visible = false
end
end
end
end
end
end
if v_u_1.attachments[1].Optic ~= "" and (v1207 == 1 and v_u_1.t:FindFirstChild("ConnectorOptics")) then
local v1221 = game.ReplicatedStorage.Assets.Attachments.Optic:FindFirstChild(v_u_1.attachments[1].Optic)
if v1221 then
local v1222 = v1221:Clone()
v1222.PrimaryPart = v1222.ConnectorOptics
v1222:PivotTo(v_u_1.t.ConnectorOptics.CFrame)
local v1223 = v1222:GetChildren()
local v1224 = v1222.ConnectorOptics
v_u_1.f_w(v1224, v1223, true)
v_u_1.f_sw(v_u_1.t.ConnectorOptics, v1222.ConnectorOptics)
v1222.Parent = v_u_1.t
for v1225 = 1, #v1223 do
v1223[v1225].Anchored = false
end
if v_u_1.f_cgt(v_u_1.attachments[1].Optic, {
"RS",
"CL",
"BLS",
"PKS-07",
"PSO-1",
"Optic_Cross"
}) == false then
local v1226 = v_u_1.t.AimPart
local v1227 = v1222.RedDot.Orientation.Y
v1226.Orientation = Vector3.new(0, v1227, 0)
local v1228 = v_u_1.t.AimPart
local v1229 = v1222.RedDot.Position.X - v1210
local v1230 = v1222.RedDot.Position.Y
local v1231 = v1222.RedDot.Position.Z
v1228.Position = Vector3.new(v1229, v1230, v1231)
end
end
end
if v_u_1.attachments[1].Grip ~= "" and (v1207 == 1 and v_u_1.t:FindFirstChild("ConnectorGrip")) then
local v1232 = game.ReplicatedStorage.Assets.Attachments.Grip[v_u_1.attachments[1].Grip]:Clone()
v1232.PrimaryPart = v1232.ConnectorGrip
v1232:PivotTo(v_u_1.t.ConnectorGrip.CFrame)
local v1233 = v1232:GetChildren()
v_u_1.f_w(v1232.ConnectorGrip, v1233)
local v1234 = v_u_1.t.ConnectorGrip
v_u_1.f_sw(v1234, v1232.ConnectorGrip)
v1232.Parent = v_u_1.t
v1232.Parent = v_u_1.t
for v1235 = 1, #v1233 do
v1233[v1235].Anchored = false
end
end
if v_u_1.attachments[1].Barrel ~= "" and (v1207 == 1 and v_u_1.t:FindFirstChild("ConnectorBarrel")) then
if v_u_1.f_cgt(v_u_1.attachments[1].Barrel, { "Barrel Weight", "Bayonet" }) == false then
local v1236 = game.ReplicatedStorage.Assets.Attachments.Barrel[v_u_1.attachments[1].Barrel]:Clone()
v1236.Parent = v_u_1.t
v1236.PrimaryPart = v1236.ConnectorBarrel
v1236:PivotTo(v_u_1.t.ConnectorBarrel.CFrame)
if v1236:FindFirstChild("Barrel") then
v_u_1.t.Barrel:Destroy()
end
local v1237 = v1236:GetChildren()
v_u_1.f_w(v1236.ConnectorBarrel, v1237)
v_u_1.f_sw(v_u_1.t.ConnectorBarrel, v1236.ConnectorBarrel)
if v_u_1.t:FindFirstChild("MuzzleBreak") then
v_u_1.t.MuzzleBreak:Destroy()
end
for v1238 = 1, #v1237 do
v1237[v1238].Anchored = false
end
elseif v_u_1.f_cgt(v_u_1.attachments[1].Barrel, { "Barrel Weight", "Bayonet" }) == true and v_u_1.t:FindFirstChild("ConnectorWeight") then
local v1239 = game.ReplicatedStorage.Assets.Attachments.Barrel[v_u_1.attachments[1].Barrel]:Clone()
v1239.PrimaryPart = v1239.ConnectorWeight
v1239:PivotTo(v_u_1.t.ConnectorWeight.CFrame)
local v1240 = v1239:GetChildren()
v_u_1.f_w(v1239.ConnectorWeight, v1240)
v_u_1.f_sw(v_u_1.t.ConnectorWeight, v1239.ConnectorWeight)
v1239.Parent = v_u_1.t
for v1241 = 1, #v1240 do
v1240[v1241].Anchored = false
end
end
end
if v_u_1.attachments[1].Side ~= "" and (v1207 == 1 and v_u_1.t:FindFirstChild("ConnectorSide")) then
local v1242 = game.ReplicatedStorage.Assets.Attachments.Side[v_u_1.attachments[1].Side]:Clone()
v1242.PrimaryPart = v1242.ConnectorSide
v1242:PivotTo(v_u_1.t.ConnectorSide.CFrame)
local v1243 = v1242:GetChildren()
v_u_1.f_w(v1242.ConnectorSide, v1243)
local v1244 = v_u_1.t.ConnectorSide
v_u_1.f_sw(v1244, v1242.ConnectorSide)
v1242.Parent = v_u_1.t
for v1245 = 1, #v1243 do
v1243[v1245].Anchored = false
end
end
if v_u_1.attachments[1] and (v_u_1.attachments[1].Capacity and v1208.VariableMags == true) then
local v1246 = v_u_1.attachments[1].Capacity
local v1247 = 1
if v1246 == "Extended" then
v1247 = v1247 + 0.25
elseif v1246 == "Speed Loader" then
v1247 = v1247 + 0.1
elseif v1246 == "Ext. Speed Loader" then
v1247 = v1247 + 0.25
elseif v1246 == "Extra Large" then
v1247 = v1247 + 0.5
elseif v1246 == "XL Speed Loader" then
v1247 = v1247 + 0.4
elseif v1246 == "XXL Magazine" then
v1247 = v1247 + 0.6
elseif v1246 == "XXL Speed Loader" then
v1247 = v1247 + 0.6
end
if v_u_1.upgradedguns[v_u_1.gunnaseo] == true then
v1247 = v1247 + 1
end
local v1248 = v1208.magsize * v1247
local v1249 = v_u_1.t.Mag:GetChildren()
local v1250 = {}
local v1251 = nil
for v1252 = 1, #v1249 do
if v1249[v1252]:IsA("BasePart") then
local v1253 = v1249[v1252].Name
local v1254 = tonumber(v1253)
if v1254 then
table.insert(v1250, v1254)
end
end
end
table.sort(v1250)
for v1255 = #v1250, 1, -1 do
if v1250[v1255] <= v1248 then
v1251 = v1250[v1255]
break
end
end
for v1256 = 1, #v1249 do
if v1249[v1256]:IsA("BasePart") then
local v1257 = v1249[v1256].Name
local v1258 = tonumber(v1257)
if v1258 then
if v1258 == v1251 then
v1249[v1256].Transparency = 0
else
v1249[v1256]:Destroy()
end
end
end
end
end
if v_u_1.attachments[2].Barrel ~= "" and (v1207 == 2 and v_u_1.t:FindFirstChild("ConnectorBarrel")) then
if v_u_1.attachments[2].Barrel == "Barrel Weight" then
if v_u_1.attachments[2].Barrel == "Barrel Weight" and v_u_1.t:FindFirstChild("ConnectorWeight") then
local v1259 = game.ReplicatedStorage.Assets.Attachments.Barrel[v_u_1.attachments[2].Barrel]:Clone()
v1259.PrimaryPart = v1259.ConnectorWeight
v1259:PivotTo(v_u_1.t.ConnectorWeight.CFrame)
local v1260 = v1259:GetChildren()
v_u_1.f_w(v1259.ConnectorWeight, v1260)
local v1261 = v_u_1.t.ConnectorWeight
v_u_1.f_sw(v1261, v1259.ConnectorWeight)
v1259.Parent = v_u_1.t
for v1262 = 1, #v1260 do
v1260[v1262].Anchored = false
end
end
else
local v1263 = game.ReplicatedStorage.Assets.Attachments.Barrel[v_u_1.attachments[2].Barrel]:Clone()
v1263.PrimaryPart = v1263.ConnectorBarrel
v1263:PivotTo(v_u_1.t.ConnectorBarrel.CFrame)
if v1263:FindFirstChild("Barrel") then
v_u_1.f_sw(v_u_1.t.Trigger, v1263.Barrel)
v_u_1.t.Barrel:Destroy()
end
local v1264 = v1263:GetChildren()
v_u_1.f_w(v1263.ConnectorBarrel, v1264)
local v1265 = v_u_1.t.ConnectorBarrel
v_u_1.f_sw(v1265, v1263.ConnectorBarrel)
v1263.Parent = v_u_1.t
for v1266 = 1, #v1264 do
v1264[v1266].Anchored = false
end
end
end
if v_u_1.attachments[2].Side ~= "" and (v1207 == 2 and v_u_1.t:FindFirstChild("ConnectorSide")) then
local v1267 = game.ReplicatedStorage.Assets.Attachments.Side[v_u_1.attachments[2].Side]:Clone()
v1267.PrimaryPart = v1267.ConnectorSide
v1267:PivotTo(v_u_1.t.ConnectorSide.CFrame)
local v1268 = v1267:GetChildren()
v_u_1.f_w(v1267.ConnectorSide, v1268)
local v1269 = v_u_1.t.ConnectorSide
v_u_1.f_sw(v1269, v1267.ConnectorSide)
v1267.Parent = v_u_1.t
for v1270 = 1, #v1268 do
v1268[v1270].Anchored = false
end
end
end
local v1271 = v_u_1.t:GetChildren()
local v1272 = not v_u_1.attachments[v1207] and {} or v_u_1.f_ct(v_u_1.attachments[v1207])
local v1273 = v1272 == nil and {
["Optic"] = "",
["Grip"] = "",
["Side"] = ""
} or v1272
v1273.Optic = v1209 == true and true or ""
for v1274 = 1, #v1271 do
if v1271[v1274].Name == "IronSights" and v1273.Optic ~= "" then
v1271[v1274]:Destroy()
elseif v1271[v1274].Name == "OpticStand" or v1271[v1274].Name == "Rail - Optic" then
if v1273.Optic == "" then
v1271[v1274]:Destroy()
else
v1271[v1274].Transparency = 0
end
elseif v1271[v1274].Name == "Rail - Side" then
if v1273.Side == "" then
v1271[v1274]:Destroy()
else
v1271[v1274].Transparency = 0
end
elseif v1271[v1274].Name == "Rail - Grip" then
if v1273.Grip == "" then
v1271[v1274]:Destroy()
else
v1271[v1274].Transparency = 0
end
elseif v1271[v1274].Name == "IronSights2" and v_u_1.t:FindFirstChild("IronSights2Pivot") == nil then
if v1273.Optic == "" then
v1271[v1274].Transparency = 0
else
v1271[v1274]:Destroy()
end
elseif v1271[v1274].Name == "ConnectorOptics" or (v1271[v1274].Name == "ConnectorGrip" or (v1271[v1274].Name == "ConnectorBarrel" or (v1271[v1274].Name == "ConnectorSide" or (v1271[v1274].Name == "ConnectorWeight" or (v1271[v1274].Name == "IronSights1Pivot" or v1271[v1274].Name == "IronSights2Pivot"))))) then
v1271[v1274].Transparency = 1
elseif v1271[v1274].Name == "Remove_Part" and p1194 == nil then
v1271[v1274]:Destroy()
elseif v1271[v1274].ClassName == "Model" then
local v1275 = v1271[v1274]:GetChildren()
for v1276 = 1, #v1275 do
if v1275[v1276].Name == "IronSights" or (v1275[v1276].Name == "ConnectorOptics" or (v1275[v1276].Name == "ConnectorGrip" or (v1275[v1276].Name == "ConnectorBarrel" or (v1275[v1276].Name == "ConnectorSide" or (v1275[v1276].Name == "ConnectorWeight" or (v1275[v1276].Name == "IronSights1Pivot" or v1275[v1276].Name == "IronSights2Pivot")))))) then
v1275[v1276].Transparency = 1
end
v1275[v1276].Parent = v_u_1.t
local v1277 = v_u_1.gunparts
local v1278 = v1275[v1276]
table.insert(v1277, v1278)
end
end
end
if (v1200 == true or p1195 == nil and (v1200 == nil and v_u_1.f_osg(p_u_1193))) and (v_u_1.customisation.Colour1[v1207] or v_u_1.customisation.Colour2[v1207]) then
local v1279 = v_u_1.customisation.Sections[v_u_1.mala[v1207]]
local v1280 = v_u_1.customisation.Colour1[v1207]
local v1281 = v_u_1.customisation.Colour2[v1207]
local v1282 = v_u_1.customisation.Module.Stats[v1280.Skin]
local v1283 = v_u_1.customisation.Module.Stats[v1280.Skin]
local v1284 = p1196 or v1280
for v1285 = 1, #v1271 do
if v1271[v1285]:IsA("BasePart") and (v1271[v1285].Transparency ~= 1 or v1271[v1285].Name == "Mag") then
if v1284 and (v1279 and (v1279.Section1 and v1279.Section1[v1271[v1285].Name]) or v1200 == true and v1271[v1285].Name == "Section1") then
local v1286 = { v1271[v1285] }
if v1271[v1285].Name == "Mag" then
local v1287 = v1271[v1285]:GetChildren()
for v1288 = 1, #v1287 do
if v1287[v1288]:IsA("BasePart") then
local v1289 = v1287[v1288]
table.insert(v1286, v1289)
end
end
end
for v1290 = 1, #v1286 do
if v1286[v1290].Transparency ~= 1 then
if v1284.Colour then
v1286[v1290].BrickColor = BrickColor.new(v1284.Colour)
end
if v1284.Material then
v1286[v1290].Material = v1284.Material
elseif v1284.Texture then
v_u_1.f_at(v1286[v1290], v1284.Texture, v1284.ShowColour)
end
if v1282 and v1282.Transparency then
v1286[v1290].Transparency = v1282.Transparency
v1286[v1290]:SetAttribute("TransparentSkin", true)
end
if v_u_1.customisation.Module.Stats[v1284.Skin] and v_u_1.customisation.Module.Stats[v1284.Skin].Colour1 then
local v1291 = game.ReplicatedStorage.Assets.SpecialSkins.LocalScript:Clone()
v1291.Enabled = true
v1291.One.Value = v_u_1.customisation.Module.Stats[v1284.Skin].Colour1
v1291.Two.Value = v_u_1.customisation.Module.Stats[v1284.Skin].Colour2
v1291.ObjectValue.Value = v1286[v1290]
v1271[v1285].Color = v_u_1.customisation.Module.Stats[v1284.Skin].Colour1
v1291.Parent = v_u_1.player.PlayerGui
end
end
end
elseif v1281 and (v1279 and (v1279.Section2 and v1279.Section2[v1271[v1285].Name]) or v1200 == true and v1271[v1285].Name == "Section2") then
local v1292 = { v1271[v1285] }
if v1271[v1285].Name == "Mag" then
local v1293 = v1271[v1285]:GetChildren()
for v1294 = 1, #v1293 do
if v1293[v1294]:IsA("BasePart") then
local v1295 = v1293[v1294]
table.insert(v1292, v1295)
end
end
end
for v1296 = 1, #v1292 do
if v1292[v1296].Transparency ~= 1 then
if v1281.Colour then
v1292[v1296].BrickColor = BrickColor.new(v1281.Colour)
end
if v1281.Material then
v1292[v1296].Material = v1281.Material
elseif v1281.Texture then
v_u_1.f_at(v1292[v1296], v1281.Texture, v1281.ShowColour)
end
if v1283 and v1283.Transparency then
v1292[v1296].Transparency = v1283.Transparency
v1292[v1296]:SetAttribute("TransparentSkin", true)
end
if v_u_1.customisation.Module.Stats[v1281.Skin] and v_u_1.customisation.Module.Stats[v1281.Skin].Colour1 then
local v1297 = game.ReplicatedStorage.Assets.SpecialSkins.LocalScript:Clone()
v1297.Enabled = true
v1297.One.Value = v_u_1.customisation.Module.Stats[v1281.Skin].Colour1
v1297.Two.Value = v_u_1.customisation.Module.Stats[v1281.Skin].Colour2
v1297.ObjectValue.Value = v1292[v1296]
v1292[v1296].Color = v_u_1.customisation.Module.Stats[v1281.Skin].Colour1
v1297.Parent = v_u_1.player.PlayerGui
end
end
end
end
end
end
end
v_u_1.t.Name = "GunModel"
v_u_1.tName = p_u_1193
local v1298 = Instance.new("StringValue")
v1298.Name = "OriginalName"
v1298.Value = p_u_1193
v1298.Parent = v_u_1.t
local v1299
if v_u_1.gunmodulestorage[p_u_1193] then
v1299 = v_u_1.f_ct(v_u_1.gunmodulestorage[p_u_1193])
else
v1299 = nil
end
if p1194 == nil then
v_u_1.f_unanc(v_u_1.t)
v_u_1.welds[3] = v_u_1.f_sw(v_u_1.right_arm_model.Pos, v_u_1.t.Trigger)
end
if p1194 == nil then
if v1200 == nil then
local v1300 = game.ReplicatedStorage.Assets.GunModels[p_u_1193]
local v1301 = game.ReplicatedStorage.Assets.Character.New["Right Arm"]
local v1302 = v1299.unequipanim[1]
local v1303
if v_u_1.sttings.Attachments and (v1207 == 1 and v_u_1.attachments[1].Optic ~= "") then
v1303 = game.ReplicatedStorage.Assets.Attachments.Optic:FindFirstChild(v_u_1.attachments[1].Optic) or nil
else
v1303 = nil
end
local v1304 = nil
local v1305 = v1300.AimPart:Clone()
if v1303 then
if v1303:FindFirstChild("RedDot") == nil then
v1303 = nil
else
local v1306 = v1305.Orientation.Y
local v1307 = v1305.Orientation.Z
v1305.Orientation = Vector3.new(0, v1306, v1307)
local v1308 = v1300.ConnectorOptics.CFrame * (v1303.ConnectorOptics.CFrame:inverse() * v1303.RedDot.CFrame)
local _, _, _, v1309, v1310, v1311, v1312, v1313, v1314, v1315, v1316, v1317 = v1305.CFrame:components()
v1304 = CFrame.new(v1308.X - v1210, v1308.Y, v1308.Z, v1309, v1310, v1311, v1312, v1313, v1314, v1315, v1316, v1317)
end
end
local v1318 = v1300:FindFirstChild("ConnectorOptics")
local v1319, v1320
if v1318 == nil then
v1319 = v1300.Trigger.CFrame:inverse() * v1305.CFrame
v1320 = CFrame.new()
else
v1319 = v1207 ~= 1 and v1300.Trigger.CFrame:inverse() * v1305.CFrame or v1300.Trigger.CFrame:inverse() * v1318.CFrame
v1320 = v1303 and v1318.CFrame:inverse() * v1304 or (v1207 ~= 1 and CFrame.new() or v1318.CFrame:inverse() * v1305.CFrame)
end
local v1321 = v1301.Arm.CFrame:inverse() * v1301.Pos.CFrame
local v1322 = CFrame.new(0, 1.2, 0)
v_u_1.Aimed_GripCF = (v1322 * (v1302 * v1321 * v1319 * v1320):toObjectSpace(v1322)):toObjectSpace(v1322)
end
if v_u_1.t:FindFirstChild("AimPart") then
v_u_1.t.AimPart:Destroy()
end
v_u_1.t.Parent = v_u_1.holder
for v1323 = 1, #v1271 do
local v1324 = v_u_1.gunparts
local v1325 = v1271[v1323]
table.insert(v1324, 1, v1325)
end
for v1326 = 1, #v_u_1.gunparts do
if v_u_1.gunparts[v1326]:IsA("BasePart") then
if v_u_1.gunparts[v1326]:FindFirstChild("OrigT") then
v_u_1.gunparts[v1326].OrigT.Value = v_u_1.gunparts[v1326].Transparency
else
v_u_1.f_cv2("StringValue", v_u_1.gunparts[v1326], "OrigT", v_u_1.gunparts[v1326].Transparency)
end
end
end
if v_u_1.deployed == true and (v1207 and (v_u_1.ammo.Mag and (v_u_1.ammooffset and (v_u_1.module and v_u_1.ammo.Mag.Value <= 0)))) then
if v_u_1.module.SlideWhenEmpty == true then
v_u_1.f_sbf()
elseif v_u_1.module.VisibleRocket == true then
v_u_1.t.Mag.Transparency = 1
elseif v_u_1.module.DroppableBox == true and v_u_1.t:FindFirstChild("Box") then
local v1327 = v_u_1.t.Box:GetChildren()
for v1328 = 1, #v1327 do
if v1327[v1328]:IsA("BasePart") then
v1327[v1328].Transparency = 1
end
end
end
end
elseif p1194 then
v_u_1.MenuRoom.Model = v_u_1.t
v_u_1.MenuRoom.Model.Name = v_u_1.weaponclasses[p_u_1193].Type
v_u_1.MenuRoom.Model.PrimaryPart = v_u_1.t.Trigger
if v_u_1.gui.MainMenu.CameraFrame.Visible == true then
v_u_1.t.Parent = v_u_1.gui.MainMenu.CameraFrame.Frame.ViewportFrame.WorldModel
if v_u_1._stats.Owned:FindFirstChild(p_u_1193) then
v_u_1.gui.MainMenu.CameraFrame.TextLabel.Text = "Level " .. v_u_1._stats.Owned[p_u_1193].Level.Value
end
else
v_u_1.t.Parent = workspace.Ignore
v_u_1.gui.MainMenu.CameraFrame.TextLabel.Text = ""
end
local v1329 = v_u_1.t:GetChildren()
for v1330 = 1, #v1329 do
if v1329[v1330]:IsA("BasePart") and (v1329[v1330].Transparency > 0 and (v1329[v1330]:GetAttribute("TransparentSkin") ~= true and (v1329[v1330].Name ~= "Trigger" and (v1329[v1330].Name ~= "Mag" and (v1329[v1330].Name ~= "Box" and (v1329[v1330].Name ~= "ConnectorOptics" and (v1329[v1330].Name ~= "ConnectorGrip" and (v1329[v1330].Name ~= "ConnectorSide" and (v1329[v1330].Name ~= "ConnectorBarrel" and (v1329[v1330].Name ~= "ConnectorWeight" and (v1329[v1330].Name ~= "IronSights1Pivot" and v1329[v1330].Name ~= "IronSights2Pivot"))))))))))) then
v1329[v1330]:Destroy()
end
end
local v1331, _ = v_u_1.t:GetBoundingBox()
v_u_1.MenuRoom.Model.PrimaryPart.CFrame = v1331
if v1200 and v1299 then
local v1332 = v_u_1.MenuRoom
local v1333 = workspace.MenuRoom.MeleeSpawn.CFrame
local v1334 = v1299.camoffset
v1332.DefaultCF = v1333 + Vector3.new(0, v1334, 0)
local v1335 = v_u_1.MenuRoom
local v1336 = workspace.MenuRoom.MeleeSpawn.CFrame
local v1337 = v1299.camoffset
v1335.PivotCF = v1336 + Vector3.new(0, v1337, 0)
else
v_u_1.MenuRoom.DefaultCF = workspace.MenuRoom.GunSpawn.CFrame
v_u_1.MenuRoom.PivotCF = workspace.MenuRoom.GunSpawn.CFrame
end
v_u_1.t:PivotTo(v_u_1.MenuRoom.DefaultCF)
v_u_1.f_upd_vpf(v_u_1.t)
if v_u_1.customisation.Section then
v_u_1.f_updwsv()
end
end
return v_u_1.welds[3]
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (5).."
function v_u_1.f_swng()
-- upvalues: (copy) v_u_1
if v_u_1.free == false or (v_u_1.reloading == true or v_u_1.ammo.Mag.Value <= 0) then
return
end
local v1338 = false
if v_u_1.Melee.No == nil then
v_u_1.Melee.No = v_u_1.rng:NextInteger(1, #v_u_1.module.swinganims)
elseif v_u_1.Melee.No > #v_u_1.module.swinganims then
v_u_1.Melee.No = 1
v1338 = true
elseif v_u_1.Melee.No <= 0 then
v_u_1.Melee.No = #v_u_1.module.swinganims
v1338 = true
end
if v1338 == true then
local v1339 = v_u_1.rng:NextInteger(1, 2)
v_u_1.Melee.dNo = v1339 == 1 and 1 or -1
end
local v1340 = v_u_1.module.swinganims[v_u_1.Melee.No]
local v1341 = v_u_1.Melee
v1341.No = v1341.No + v_u_1.Melee.No
if v1340[#v1340][7] == "finalstep" then
table.remove(v1340, #v1340)
end
if v1340[#v1340][7] ~= "finalstep" then
local v1342 = {
v_u_1.module.unequipanim[1],
v_u_1.module.unequipanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
0.1,
"finalstep",
nil
}
table.insert(v1340, v1342)
end
local v1343 = #v1340
local v1344 = true
v_u_1.free = false
v_u_1.free_to_aim = false
if v_u_1.module.sounds then
local v1345 = v_u_1.module.sounds[v_u_1.rng:NextInteger(1, #v_u_1.module.sounds)]
v_u_1.f_ps(v1345, 0.5, v_u_1.rng:NextNumber(0.9, 1.1), nil, v_u_1.SoundService.Weapons, 100)
end
if v_u_1.module.DroppableBox ~= true then
v_u_1.f_m()
end
for v1346 = 1, v1343 do
if v_u_1.breakreload == true then
v_u_1.breakreload = false
v_u_1.free = true
v1344 = false
break
end
if v_u_1.welds[1] then
local v1347
if v1340[v1346][5] then
v1347 = v1340[v1346][1] * v1340[v1346][5]
else
v1347 = v1340[v1346][1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v1340[v1346][1] * v_u_1.PosWeldOffset, v1340[v1346][6], "Reload")
end
if v1347 and v_u_1.welds[1].C0 ~= v1347 then
v_u_1.f_tw(v_u_1.welds[1], v1347, v1340[v1346][6], "Reload")
end
end
if v_u_1.welds[2] and (v1340[v1346][2] and v_u_1.welds[2].C0 ~= v1340[v1346][2]) then
v_u_1.f_tw(v_u_1.welds[2], v1340[v1346][2], v1340[v1346][6], "Reload")
end
if v_u_1.welds[4] and v_u_1.welds[4].C0 ~= v1340[v1346][3] then
v_u_1.f_tw(v_u_1.welds[4], v1340[v1346][3], v1340[v1346][6], "Reload")
end
if v_u_1.welds[5] and (v1340[v1346][4] ~= nil and (v_u_1.welds[5].C0 ~= v1340[v1346][4] and (v_u_1.weaponclasses[v_u_1.mala[v_u_1.gunnaseo]].Type ~= "Secondary" or v1346 == #v1340))) then
v_u_1.f_tw(v_u_1.welds[5], v1340[v1346][4], v1340[v1346][6], "Reload")
end
if v1340[v1346][8] ~= nil then
local v1348 = v1340[v1346][8]
v_u_1.f_ps(v1348, 1, 1, nil, v_u_1.SoundService.Weapons, 50)
end
task.wait(v1340[v1346][6])
end
if v1344 then
v_u_1.free = true
v_u_1.free_to_aim = true
end
end
function v_u_1.f_m()
-- upvalues: (copy) v_u_1
local v1349 = false
local v1350 = false
local v1351 = {}
local v1352 = v_u_1.head.CFrame
local v1353
if v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
v1353 = v_u_1.aimassist.HitPos
else
v1353 = v_u_1.mouse.Hit.p
end
local v1354
if v_u_1.cameramode == "fps" then
v1354 = CFrame.new(v1352.Position, v1352.Position + v1352.lookVector).lookVector
else
v1354 = CFrame.new(v1352.Position, v1353).lookVector
end
local v1355 = v_u_1._stats.Loadout.Equipped.Value.RaycastRange.Value
local v1356 = v_u_1.rcm.Raycast(v1352, v1354, v1355, v_u_1.raycastParams)
local v1357 = v1356.Instance
local v1358 = v1356.Position
if v1357 then
local v1359 = nil
if v1357 and v1357.Parent then
if v1357.Parent:FindFirstChild("Humanoid") then
v1359 = v1357.Parent:FindFirstChild("Humanoid")
if v1357.Name == "Head" then
v1350 = true
end
elseif v1357.Parent.ClassName == "Accessory" and v1357.Parent.Parent:FindFirstChild("Humanoid") then
v1359 = v1357.Parent.Parent:FindFirstChild("Humanoid")
v1350 = true
end
end
if v_u_1.gametype == "Tycoon" and v1359 then
local v1360 = game.Players:FindFirstChild(v1359.Parent.Name)
if v1360 then
if v_u_1._stats.Alliances:FindFirstChild(v1360.Name) then
v1359 = nil
elseif game.ReplicatedStorage.Matchmaking.ServerDifficulty.Value == "Peaceful" then
v1359 = nil
end
end
end
if v1359 then
v1349 = true
if v1359.Health > 0 and v1357 then
local v1361 = { v1359.Parent.Name, v1357.Name, v1357.CFrame:inverse() * CFrame.new(v1358) }
table.insert(v1351, v1361)
end
else
local v1362 = { nil, nil, CFrame.new(v1358) }
table.insert(v1351, v1362)
v_u_1.f_pw(v1357, v1358, v1354, v1356.Normal, 0, (v1358 - v1352.Position).magnitude, v1359, false, 0, v_u_1.module.penetration)
end
end
if v1349 == true then
if v1350 == true then
_G.HM(true)
else
_G.HM()
end
end
game.ReplicatedStorage.RemoteEvent:FireServer(v_u_1.f, v1352.Position, v1351, tick())
end
function v_u_1.f_rea(p1363)
-- upvalues: (copy) v_u_1
if p1363 == nil then
p1363 = v_u_1.gunnaseo
end
v_u_1.f_wg(v_u_1.mala[p1363])
v_u_1.f_dw()
if v_u_1.aimed == true then
v_u_1.overrideaim = "unaim"
end
if v_u_1.ammo.Mag.Value <= 0 and v_u_1.module.SlideWhenEmpty == true then
v_u_1.f_sbf()
end
end
function v_u_1.f_dea(_, _)
-- upvalues: (copy) v_u_1
local v1364 = v_u_1.holder:GetChildren()
for v1365 = 1, #v1364 do
if v1364[v1365].Name == "GunModel" then
v1364[v1365]:Destroy()
end
end
if v_u_1.right_arm_model and v_u_1.right_arm_model:FindFirstChild("Pos") then
local v1366 = v_u_1.right_arm_model.Pos:GetChildren()
for v1367 = 1, #v1366 do
v1366[v1367]:Destroy()
end
end
v_u_1.slidesteps = {}
v_u_1.slide2steps = {}
v_u_1.bulletstrips1 = {}
v_u_1.bulletstrips2 = {}
v_u_1.f_mi(1)
end
function v_u_1.f_l(p1368, p1369, p1370, p1371, p1372)
-- upvalues: (copy) v_u_1
if p1371 and p1371 > 0 then
local v1373 = 1 / (1 / v_u_1.dT * p1371)
local v1374 = p1368.C0
if p1368 then
local v1375 = true
for v1376 = 0, 1, v1373 do
if p1370.Value ~= p1369 or (p1368.C0 == p1369 or p1372 == "Reload" and v_u_1.breakreload) then
v1375 = false
break
end
if p1368 == v_u_1.abweld and v1376 >= 0.3 then
v_u_1.free_to_aim = false
end
p1368.C0 = v1374:lerp(p1369, v1376)
v_u_1.rs:Wait()
end
if v1375 == true then
p1368.C0 = p1369
return
end
end
else
p1368.C0 = p1369
end
end
function v_u_1.f_tw(p_u_1377, p_u_1378, p_u_1379, p_u_1380)
-- upvalues: (copy) v_u_1
local v_u_1381 = nil
v_u_1381 = coroutine.wrap(function()
-- upvalues: (copy) p_u_1377, (copy) p_u_1378, (ref) v_u_1, (copy) p_u_1379, (copy) p_u_1380, (ref) v_u_1381
local v1382
if p_u_1377:FindFirstChild("Target") then
v1382 = p_u_1377.Target
v1382.Value = p_u_1378
else
v1382 = Instance.new("CFrameValue")
v1382.Name = "Target"
v1382.Value = p_u_1378
v1382.Parent = p_u_1377
end
v_u_1.f_l(p_u_1377, p_u_1378, v1382, p_u_1379, p_u_1380)
v_u_1381 = nil
end)
v_u_1381()
end
function v_u_1.f_ci(p1383, p1384)
-- upvalues: (copy) v_u_1
local v1385 = v_u_1.rsaimed == true and p1384 == nil and 1 or p1383
local v1386 = v_u_1.character:GetChildren()
for v1387 = 1, #v1386 do
if v1386[v1387]:IsA("BasePart") then
if v1386[v1387].Name == "HumanoidRootPart" then
v1386[v1387].Transparency = 1
else
v1386[v1387].Transparency = v1385
end
elseif v1386[v1387].ClassName == "Accessory" then
local v1388 = v1386[v1387]:GetChildren()
for v1389 = 1, #v1388 do
if v1388[v1389]:IsA("BasePart") then
v1388[v1389].Transparency = v1385
end
end
end
end
end
function v_u_1.f_mi(p1390, p1391, p1392)
-- upvalues: (copy) v_u_1
local v1393 = v_u_1.rsaimed == true and p1391 == nil and 1 or p1390
if v_u_1.right_arm_model then
local v1394 = v_u_1.right_arm_model:GetChildren()
for v1395 = 1, #v1394 do
if v1394[v1395]:IsA("BasePart") and (v1394[v1395].Name ~= "Pos" and (v1394[v1395].Name ~= "Arm" and v1394[v1395].Name ~= "Arm1")) then
v1394[v1395].Transparency = v1393
if v1394[v1395]:FindFirstChild("Texture") then
local v1396 = v1394[v1395]:GetChildren()
for v1397 = 1, #v1396 do
if v1396[v1397].ClassName == "Texture" then
v1396[v1397].Transparency = v1393
end
end
end
end
end
end
if v_u_1.left_arm_model then
local v1398 = v_u_1.left_arm_model:GetChildren()
for v1399 = 1, #v1398 do
if v1398[v1399]:IsA("BasePart") and (v1398[v1399].Name ~= "Pos" and (v1398[v1399].Name ~= "Arm" and v1398[v1399].Name ~= "Arm1")) then
v1398[v1399].Transparency = p1392 or v1393
if v1398[v1399]:FindFirstChild("Texture") then
local v1400 = v1398[v1399]:GetChildren()
for v1401 = 1, #v1400 do
if v1400[v1401].ClassName == "Texture" then
v1400[v1401].Transparency = v1393
end
end
end
end
end
end
end
function v_u_1.f_mti(p1402)
-- upvalues: (copy) v_u_1
local v1403 = p1402 == "orig" and p1402 and p1402 or nil
if v1403 == "orig" then
v_u_1.viewmodelT = 0
else
v_u_1.viewmodelT = 1
end
for v1404 = 1, #v_u_1.gunparts do
if v_u_1.gunparts[v1404]:IsA("BasePart") then
if v_u_1.gunparts[v1404]:FindFirstChild("OrigT") == nil then
v_u_1.f_cv2("StringValue", v_u_1.gunparts[v1404], "OrigT", v_u_1.gunparts[v1404].Transparency)
end
if v1403 == "orig" and v_u_1.gunparts[v1404]:FindFirstChild("OrigT") then
p1402 = v_u_1.gunparts[v1404].OrigT.Value
end
p1402 = v_u_1.aimed == true and (v_u_1.gunparts[v1404].Name == "Invisible1" or v_u_1.gunparts[v1404].Name == "Invisible2") and 1 or p1402
v_u_1.gunparts[v1404].Transparency = p1402
if v_u_1.gunparts[v1404]:FindFirstChild("Texture") then
local v1405 = v_u_1.gunparts[v1404]:GetChildren()
for v1406 = 1, #v1405 do
if v1405[v1406].ClassName == "Texture" then
v1405[v1406].Transparency = p1402
end
end
end
end
end
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (6).."
function v_u_1.ChatMessage(p1407, p1408)
local v1409 = p1408.R * 255 + 0.5
local v1410 = math.floor(v1409)
local v1411 = p1408.G * 255 + 0.5
local v1412 = math.floor(v1411)
local v1413 = p1408.B * 255 + 0.5
local v1414 = math.floor(v1413)
local v1415 = ""
game.TextChatService.TextChannels.RBXGeneral:DisplaySystemMessage(v1415 .. p1407 .. "")
end
function v_u_1.f_tr(p_u_1416, p_u_1417, p_u_1418, p_u_1419)
-- upvalues: (copy) v_u_1
task.spawn(function()
-- upvalues: (ref) v_u_1, (copy) p_u_1419, (copy) p_u_1416, (copy) p_u_1418, (copy) p_u_1417
local v1420 = v_u_1.rng:NextInteger(-1000000000, 1000000000)
v_u_1.recoilAnim.Code = v1420
local v1421 = 1.5 / p_u_1419
local v1422 = v_u_1.recoilAnim.Pos
local v1423 = v_u_1.recoilAnim.Rot
local v1424 = 0
while true do
local v1425 = v1424 + v1421
v1424 = v1425 > 90 and 90 or v1425
if v_u_1.recoilAnim.Code ~= v1420 then
break
end
v_u_1.recoilAnim.Pos = v1422:lerp(p_u_1416, p_u_1418(v1424))
v_u_1.recoilAnim.Rot = v1423:lerp(p_u_1417, p_u_1418(v1424))
if v1424 == 90 then
break
end
task.wait(0.016666666666666666)
end
if v_u_1.recoilAnim.Code == v1420 then
v_u_1.recoilAnim.Code = nil
end
end)
end
function v_u_1.f_tc2(p_u_1426, p_u_1427, p_u_1428, p_u_1429)
-- upvalues: (copy) v_u_1
task.spawn(function()
-- upvalues: (ref) v_u_1, (copy) p_u_1426, (copy) p_u_1429, (copy) p_u_1427, (copy) p_u_1428
local v1430 = v_u_1.rng:NextInteger(-1000000000, 1000000000)
v_u_1.camOffsets[p_u_1426].Code = v1430
local v1431 = 1.5 / p_u_1429
local v1432 = v_u_1.camOffsets[p_u_1426].Rot
local v1433 = 0
while true do
task.wait(0.016666666666666666)
local v1434 = v1433 + v1431
v1433 = v1434 > 90 and 90 or v1434
if v_u_1.camOffsets[p_u_1426].Code ~= v1430 then
break
end
v_u_1.camOffsets[p_u_1426].Rot = v1432:lerp(p_u_1427, p_u_1428(v1433))
if v1433 == 90 then
break
end
end
if v_u_1.camOffsets[p_u_1426].Code == v1430 then
v_u_1.camOffsets[p_u_1426].Code = nil
end
end)
end
function v_u_1.f_gr()
-- upvalues: (copy) v_u_1
local v1435 = v_u_1.module.recoil.Back[1]
local v1436 = v_u_1.f_ra(v_u_1.module.recoil.Vertical[1], v_u_1.module.recoil.Vertical[2])
local v1437
if v_u_1.lastSideRecoil[1] < 0 and v_u_1.lastSideRecoil[2] < 0 then
v1437 = v_u_1.f_ra(0, 1)
elseif v_u_1.lastSideRecoil[1] > 0 and v_u_1.lastSideRecoil[2] > 0 then
v1437 = v_u_1.f_ra(-1, 0)
else
v1437 = v_u_1.f_ra(-1, 1)
end
local v1438 = v_u_1.f_nl(v_u_1.module.recoil.Side[1], v_u_1.module.recoil.Side[2], v1437 / 2 + 0.5)
local v1439 = v_u_1.f_nl(v_u_1.module.recoil.Tilt[1], v_u_1.module.recoil.Tilt[2], v1437 / 2 + 0.5)
if v_u_1.gametype == "Zombies" then
v1438 = v1438 * 10
local _ = v1439 * 10
v1436 = v1436 * 10
end
local v1440 = -v1435 / 2
local v1441 = Vector3.new(0, 0, v1440) * (v_u_1.aimed and v_u_1.module.recoil.Aimed or 1)
local v1442 = v_u_1.aimed and 0 or -math.rad(v1436) * (v_u_1.firstShot and v_u_1.module.recoil.FirstShot or 1)
local v1443 = math.rad(v1438)
local v1444 = Vector3.new(v1442, v1443, 0) * (v_u_1.aimed and v_u_1.module.recoil.Aimed or 1)
local v1445 = -math.rad(v1438)
local v1446 = math.rad(v1436) * (v_u_1.firstShot and v_u_1.module.recoil.FirstShot or 1)
local v1447 = Vector3.new(v1445, v1446, 0) * (v_u_1.aimed and v_u_1.module.recoil.Aimed or 1)
v_u_1.f_tr(v1441, v1444, v_u_1.f_ms, 0.2)
v_u_1.f_tc2("Recoil", v1447, v_u_1.f_ms, 0.15)
if v_u_1.module.rpm > 900 then
task.delay(0.04, function()
-- upvalues: (ref) v_u_1
v_u_1.f_tr(Vector3.new(), Vector3.new(), v_u_1.f_ms, 0.05)
v_u_1.f_tc2("Recoil", Vector3.new(), v_u_1.f_ms, 0.05)
end)
else
task.delay(0.05, function()
-- upvalues: (ref) v_u_1
v_u_1.f_tr(Vector3.new(), Vector3.new(), v_u_1.f_ms, 0.05)
v_u_1.f_tc2("Recoil", Vector3.new(), v_u_1.f_ms, 0.05)
end)
end
v_u_1.firstShot = false
v_u_1.lastSideRecoil[2] = v1437
end
function v_u_1.f_pw(p1448, p1449, p1450, p1451, p1452, p1453, p1454, p1455, p1456, p1457)
-- upvalues: (copy) v_u_1
local v1458 = p1456 + 1
if p1448 == nil then
return
elseif p1448.Parent ~= nil then
local v1459 = v_u_1.f_cw(p1448)
local v1460 = 1500 - p1453
local v1461 = CFrame.new(p1449)
local v1462 = v_u_1.rcm.Raycast(v1461, p1450, v1460, v_u_1.raycastParams)
local v1463 = v1462.Instance
local v1464 = v1462.Position
local v1465 = v1462.Normal
local v1466 = CFrame.new(v1464 + p1450 * 0.1)
local v1467 = v_u_1.rcm.Raycast(v1466, -p1450, v1460 + 1, v_u_1.raycastParams)
local v1468 = v1467.Instance
local v1469 = v1467.Position
local v1470 = v1467.Normal
local v1471 = p1452 + (v1459 and 0 or (v_u_1.f_np(v1464, v1469, p1449) - p1449).magnitude)
local v1472 = p1453 + (v1464 - p1449).magnitude
local v1473 = p1457 < v_u_1.f_www(v1471, 0.001) and true or v_u_1.f_www(v1472, 0.001) > 1500
if not v1459 then
local v1474 = CFrame.new(p1449, p1449 + p1451)
v_u_1.f_ch(v1474 * CFrame.Angles(0, 0, v_u_1.degree * v_u_1.rng:NextInteger(1, 360)), p1448, v_u_1._stats.Settings.Particles.Value, v1458)
end
if v1473 or not v1463 then
if not v1473 and (not v1459 and (v1469 and v1470)) then
local v1475 = CFrame.new(v1469, v1469 + v1470)
v_u_1.f_ch(v1475, p1448, v_u_1._stats.Settings.Particles.Value, v1458)
end
return p1448, p1449
end
if v1458 < 2 then
if p1448 == v1468 and (not v1459 and (v1469 and v1470)) then
local v1476 = CFrame.new(v1469, v1469 + v1470)
v_u_1.f_ch(v1476 * CFrame.Angles(0, 0, v_u_1.degree * v_u_1.rng:NextInteger(1, 360)), p1448, v_u_1._stats.Settings.Particles.Value, v1458)
end
return v_u_1.f_pw(v1463, v1464, p1450, v1465, v1471, v1472, p1454, p1455, v1458, p1457)
end
end
end
function v_u_1.f_fb(p1477, p1478, p1479, p1480)
-- upvalues: (copy) v_u_1
if v_u_1.gametype == "Zombies" and p1480 > 40 then
local v1481 = game.ReplicatedStorage.Assets.Tracer:Clone()
v1481.CFrame = CFrame.new(p1479:Lerp(p1477, v_u_1.rng:NextNumber(0.25, 0.75)), p1477)
v1481.Parent = workspace.Ignore.Tracers
local v1482 = game.ReplicatedStorage.Assets.BeamPart:Clone()
v1482.Beam.Color = ColorSequence.new(p1478.Color, p1478.Color)
v1482.Beam.Attachment0 = v1481.Attachment0
v1482.Beam.Attachment1 = v1481.Attachment1
v1482.Parent = workspace.Ignore.Tracers
v_u_1.Debris:AddItem(v1481, 0.03)
v_u_1.Debris:AddItem(v1482, 0.03)
else
local v1483 = game.ReplicatedStorage.Assets.BeamPart:Clone()
v1483.Beam.Color = ColorSequence.new(p1478.Color, p1478.Color)
v1483.CFrame = CFrame.new(p1477)
v1483.Beam.Attachment0 = v_u_1.t.Barrel.Attachment
v1483.Beam.Attachment1 = v1483.Attachment1
v1483.Parent = workspace.Ignore.Tracers
v_u_1.Debris:AddItem(v1483, 0.03)
end
end
function v_u_1.f_chkprt(p1484)
-- upvalues: (copy) v_u_1
if p1484:IsA("BasePart") or p1484.ClassName == "Accessory" then
p1484.ChildAdded:Connect(function(p1485)
task.wait(0.1)
if p1485.ClassName == "BodyAngularVelocity" or (p1485.ClassName == "BodyForce" or (p1485.ClassName == "BodyGyro" or (p1485.ClassName == "BodyPosition" or (p1485.ClassName == "BodyThrust" or (p1485.ClassName == "BodyVelocity" or p1485.ClassName == "RocketPropulsion"))))) then
p1485:Destroy()
end
end)
local v1486 = p1484:GetChildren()
for v1487 = 1, #v1486 do
v_u_1.f_chkprt(v1486[v1487])
local v1488 = v1486[v1487]
if v1488.ClassName == "BodyAngularVelocity" or (v1488.ClassName == "BodyForce" or (v1488.ClassName == "BodyGyro" or (v1488.ClassName == "BodyPosition" or (v1488.ClassName == "BodyThrust" or (v1488.ClassName == "BodyVelocity" or v1488.ClassName == "RocketPropulsion"))))) then
v1488:Destroy()
end
end
end
end
function v_u_1.weld(p1489, p1490)
local v1491 = Instance.new("Weld")
v1491.Parent = p1490
v1491.Part0 = p1489
v1491.Part1 = p1490
v1491.C0 = p1489.CFrame:inverse() * p1490.CFrame
end
function v_u_1.f_kft(p1492, p1493, p1494, p1495)
-- upvalues: (copy) v_u_1
local v1496 = v_u_1.killfeedtemplates[p1492].Template:Clone()
v1496.Name = "1"
v1496.Weapon.Text = p1493
v1496.Target.Text = p1494
local v1497 = game.Players:FindFirstChild(p1494)
if v1497 and v1497.Team then
v1496.Target.TextColor3 = v1497.Team.TeamColor.Color
end
if p1495 then
local v1498 = game.Players:FindFirstChild(p1495)
v1496.Killer.Text = p1495
if v1498 and v1498.Team then
v1496.Killer.TextColor3 = v1498.Team.TeamColor.Color
end
end
v1496.Parent = v_u_1.killfeedtemplates[p1492].Frame
for v1499 = 5, 0, -1 do
task.wait()
v1496.Weapon.TextTransparency = v1499 / 5
v1496.Weapon.TextStrokeTransparency = 0.5 + 0.5 * (v1499 / 5)
if p1495 then
v1496.Killer.TextTransparency = v1499 / 5
v1496.Killer.TextStrokeTransparency = 0.5 + 0.5 * (v1499 / 5)
end
v1496.Target.TextTransparency = v1499 / 5
v1496.Target.TextStrokeTransparency = 0.5 + 0.5 * (v1499 / 5)
end
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (7).."
function v_u_1.f_mc(p_u_1500, p1501, p1502, p1503, p1504)
-- upvalues: (copy) v_u_1
local v1505
if p_u_1500 == "Case" then
p_u_1500 = "Skin"
v1505 = true
else
v1505 = nil
end
v_u_1.gui.Messages[p_u_1500]:GetChildren()
if v_u_1.notificationmessage[p_u_1500] == nil then
v_u_1.notificationmessage[p_u_1500] = 0
end
v_u_1.notificationmessage[p_u_1500] = v_u_1.notificationmessage[p_u_1500] + 1
local v_u_1506 = v_u_1.messagetemplates[p_u_1500].Template:Clone()
v_u_1506.Name = "1"
local v1507 = true
if v1505 == true then
v_u_1506.Title.Text = p1502
v_u_1506.Image = "rbxassetid://" .. v_u_1.casearray[p1502].Image
v_u_1506.BackgroundColor3 = v_u_1.casearray[p1502].BrickColour.Color
v_u_1506.TextLabel.Text = "OBTAINED"
elseif p_u_1500 == "Skin" then
if p1503 == nil then
v_u_1506.Title.Text = p1502
if v_u_1.customisation.Module.Stats[p1502].Texture then
v_u_1506.Image = v_u_1.customisation.Module.Stats[p1502].Texture
elseif v_u_1.customisation.Module.Stats[p1502].BrickColour then
v_u_1506.BackgroundColor3 = v_u_1.customisation.Module.Stats[p1502].BrickColour.Color
end
elseif type(p1503) == "table" then
v_u_1506.TextLabel.Position = UDim2.new(0, 5, 0.2, 0)
v_u_1506.TextLabel.Size = UDim2.new(1, -10, 0.8, 0)
if p1503.Premium == true then
v_u_1506.BackgroundColor3 = BrickColor.new("Gold").Color
else
v_u_1506.BackgroundColor3 = Color3.new(0.1450980392156863, 0.23137254901960785, 0.2901960784313726)
end
v_u_1506.Title.Text = p1503.Name
v_u_1506.TextLabel.Text = "Level " .. p1503.Level .. " Battle Pass Reward"
if p1503.Type == "Money" then
v_u_1506.Image = "rbxassetid://5873758698"
elseif p1503.Type == "Case" then
v_u_1506.Image = "rbxassetid://" .. v_u_1.casearray[p1503.Name].Image
elseif p1503.Type == "Weapon" then
v_u_1506.Image = "rbxassetid://" .. p1503.ID
v_u_1506.ScaleType = Enum.ScaleType.Crop
elseif p1503.Type == "Skin" then
local v1508 = v_u_1.customisation.Module.Stats[p1503.Name]
if v1508.CustomImage then
v_u_1506.Image = v1508.CustomImage
end
v_u_1506.ScaleType = Enum.ScaleType.Crop
elseif p1503.Type == "Badge" then
v_u_1506.Image = "rbxassetid://" .. p1503.ID
v_u_1506.ScaleType = Enum.ScaleType.Crop
end
v_u_1506.Visible = v1507
else
if v_u_1.module == nil or v_u_1.f_cgt(p1502, {
"RS",
"CL",
"BLS",
"PKS-07",
"Optic_Cross"
}) == true and v_u_1.f_cgt(p1504, {
"L96",
"M200",
"M40A5",
"M98B",
"SV98",
"BOAR .50",
"AS50",
"M82",
"Kar98k",
"HECATE II",
"Mosin Nagant",
"M95",
"Scout",
"Lee Enfield No.4",
"GM6 Lynx"
}) == false then
v1507 = false
else
local v1509 = game.ReplicatedStorage.Assets.GunModels[p1504]
if v_u_1.weaponclasses[p1504].Class == "Rkt. Launcher" or (v_u_1.weaponclasses[p1504].Class == "Grenade Launcher" or (v_u_1.weaponclasses[p1504].Class == "Melee" or v1509:FindFirstChild("ConnectorOptics") == nil and p1503 == "Optic")) or (v1509:FindFirstChild("ConnectorGrip") == nil and p1503 == "Grip" or (v1509:FindFirstChild("ConnectorBarrel") == nil and p1503 == "Barrel" or v1509:FindFirstChild("ConnectorSide") == nil and p1503 == "Side")) then
v1507 = false
end
end
v_u_1506.TextLabel.Position = UDim2.new(0, 5, 0.2, 0)
v_u_1506.TextLabel.Size = UDim2.new(1, -10, 0.8, 0)
v_u_1506.BackgroundColor3 = BrickColor.new("Fossil").Color
v_u_1506.Title.Text = p1504
v_u_1506.TextLabel.Text = p1502 .. " " .. p1503 .. " Mod Unlocked"
v_u_1506.Image = v_u_1.attachmentimages[p1502]
v_u_1506.Visible = v1507
v_u_1.f_updat()
end
else
v_u_1506.TextLabel.Text = p1502
v_u_1506.TextLabel.TextScaled = true
v_u_1506.TextLabel.TextWrapped = true
end
if v1507 == true then
v_u_1506.Visible = true
v_u_1506.Parent = v_u_1.messagetemplates[p_u_1500].Frame
if p_u_1500 ~= "Bottom" then
if p_u_1500 == "Skin" then
v_u_1506:TweenPosition(UDim2.new(0, 5, 1, v_u_1506.Position.Y.Offset), "Out", "Quad", 0.7, true)
v_u_1.f_psl2("Rank 3")
elseif p_u_1500 == "Top" then
v_u_1506:TweenSizeAndPosition(v_u_1.messagetemplates[p_u_1500].Template.Size, UDim2.new(0, 0, 0, 0), "Out", "Quad", 0.7, true)
else
v_u_1506:TweenSizeAndPosition(v_u_1.messagetemplates[p_u_1500].Template.Size, UDim2.new(1, 0, 1, 0), "Out", "Quad", 0.7, true)
end
end
if p_u_1500 == "Top" then
task.delay(p1501, function()
-- upvalues: (copy) v_u_1506, (ref) v_u_1, (ref) p_u_1500
v_u_1506:TweenSizeAndPosition(v_u_1.messagetemplates[p_u_1500].Template.Size, UDim2.new(0, 0, 0, -v_u_1.messagetemplates[p_u_1500].Template.Size.Y.Offset), "Out", "Quad", 0.7, true)
end)
v_u_1.Debris:AddItem(v_u_1506, p1501 + 1)
else
task.delay(p1501, function()
-- upvalues: (copy) v_u_1506
local v1510 = v_u_1506:GetChildren()
local v1511 = {}
for v1512 = 1, #v1510 do
local v1513 = v1510[v1512]
table.insert(v1511, v1513)
end
for v1514 = 1, 15 do
for v1515 = 1, #v1511 do
local v1516 = v1514 / 15
if v1511[v1515].ClassName == "ImageLabel" then
v1511[v1515].ImageTransparency = v1516
elseif v1511[v1515].ClassName == "TextLabel" then
v1511[v1515].TextTransparency = v1516
v1511[v1515].TextStrokeTransparency = 0.25 + 0.75 * v1516
if v1511[v1515].Name == "TextLabel1" then
v1511[v1515].BackgroundTransparency = v1516
end
end
end
task.wait(0.016666666666666666)
end
v_u_1506:Destroy()
end)
end
else
v_u_1506:Destroy()
end
end
function _G.Message(...)
-- upvalues: (copy) v_u_1
v_u_1.f_mc(...)
end
function v_u_1.f_telp(p_u_1517, p_u_1518)
local v1527, v1528 = pcall(function()
-- upvalues: (copy) p_u_1517, (copy) p_u_1518
local v1519 = p_u_1517.Parent
if p_u_1518.freeze then
p_u_1517:SetAttribute("DefaultWalkSpeed", p_u_1517.WalkSpeed)
p_u_1517:SetAttribute("DefaultJumpPower", p_u_1517.JumpPower)
p_u_1517.WalkSpeed = 0
p_u_1517.JumpPower = 0
end
local v1520
if p_u_1517.RigType == Enum.HumanoidRigType.R15 then
v1520 = p_u_1517.RootPart.Size.Y * 0.5 + p_u_1517.HipHeight
else
v1520 = p_u_1517.RootPart.Size.Y * 0.5 + p_u_1517.Parent["Left Leg"].Size.Y + p_u_1517.HipHeight
end
local v1521 = v1520 > 5 and 5 or v1520
local v1522 = CFrame.new(p_u_1518.destination + Vector3.new(0, v1521, 0))
local v1523 = CFrame.Angles
local v1524 = p_u_1518.faceAngle
local v1525 = v1523(0, math.rad(v1524), 0)
if workspace.StreamingEnabled then
game.Players:GetPlayerFromCharacter(v1519):RequestStreamAroundAsync(p_u_1518.destination)
end
local v1526 = v1522 * v1525
v1519.PrimaryPart = p_u_1517.RootPart
v1519:PivotTo(v1526)
if p_u_1518.freeze then
p_u_1517.WalkSpeed = p_u_1517:GetAttribute("DefaultWalkSpeed")
p_u_1517.JumpPower = p_u_1517:GetAttribute("DefaultJumpPower")
end
end)
if v1527 == false then
warn(v1528)
end
end
function v_u_1.f_updat()
-- upvalues: (copy) v_u_1
local v1529 = v_u_1.currentweapongui == "Primary" and v_u_1.mala[1]
if not v1529 then
if v_u_1.currentweapongui == "Secondary" then
v1529 = v_u_1.mala[2]
else
v1529 = false
end
end
for v1530 = 1, #v_u_1.attachmentbuttons do
local v1531
if v_u_1.attachmentbuttons[v1530]:FindFirstChild("ImageLabel") then
v1531 = v_u_1.attachmentbuttons[v1530].ImageLabel
else
v1531 = Instance.new("ImageLabel")
v1531.Parent = v_u_1.attachmentbuttons[v1530]
v1531.ZIndex = 10
v1531.BackgroundTransparency = 1
v1531.Size = UDim2.new(0, 20, 0, 20)
v1531.Position = UDim2.new(1, -25, 1, -25)
end
if type(v1529) == "string" then
if v_u_1._stats.Owned:FindFirstChild(v1529) and v_u_1._stats.Owned[v1529].Attachments:FindFirstChild(v_u_1.attachmentbuttons[v1530].Name) then
v_u_1.attachmentbuttons[v1530].BackgroundTransparency = 0
v_u_1.attachmentbuttons[v1530].ImageTransparency = 0
v1531.Image = ""
elseif v_u_1.attachmentbuttons[v1530].Price.Visible == true then
v_u_1.attachmentbuttons[v1530].BackgroundTransparency = 0.7
v_u_1.attachmentbuttons[v1530].ImageTransparency = 0
v1531.Image = "rbxassetid://1505620351"
else
v_u_1.attachmentbuttons[v1530].BackgroundTransparency = 0.7
v_u_1.attachmentbuttons[v1530].ImageTransparency = 0
v1531.Image = "rbxassetid://1507348057"
end
end
end
end
function v_u_1.f_stip(p_u_1532)
-- upvalues: (copy) v_u_1
p_u_1532.InputBegan:Connect(function(p1533)
-- upvalues: (ref) v_u_1, (copy) p_u_1532
if p1533.UserInputType == Enum.UserInputType.MouseMovement or (p1533.UserInputType == Enum.UserInputType.Touch or p1533.UserInputType == Enum.UserInputType.Gamepad1) then
v_u_1.sttings.Tip = p_u_1532
if p_u_1532.Tip1.Value ~= "" or p_u_1532.Tip2.Value ~= "" then
v_u_1.gui.Tip.Visible = true
v_u_1.f_att(p_u_1532)
end
end
end)
p_u_1532.InputEnded:Connect(function(p1534)
-- upvalues: (ref) v_u_1, (copy) p_u_1532
if p1534.UserInputType == Enum.UserInputType.MouseMovement or (p1534.UserInputType == Enum.UserInputType.Touch or p1534.UserInputType == Enum.UserInputType.Gamepad1) then
task.wait()
if v_u_1.sttings.Tip == p_u_1532 then
v_u_1.gui.Tip.Visible = false
end
end
end)
p_u_1532.SelectionGained:Connect(function()
-- upvalues: (ref) v_u_1, (copy) p_u_1532
v_u_1.sttings.Tip = p_u_1532
if p_u_1532.Tip1.Value ~= "" or p_u_1532.Tip2.Value ~= "" then
v_u_1.gui.Tip.Visible = true
v_u_1.f_att(p_u_1532)
end
end)
p_u_1532.SelectionLost:Connect(function()
-- upvalues: (ref) v_u_1, (copy) p_u_1532
task.wait()
if v_u_1.sttings.Tip == p_u_1532 then
v_u_1.gui.Tip.Visible = false
end
end)
end
function v_u_1.f_ug()
-- upvalues: (copy) v_u_1
if v_u_1.mala[v_u_1.gunnaseo] and v_u_1.gunnaseo ~= 4 then
if _G.armed == false then
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Visible = false
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Ammunition.Visible = false
v_u_1.gui.Crosshair.TextLabel1.Visible = false
v_u_1.gui.Crosshair.TextLabel2.Visible = false
return
else
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Visible = true
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Ammunition.Visible = true
local v1535 = v_u_1.ammo.Mag.Value
local v1536 = v_u_1.ammo.Stored.Value
v_u_1.gui.Deployed.Stats.Ammunition.TextLabel1.Text = v1535
v_u_1.gui.Deployed.Stats.Ammunition.TextLabel2.Text = v1536
if v1535 + v1536 <= 0 and v_u_1.ammo.Stored.Parent.Net_Loaded.Value > 0 then
if v_u_1.gametype == "Zombies" then
v_u_1.gui.Crosshair.TextLabel1.Visible = true
v_u_1.gui.Crosshair.TextLabel2.Visible = true
end
if _G.screentype == "kb" and v_u_1.gametype == "Zombies" then
v_u_1.gui.Crosshair.TextLabel2.Text = "Press \'Armory\' at the top of the screen. Zoom out with I/O or the mouse wheel."
v_u_1.gui.Crosshair.TextLabel2.Position = UDim2.new(0, -120, 0, 50)
v_u_1.gui.Crosshair.TextLabel2.Size = UDim2.new(0, 240, 0, 50)
else
v_u_1.gui.Crosshair.TextLabel2.Text = "Press \'Armory\' at the top of the screen"
v_u_1.gui.Crosshair.TextLabel2.Position = UDim2.new(0, -100, 0, 50)
v_u_1.gui.Crosshair.TextLabel2.Size = UDim2.new(0, 200, 0, 40)
end
else
v_u_1.gui.Crosshair.TextLabel1.Visible = false
v_u_1.gui.Crosshair.TextLabel2.Visible = false
return
end
end
elseif v_u_1.gunnaseo == 4 then
v_u_1.gui.Deployed.Stats.Ammunition.TextLabel1.Text = _G.armed == false and "" or v_u_1.ammo.Mag.Value
v_u_1.gui.Deployed.Stats.Ammunition.TextLabel2.Text = ""
else
v_u_1.gui.Deployed.Stats.Ammunition.TextLabel1.Text = ""
v_u_1.gui.Deployed.Stats.Ammunition.TextLabel2.Text = ""
v_u_1.gui.Crosshair.TextLabel1.Visible = false
v_u_1.gui.Crosshair.TextLabel2.Visible = false
end
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (8).."
function v_u_1.f_gacf(p1537)
-- upvalues: (copy) v_u_1
local v1538 = 5400 * p1537 / 0.4
local v1539
if v_u_1.char_moving == false then
v1539 = v_u_1.aimed == false and v_u_1.aiming == false and true or v_u_1.holographic
else
v1539 = false
end
local v1540
if v_u_1.char_moving == true and (v_u_1.sprinting == false or v_u_1.key.Shift == false) then
v1540 = v_u_1.aimed == false and v_u_1.aiming == false and true or v_u_1.holographic
else
v1540 = false
end
local v1541 = v_u_1.char_moving == true and (v_u_1.sprinting == true and v_u_1.key.Shift == true) and _G.armed
if v1541 then
v1541 = v_u_1.throwing == false
end
local v1542 = v_u_1.Anim
local v1543 = v_u_1.Anim.idleAlpha + (v1539 and v1538 and v1538 or -v1538) * p1537
local v1544 = math.max(v1543, 0)
v1542.idleAlpha = math.min(v1544, 90)
local v1545 = v_u_1.Anim
local v1546 = v_u_1.Anim.walkAlpha + (v1540 and v1538 and v1538 or -v1538) * p1537
local v1547 = math.max(v1546, 0)
v1545.walkAlpha = math.min(v1547, 90)
local v1548 = v_u_1.Anim
local v1549 = v_u_1.Anim.runAlpha + (v1541 and v1538 and v1538 or -v1538) * p1537
local v1550 = math.max(v1549, 0)
v1548.runAlpha = math.min(v1550, 90)
if v_u_1.gunnaseo == 4 then
v_u_1.Anim.runAlpha = v_u_1.Anim.runAlpha * 0.77
end
local v1551 = v_u_1.reloading and "unAimedExaggerated" or "unAimed"
local v1552 = v_u_1.f_ms(v_u_1.Anim.idleAlpha) * v_u_1.Anims.Idling[v1551](v_u_1.Anim.Ang).Pos + v_u_1.f_ms(v_u_1.Anim.walkAlpha) * v_u_1.Anims.Walking.unAimed(v_u_1.Anim.Ang).Pos + v_u_1.f_ms(v_u_1.Anim.runAlpha) * v_u_1.Anims.Running(v_u_1.Anim.Ang).Pos
local v1553 = v_u_1.f_ms(v_u_1.Anim.idleAlpha) * v_u_1.Anims.Idling[v1551](v_u_1.Anim.Ang).Rot + v_u_1.f_ms(v_u_1.Anim.walkAlpha) * v_u_1.Anims.Walking.unAimed(v_u_1.Anim.Ang).Rot + v_u_1.f_ms(v_u_1.Anim.runAlpha) * v_u_1.Anims.Running(v_u_1.Anim.Ang).Rot
local v1554 = v_u_1.f_ms(v_u_1.Anim.idleAlpha) * v_u_1.Anims.Idling.Aimed(v_u_1.Anim.Ang).Pos + v_u_1.f_ms(v_u_1.Anim.walkAlpha) * v_u_1.Anims.Walking.Aimed(v_u_1.Anim.Ang).Pos + v_u_1.f_ms(v_u_1.Anim.runAlpha) * v_u_1.Anims.Running(v_u_1.Anim.Ang).Pos
local v1555 = v_u_1.f_ms(v_u_1.Anim.idleAlpha) * v_u_1.Anims.Idling.Aimed(v_u_1.Anim.Ang).Rot + v_u_1.f_ms(v_u_1.Anim.walkAlpha) * v_u_1.Anims.Walking.Aimed(v_u_1.Anim.Ang).Rot + v_u_1.f_ms(v_u_1.Anim.runAlpha) * v_u_1.Anims.Running(v_u_1.Anim.Ang).Rot
v_u_1.Anim.Pos = (1 - v_u_1.Anim.aimAlpha) * v1552 + v_u_1.Anim.aimAlpha * v1554
v_u_1.Anim.Rot = (1 - v_u_1.Anim.aimAlpha) * v1553 + v_u_1.Anim.aimAlpha * v1555
local v1556 = v_u_1.Anim
local v1557 = v_u_1.Anim.Ang
local v1558 = 105 * p1537
v1556.Ang = v1557 + math.rad(v1558)
local v1559 = v_u_1.weaponclasses[v_u_1.mala[v_u_1.gunnaseo]]
if v1559 then
v1559 = v1559.Class
end
local v1560
if v1559 and (v1559 == "Pistol" or (v1559 == "Automatic Pistol" or (v1559 == "Hand Cannon" or v1559 == "Derringer"))) and (v_u_1.mala[v_u_1.gunnaseo] ~= "Uzi" and (v_u_1.mala[v_u_1.gunnaseo] ~= "MAC-10" and v_u_1.mala[v_u_1.gunnaseo] ~= "MP5K")) then
v1560 = CFrame.new(v_u_1.Anim.Pos.X + v_u_1.recoilAnim.Pos.X + 0.25 * (v_u_1.sprintangles[1] / v_u_1.desiredsprint[1]), v_u_1.Anim.Pos.Y + v_u_1.recoilAnim.Pos.Y + 0.75 * (v_u_1.sprintangles[2] / v_u_1.desiredsprint[2]), v_u_1.Anim.Pos.Z + v_u_1.recoilAnim.Pos.Z + -1.1 * (v_u_1.sprintangles[3] / v_u_1.desiredsprint[3]))
v_u_1.sprinting2 = true
else
v1560 = CFrame.new(v_u_1.Anim.Pos.X + v_u_1.recoilAnim.Pos.X - 0.2 * (v_u_1.sprintangles[1] / v_u_1.desiredsprint[1]), v_u_1.Anim.Pos.Y + v_u_1.recoilAnim.Pos.Y + 0.2 * (v_u_1.sprintangles[2] / v_u_1.desiredsprint[2]), v_u_1.Anim.Pos.Z + v_u_1.recoilAnim.Pos.Z - 0.7 * (v_u_1.sprintangles[3] / v_u_1.desiredsprint[3]))
v_u_1.sprinting2 = false
end
local v1561 = CFrame.new(0, 1.2, 0)
local v1562 = CFrame.Angles
local v1563 = v_u_1.Offset.currentYOffset
local v1564 = -math.rad(v1563) + v_u_1.springs.gunRecoilSpring.p.X + v_u_1.Anim.Rot.X
local v1565 = v_u_1.Offset.currentXOffset
local v1566 = -math.rad(v1565) + v_u_1.springs.gunRecoilSpring.p.Y + v_u_1.Anim.Rot.Y
local v1567 = v_u_1.Offset.currentXOffset
return v1561 * v1562(v1564, v1566, math.rad(v1567) + v_u_1.springs.gunRecoilSpring.p.Z + v_u_1.Anim.Rot.Z) * v1560 * CFrame.new(0, 0, v_u_1.Offset.Z), CFrame.Angles(0, 0, 0) * CFrame.Angles(-v_u_1.degree * v_u_1.sprintangles[1], v_u_1.degree * v_u_1.sprintangles[2], v_u_1.degree * v_u_1.sprintangles[3])
end
function v_u_1.f_rv()
-- upvalues: (copy) v_u_1
v_u_1.reloading = false
v_u_1.throwing = false
v_u_1.breakreload = false
v_u_1.bolting = false
v_u_1.aimed = false
v_u_1.rsaimed = false
v_u_1.aiming = false
v_u_1.held = false
v_u_1.overrideaim = ""
v_u_1.changinggun = false
v_u_1.sprinting = false
v_u_1.crouched = false
v_u_1.crouching = false
v_u_1.proning = false
v_u_1.proned = false
v_u_1.downed = false
v_u_1.b1 = false
v_u_1.b2 = false
v_u_1.b22 = false
v_u_1.firing = false
v_u_1.char_moving = false
v_u_1.key.F = nil
v_u_1.key.Shift = false
v_u_1.queue.Ready = true
v_u_1.queue.List = {}
v_u_1.bolted = true
v_u_1.ce_in_action = false
v_u_1.free = true
v_u_1.sttings.JumpCoolDown = nil
v_u_1.Direction = nil
end
function v_u_1.upd_acf(p1568, p1569)
-- upvalues: (copy) v_u_1
if p1569 then
for v1570 = 1, #v_u_1.buttons.attachmentclassframe do
if v_u_1.buttons.attachmentclassframe[v1570].Name ~= p1569 then
v_u_1.buttons.attachmentclassframe[v1570].Visible = false
end
end
else
for v1571 = 1, #v_u_1.buttons.attachmentclassframe do
v_u_1.buttons.attachmentclassframe[v1571].Visible = p1568
end
end
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (9).."
function weldAttachments(p1572, p1573)
local v1574 = Instance.new("Weld")
v1574.Part0 = p1572.Parent
v1574.Part1 = p1573.Parent
v1574.C0 = p1572.CFrame
v1574.C1 = p1573.CFrame
v1574.Parent = p1572.Parent
return v1574
end
function findFirstMatchingAttachment(p1575, p1576)
for _, v1577 in pairs(p1575:GetChildren()) do
if v1577:IsA("Attachment") and v1577.Name == p1576 then
return v1577
end
if not (v1577:IsA("Accoutrement") or v1577:IsA("Tool")) then
local v1578 = findFirstMatchingAttachment(v1577, p1576)
if v1578 then
return v1578
end
end
end
end
function addAccoutrement(p1579, p1580)
p1580.Parent = p1579
local v1581 = p1580:FindFirstChild("Handle")
if v1581 then
local v1582 = v1581:FindFirstChildOfClass("Attachment")
if v1582 then
local v1583 = findFirstMatchingAttachment(p1579, v1582.Name)
if v1583 then
weldAttachments(v1583, v1582)
return
end
else
local v1584 = p1579:FindFirstChild("Head")
if v1584 then
local v1585 = CFrame.new(0, 0.5, 0)
local v1586 = p1580.AttachmentPoint
local v1587 = Instance.new("Weld")
v1587.Name = "HeadWeld"
v1587.Part0 = v1584
v1587.Part1 = v1581
v1587.C0 = v1585
v1587.C1 = v1586
v1587.Parent = v1584
end
end
end
end
function v_u_1.f_rhs()
-- upvalues: (copy) v_u_1
v_u_1.HumanoidStats.IsRunning = false
v_u_1.HumanoidStats.Running = false
v_u_1.HumanoidStats.Jumping = false
v_u_1.HumanoidStats.Seated = false
v_u_1.HumanoidStats.Falling = false
v_u_1.HumanoidStats.Climbing = false
end
function v_u_1.f_updA(p1588)
-- upvalues: (copy) v_u_1
local v1589 = p1588 or _G.armed
v_u_1.character = v_u_1.player.Character
if v_u_1.humanoid.RigType == Enum.HumanoidRigType.R15 then
v_u_1.torso = v_u_1.character:FindFirstChild("UpperTorso")
v_u_1.RightUpperArm = v_u_1.character:FindFirstChild("RightUpperArm")
if v_u_1.RightUpperArm then
v_u_1.RightShoulder = v_u_1.RightUpperArm:FindFirstChild("RightShoulder")
end
v_u_1.LeftUpperArm = v_u_1.character:FindFirstChild("LeftUpperArm")
if v_u_1.LeftUpperArm then
v_u_1.LeftShoulder = v_u_1.LeftUpperArm:FindFirstChild("LeftShoulder")
end
else
v_u_1.torso = v_u_1.character:FindFirstChild("Torso")
v_u_1.RightUpperArm = v_u_1.character:FindFirstChild("Right Arm")
v_u_1.LeftUpperArm = v_u_1.character:FindFirstChild("Left Arm")
if v_u_1.torso then
v_u_1.RightShoulder = v_u_1.torso:FindFirstChild("Right Shoulder")
v_u_1.LeftShoulder = v_u_1.torso:FindFirstChild("Left Shoulder")
end
end
if v_u_1.RightShoulder and v_u_1.RightShoulderC0 == nil then
v_u_1.RightShoulderC0 = v_u_1.RightShoulder.C0
end
if v_u_1.LeftShoulder and v_u_1.LeftShoulderC0 == nil then
v_u_1.LeftShoulderC0 = v_u_1.LeftShoulder.C0
end
if v_u_1.ShoulderConnection then
v_u_1.ShoulderConnection:Disconnect()
end
if v_u_1.RightShoulder then
v_u_1.RightShoulder.Part1 = v_u_1.RightUpperArm
end
if v_u_1.LeftShoulder then
v_u_1.LeftShoulder.Part1 = v_u_1.LeftUpperArm
end
if v_u_1.ftweld then
v_u_1.ftweld.Part1 = v_u_1.character:FindFirstChild("Head")
end
game.ReplicatedStorage.RemoteEvent:FireServer("Arms State", v1589)
v_u_1.f_playA()
end
function v_u_1.f_updrank()
-- upvalues: (copy) v_u_1
if v_u_1.player.UserId > 0 then
local v1597, v1598 = pcall(function()
-- upvalues: (ref) v_u_1
local v1590 = v_u_1.player:GetRoleInGroup(22025)
local v1591 = v_u_1.player:GetRankInGroup(22025)
local v1592 = v1591 == 0 and "Civilian" or v1590
v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2.Information.USSF.Visible = v1592 ~= "Civilian"
v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2.Information.Civilian.Visible = v1592 == "Civilian"
v_u_1.gui.Buttons.Menus.Rank.ScrollingFrame2.TextLabel4.Text = v1592 == "Civilian" and "How To Join" or "How to Rank Up"
v_u_1.f_fe("Rank", v_u_1.levelupdated)
v_u_1.levelupdated = false
if v1591 > 0 and v_u_1.customisation.USSFUnlocked == nil then
v_u_1.customisation.USSFUnlocked = true
local v1593 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame:GetChildren()
for v1594 = 1, #v1593 do
local v1595 = v1593[v1594]:GetChildren()
for v1596 = 1, #v1595 do
if v_u_1.customisation.Module.Stats[v1595[v1596].Name] and v_u_1.customisation.Module.Stats[v1595[v1596].Name].USSF == true then
v1595[v1596].Lock.Visible = false
end
end
end
end
end)
if v1597 == false then
warn(v1598)
return
end
else
v_u_1.f_fe("Rank", false)
end
end
function v_u_1.rtn(p1599, p1600)
local v1601 = p1599 / p1600
return math.floor(v1601) * p1600
end
function StringList(p1602)
local v1603 = ""
if type(p1602) == "table" then
for v1604 = 1, #p1602 do
if p1602[v1604] ~= nil then
if v1603 == "" then
local v1605 = p1602[v1604]
v1603 = v1603 .. tostring(v1605)
else
local v1606 = p1602[v1604]
v1603 = v1603 .. "," .. tostring(v1606)
end
end
end
return v1603
else
if type(p1602) == "number" then
v1603 = tostring(p1602)
end
return v1603
end
end
function v_u_1.f_mup()
-- upvalues: (copy) v_u_1
if v_u_1.deployed then
v_u_1.f_fe("Update Character", v_u_1.avatar)
end
local _, _ = pcall(function()
-- upvalues: (ref) v_u_1
local v1607 = v_u_1.player.UserId
local v1608 = v1607 <= 0 and 3060646 or v1607
local v1609 = game.Players:GetHumanoidDescriptionFromUserIdAsync(v1608)
if v_u_1.avatar.Hat and #v_u_1.avatar.Hat > 0 then
v1609.HatAccessory = StringList(v_u_1.avatar.Hat)
v1609.HairAccessory = ""
end
if v_u_1.avatar.Back then
v1609.BackAccessory = StringList(v_u_1.avatar.Back)
end
if v_u_1.avatar.Face and #v_u_1.avatar.Face > 0 then
v1609.FaceAccessory = StringList(v_u_1.avatar.Face)
end
if v_u_1.avatar.Front then
v1609.FrontAccessory = StringList(v_u_1.avatar.Front)
end
if v_u_1.avatar.Neck then
v1609.NeckAccessory = StringList(v_u_1.avatar.Neck)
end
if v_u_1.avatar.Shoulders and #v_u_1.avatar.Shoulders > 0 then
v1609.ShouldersAccessory = StringList(v_u_1.avatar.Shoulders)
end
if v_u_1.avatar.Waist then
v1609.WaistAccessory = StringList(v_u_1.avatar.Waist)
end
if v_u_1.avatar.Shirt then
v1609.Shirt = StringList(v_u_1.avatar.Shirt)
end
if v_u_1.avatar.Pants then
v1609.Pants = StringList(v_u_1.avatar.Pants)
end
v_u_1.mannequin.Humanoid:ApplyDescription(v1609)
v_u_1.f_updA()
end)
end
function v_u_1.f_updvi()
-- upvalues: (copy) v_u_1
v_u_1.gui.MainMenu.CameraFrame.ImageLabel1.Visible = false
v_u_1.gui.MainMenu.CameraFrame.ImageLabel2.Visible = false
v_u_1.gui.MainMenu.CameraFrame.ImageLabel3.Visible = false
if v_u_1.avatar[v_u_1.sttings.ViewPortSubject] then
local v1610 = v_u_1.avatar[v_u_1.sttings.ViewPortSubject]
if type(v1610) == "number" then
v_u_1.gui.MainMenu.CameraFrame.ImageLabel1.Visible = true
v_u_1.gui.MainMenu.CameraFrame.ImageLabel1.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. v_u_1.avatar[v_u_1.sttings.ViewPortSubject] .. "&width=420&height=420&format=png"
return
end
local v1611 = v_u_1.avatar[v_u_1.sttings.ViewPortSubject]
if type(v1611) == "table" then
for v1612 = 1, #v_u_1.avatar[v_u_1.sttings.ViewPortSubject] do
local v1613 = v_u_1.gui.MainMenu.CameraFrame:FindFirstChild("ImageLabel" .. v1612)
if v1613 and v_u_1.avatar[v_u_1.sttings.ViewPortSubject][v1612] ~= nil then
v1613.Visible = true
v1613.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. v_u_1.avatar[v_u_1.sttings.ViewPortSubject][v1612] .. "&width=420&height=420&format=png"
end
end
end
end
end
function v_u_1.f_updpg()
-- upvalues: (copy) v_u_1
if v_u_1.sttings.LastPrice ~= v_u_1.gui.Deployed.PriceGui.TextLabel1.Text then
v_u_1.sttings.LastPrice = v_u_1.gui.Deployed.PriceGui.TextLabel1.Text
local v1614 = {
v_u_1.gui.Deployed.PriceGui.TextLabel1,
v_u_1.gui.Deployed.PriceGui.TextLabel2,
v_u_1.gui.Deployed.PriceGui.TextLabel3,
v_u_1.gui.Deployed.Interact.TextButton
}
v_u_1.f_ltfs(v1614)
end
end
function v_u_1.f_slcsm(p_u_1615)
-- upvalues: (copy) v_u_1
local _, _ = pcall(function()
-- upvalues: (ref) v_u_1, (copy) p_u_1615
local v1616 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Bar2:GetChildren()
for v1617 = 1, #v1616 do
if v1616[v1617].Name == p_u_1615 then
v1616[v1617].BorderColor3 = Color3.new(1, 0, 0)
else
v1616[v1617].BorderColor3 = Color3.new(0, 0, 0)
end
end
local v1618 = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame:GetChildren()
for v1619 = 1, #v1618 do
v1618[v1619].Visible = v1618[v1619].Name == p_u_1615
end
local v1626, v1627 = pcall(function()
-- upvalues: (ref) v_u_1
v_u_1._stats.Owned:WaitForChild("Skins_Universal")
for v1620 = 1, #v_u_1.buttons.skinbuttons do
local v1621 = v_u_1.customisation.Module.Stats[v_u_1.buttons.skinbuttons[v1620].Name]
local v1622
if v_u_1._stats.Owned:FindFirstChild("Skins_Universal") then
v1622 = v_u_1._stats.Owned.Skins_Universal:FindFirstChild(v_u_1.buttons.skinbuttons[v1620].Name) ~= nil
else
v1622 = false
end
local v1623
if v1621.Level == nil then
v1623 = false
else
v1623 = v_u_1._stats.Level.Value >= v1621.Level
end
local v1624
if v1621.USSF == nil then
v1624 = false
else
v1624 = v_u_1._stats.Rank.Value >= 1
end
if v_u_1.buttons.skinbuttons[v1620].Parent.Name ~= "ColourSpectrum" then
if v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Owned.Visible == true and (v1622 == true or (v1623 == true or v1624 == true)) then
v_u_1.buttons.skinbuttons[v1620].Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Owned
elseif v1621.Prestige == nil and (v1621.BattlepassSkin == nil and v1621.Category ~= "Special") then
if v1621.Level == nil and (v1621.USSF == nil and v1621.Category ~= "Free") then
v_u_1.buttons.skinbuttons[v1620].Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Store
else
v_u_1.buttons.skinbuttons[v1620].Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Free
end
else
v_u_1.buttons.skinbuttons[v1620].Parent = v_u_1.gui.MainMenu.Loadout.Menu.Skins.Frame.Special
end
local v1625 = v_u_1.buttons.skinbuttons[v1620]:FindFirstChild("LocalScriptGui")
if v1625 then
v1625.Enabled = v_u_1.buttons.skinbuttons[v1620].Parent.Visible
end
end
end
end)
if v1626 == false then
warn("f.f_slcsm():", v1627)
end
end)
end
function v_u_1.f_updwtv(p1628, p1629)
local v1630 = p1628:GetChildren()
for v1631 = 1, #v1630 do
if v1630[v1631].ClassName == "Texture" then
v1630[v1631].Transparency = p1629
end
end
end
function v_u_1.f_updwsv()
-- upvalues: (copy) v_u_1
local v1632 = v_u_1.mala[v_u_1.customisation.Weapon]
if v_u_1.t then
local v1633 = v_u_1.t:GetChildren()
if v_u_1.customisation.Section then
local v1634 = v_u_1.customisation.Sections[v1632]
if v1634 then
for v1635 = 1, #v1633 do
if v1633[v1635]:IsA("BasePart") and (v1633[v1635].Name ~= "ConnectorBarrel" and (v1633[v1635].Name ~= "ConnectorGrip" and (v1633[v1635].Name ~= "ConnectorOptics" and (v1633[v1635].Name ~= "ConnectorSide" and (v1633[v1635].Name ~= "ConnectorWeight" and (v1633[v1635].Name ~= "IronSights1Pivot" and v1633[v1635].Name ~= "IronSights2Pivot")))))) then
local v1636 = v1633[v1635]:FindFirstChild("OrigT")
if v1636 == nil then
v1636 = Instance.new("NumberValue")
v1636.Value = v1633[v1635].Transparency
v1636.Name = "OrigT"
v1636.Parent = v1633[v1635]
end
local v1637 = false
if v1634.Section1 and v1634.Section1[v1633[v1635].Name] then
if v_u_1.customisation.Section == 1 and v1636.Value == 0 then
v1633[v1635].Transparency = v1636.Value
v_u_1.f_updwtv(v1633[v1635], 0)
v1637 = true
elseif v1636.Value ~= 1 then
v1633[v1635].Transparency = 0.9
v_u_1.f_updwtv(v1633[v1635], 0.9)
v1637 = false
end
elseif v1634.Section2 and v1634.Section2[v1633[v1635].Name] then
if v_u_1.customisation.Section == 2 and v1636.Value == 0 then
v1633[v1635].Transparency = v1636.Value
v_u_1.f_updwtv(v1633[v1635], 0)
v1637 = true
elseif v1636.Value ~= 1 then
v1633[v1635].Transparency = 0.9
v_u_1.f_updwtv(v1633[v1635], 0.9)
v1637 = false
end
elseif v1636.Value == 0 then
v1633[v1635].Transparency = 0.9
v_u_1.f_updwtv(v1633[v1635], 0.9)
v1637 = false
end
if v1633[v1635].Name == "Mag" then
local v1638 = v1633[v1635]:GetChildren()
for v1639 = 1, #v1638 do
if v1638[v1639]:IsA("BasePart") then
if v1637 == true then
v1638[v1639].Transparency = 0
v_u_1.f_updwtv(v1638[v1639], 0)
else
v1638[v1639].Transparency = 0.9
v_u_1.f_updwtv(v1638[v1639], 0.9)
end
end
end
end
end
end
return
end
else
for v1640 = 1, #v1633 do
if v1633[v1640]:IsA("BasePart") and (v1633[v1640].Name ~= "ConnectorBarrel" and (v1633[v1640].Name ~= "ConnectorGrip" and (v1633[v1640].Name ~= "ConnectorOptics" and (v1633[v1640].Name ~= "ConnectorSide" and (v1633[v1640].Name ~= "ConnectorWeight" and (v1633[v1640].Name ~= "IronSights1Pivot" and v1633[v1640].Name ~= "IronSights2Pivot")))))) then
local v1641 = v1633[v1640]:FindFirstChild("OrigT")
if v1641 == nil then
v1641 = Instance.new("NumberValue")
v1641.Value = v1633[v1640].Transparency
v1641.Name = "OrigT"
v1641.Parent = v1633[v1640]
end
v1633[v1640].Transparency = v1641.Value
v_u_1.f_updwtv(v1633[v1640], 0)
end
end
end
end
end
function v_u_1.f_vprstge()
-- upvalues: (copy) v_u_1
local v1642 = true
for v1643 = 1, #v_u_1.tiers do
for _, v1644 in pairs(v_u_1.tiers[v1643]) do
if v_u_1._stats.Owned:FindFirstChild(v1644) == nil and v_u_1.weaponclasses[v1644].TierName ~= "Event Tier" then
v1642 = false
break
end
end
end
if v1642 == true and v_u_1._stats.Prestige.Value < 5 then
v_u_1.gui.MainMenu.Prestige.Personal.ImageLabel.Image = "rbxassetid://1505620351"
v_u_1.sttings.AllOwned = true
else
v_u_1.gui.MainMenu.Prestige.Personal.ImageLabel.Image = "rbxassetid://1507348057"
v_u_1.sttings.AllOwned = false
end
end
function v_u_1.f_updpm()
-- upvalues: (copy) v_u_1
local v1645 = v_u_1.gui.MainMenu.Prestige.ScrollingFrame:GetChildren()
for v1646 = 1, #v1645 do
if v1645[v1646].ClassName == "Frame" then
local v1647 = string.gsub(v1645[v1646].Name, "%D", "")
local v1648 = tonumber(v1647)
if v1648 and v1648 == v_u_1._stats.Prestige.Value then
v_u_1.f_uis(v1645[v1646], "Selected")
else
v_u_1.f_uis(v1645[v1646], "Normal")
end
end
end
if v_u_1._stats.Prestige.Value >= 5 then
v_u_1.gui.MainMenu.Prestige.Personal.TextButton.Text = "[Max Prestige 5]"
else
v_u_1.gui.MainMenu.Prestige.Personal.TextButton.Text = "Unlock Prestige " .. v_u_1._stats.Prestige.Value + 1
end
end
local v_u_1649 = nil
local v_u_1650 = nil
function v_u_1.f_playA()
-- upvalues: (copy) v_u_1, (ref) v_u_1649, (ref) v_u_1650
local v1651 = v_u_1.humanoid.RigType == Enum.HumanoidRigType.R15 and "R15" or "R6"
local v1652 = v_u_1.f_ct(v_u_1.Animations0[v1651])
local v1653 = "Standing"
local v1654 = nil
local v1655 = nil
if v_u_1.crouching == true or v_u_1.crouched == true then
v1655 = v_u_1.Animations[v1651].Crouching.idle
v1654 = v_u_1.Animations[v1651].Crouching.run
v1653 = "Crouched"
elseif v_u_1.proning == true or v_u_1.proned == true then
v1655 = v_u_1.Animations[v1651].Proning.idle
v1654 = v_u_1.Animations[v1651].Proning.run
v1653 = "Proned"
elseif v_u_1.downed == true then
v1655 = v_u_1.Animations[v1651].Downed.idle
v1654 = v_u_1.Animations[v1651].Downed.run
v1653 = "Downed"
end
v_u_1.player:SetAttribute("Stance", v1653)
v_u_1.f_fe("Stance", v1653)
if v1653 ~= v_u_1.Animations.Stance0 then
v_u_1.Animations.Stance0 = v1653
if v_u_1.Animator then
for _, v1656 in pairs(v_u_1.Animator:GetPlayingAnimationTracks()) do
v1656:Stop()
end
end
end
if v1654 then
if v1651 == "R15" then
v1652.run = v1654
v1652.runRight2 = v1654
v1652.runRight = v1654
v1652.runLeft2 = v1654
v1652.runLeft = v1654
v1652.runForwardRight = v1654
v1652.runForwardLeft = v1654
v1652.runBackwardRight = v1654
v1652.runBackwardLeft = v1654
v1652.runBack = v1654
v1652.walk = v1654
v1652.walkRight2 = v1654
v1652.walkRight = v1654
v1652.walkLeft2 = v1654
v1652.walkLeft = v1654
v1652.walkForwardRight = v1654
v1652.walkForwardLeft = v1654
v1652.walkBackwardRight = v1654
v1652.walkBackwardLeft = v1654
v1652.walkBack = v1654
else
v1652.run = v1654
v1652.walk = v1654
end
end
if v1655 then
v1652.idle1 = v1655
v1652.idle2 = v1655
end
local v1657 = v_u_1.character:FindFirstChild("Animate")
if v1657 then
for v1658, v1659 in pairs(v1652) do
if v1658 == "idle1" or v1658 == "idle2" then
local v1660 = v1658 == "idle1" and "1" or "2"
local v1661 = v1657:FindFirstChild("idle")
if v1661 then
local v1662 = v1661:FindFirstChild("Animation" .. v1660)
if v1662 then
local v1663 = string.gsub(v1662.AnimationId, "%D", "")
if tonumber(v1663) ~= v1659 then
v1662.AnimationId = "http://www.roblox.com/asset/?id=" .. tostring(v1659)
end
end
end
else
local v1664 = v1657:FindFirstChild(v1658)
if v1664 then
local v1665 = v1664:FindFirstChildOfClass("Animation")
if v1665 then
local v1666 = string.gsub(v1665.AnimationId, "%D", "")
if tonumber(v1666) ~= v1659 then
v1665.AnimationId = "http://www.roblox.com/asset/?id=" .. tostring(v1659)
end
end
end
end
end
elseif v_u_1.AnimateScriptWarning == nil then
v_u_1.AnimateScriptWarning = true
warn("No Animate script")
end
local v1667 = v1654 == nil and "" or v1654
local v1668 = v1655 == nil and "" or v1655
if (v1667 ~= v_u_1649 or v1668 ~= v_u_1650) and (v1657 and v1657:FindFirstChild("Event")) then
v1657.Event:Fire()
end
v_u_1649 = v1667
v_u_1650 = v1668
end
function v_u_1.f_eventgui()
-- upvalues: (copy) v_u_1
if v_u_1._stats:FindFirstChild("EventLevel") then
local v_u_1669 = v_u_1.gui.Buttons.Menus.Event.ScrollingFrame1.Rewards:GetChildren()
for v_u_1670 = 1, #v_u_1669 do
local v1673, v1674 = pcall(function()
-- upvalues: (copy) v_u_1669, (copy) v_u_1670, (ref) v_u_1
local v1671 = v_u_1669[v_u_1670].Name
local v1672 = tonumber(v1671)
if v1672 and (v1672 <= v_u_1._stats.EventLevel.Value and (v_u_1.BPArray[v1672] == nil or (v_u_1.BPArray[v1672].Premium == false or v_u_1.f_chkgp("Premium Battle Pass") == true))) then
v_u_1669[v_u_1670].Earned.Visible = true
v_u_1669[v_u_1670].BuyButton.Visible = false
else
v_u_1669[v_u_1670].Earned.Visible = false
v_u_1669[v_u_1670].BuyButton.Visible = v_u_1.BPArray[v1672].Premium == false
end
end)
if v1673 == false then
warn(v1674)
end
end
end
end
function v_u_1.f_initchar()
-- upvalues: (copy) v_u_1
v_u_1.character = v_u_1.player.Character
while true do
task.wait(0.1)
if v_u_1.character then
v_u_1.humanoid = v_u_1.character:FindFirstChild("Humanoid")
v_u_1.Animator = v_u_1.humanoid:WaitForChild("Animator")
v_u_1.hrp = v_u_1.character:FindFirstChild("HumanoidRootPart")
v_u_1.head = v_u_1.character:FindFirstChild("Head")
if v_u_1.humanoid.RigType == Enum.HumanoidRigType.R15 then
v_u_1.torso = v_u_1.character:FindFirstChild("UpperTorso")
v_u_1.RightUpperArm = v_u_1.character:FindFirstChild("RightUpperArm")
v_u_1.LeftUpperArm = v_u_1.character:FindFirstChild("LeftUpperArm")
if v_u_1.head ~= nil then
v_u_1.neck = v_u_1.head:FindFirstChild("Neck")
end
else
v_u_1.torso = v_u_1.character:FindFirstChild("Torso")
v_u_1.RightUpperArm = v_u_1.character:FindFirstChild("Right Arm")
v_u_1.LeftUpperArm = v_u_1.character:FindFirstChild("Left Arm")
if v_u_1.torso ~= nil then
v_u_1.neck = v_u_1.torso:FindFirstChild("Neck")
end
end
end
if v_u_1.humanoid ~= nil and (v_u_1.hrp ~= nil and (v_u_1.torso ~= nil and (v_u_1.head ~= nil and (v_u_1.RightUpperArm ~= nil and (v_u_1.LeftUpperArm ~= nil and v_u_1.neck ~= nil))))) then
v_u_1.neckCF.C0 = v_u_1.neck.C0
v_u_1.neckCF.C1 = v_u_1.neck.C1
local v1675 = v_u_1.neck.C0.Position.Magnitude + v_u_1.neck.C1.Position.Magnitude
v_u_1.Rig.HeadOffset = CFrame.new(0, v1675, 0)
if v_u_1.humanoid.RigType == Enum.HumanoidRigType.R15 then
v_u_1.Rig.HeadProned = -1.2217304763960306
v_u_1.Rig.ShoulderAngles = { CFrame.Angles(1.5707963267948966, 0, 0), CFrame.Angles(1.5707963267948966, 0, 0) }
else
v_u_1.Rig.HeadProned = 1.2217304763960306
v_u_1.Rig.ShoulderAngles = { CFrame.Angles(1.5707963267948966, 1.5707963267948966, 0), CFrame.Angles(1.5707963267948966, -1.5707963267948966, 0) }
end
end
end
end
function v_u_1.f_fi1()
-- upvalues: (copy) v_u_1
v_u_1.f_initchar()
v_u_1.character.ChildAdded:Connect(function(p1676)
-- upvalues: (ref) v_u_1
task.wait(0.1)
if p1676:IsA("BasePart") and (p1676.Name == "RightUpperArm" or (p1676.Name == "LeftUpperArm" or (p1676.Name == "UpperTorso" or (p1676.Name == "Right Arm" or (p1676.Name == "Left Arm" or p1676.Name == "Torso"))))) and (v_u_1.armbase and v_u_1.armbase.Parent) then
warn("Client: Character created new part:", p1676)
if p1676.Name == "RightUpperArm" or p1676.Name == "LeftUpperArm" then
v_u_1.RightShoulderC0 = nil
v_u_1.LeftShoulderC0 = nil
end
v_u_1.f_updA(nil)
end
if v_u_1.cameramode == "fps" then
v_u_1.f_ci(1)
if _G.armed == true then
v_u_1.f_mi(0)
if v_u_1.rsaimed == false then
v_u_1.f_mti("orig")
end
else
v_u_1.f_mi(1)
end
else
v_u_1.f_ci(0)
v_u_1.f_mi(1)
v_u_1.f_mti("orig")
end
task.wait(0.1)
if p1676.ClassName == "ForceField" then
v_u_1.f_updhb()
p1676.Visible = false
end
end)
local v1677 = v_u_1.player.Character:FindFirstChild("ForceField2")
if v1677 then
v1677.Visible = false
end
v_u_1.character.ChildRemoved:Connect(function(p1678)
-- upvalues: (ref) v_u_1
task.wait(0.1)
if p1678.ClassName == "ForceField" then
v_u_1.f_updhb()
end
end)
v_u_1.Health0 = v_u_1.humanoid.Health
v_u_1.f_updhb()
v_u_1.character.Humanoid.Changed:Connect(function(p1679)
-- upvalues: (ref) v_u_1
if p1679 == "Health" or p1679 == "MaxHealth" then
v_u_1.f_updhb()
if v_u_1.character.Humanoid.Health < v_u_1.Health0 then
v_u_1.f_psl(nil, 367499850, 1, v_u_1.rng:NextNumber(0.8, 1.2), nil, v_u_1.SoundService.Effects)
end
v_u_1.Health0 = v_u_1.character.Humanoid.Health
end
end)
_G.f_updhb()
v_u_1.HumanoidStats = v_u_1.HumanoidStatsOriginal
for v1680 = 1, #v_u_1.animationsLoaded do
v_u_1.animationsLoaded[v1680]:Destroy()
end
v_u_1.animationsLoaded = nil
v_u_1.animationsLoaded = {}
local v1681 = { 13118874863 }
for v1682 = 1, #v1681 do
if v_u_1.animationsLoaded[v1681[v1682]] == nil then
local v1683 = Instance.new("Animation")
v1683.AnimationId = "rbxassetid://" .. v1681[v1682]
v_u_1.animationsLoaded[v1681[v1682]] = v_u_1.humanoid:LoadAnimation(v1683)
end
end
if v_u_1.StateEvent1 then
v_u_1.StateEvent1:Disconnect()
end
if v_u_1.StateEvent2 then
v_u_1.StateEvent2:Disconnect()
end
if v_u_1.StateEvent3 then
v_u_1.StateEvent3:Disconnect()
end
if v_u_1.StateEvent4 then
v_u_1.StateEvent4:Disconnect()
end
v_u_1.StateEvent1 = v_u_1.humanoid.Running:Connect(function(p1684)
-- upvalues: (ref) v_u_1
v_u_1.HumanoidStats.Speed = p1684
if v_u_1.HumanoidStats.IsRunning == false and p1684 > 0.1 then
v_u_1.f_rhs()
v_u_1.HumanoidStats.Running = true
v_u_1.f_playA()
elseif v_u_1.HumanoidStats.IsRunning == true and p1684 == 0 then
v_u_1.f_rhs()
v_u_1.HumanoidStats.Running = false
v_u_1.f_playA()
end
if p1684 > 0.1 and v_u_1.humanoid.Sit == false then
v_u_1.char_moving = true
else
v_u_1.char_moving = false
end
end)
v_u_1.StateEvent2 = v_u_1.humanoid.Seated:Connect(function(p1685, _)
-- upvalues: (ref) v_u_1
v_u_1.HumanoidStats.Seated = p1685
end)
v_u_1.humanoid.Jumping:Connect(function(p1686)
-- upvalues: (ref) v_u_1
if p1686 == false then
v_u_1.HumanoidStats.Speed = 0
end
end)
v_u_1.StateEvent4 = v_u_1.humanoid.StateChanged:Connect(function(p1687, p1688)
-- upvalues: (ref) v_u_1
v_u_1.f_rhs()
if (p1688 == Enum.HumanoidStateType.Running or p1688 == Enum.HumanoidStateType.RunningNoPhysics) and v_u_1.HumanoidStats.Speed > 0.1 then
v_u_1.HumanoidStats.Running = true
elseif p1688 == Enum.HumanoidStateType.Jumping then
v_u_1.HumanoidStats.Jumping = true
if v_u_1.gametype == "Tycoon" then
v_u_1.humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
task.wait(1)
v_u_1.humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
end
elseif p1688 == Enum.HumanoidStateType.Seated then
v_u_1.HumanoidStats.Seated = true
elseif p1688 == Enum.HumanoidStateType.FallingDown or p1688 == Enum.HumanoidStateType.Freefall then
v_u_1.HumanoidStats.Falling = true
elseif p1688 == Enum.HumanoidStateType.Climbing then
v_u_1.HumanoidStats.Climbing = true
elseif p1688 == Enum.HumanoidStateType.Flying or p1688 == Enum.HumanoidStateType.StrafingNoPhysics then
v_u_1.humanoid.Humanoid.Health = 0
elseif p1688 == Enum.HumanoidStateType.Landed then
v_u_1.sttings.JumpCoolDown = nil
if v_u_1.sttings.SelectedButton and v_u_1.sttings.SelectedButton == v_u_1.tgui.Jump then
v_u_1.sttings.JumpCoolDown = true
v_u_1.humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end
v_u_1.f_playA()
if v_u_1.gametype == "Tycoon" and (p1688 == Enum.HumanoidStateType.Landed or p1687 == Enum.HumanoidStateType.Freefall) and v_u_1.hrp then
v_u_1.f_fe("Landed", v_u_1.hrp.AssemblyLinearVelocity.Y)
end
end)
if v_u_1.character:FindFirstChild("Head") and v_u_1.character.Head:FindFirstChild("face") then
v_u_1.face = v_u_1.character.Head.face
end
v_u_1.gui.Deployed.Visible = false
v_u_1.f_updostype()
v_u_1.cameramode = "menu"
_G.cameramode = v_u_1.cameramode
v_u_1.ceamara = workspace.CurrentCamera
v_u_1.ceamara.CameraType = Enum.CameraType.Scriptable
v_u_1.ceamara.FieldOfView = v_u_1.aim.FOV
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.Default
if workspace.MenuRoom:FindFirstChild("CameraSource") then
workspace.CurrentCamera.CoordinateFrame = CFrame.new(workspace.MenuRoom.CameraSource.Position, workspace.MenuRoom.CameraTarget.Position)
workspace.CurrentCamera.Focus = workspace.MenuRoom.CameraTarget.CFrame
else
workspace.CurrentCamera.CoordinateFrame = CFrame.new(workspace.MenuRoom.Spawn.Position, workspace.MenuRoom.GunSpawn.Position)
workspace.CurrentCamera.Focus = workspace.MenuRoom.GunSpawn.CFrame
end
v_u_1.mainmenuenabled = true
if v_u_1.gametype == "Zombies" then
v_u_1.gui.MainMenu.Visible = true
v_u_1.f_ugs(v_u_1.gui.MainMenu.Bar1.Deploy)
end
v_u_1.f_updwl()
v_u_1.holder = workspace.Ignore.Local
v_u_1.readytochangeviewtype = false
v_u_1.cam.camAng = Vector2.new()
v_u_1.f_ic()
v_u_1.UserInputService.MouseIcon = v_u_1.sttings.defaulticon
repeat
task.wait()
until workspace:FindFirstChild("Map")
v_u_1.RaycastIgnoreOriginal = { v_u_1.character, workspace.Ignore, v_u_1.ceamara }
if workspace.Map:FindFirstChild("Barricades") then
local v1689 = v_u_1.RaycastIgnoreOriginal
local v1690 = workspace.Map.Barricades
table.insert(v1689, 1, v1690)
end
v_u_1.raycastParams.FilterDescendantsInstances = v_u_1.RaycastIgnoreOriginal
local v1691 = v_u_1.RaycastIgnoreOriginal
local v1692 = workspace.Zombies
table.insert(v1691, v1692)
v_u_1.raycastParams3PS.FilterDescendantsInstances = v_u_1.RaycastIgnoreOriginal
v_u_1.f_tbu("Confirm")
end
local v_u_1693 = nil
local v_u_1694 = nil
local v_u_1695 = nil
local v_u_1696 = nil
function v_u_1.f_updwxp()
-- upvalues: (copy) v_u_1, (ref) v_u_1695, (ref) v_u_1696
local v1697 = v_u_1._stats.Loadout.Equipped.Value
if v1697 then
local v_u_1698 = v1697.Value
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.TextLabel1.Text = v_u_1698
if v_u_1._stats.Owned:FindFirstChild(v_u_1698) and (v_u_1._stats.Owned[v_u_1698]:FindFirstChild("Level") and v_u_1._stats.Owned[v_u_1698]:FindFirstChild("Experience")) then
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.TextLabel2.Text = "Level " .. v_u_1._stats.Owned[v_u_1698].Level.Value
if v_u_1695 then
v_u_1695:Disconnect()
end
if v_u_1696 then
v_u_1696:Disconnect()
end
v_u_1695 = v_u_1._stats.Owned[v_u_1698].Level.Changed:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_1698
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.TextLabel2.Text = "Level " .. v_u_1._stats.Owned[v_u_1698].Level.Value
end)
if v_u_1._stats.Owned[v_u_1698].Level.Value == 70 then
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Bar.Visible = false
else
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Bar.Size = UDim2.new(v_u_1._stats.Owned[v_u_1698].Experience.Value % 1000 / 1000, 0, 1, 0)
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Bar.Visible = true
end
v_u_1696 = v_u_1._stats.Owned[v_u_1698].Experience.Changed:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_1698
if v_u_1._stats.Owned[v_u_1698].Level.Value == 70 then
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Bar.Visible = false
else
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Bar.Size = UDim2.new(v_u_1._stats.Owned[v_u_1698].Experience.Value % 1000 / 1000, 0, 1, 0)
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Bar.Visible = true
end
end)
return
end
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.TextLabel2.Text = "Level 1"
v_u_1.player.PlayerGui.ScreenGui.Deployed.Stats.Weapon.Bar.Size = UDim2.new(0, 0, 1, 0)
end
end
function v_u_1.f_updeq()
-- upvalues: (copy) v_u_1, (ref) v_u_1693, (ref) v_u_1694, (ref) v_u_1695, (ref) v_u_1696
local v_u_1699 = v_u_1._stats.Loadout.Equipped.Value
if v_u_1699 then
v_u_1.ammo.Mag = v_u_1699.Ammo_Loaded
v_u_1.ammo.Stored = v_u_1699.Ammo_Stored
v_u_1.f_ug()
if v_u_1693 then
v_u_1693:Disconnect()
end
if v_u_1694 then
v_u_1694:Disconnect()
end
if v_u_1695 then
v_u_1695:Disconnect()
end
if v_u_1696 then
v_u_1696:Disconnect()
end
v_u_1693 = v_u_1699.Ammo_Loaded.Changed:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_1699
v_u_1.f_ug()
if v_u_1699.Ammo_Loaded.Value <= 0 then
if (v_u_1.module.mode == "Rocket" or v_u_1.module.mode == "Bolt") and v_u_1.b1 == true then
local v1700 = v_u_1.mala[v_u_1.gunnaseo]
repeat
task.wait(0.1)
until v_u_1.b1 == false or v1700 ~= v_u_1.mala[v_u_1.gunnaseo]
if v1700 == v_u_1.mala[v_u_1.gunnaseo] and v_u_1699.Ammo_Loaded.Value <= 0 then
v_u_1.f_aq("Reload")
return
end
else
v_u_1.f_aq("Reload")
end
end
end)
v_u_1694 = v_u_1699.Ammo_Stored.Changed:Connect(function()
-- upvalues: (ref) v_u_1
v_u_1.f_ug()
end)
end
end
function v_u_1.f_usgg()
-- upvalues: (copy) v_u_1
v_u_1.gui.MainMenu.Loadout.Buttons.Primary.TextLabel2.Text = v_u_1.mala[1]
v_u_1.gui.MainMenu.Loadout.Buttons.Secondary.TextLabel2.Text = v_u_1.mala[2]
if v_u_1.mala[3] then
v_u_1.gui.MainMenu.Loadout.Buttons.Tertiary.TextLabel2.Text = v_u_1.mala[3]
end
v_u_1.gui.MainMenu.Loadout.Buttons.Perk.TextLabel2.Text = v_u_1.perk
if v_u_1.mala[4] then
v_u_1.gui.MainMenu.Loadout.Buttons.Melee.TextLabel2.Text = v_u_1.mala[4]
end
v_u_1.gui.MainMenu.Loadout.Buttons.Grenade.TextLabel2.Text = v_u_1.grenade
end
function v_u_1.f_if1()
-- upvalues: (copy) v_u_1
v_u_1.gunnaseo = 1
v_u_1.humanoid.AutoRotate = false
v_u_1.holder:ClearAllChildren()
v_u_1.right_arm_model = game.ReplicatedStorage.Assets.Character.New["Right Arm"]:Clone()
v_u_1.left_arm_model = game.ReplicatedStorage.Assets.Character.New["Left Arm"]:Clone()
v_u_1.right_arm_model.Name = "Right Arm Model"
v_u_1.left_arm_model.Name = "Left Arm Model"
if v_u_1.right_arm_model:FindFirstChild("Skin") then
v_u_1.right_arm_model.Skin.BrickColor = v_u_1.RightUpperArm.BrickColor
v_u_1.left_arm_model.Skin.BrickColor = v_u_1.LeftUpperArm.BrickColor
elseif v_u_1.right_arm_model:FindFirstChild("Right Arm") then
v_u_1.right_arm_model["Right Arm"].BrickColor = v_u_1.RightUpperArm.BrickColor
v_u_1.left_arm_model["Left Arm"].BrickColor = v_u_1.LeftUpperArm.BrickColor
end
local v1701 = Instance.new("Part")
v1701.Transparency = 1
v1701.Name = "Fake Torso"
v1701.CanCollide = false
v1701.FormFactor = Enum.FormFactor.Custom
v1701.Size = Vector3.new(0.2, 0.2, 0.2)
v1701.BottomSurface = Enum.SurfaceType.Smooth
v1701.TopSurface = Enum.SurfaceType.Smooth
v1701.Massless = true
v1701.Parent = v_u_1.holder
v_u_1.ftweld = Instance.new("Weld")
v_u_1.ftweld.Part0 = v1701
v_u_1.ftweld.Part1 = v_u_1.head
v_u_1.ftweld.C0 = CFrame.new(0, 1.2, 0)
v_u_1.ftweld.Parent = v1701
v_u_1.armbase = Instance.new("Part")
v_u_1.armbase.Transparency = 1
v_u_1.armbase.Name = "ArmBase"
v_u_1.armbase.CanCollide = false
v_u_1.armbase.FormFactor = Enum.FormFactor.Custom
v_u_1.armbase.Size = Vector3.new(0.2, 0.2, 0.2)
v_u_1.armbase.BottomSurface = Enum.SurfaceType.Smooth
v_u_1.armbase.TopSurface = Enum.SurfaceType.Smooth
v_u_1.armbase.Massless = true
v_u_1.armbase.Parent = v_u_1.holder
v_u_1.abweld = Instance.new("Weld")
v_u_1.abweld.Part0 = v_u_1.armbase
v_u_1.abweld.Part1 = v1701
v_u_1.abweld.Parent = v_u_1.armbase
v_u_1.f_w(v_u_1.right_arm_model.Arm, v_u_1.right_arm_model:GetChildren())
v_u_1.f_w(v_u_1.left_arm_model.Arm, v_u_1.left_arm_model:GetChildren())
v_u_1.f_unanc(v_u_1.right_arm_model)
v_u_1.f_unanc(v_u_1.left_arm_model)
v_u_1.right_arm_model.Parent = v_u_1.holder
v_u_1.left_arm_model.Parent = v_u_1.holder
if v_u_1.gunnaseo and v_u_1.mala[v_u_1.gunnaseo] then
v_u_1.module = v_u_1.f_ct(v_u_1.gunmodulestorage[v_u_1.mala[v_u_1.gunnaseo]])
if v_u_1.gametype == "Zombies" then
_G.armed = true
v_u_1.f_wg(v_u_1.mala[v_u_1.gunnaseo])
v_u_1.f_updch()
else
_G.armed = false
end
else
_G.armed = false
v_u_1.module = v_u_1.f_ct(v_u_1.gunmodulestorage.M4A1)
end
_G.ToggleTouchButtons()
v_u_1.module.penetration = 3
v_u_1.PosWeld = v_u_1.right_arm_model.Arm.PosWeld
v_u_1.PosWeld.Part0 = v_u_1.armbase
v_u_1.PosWeld.Part1 = v_u_1.right_arm_model.Pos
v_u_1.PosWeldOffset = v_u_1.PosWeld.Part0.CFrame:inverse() * v_u_1.PosWeld.Part1.CFrame
if v_u_1.gunnaseo then
local v1702
if v_u_1.sttings.Attachments and (v_u_1.gunnaseo == 1 and v_u_1.attachments[1].Grip == "") then
v1702 = { v_u_1.module.unequipanim[1], v_u_1.module.unequipanim[2] }
else
v1702 = { v_u_1.module.gripanim[1], v_u_1.module.gripanim[2] }
end
v_u_1.welds[1] = v_u_1.f_sw(v_u_1.armbase, v_u_1.right_arm_model.Arm, v1702[1])
v_u_1.welds[2] = v_u_1.f_sw(v_u_1.armbase, v_u_1.left_arm_model.Arm, v1702[2])
end
v_u_1.welds[1].Name = "RightShoulder"
v_u_1.welds[2].Name = "LeftShoulder"
v_u_1.f_upddesspr()
end
function v_u_1.f_b()
-- upvalues: (copy) v_u_1
if v_u_1.reloading == true or (v_u_1.breakreload == true or v_u_1.bolted == true) then
return
end
if v_u_1.module.boltanim == nil then
return
end
v_u_1.bolting = true
local v1703 = true
if v_u_1.reloading == true or v_u_1.breakreload == true then
v_u_1.bolting = false
return
end
v_u_1.free = false
local v1704 = v_u_1.module.boltanim
local v1705
if v1704[#v_u_1.module.boltanim][7] == "finalstep" then
v1705 = nil
else
if v_u_1.sttings.Attachments and (v_u_1.gunnaseo == 1 and (v_u_1.attachments[1].Grip ~= "" and v_u_1.module.gripanim)) then
v1705 = {
v_u_1.module.gripanim[1],
v_u_1.module.gripanim[2],
v_u_1.module.gripanim[3],
v_u_1.module.gripanim[4],
v_u_1.module.gripanim[5],
0.1,
"finalstep"
}
else
v1705 = {
v_u_1.module.unequipanim[1],
v_u_1.module.unequipanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
0.1,
"finalstep"
}
end
v1705[6] = 0.1
local v1706 = #v_u_1.module.boltanim + 1
table.insert(v1704, v1706, v1705)
end
for v1707 = 1, #v1704 do
if v_u_1.breakreload == true or v_u_1.bolting ~= true then
v_u_1.breakreload = false
v_u_1.bolting = false
v_u_1.free = true
v1703 = false
break
end
if v_u_1.welds[1] then
local v1708
if v1704[v1707][5] then
v1708 = v1704[v1707][1] * v1704[v1707][5]
else
v1708 = v1704[v1707][1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v1704[v1707][1] * v_u_1.PosWeldOffset, v1704[v1707][6], "Reload")
end
if v1708 and v_u_1.welds[1].C0 ~= v1708 then
v_u_1.f_tw(v_u_1.welds[1], v1708, v1704[v1707][6], "Reload")
end
end
if v_u_1.welds[2].C0 ~= v1704[v1707][2] and v1704[v1707][2] then
v_u_1.f_tw(v_u_1.welds[2], v1704[v1707][2], v1704[v1707][6], "Reload")
end
if v_u_1.welds[4].C0 ~= v1704[v1707][3] then
v_u_1.f_tw(v_u_1.welds[4], v1704[v1707][3], v1704[v1707][6], "Reload")
end
if v_u_1.welds[5].C0 ~= v1704[v1707][4] and (v_u_1.welds[5] and v1704[v1707][4]) then
v_u_1.f_tw(v_u_1.welds[5], v1704[v1707][4], v1704[v1707][6], "Reload")
end
if v_u_1.welds[6] and (v1704[v1707][9] and v_u_1.welds[6].C0 ~= v1704[v1707][9]) then
v_u_1.f_tw(v_u_1.welds[6], v1704[v1707][9], v1704[v1707][6], "Reload")
end
if v1704[v1707][8] ~= nil then
local v1709 = v1704[v1707][8]
v_u_1.f_ps(v1709, 1, 1, nil, v_u_1.SoundService.Weapons, 50)
end
task.wait(v1704[v1707][6])
if v_u_1.welds[1] then
local v1710
if v1704[v1707][5] then
v1710 = v1704[v1707][1] * v1704[v1707][5]
else
v1710 = v1704[v1707][1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v1704[v1707][1] * v_u_1.PosWeldOffset, 0)
end
if v1710 and v_u_1.welds[1].C0 ~= v1710 then
v_u_1.f_tw(v_u_1.welds[1], v1710, 0)
end
end
if v_u_1.welds[2] and v1704[v1707][2] then
v_u_1.f_tw(v_u_1.welds[2], v1704[v1707][2], 0)
end
if v_u_1.welds[4] and v1704[v1707][3] then
v_u_1.f_tw(v_u_1.welds[4], v1704[v1707][3], 0)
end
if v_u_1.welds[5] and v1704[v1707][4] then
v_u_1.f_tw(v_u_1.welds[5], v1704[v1707][4], 0)
end
if v_u_1.welds[6] and v1704[v1707][9] then
v_u_1.f_tw(v_u_1.welds[6], v1704[v1707][9], 0)
end
end
if not v1703 then
return false
end
v_u_1.free = true
v_u_1.reloading = false
v_u_1.bolting = false
v_u_1.bolted = true
if v1705 then
if v_u_1.welds[1] then
local v1711
if v1705[5] then
v1711 = v1705[1] * v1705[5]
else
v1711 = v1705[1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v1705[1] * v_u_1.PosWeldOffset, 0)
end
if v1711 and v_u_1.welds[1].C0 ~= v1711 then
v_u_1.f_tw(v_u_1.welds[1], v1711, 0)
end
end
if v_u_1.welds[2] ~= nil and v1705[2] ~= nil then
v_u_1.f_tw(v_u_1.welds[2], v1705[2], 0)
end
if v_u_1.welds[4] ~= nil and v1705[3] ~= nil then
v_u_1.f_tw(v_u_1.welds[4], v1705[3], 0)
end
if v_u_1.welds[5] ~= nil and v1705[4] ~= nil then
v_u_1.f_tw(v_u_1.welds[5], v1705[4], 0)
end
if v_u_1.welds[6] ~= nil and v1705[9] ~= nil then
v_u_1.f_tw(v_u_1.welds[6], v1705[9], 0)
end
end
return true
end
local v_u_1712 = v_u_1.gui.Deployed.Stats.Controls.Template:Clone()
v_u_1.gui.Deployed.Stats.Controls.Template:Destroy()
function v_u_1.f_updch2(p_u_1713)
-- upvalues: (copy) v_u_1
task.spawn(function()
-- upvalues: (ref) v_u_1, (copy) p_u_1713
local v1714 = v_u_1.gui.Deployed.Stats.Controls:GetChildren()
local v1715 = {}
for v1716 = 1, #v1714 do
local v1717 = v1714[v1716]:GetChildren()
for v1718 = 1, #v1717 do
local v1719 = v1717[v1718]
table.insert(v1715, v1719)
end
end
if p_u_1713 == true then
v_u_1.gui.Deployed.Stats.Controls.Position = UDim2.new(0, 0, 0, -v_u_1.gui.Deployed.Stats.Controls.UIGridLayout.AbsoluteContentSize.Y - 5)
v_u_1.gui.Deployed.Stats.Controls.Visible = true
for v1720 = 1, 30 do
for v1721 = 1, #v1715 do
local v1722 = v1720 / 30
if v1715[v1721].ClassName == "ImageLabel" then
v1715[v1721].ImageTransparency = 1 - v1722
elseif v1715[v1721].ClassName == "TextLabel" then
v1715[v1721].TextTransparency = 1 - v1722
v1715[v1721].TextStrokeTransparency = 1 - 0.75 * v1722
if v1715[v1721].Name == "TextLabel1" then
v1715[v1721].BackgroundTransparency = 1 - v1722
end
end
end
task.wait()
end
else
v_u_1.ControlsHintNo = v_u_1.ControlsHintNo == nil and 1 or v_u_1.ControlsHintNo + 1
for v1723 = 1, 30 do
for v1724 = 1, #v1715 do
local v1725 = v1723 / 30
if v1715[v1724].ClassName == "ImageLabel" then
v1715[v1724].ImageTransparency = v1725
elseif v1715[v1724].ClassName == "TextLabel" then
v1715[v1724].TextTransparency = v1725
v1715[v1724].TextStrokeTransparency = 0.25 + 0.75 * v1725
if v1715[v1724].Name == "TextLabel1" then
v1715[v1724].BackgroundTransparency = v1725
end
end
end
task.wait()
end
local v1726 = v_u_1.gui.Deployed.Stats.Controls:GetChildren()
for v1727 = 1, #v1726 do
if v1726[v1727].ClassName ~= "UIGridLayout" then
v1726[v1727]:Destroy()
end
end
v_u_1.gui.Deployed.Stats.Controls.Visible = false
end
end)
end
function v_u_1.f_updch()
-- upvalues: (copy) v_u_1, (copy) v_u_1712
local v1741, v1742 = pcall(function()
-- upvalues: (ref) v_u_1, (ref) v_u_1712
if _G.ostype ~= "ts" then
local v1728 = _G.screentype == "cs" and 50 or 30
v_u_1.gui.Deployed.Stats.Controls.UIGridLayout.CellSize = UDim2.new(1, 0, 0, v1728)
local v1729 = v_u_1.vf and (v_u_1.vf.VehicleArray and v_u_1.vf.VehicleArray.Seated == true) and (v_u_1.vf.VehicleArray.Armed == true and {
"Fire",
"Reload",
"Zoom",
"Zoom Level",
"Exit"
} or { "Zoom", "Zoom Level", "Exit" }) or {
"Fire",
"Aim",
"Reload",
"Grenade",
"Zoom Level",
"Sprint",
"Stance"
}
local v1730 = v_u_1.gui.Deployed.Stats.Controls:GetChildren()
for v1731 = 1, #v1730 do
if v1730[v1731].ClassName ~= "UIGridLayout" then
v1730[v1731]:Destroy()
end
end
local v_u_1732 = v_u_1.ControlsHintNo == nil and 1 or v_u_1.ControlsHintNo + 1
v_u_1.ControlsHintNo = v_u_1732
local v1733 = {
{},
{}
}
for v1734 = 1, #v1729 do
local v1735 = v_u_1712:Clone()
if v1734 < 10 then
v1735.Name = "0" .. tostring(v1734)
else
v1735.Name = tostring(v1734)
end
local v1736 = v_u_1.ControlsModule.GetImage(v1735.ImageLabel, v1729[v1734])
if v1736 then
if v1736.Type == "Image" then
v1735.ImageLabel.Image = v1736.Image
v1735.ImageLabel.ImageTransparency = 1
v1735.TextLabel1:Destroy()
elseif v1736.Type == "Text" then
v1735.TextLabel1.Text = v1736.Text
v1735.TextLabel1.TextTransparency = 1
v1735.TextLabel1.TextStrokeTransparency = 1
v1735.TextLabel1.BackgroundTransparency = 1
v1735.ImageLabel:Destroy()
local v1737 = v1733[1]
local v1738 = v1735.TextLabel1
table.insert(v1737, v1738)
end
v1735.TextLabel2.Text = v1729[v1734]
v1735.TextLabel2.TextTransparency = 1
v1735.TextLabel2.TextStrokeTransparency = 1
local v1739 = v1733[2]
local v1740 = v1735.TextLabel2
table.insert(v1739, v1740)
v1735.Parent = v_u_1.gui.Deployed.Stats.Controls
else
v1735:Destroy()
end
end
v_u_1.f_ltfs(v1733[1])
v_u_1.f_ltfs(v1733[2])
v_u_1.f_updch2(true)
task.delay(10, function()
-- upvalues: (ref) v_u_1, (copy) v_u_1732
if v_u_1.ControlsHintNo == v_u_1732 then
v_u_1.f_updch2(false)
end
end)
end
end)
if v1741 == false then
warn("f_updch Error:", v1742)
end
end
function v_u_1.f_ce(p1743, p1744)
-- upvalues: (copy) v_u_1
if v_u_1.gametype == "Tycoon" and (p1744 ~= true and _G.BaseCamera == true) then
return
else
if v_u_1.free == false and v_u_1.sprinting == true then
v_u_1.f_ssprt()
end
if not v_u_1.vf or (not v_u_1.vf.VehicleArray or (v_u_1.vf.VehicleArray.Seated ~= true or p1744 == true)) then
local v1745 = v_u_1.gunnaseo
if p1743 ~= nil and (v_u_1.cameramode == "fps" or v_u_1.cameramode == "3ps") and v_u_1.mala[p1743] ~= nil or p1744 ~= nil then
if v_u_1.ce_in_action == true or (v_u_1.reloading == true or (v_u_1.bolting or (v_u_1.throwing or v_u_1.free == false))) then
return
end
v_u_1.ce_in_action = true
v_u_1.changinggun = true
v_u_1.aiming = false
v_u_1.reloading = false
v_u_1.held = false
v_u_1.firing = false
v_u_1.bolting = false
v_u_1.sprinting = false
v_u_1.free = false
v_u_1.b2 = false
v_u_1.b22 = false
v_u_1.bolted = true
v_u_1.desiredsprint[1] = 18
v_u_1.desiredsprint[2] = 63
v_u_1.desiredsprint[3] = 27
local v1746 = _G.armed
local v1747 = {
"Primary",
"Secondary",
"Tertiary",
"Melee",
"Random"
}
local v1748 = _G.armed == false and p1744 == nil and "Arm" or ((v_u_1.gunnaseo == p1743 or p1744 ~= nil) and "Disarm" or "Change")
if v1748 ~= "Arm" then
task.wait(0.2)
end
v_u_1.sprintangleslocked = true
if v1748 == "Arm" then
v1746 = true
v_u_1.f_updA(true)
v_u_1.gunnaseo = p1743
local v1749 = v1747[v_u_1.gunnaseo]
if v1749 and v_u_1._stats.Loadout:FindFirstChild(v1749) then
v_u_1._stats.Loadout.Equipped.Value = v_u_1._stats.Loadout[v1749]
end
v_u_1.sprintangles[1] = v_u_1.desiredsprint[1]
v_u_1.sprintangles[2] = v_u_1.desiredsprint[2]
v_u_1.sprintangles[3] = v_u_1.desiredsprint[3]
v_u_1.f_rea(p1743)
v_u_1.sprintanglesoverride = true
v_u_1.f_updmouse("Visible")
elseif v1748 == "Disarm" then
v_u_1.f_dea(p1743, v1745)
v_u_1.f_tw(v_u_1.welds[1], CFrame.new(1.49984741, -0.299570799, 0.000244140625, 1, 0.000120455137, 0.0000269000302, -0.000120455195, 1, 2.57417355e-6, -0.0000268997246, -2.57741362e-6, 1), 0.25)
v_u_1.f_tw(v_u_1.welds[2], CFrame.new(-1.50021362, -0.299473524, 0.000732421875, 1, -0.000082544866, 0.00009090003, 0.0000825446405, 1, 2.54839733e-6, -0.0000909002338, -2.540894e-6, 1), 0.25)
v_u_1.f_updmouse("Default")
v1746 = false
else
v_u_1.gunnaseo = p1743
local v1750 = v1747[v_u_1.gunnaseo]
if v1750 and v_u_1._stats.Loadout:FindFirstChild(v1750) then
v_u_1._stats.Loadout.Equipped.Value = v_u_1._stats.Loadout[v1750]
end
v_u_1.f_cg(p1743, v1745)
v_u_1.f_updmouse("Visible")
end
local v1751 = v_u_1.gui.Deployed.Tools.Frame:GetChildren()
for v1752 = 1, #v1751 do
if v1751[v1752].Name == tostring(p1743) and v1746 then
v1751[v1752].BackgroundTransparency = 0.2
else
v1751[v1752].BackgroundTransparency = 0.6
end
end
if v1748 == "Arm" then
if v_u_1.cameramode == "fps" then
v_u_1.f_mi(0)
else
v_u_1.f_mi(1)
end
end
v_u_1.sprintangleslocked = false
v_u_1.changinggun = false
task.wait(0.2)
v_u_1.ce_in_action = false
v_u_1.aiming = false
v_u_1.reloading = false
v_u_1.held = false
v_u_1.firing = false
v_u_1.bolting = false
v_u_1.sprinting = false
v_u_1.free = true
if _G.armed == false and v1746 == true then
v_u_1.f_updch()
elseif v1746 == false then
v_u_1.f_updch2(false)
end
_G.armed = v1746
v_u_1.sprintanglesoverride = false
v_u_1.f_updmouse()
v_u_1.sprintangles[1] = 0
v_u_1.sprintangles[2] = 0
v_u_1.sprintangles[3] = 0
v_u_1.f_dw()
if v1746 == true then
v_u_1.f_upddesspr()
end
if _G.armed == true then
if v_u_1.cameramode == "fps" then
v_u_1.f_mi(0)
end
if _G.screentype == "ts s" or _G.screentype == "ts l" then
if v_u_1._stats.Settings.AutoFire.Value then
if v_u_1.module.NoAutoFire == true then
v_u_1.ToggleButton("Fire", true)
else
v_u_1.ToggleButton("Fire", false)
end
else
v_u_1.ToggleButton("Fire", true)
end
end
end
v_u_1.f_updA()
v_u_1.f_fe("updategunandarms")
v_u_1.b2 = false
v_u_1.b22 = false
v_u_1.bolted = true
v_u_1.ActionButtonColour("Crouch", Color3.new(1, 1, 1))
v_u_1.ActionButtonColour("Sprint", Color3.new(1, 1, 1))
v_u_1.f_ug()
_G.ToggleTouchButtons()
end
end
end
end
function _G.Unequip()
-- upvalues: (copy) v_u_1
if _G.armed == true then
v_u_1.f_ran("Change")
v_u_1.f_ce(v_u_1.gunnaseo, true)
end
end
function v_u_1.f_cg(_, _)
-- upvalues: (copy) v_u_1
local v1753 = v_u_1.holder:GetChildren()
for v1754 = 1, #v1753 do
if v1753[v1754].Name == "GunModel" then
v1753[v1754]:Destroy()
end
end
if v_u_1.right_arm_model and v_u_1.right_arm_model:FindFirstChild("Pos") then
local v1755 = v_u_1.right_arm_model.Pos:GetChildren()
for v1756 = 1, #v1755 do
v1755[v1756]:Destroy()
end
end
v_u_1.slidesteps = {}
v_u_1.bulletstrips1 = {}
v_u_1.bulletstrips2 = {}
v_u_1.f_wg(v_u_1.mala[v_u_1.gunnaseo])
v_u_1.f_dw()
end
function v_u_1.f_updtbs()
-- upvalues: (copy) v_u_1
local v1757 = nil
local v_u_1758
if v_u_1.gametype == "Zombies" then
v_u_1758 = v_u_1._stats:FindFirstChild("EventLevel") and {
"Shop",
"Rank",
"Event",
"Settings",
"Armory",
"Close"
} or {
"Shop",
"Rank",
"Settings",
"Armory",
"Close"
}
else
v_u_1758 = v_u_1.gametype == "Tycoon" and (v_u_1._stats:FindFirstChild("EventLevel") and {
"Shop",
"Event",
"Settings",
"Close"
} or { "Shop", "Settings", "Close" }) or v1757
end
local _, _ = pcall(function()
-- upvalues: (ref) v_u_1, (ref) v_u_1758
if v_u_1.player:GetRankInGroup(22025) >= 202 then
local v1759 = v_u_1758
table.insert(v1759, 1, "Admin")
end
end)
local v1760 = v_u_1.gui.Buttons:GetChildren()
local v1761 = v_u_1758
for v1762 = 1, #v1760 do
local v1763 = false
for v1764 = 1, #v1761 do
if v1761[v1764] == v1760[v1762].Name or v1760[v1762].Name == "Menus" then
v1763 = true
break
end
end
v1760[v1762].Visible = v1763
end
v_u_1.sttings.TopButtonSize = v_u_1.sttings.buttonsettings.Size
local v1765 = v_u_1.sttings.buttonsettings.Size * #v1761 + (#v1761 - 1) * v_u_1.sttings.buttonsettings.Gap
local v1766 = 0
for v1767 = 1, #v1761 do
local v1768 = v_u_1.gui.Buttons[v1761[v1767]]
v1768.Size = UDim2.new(0, v_u_1.sttings.buttonsettings.Size, 0, v_u_1.sttings.buttonsettings.Size)
v1768.Position = UDim2.new(0.5, -v1765 / 2 + v_u_1.sttings.buttonsettings.Size * (v1767 - 1) + v_u_1.sttings.buttonsettings.Gap * (v1767 - 1), 0, 2 * v_u_1.sttings.topbaroffset + 2)
if _G.screentype == "cs" then
if v1768:FindFirstChild("TextLabel2") then
v1768.TextLabel2.Visible = false
end
elseif (_G.screentype == "ts s" or _G.screentype == "ts l") and v1768:FindFirstChild("TextLabel2") then
v1768.TextLabel2.Visible = false
end
if v1768.Button:FindFirstChild("TextLabel") then
v1768.Button.TextLabel.TextSize = v_u_1.sttings.buttonsettings.FontSize
elseif v1768:FindFirstChild("TextLabel") then
v1768.TextLabel.TextSize = v_u_1.sttings.buttonsettings.FontSize
end
if v1766 < v1768.Position.X.Offset + v1768.Size.X.Offset then
v1766 = v1768.Position.X.Offset + v1768.Size.X.Offset
end
end
v_u_1.sttings.closebuttonoriginalpos = v_u_1.gui.Buttons.Close.Position
v_u_1.sttings.TopButtonsSize = {
["X"] = v1765,
["Y"] = v_u_1.sttings.buttonsettings.Size + v_u_1.sttings.buttonsettings.Gap
}
_G.upd_sf()
end
function v_u_1.f_upd_sft()
-- upvalues: (copy) v_u_1
local v1769 = v_u_1._stats.Settings.StatsFrameSize
local v1770 = v_u_1.gui.StatsFrame:GetChildren()
local v1771 = {}
for v1772 = 1, #v1770 do
if v1770[v1772].ClassName == "TextLabel" then
local v1773 = v1770[v1772]
table.insert(v1771, v1773)
end
end
if _G.screentype == "ts s" then
local v1774 = v_u_1.f_ltfs
local v1775 = 24 * (v1769.Value / 10) + 0.5
v1774(v1771, (math.floor(v1775)))
return
elseif _G.screentype == "cs" then
local v1776 = v_u_1.f_ltfs
local v1777 = 36 * (v1769.Value / 10) + 0.5
v1776(v1771, (math.floor(v1777)))
else
local v1778 = v_u_1.f_ltfs
local v1779 = 36 * (v1769.Value / 10) + 0.5
v1778(v1771, (math.floor(v1779)))
end
end
function _G.upd_sf()
-- upvalues: (copy) v_u_1
local v1780 = 0
if v_u_1.sttings.TopButtonsSize then
v1780 = v1780 + v_u_1.sttings.TopButtonsSize.X / 2
v_u_1.gui.StatsFrame.Position = UDim2.new(0.5, v_u_1.sttings.TopButtonsSize.X / 2, 0, v_u_1.sttings.topbaroffset * 2)
end
if v_u_1.player.PlayerGui:FindFirstChild("PlayerListGui") and v_u_1.player.PlayerGui.PlayerListGui:FindFirstChild("TextButton") then
local v1781 = v_u_1.player.PlayerGui.PlayerListGui.TextButton.Position.X.Offset
v1780 = v1780 + math.abs(v1781)
end
if v_u_1.sttings.topbaroffset == 0 then
v_u_1.gui.StatsFrame.Size = UDim2.new(0.5, -v1780, 0, v_u_1.sttings.buttonsettings.Size + 4)
v_u_1.gui.MainMenu.Position = UDim2.new(0, 5, 0, v_u_1.sttings.buttonsettings.Size + 10)
v_u_1.gui.MainMenu.Size = UDim2.new(1, -10, 1, -(v_u_1.sttings.buttonsettings.Size + 10))
else
v_u_1.gui.StatsFrame.Size = UDim2.new(0.5, -v1780, 0, -v_u_1.sttings.topbaroffset * 2)
end
end
v_u_1.gui.StatsFrame.Changed:Connect(function(p1782)
-- upvalues: (copy) v_u_1
task.wait(0.1)
if p1782 == "Position" or p1782 == "AbsoluteSize" then
v_u_1.f_upd_sft()
end
end)
function v_u_1.f_upds(p1783, p1784)
-- upvalues: (copy) v_u_1
if p1783 == "Spectate" then
local v1785 = game.Players:GetChildren()
local v1786 = {}
for v1787 = 1, #v1785 do
if v1785[v1787].Character and v1785[v1787].Character:FindFirstChild("Beo") then
local v1788 = v1785[v1787].Character.Humanoid
table.insert(v1786, 1, v1788)
end
end
if #v1786 > 0 then
if p1784 == nil then
v_u_1.matchmaking.Spectator = v1786[v_u_1.rng:NextInteger(1, #v1786)]
elseif v_u_1.matchmaking.Spectator then
local v1789 = 1
for v1790 = 1, #v1786 do
if v1786[v1790] == v_u_1.matchmaking.Spectator then
v1789 = v1790
break
end
end
local v1791 = v1789 + p1784
local v1792
if v1791 <= 0 then
v1792 = #v1786
else
v1792 = #v1786 < v1791 and 1 or v1791
end
v_u_1.matchmaking.Spectator = v1786[v1792]
end
end
if v_u_1.matchmaking.Spectator then
v_u_1.ceamara.CameraType = Enum.CameraType.Custom
v_u_1.player.CameraMode = Enum.CameraMode.Classic
v_u_1.player.CameraMinZoomDistance = 5
v_u_1.ceamara.CameraSubject = v_u_1.matchmaking.Spectator
v_u_1.gui.Spectate.Visible = true
return
end
elseif p1783 == "Stop" then
if v_u_1.ceamara.CoordinateFrame ~= CFrame.new(workspace.MenuRoom.Spawn.Position, workspace.MenuRoom.GunSpawn.Position) then
v_u_1.ceamara.CameraType = Enum.CameraType.Scriptable
v_u_1.player.CameraMode = Enum.CameraMode.Classic
v_u_1.ceamara.CameraSubject = v_u_1.humanoid
v_u_1.ceamara.CoordinateFrame = CFrame.new(workspace.MenuRoom.Spawn.Position, workspace.MenuRoom.GunSpawn.Position)
workspace.CurrentCamera.Focus = workspace.MenuRoom.GunSpawn.CFrame
end
v_u_1.gui.Spectate.Visible = false
end
end
local v_u_1793 = v_u_1.gui.Deployed.Tools.Frame.Template:Clone()
function v_u_1.f_updtb()
-- upvalues: (copy) v_u_1, (copy) v_u_1793
local v1794 = _G.screentype == "ts s" and 35 or (_G.screentype == "cs" and 80 or 45)
local v1795 = _G.screentype == "ts s" and 7 or (_G.screentype == "cs" and 15 or 10)
local v1796 = _G.screentype == "ts s" and Enum.FontSize.Size12 or (_G.screentype == "cs" and Enum.FontSize.Size28 or Enum.FontSize.Size14)
v_u_1.gui.Messages.Bottom.Position = UDim2.new(0.5, -v_u_1.gui.Messages.Bottom.Size.X.Offset / 2, 1, -v1795 - v1794 - v1795 - v_u_1.gui.Messages.Bottom.Size.Y.Offset)
v_u_1.gui.Killfeed.Bottom.Position = UDim2.new(0.45, 0, 0.85, -v1795 - v1794 - v1795)
if _G.screentype == "cs" then
v_u_1.gui.Deployed.Interact.Size = UDim2.new(0.4, 0, 0, 50)
v_u_1.gui.Deployed.PriceGui.Size = UDim2.new(0.4, 0, 0.125, 0)
elseif _G.screentype == "ts s" then
v_u_1.gui.Deployed.Interact.Size = UDim2.new(0.4, 0, 0, 30)
v_u_1.gui.Deployed.PriceGui.Size = UDim2.new(0.4, 0, 0.2, 0)
else
v_u_1.gui.Deployed.Interact.Size = UDim2.new(0.4, 0, 0, 35)
v_u_1.gui.Deployed.PriceGui.Size = UDim2.new(0.4, 0, 0.1, 0)
end
v_u_1.gui.Deployed.PriceGui.Position = UDim2.new(0.3, 0, 1 - v_u_1.gui.Deployed.PriceGui.Size.Y.Scale, -v1795 - v1794 - v1795)
v_u_1.gui.Deployed.Interact.Position = UDim2.new(0.3, 0, 1 - v_u_1.gui.Deployed.PriceGui.Size.Y.Scale, -v1795 - v1794 - v1795 * 2 - v_u_1.gui.Deployed.Interact.Size.Y.Offset)
local v1797 = #v_u_1.mala * v1794 + v1795 * (#v_u_1.mala - 1)
v_u_1.gui.Deployed.Tools.Frame:ClearAllChildren()
v_u_1.sttings.ToolsSize = {
["X"] = v1797,
["Y"] = v1794 + v1795
}
local v1798 = v_u_1.f_ct(v_u_1.mala)
local v1799 = {
Enum.KeyCode.DPadUp,
Enum.KeyCode.DPadRight,
Enum.KeyCode.DPadLeft,
Enum.KeyCode.DPadDown,
Enum.KeyCode.ButtonY
}
for v_u_1800 = 1, #v1798 do
if v1798[v_u_1800] ~= nil then
local v1801 = v_u_1793:Clone()
v1801.Position = UDim2.new(0, -v1797 / 2 + v1794 * (v_u_1800 - 1) + v1795 * (v_u_1800 - 1), 0, -v1794 - v1795)
v1801.Size = UDim2.new(0, v1794, 0, v1794)
v1801.Name = v_u_1800
v1801.TextLabel1.Text = v_u_1800
if _G.ostype == "kb" then
v1801.TextLabel1.FontSize = Enum.FontSize.Size14
v1801.TextLabel1.Visible = true
else
v1801.TextLabel1.Visible = false
if _G.ostype == "cs" then
v1801.TextLabel1.Visible = false
local v1802 = v_u_1.UserInputService:GetImageForKeyCode(v1799[v_u_1800])
local v1803 = v_u_1.UserInputService:GetStringForKeyCode(v1799[v_u_1800])
if v1802 == nil or v1802 == "" then
if v1803 ~= nil and v1803 ~= "" then
v1801.TextLabel1.Visible = true
v1801.TextLabel1.Text = v1803
end
else
v1801.ImageLabel.Image = v1802
v1801.ImageLabel.Visible = true
end
end
end
if v1801.ImageLabel.Visible == false then
v1801.ImageLabel:Destroy()
end
v1801.TextLabel0.Text = v1798[v_u_1800]
v1801.TextLabel0.FontSize = v1796
if v_u_1.upgradedguns[v_u_1800] == true then
v1801.TextLabel2.Text = "Upgraded"
v1801.TextLabel2.Visible = true
v1801.BackgroundColor3 = BrickColor.new("Dusty Rose").Color
end
v1801.Activated:Connect(function()
-- upvalues: (ref) v_u_1, (copy) v_u_1800
v_u_1.f_psl2("Click")
if not _G.armory and v_u_1.downed == false then
v_u_1.f_ran("Change")
v_u_1.f_ce(v_u_1800)
end
end)
v1801.Parent = v_u_1.gui.Deployed.Tools.Frame
end
end
end
function v_u_1.f_r()
-- upvalues: (copy) v_u_1
if tick() - v_u_1.LastReload < 1.5 and v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value > 1 or (v_u_1.ce_in_action == true or (v_u_1.aiming == true or (v_u_1.bolting == true or (v_u_1.free == false or v_u_1.reloading == true)))) or (v_u_1.ammo.Mag.Value >= v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value + (v_u_1.module.extrachamber == false and 0 or 1) or v_u_1.ammo.Stored.Value <= 0) then
return false, false
end
v_u_1.LastReload = tick()
v_u_1.reloading = true
if v_u_1.aimed == true and v_u_1.cameramode == "fps" then
v_u_1.overrideaim = "unaim"
end
local v_u_1804 = {}
local v1805 = v_u_1.mala[v_u_1.gunnaseo] == "M1A1 Bazooka" and 0.5 or 0.2
local v_u_1806 = 0
local v1807 = false
local v_u_1808 = true
local v1809 = nil
local v1810 = nil
if v_u_1.module.reload1shell == true then
local v1811 = v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value - v_u_1.ammo.Mag.Value
if v1811 < v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value and v_u_1.module.extrachamber == nil then
v1811 = v1811 + 1
v1807 = true
end
for _ = 1, v1811 do
for v1812 = 1, #v_u_1.module.reloadanim do
local v1813 = v_u_1.module.reloadanim[v1812]
table.insert(v_u_1804, v1813)
end
end
if v1811 == v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value and (v1807 == false and (v_u_1.mala[v_u_1.gunnaseo] ~= "Striker" and v_u_1.mala[v_u_1.gunnaseo] ~= "Model 1860")) then
for v1814 = 1, #v_u_1.module.boltanim do
local v1815 = v_u_1.module.boltanim[v1814]
table.insert(v_u_1804, v1815)
end
end
elseif v_u_1.module.PumpWhenEmpty == true then
v_u_1804 = v_u_1.f_ct(v_u_1.module.reloadanim)
if v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value - v_u_1.ammo.Mag.Value == v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value and v1807 == false then
for v1816 = 1, #v_u_1.module.boltanim do
local v1817 = v_u_1.module.boltanim[v1816]
if v1816 == 1 then
v1817[6] = 0.25
end
table.insert(v_u_1804, v1817)
end
end
elseif v_u_1.module.loopreload == nil then
v_u_1804 = v_u_1.module.reloadanim
else
local v1818 = v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value - v_u_1.ammo.Mag.Value
local v1819 = v1818 / v_u_1.module.loopreload.Clip
local v1820 = math.ceil(v1819)
local _ = v1818 / v_u_1.module.loopreload.Clip
for v1821 = 1, v_u_1.module.loopreload.Insert - 1 do
local v1822 = v_u_1.module.reloadanim[v1821]
table.insert(v_u_1804, v1822)
end
for v1823 = 1, v1820 do
for v1824 = 1, #v_u_1.module.reloadloop do
local v1825 = v_u_1.module.reloadloop[v1824]
table.insert(v_u_1804, v1825)
if v_u_1.module.reloadloop[v1824][7] == "MagParts Visible" then
if v1823 <= v1818 / v_u_1.module.loopreload.Clip then
v_u_1804[#v_u_1804][10] = v_u_1.module.loopreload.Clip
else
v_u_1804[#v_u_1804][10] = v1818 % v_u_1.module.loopreload.Clip
end
end
end
end
for v1826 = v_u_1.module.loopreload.Insert, #v_u_1.module.reloadanim do
local v1827 = v_u_1.module.reloadanim[v1826]
table.insert(v_u_1804, v1827)
end
if v1818 < v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value and v_u_1.module.extrachamber == nil then
local _ = v1818 + 1
v1807 = true
end
end
if v_u_1.module.secondary == nil then
local _ = v_u_1.module.extrachamber == "false" or (v1807 ~= false or v_u_1.ammo.Mag.Value <= 0)
local _ = #v_u_1804
local v1828 = v_u_1.ammo.Mag and (v_u_1.weaponclasses[v_u_1.mala[v_u_1.gunnaseo]].Type == "Secondary" and (v_u_1.mala[v_u_1.gunnaseo] ~= "MAC-10" and (v_u_1.mala[v_u_1.gunnaseo] ~= "Shorty" and (v_u_1.mala[v_u_1.gunnaseo] ~= "TAC-14" and (v_u_1.mala[v_u_1.gunnaseo] ~= "KS-23M" and (v_u_1.mala[v_u_1.gunnaseo] ~= "Anaconda" and (v_u_1.mala[v_u_1.gunnaseo] ~= "Rsh-12" and (v_u_1.mala[v_u_1.gunnaseo] ~= ".500 Magnum" and (v_u_1.mala[v_u_1.gunnaseo] ~= "Double Barrel Shotgun" and (v_u_1.mala[v_u_1.gunnaseo] ~= "Model 1860" and (v_u_1.mala[v_u_1.gunnaseo] ~= "MP5K" and (v_u_1.mala[v_u_1.gunnaseo] ~= "TEC-9" and (v_u_1.mala[v_u_1.gunnaseo] ~= "Model 95 Derringer" and (v_u_1.mala[v_u_1.gunnaseo] ~= "TP-82" and v_u_1.ammo.Mag.Value <= 0)))))))))))))) and 999881868 or nil
if v_u_1804 and (v_u_1804[#v_u_1804] and (v_u_1804[#v_u_1804][7] and v_u_1804[#v_u_1804][7] == "finalstep")) then
table.remove(v_u_1804, #v_u_1804)
end
if v_u_1.sttings.Attachments == false or (v_u_1.attachments[1].Grip == "" or (v_u_1.gunnaseo ~= 1 or v_u_1.module.gripanim == nil)) then
v1810 = {
v_u_1.module.unequipanim[1],
v_u_1.module.unequipanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
v1805,
"finalstep",
v1828
}
else
v1810 = {
v_u_1.module.unequipanim[1],
v_u_1.module.gripanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
v1805,
"finalstep"
}
end
table.insert(v_u_1804, v1810)
v_u_1806 = #v_u_1804
elseif v_u_1.ammo.Mag then
if v_u_1.ammo.Mag.Value > 0 then
v_u_1806 = v_u_1.module.secondary + 1
if v_u_1804[v_u_1.module.secondary + 1][7] ~= "finalstep" then
if v_u_1.sttings.Attachments == false or (v_u_1.attachments[1].Grip == "" or v_u_1.gunnaseo ~= 1) then
v1809 = {
v_u_1.module.unequipanim[1],
v_u_1.module.unequipanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
v1805,
"finalstep"
}
else
v1809 = {
v_u_1.module.unequipanim[1],
v_u_1.module.gripanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
v1805,
"finalstep"
}
end
local v1829 = v_u_1.module.secondary + 1
table.insert(v_u_1804, v1829, v1809)
end
else
local _ = #v_u_1804
if v_u_1804[v_u_1.module.secondary + 1][7] == "finalstep" then
table.remove(v_u_1804, v_u_1.module.secondary + 1)
end
if v_u_1804[#v_u_1804][7] ~= "finalstep" then
local v1830
if v_u_1.sttings.Attachments == false or (v_u_1.attachments[1].Grip == "" or v_u_1.gunnaseo ~= 1) then
v1830 = {
v_u_1.module.unequipanim[1],
v_u_1.module.unequipanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
v1805,
"finalstep"
}
else
v1830 = {
v_u_1.module.unequipanim[1],
v_u_1.module.gripanim[2],
v_u_1.module.unequipanim[3],
v_u_1.module.unequipanim[4],
v_u_1.module.unequipanim[5],
v1805,
"finalstep"
}
end
table.insert(v_u_1804, v1830)
end
v_u_1806 = #v_u_1804
end
end
v_u_1.free = false
local v_u_1831 = false
local v1852, v1853 = pcall(function()
-- upvalues: (ref) v_u_1806, (ref) v_u_1, (ref) v_u_1808, (ref) v_u_1831, (ref) v_u_1804
for v1832 = 1, v_u_1806 do
if v_u_1.breakreload == true then
v_u_1808 = false
v_u_1.free = true
v_u_1.breakreload = false
v_u_1831 = true
return
end
if v_u_1.welds[1] then
local v1833
if v_u_1804[v1832][5] then
v1833 = v_u_1804[v1832][1] * v_u_1804[v1832][5]
else
v1833 = v_u_1804[v1832][1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v_u_1804[v1832][1] * v_u_1.PosWeldOffset, v_u_1804[v1832][6], "Reload")
end
if v1833 and v_u_1.welds[1].C0 ~= v1833 then
v_u_1.f_tw(v_u_1.welds[1], v1833, v_u_1804[v1832][6], "Reload")
end
end
if v_u_1.welds[2] ~= nil and (v_u_1.welds[2].C0 ~= v_u_1804[v1832][2] and v_u_1804[v1832][2]) then
v_u_1.f_tw(v_u_1.welds[2], v_u_1804[v1832][2], v_u_1804[v1832][6], "Reload")
end
if v_u_1.welds[4] ~= nil and v_u_1.welds[4].C0 ~= v_u_1804[v1832][3] then
v_u_1.f_tw(v_u_1.welds[4], v_u_1804[v1832][3], v_u_1804[v1832][6], "Reload")
end
if v_u_1804[v1832][4] ~= nil and (v_u_1.welds[5] == nil or v_u_1.welds[5].C0 ~= v_u_1804[v1832][4]) and ((v_u_1.weaponclasses[v_u_1.mala[v_u_1.gunnaseo]].Type ~= "Secondary" or (v1832 == #v_u_1804 or (v_u_1.mala[v_u_1.gunnaseo] == "MAC-10" or (v_u_1.mala[v_u_1.gunnaseo] == "Double Barrel Shotgun" or (v_u_1.mala[v_u_1.gunnaseo] == "MP5K" or (v_u_1.mala[v_u_1.gunnaseo] == "TEC-9" or v_u_1.mala[v_u_1.gunnaseo] == "Model 95 Derringer")))))) and (v_u_1.welds[5] and (v_u_1.mala[v_u_1.gunnaseo] ~= "SCAR-H" or (v1832 == 10 or (not v_u_1.ammo.Mag or v_u_1.ammo.Mag.Value > 0))))) then
if v_u_1.ammo.Mag and (v_u_1.ammo.Mag.Value <= 0 and (v_u_1.mala[v_u_1.gunnaseo] == "SCAR-H" and v1832 ~= 10)) then
v_u_1804[v1832][6] = 0.05
end
v_u_1.f_tw(v_u_1.welds[5], v_u_1804[v1832][4], v_u_1804[v1832][6], "Reload")
end
if v_u_1804[v1832][7] == "Drop" then
local v1834 = v_u_1.welds[4].Part1:Clone()
v1834.Name = "DroppedMag"
v_u_1.welds[4].Part1.Transparency = 1
v1834.CanCollide = false
v1834.Velocity = v_u_1.left_arm_model.Pos.CFrame.lookVector * 5 + v_u_1.left_arm_model.Pos.CFrame.rightVector * -10 + v_u_1.welds[4].Part1.Velocity
v1834.Parent = v_u_1.t
v_u_1.Debris:AddItem(v1834, 10)
elseif v_u_1804[v1832][7] == "Eject" then
local v1835 = v_u_1.welds[4].Part1:Clone()
v1835.Name = "DroppedMag"
v_u_1.welds[4].Part1.Transparency = 1
v1835.CanCollide = false
v1835.Velocity = v_u_1.left_arm_model.Pos.CFrame.lookVector * 5 + v_u_1.left_arm_model.Pos.CFrame.rightVector * 10 + v_u_1.welds[4].Part1.Velocity
v1835.Parent = v_u_1.t
v_u_1.Debris:AddItem(v1835, 10)
elseif v_u_1804[v1832][7] == "Eject up" then
local v1836 = v_u_1.welds[4].Part1:Clone()
v1836.Name = "DroppedMag"
v_u_1.welds[4].Part1.Transparency = 1
v1836.CanCollide = false
v1836.Velocity = v_u_1.left_arm_model.Pos.CFrame.upVector * 20 + v_u_1.left_arm_model.Pos.CFrame.rightVector * 5 + v_u_1.left_arm_model.Pos.CFrame.lookVector * 5 + v_u_1.welds[4].Part1.Velocity
v1836.Parent = v_u_1.t
v_u_1.Debris:AddItem(v1836, 10)
elseif v_u_1804[v1832][7] == "Down" and v_u_1.welds[4] ~= nil then
local v1837 = v_u_1.welds[4].Part1:Clone()
v1837.Name = "DroppedMag"
v_u_1.welds[4].Part1.Transparency = 1
v1837.CanCollide = false
v1837.Velocity = v_u_1.left_arm_model.Pos.CFrame.UpVector * -3 + v_u_1.welds[4].Part1.Velocity
v1837.Parent = v_u_1.t
v_u_1.Debris:AddItem(v1837, 10)
elseif v_u_1804[v1832][7] == "MagParts Visible" then
local v1838 = v_u_1.t.Mag:GetChildren()
local v1839 = false
for v1840 = 1, #v1838 do
if v1838[v1840]:IsA("BasePart") then
if v_u_1804[v1832][10] == nil then
v1838[v1840].Transparency = 0
else
v1839 = true
local v1841 = v1838[v1840].Name
if tonumber(v1841) <= v_u_1804[v1832][10] then
v1838[v1840].Transparency = 0
else
v1838[v1840].Transparency = 1
end
end
end
end
if v1839 == false then
v_u_1.f_cbv(true)
end
elseif v_u_1804[v1832][7] == "MagParts Invisible" then
local v1842 = v_u_1.t.Mag:GetChildren()
for v1843 = 1, #v1842 do
if v1842[v1843]:IsA("BasePart") then
v1842[v1843].Transparency = 1
end
end
elseif v_u_1804[v1832][7] == "Visible" then
if v_u_1.welds[4].Part1:FindFirstChild("OrigT") then
v_u_1.welds[4].Part1.Transparency = v_u_1.welds[4].Part1.OrigT.Value
else
v_u_1.welds[4].Part1.Transparency = 0
end
v_u_1.f_cbv(true)
elseif v_u_1804[v1832][7] == "Invisible" then
v_u_1.welds[4].Part1.Transparency = 1
elseif v_u_1804[v1832][7] == "Invisible Shells" then
v_u_1.t["LMG Slide"].Transparency = 1
elseif v_u_1804[v1832][7] == "Visible Shells" then
v_u_1.t["LMG Slide"].Transparency = 0
elseif v_u_1804[v1832][7] == "Dynamic LMG Slide 1" then
v_u_1.t["LMG Slide"].Transparency = 0
v_u_1.t.Rotator.Shells.Transparency = 1
elseif v_u_1804[v1832][7] == "Dynamic LMG Slide 2" then
v_u_1.t["LMG Slide"].Transparency = 1
v_u_1.t.Rotator.Shells.Transparency = 0
elseif v_u_1804[v1832][7] == "Eject Shells" then
local v1844 = v_u_1.t["LMG Slide"]:Clone()
v1844.Name = "DroppedMag"
v_u_1.t["LMG Slide"].Transparency = 1
v1844.CanCollide = false
v1844.Velocity = v_u_1.left_arm_model.Pos.CFrame.lookVector * -20 + v_u_1.t["LMG Slide"].Velocity
v1844.Parent = v_u_1.t
v_u_1.Debris:AddItem(v1844, 10)
elseif v_u_1804[v1832][7] == "Hide slide" then
if v_u_1.t:FindFirstChild("SlideInvisible") then
v_u_1.t.SlideInvisible.Transparency = 1
end
elseif v_u_1804[v1832][7] == "Show slide" then
if v_u_1.t:FindFirstChild("SlideInvisible") then
v_u_1.t.SlideInvisible.Transparency = 0
end
elseif v_u_1804[v1832][7] == "Show Shells" then
v_u_1.t["LMG Slide"].Transparency = 0
elseif v_u_1804[v1832][7] == "Invisible Box" then
if v_u_1.t:FindFirstChild("Box") then
local v1845 = v_u_1.t.Box:GetChildren()
for v1846 = 1, #v1845 do
if v1845[v1846]:IsA("BasePart") then
v1845[v1846].Transparency = 1
end
end
end
elseif v_u_1804[v1832][7] == "Visible Box" and v_u_1.t:FindFirstChild("Box") then
local v1847 = v_u_1.t.Box:GetChildren()
for v1848 = 1, #v1847 do
if v1847[v1848]:IsA("BasePart") then
v1847[v1848].Transparency = 0
end
end
end
if v_u_1804[v1832][8] ~= nil then
local v1849 = v_u_1804[v1832][8]
v_u_1.f_ps(v1849, 1, 1, nil, v_u_1.SoundService.Reload, 50)
end
if v_u_1804[1][9] ~= nil or v_u_1.mala[v_u_1.gunnaseo] == "M2HB" then
if v_u_1.mala[v_u_1.gunnaseo] == "M240" and v1832 == 13 or (v_u_1.mala[v_u_1.gunnaseo] == "PKP" and v1832 == 9 or (v_u_1.mala[v_u_1.gunnaseo] == "LSAT" and v1832 == 18 or (v_u_1.mala[v_u_1.gunnaseo] == "MG4" and v1832 == 9 or (v_u_1.mala[v_u_1.gunnaseo] == "M60" and v1832 == 14 or (v_u_1.mala[v_u_1.gunnaseo] == "M2HB" and v1832 == 6 or (v_u_1.mala[v_u_1.gunnaseo] == "M249" and v1832 == 9 or (v_u_1.mala[v_u_1.gunnaseo] == "XM250" and v1832 == 15 or v_u_1.mala[v_u_1.gunnaseo] == "RPD" and v1832 == 14))))))) then
for v1850 = 1, #v_u_1.bulletstrips2 do
v_u_1.bulletstrips2[v1850].Transparency = 0
end
end
if v_u_1804[1][9] and (v_u_1.welds[6] and (v_u_1.welds[6].C0 ~= v_u_1804[v1832][9] and v_u_1804[v1832][9])) then
v_u_1.f_tw(v_u_1.welds[6], v_u_1804[v1832][9], v_u_1804[v1832][6], "Reload")
end
end
task.wait(v_u_1804[v1832][6])
if v_u_1.welds[1] then
local v1851
if v_u_1804[v1832][5] then
v1851 = v_u_1804[v1832][1] * v_u_1804[v1832][5]
else
v1851 = v_u_1804[v1832][1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v_u_1804[v1832][1] * v_u_1.PosWeldOffset, v_u_1804[v1832][6], 0)
end
if v1851 and v_u_1.welds[1].C0 ~= v1851 then
v_u_1.f_tw(v_u_1.welds[1], v1851, v_u_1804[v1832][6], 0)
end
end
if v_u_1.welds[2] and v_u_1804[v1832][2] then
v_u_1.f_tw(v_u_1.welds[2], v_u_1804[v1832][2], 0)
end
if v_u_1.welds[4] and v_u_1804[v1832][3] then
v_u_1.f_tw(v_u_1.welds[4], v_u_1804[v1832][3], 0)
end
if v_u_1.module.SlideWhenEmpty == nil and (v_u_1.welds[5] and v_u_1804[v1832][4]) then
v_u_1.f_tw(v_u_1.welds[5], v_u_1804[v1832][4], 0)
end
if v_u_1.welds[6] and v_u_1804[v1832][9] then
v_u_1.f_tw(v_u_1.welds[6], v_u_1804[v1832][9], 0)
end
if v_u_1.module.reload1shell == true and v1832 % #v_u_1.module.reloadanim == 0 then
if v_u_1.ammo.Stored.Value > 0 then
if v_u_1.ammo.Mag.Value < v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value then
v_u_1.f_fe("Reloaded", "4")
end
else
task.spawn(function()
-- upvalues: (ref) v_u_1
v_u_1.f_ran()
end)
end
if v_u_1.ammo.Stored.Value <= 0 and (v_u_1.module.boltanim and v1832 < v_u_1806 - #v_u_1.module.boltanim) then
task.spawn(function()
-- upvalues: (ref) v_u_1
v_u_1.f_ran()
end)
end
end
end
end)
if v1852 == false then
v_u_1808 = false
warn("RELOAD ERROR:", v1853)
warn("RELOAD ERROR:", v_u_1.mala, v_u_1.gunnaseo, _G.armed)
end
if v_u_1808 then
local v1854 = v_u_1._stats.Loadout.Equipped.Value
local v1855 = v1854.Net_Loaded.Value
if v_u_1.module.extrachamber == nil then
v1855 = v1854.Net_Loaded.Value > 1 and v1854.Net_Loaded.Value + 1 or v1854.Net_Loaded.Value
end
local v1856
if v1854.Ammo_Loaded.Value > 0 then
v1856 = v1855 - v1854.Ammo_Loaded.Value
else
v1856 = v1854.Net_Loaded.Value
end
if v1856 <= v1854.Ammo_Stored.Value then
local v1857 = v1854.Ammo_Loaded
v1857.Value = v1857.Value + v1856
local v1858 = v1854.Ammo_Stored
v1858.Value = v1858.Value - v1856
elseif v1854.Ammo_Stored.Value > 0 then
v1854.Ammo_Loaded.Value = v1854.Ammo_Stored.Value
v1854.Ammo_Stored.Value = 0
end
if v1809 then
if v_u_1.welds[1] then
local v1859
if v1809[5] then
v1859 = v1809[1] * v1809[5]
else
v1859 = v1809[1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v1809[1] * v_u_1.PosWeldOffset, 0)
end
if v1859 and v_u_1.welds[1].C0 ~= v1859 then
v_u_1.f_tw(v_u_1.welds[1], v1859, 0)
end
end
if v_u_1.welds[2] and v1809[2] then
v_u_1.f_tw(v_u_1.welds[2], v1809[2], 0)
end
if v_u_1.welds[4] and v1809[3] then
v_u_1.f_tw(v_u_1.welds[4], v1809[3], 0)
end
if v_u_1.welds[5] and v1809[4] then
v_u_1.f_tw(v_u_1.welds[5], v1809[4], 0)
end
if v_u_1.welds[6] and v1809[9] then
v_u_1.f_tw(v_u_1.welds[6], v1809[9], 0)
end
elseif v1810 then
if v_u_1.welds[1] then
local v1860
if v1810[5] then
v1860 = v1810[1] * v1810[5]
else
v1860 = v1810[1]
end
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.f_tw(v_u_1.PosWeld, v1810[1] * v_u_1.PosWeldOffset, 0)
end
if v1860 and v_u_1.welds[1].C0 ~= v1860 then
v_u_1.f_tw(v_u_1.welds[1], v1860, 0)
end
end
if v_u_1.welds[2] and v1810[2] then
v_u_1.f_tw(v_u_1.welds[2], v1810[2], 0)
end
if v_u_1.welds[4] and v1810[3] then
v_u_1.f_tw(v_u_1.welds[4], v1810[3], 0)
end
if v_u_1.welds[5] and v1810[4] then
v_u_1.f_tw(v_u_1.welds[5], v1810[4], 0)
end
if v_u_1.welds[6] and v1810[9] then
v_u_1.f_tw(v_u_1.welds[6], v1810[9], 0)
end
end
v_u_1.free = true
v_u_1.reloading = false
v_u_1.bolted = true
v_u_1.f_fe("Reloaded", "3")
if v_u_1.RotatorCF0 then
v_u_1.RotatorCF0 = v_u_1.t.Rotator.SourceWeld.C0
end
v_u_1.f_cbv(0)
else
v_u_1.reloading = false
end
return v_u_1808, v_u_1831
end
function v_u_1.f_rms(p_u_1861, p_u_1862)
-- upvalues: (copy) v_u_1
task.spawn(function()
-- upvalues: (copy) p_u_1861, (ref) v_u_1, (copy) p_u_1862
if (workspace:FindFirstChild("Map") and p_u_1861 == "Prepare for the Next Wave" or p_u_1861 == "Prepare for") and workspace.Map:FindFirstChild("RealName") then
v_u_1.gui.RoundMessage.Map.Text = workspace.Map.RealName.Value
v_u_1.gui.RoundMessage.Map:TweenPosition(UDim2.new(0.5, -100, 0, v_u_1.sttings.topbaroffset * 2 + v_u_1.gui.RoundMessage.Map.Size.Y.Offset + 20), "Out", "Quad", 1.4, true)
end
v_u_1.gui.RoundMessage.Title.Text = p_u_1861
v_u_1.gui.RoundMessage.Round.Text = p_u_1862
v_u_1.gui.RoundMessage.Title:TweenPosition(UDim2.new(0.5, -100, 0.5, -30), "Out", "Quad", 2.1, true)
v_u_1.gui.RoundMessage.Round:TweenPosition(UDim2.new(0.5, -100, 0.5, 0), "Out", "Quad", 2.1, true)
task.wait(2)
v_u_1.gui.RoundMessage.Title:TweenPosition(UDim2.new(0.5, 0, 0.5, -30), "Out", "Quad", 2.1, true)
v_u_1.gui.RoundMessage.Round:TweenPosition(UDim2.new(0.5, -200, 0.5, 0), "Out", "Quad", 2.1, true)
task.wait(2.1)
v_u_1.gui.RoundMessage.Title:TweenPosition(UDim2.new(0, -250, 0.5, -30), "Out", "Quad", 2.1, true)
v_u_1.gui.RoundMessage.Round:TweenPosition(UDim2.new(1, 50, 0.5, 0), "Out", "Quad", 2.1, true)
v_u_1.gui.RoundMessage.Map:TweenPosition(UDim2.new(0.5, -100, 0, v_u_1.sttings.topbaroffset * 2 - 20 - v_u_1.gui.RoundMessage.Map.Size.Y.Offset), "Out", "Quad", 1, true)
end)
end
function v_u_1.f_rs_2(p1863, p1864)
-- upvalues: (copy) v_u_1
v_u_1.gui.CustomMessage.Title.Text = p1863
v_u_1.gui.CustomMessage.Round.Text = p1864
v_u_1.gui.CustomMessage.Title:TweenPosition(UDim2.new(0.5, -100, 0.5, -30), "Out", "Quad", 2.1, true)
v_u_1.gui.CustomMessage.Round:TweenPosition(UDim2.new(0.5, -100, 0.5, 0), "Out", "Quad", 2.1, true)
task.wait(2)
v_u_1.gui.CustomMessage.Title:TweenPosition(UDim2.new(0.5, 0, 0.5, -30), "Out", "Quad", 2.1, true)
v_u_1.gui.CustomMessage.Round:TweenPosition(UDim2.new(0.5, -200, 0.5, 0), "Out", "Quad", 2.1, true)
task.wait(2.1)
v_u_1.gui.CustomMessage.Title:TweenPosition(UDim2.new(0, -250, 0.5, -30), "Out", "Quad", 2.1, true)
v_u_1.gui.CustomMessage.Round:TweenPosition(UDim2.new(1, 50, 0.5, 0), "Out", "Quad", 2.1, true)
end
function v_u_1.f_pum(p1865)
-- upvalues: (copy) v_u_1
local v1866 = {
["Max Ammo"] = "",
["Silver Bullet"] = "x2 Damage!",
["Defender"] = "All barricades rebuilt!",
["Insta Kill"] = "",
["Nuke"] = "All zombies die!"
}
v_u_1.gui.PowerUpMessage.Visible = true
v_u_1.gui.PowerUpMessage.Title.Text = v1866[p1865]
v_u_1.gui.PowerUpMessage.Round.Text = p1865
v_u_1.gui.PowerUpMessage.Title:TweenPosition(UDim2.new(0.5, -100, 0, v_u_1.sttings.topbaroffset * 2 + 30 + v_u_1.sttings.TopButtonSize + 20), "Out", "Quad", 2.1, true)
v_u_1.gui.PowerUpMessage.Round:TweenPosition(UDim2.new(0.5, -100, 0, v_u_1.sttings.topbaroffset * 2 + v_u_1.sttings.TopButtonSize + 20), "Out", "Quad", 2.1, true)
task.wait(2)
if v_u_1.gui.PowerUpMessage.Title.Text == v1866[p1865] and v_u_1.gui.PowerUpMessage.Round.Text == p1865 then
v_u_1.gui.PowerUpMessage.Round:TweenPosition(UDim2.new(0.5, -200, 0, v_u_1.sttings.topbaroffset * 2 + v_u_1.sttings.TopButtonSize + 20), "Out", "Quad", 2.1, true)
task.wait(2.1)
if v_u_1.gui.PowerUpMessage.Title.Text == v1866[p1865] and v_u_1.gui.PowerUpMessage.Round.Text == p1865 then
v_u_1.gui.PowerUpMessage.Title:TweenPosition(UDim2.new(0, -250, 0, v_u_1.sttings.topbaroffset * 2 + 30 + v_u_1.sttings.TopButtonSize + 20), "Out", "Quad", 2.1, true)
v_u_1.gui.PowerUpMessage.Round:TweenPosition(UDim2.new(1, 50, 0, v_u_1.sttings.topbaroffset * 2 + v_u_1.sttings.TopButtonSize + 20), "Out", "Quad", 2.1, true)
task.wait(2.1)
if v_u_1.gui.PowerUpMessage.Title.Text == v1866[p1865] and v_u_1.gui.PowerUpMessage.Round.Text == p1865 then
v_u_1.gui.PowerUpMessage.Visible = false
end
end
end
end
function v_u_1.f_pso()
-- upvalues: (copy) v_u_1
v_u_1.gui.Notifications.Armory.Visible = false
v_u_1.gui.Notifications.Buy.Visible = false
v_u_1.gui.Notifications.Melee.Visible = false
v_u_1.gui.Notifications.Shop.Visible = true
if v_u_1.gui.Buttons.Menus.Shop.Visible == false then
v_u_1.f_ugs(v_u_1.gui.Notifications.Shop.Confirm)
end
end
function _G.f_pso()
-- upvalues: (copy) v_u_1
v_u_1.f_pso()
end
function v_u_1.f_ppd(p1867)
-- upvalues: (copy) v_u_1
v_u_1.perks_temporary[p1867].Acquired = true
v_u_1.f_updtpk()
v_u_1.f_updm()
end
local v_u_1868 = nil
local v_u_1869 = nil
function v_u_1.f_updmp(p_u_1870, p_u_1871)
-- upvalues: (ref) v_u_1869, (ref) v_u_1868, (copy) v_u_1
task.delay(1, function()
-- upvalues: (copy) p_u_1870, (ref) v_u_1869, (copy) p_u_1871, (ref) v_u_1868, (ref) v_u_1
if p_u_1870 and (p_u_1870.Parent and (p_u_1870.Name == "Map" and (p_u_1870.ClassName == "Folder" and p_u_1870 ~= v_u_1869))) then
if p_u_1871 == true then
workspace.Ignore.Map:ClearAllChildren()
v_u_1869 = nil
end
v_u_1869 = p_u_1870
repeat
task.wait(1)
until p_u_1870.Parent == nil or (p_u_1870 == nil or p_u_1870:FindFirstChild("Boundaries") and p_u_1870:FindFirstChild("Barricades"))
if p_u_1870 == nil or p_u_1870.Parent == nil then
v_u_1869 = nil
return
end
if p_u_1870:FindFirstChild("AC") then
p_u_1870.AC:Destroy()
end
if p_u_1870 and p_u_1870.Parent ~= nil then
if p_u_1870:FindFirstChild("Boundaries") then
local v1872 = p_u_1870.Boundaries:GetChildren()
for v1873 = 1, #v1872 do
local v1874 = v1872[v1873]:GetChildren()
for v1875 = 1, #v1874 do
if v1872[v1873].Name == "Player" then
v1874[v1875].Name = "Player Boundary"
v1874[v1875].CanCollide = true
end
v1874[v1875].Parent = workspace.Ignore.Map
end
end
end
if p_u_1870:FindFirstChild("Barricades") then
local v_u_1876 = p_u_1870.Barricades:GetChildren()
for v_u_1877 = 1, #v_u_1876 do
local v_u_1878 = v_u_1876[v_u_1877]:GetChildren()
for v_u_1879 = 1, #v_u_1878 do
if v_u_1878[v_u_1879].Name == "Astronomicon" or v_u_1878[v_u_1879].Name == "Spawn" then
v_u_1878[v_u_1879]:Destroy()
elseif v_u_1878[v_u_1879].Name == "Blocker" then
v_u_1878[v_u_1879].Parent = workspace.Ignore.Map
v_u_1878[v_u_1879].Changed:Connect(function()
-- upvalues: (copy) v_u_1878, (copy) v_u_1879, (copy) v_u_1876, (copy) v_u_1877
task.delay(1, function()
-- upvalues: (ref) v_u_1878, (ref) v_u_1879, (ref) v_u_1876, (ref) v_u_1877
if v_u_1878[v_u_1879].Parent == v_u_1876[v_u_1877] then
v_u_1878[v_u_1879].Parent = workspace.Ignore.Map
end
end)
end)
end
end
local v1880 = v_u_1876[v_u_1877].Parts:GetChildren()
for v1881 = 1, #v1880 do
v1880[v1881].Parent = workspace.Ignore.Map
end
local v_u_1882 = v_u_1876[v_u_1877]:FindFirstChild("Glass")
if v_u_1882 and v_u_1868 then
v_u_1868:Disconnect()
v_u_1868 = v_u_1882.Changed:Connect(function()
-- upvalues: (copy) v_u_1882, (ref) v_u_1868
if v_u_1882 and v_u_1882.Parent then
v_u_1882.Parent = workspace.Ignore.Map
end
v_u_1868:Disconnect()
end)
end
end
v_u_1.zinteract.barricade = p_u_1870.Barricades:GetChildren()
end
if p_u_1870:FindFirstChild("Turrets") then
v_u_1.zinteract.turrets = p_u_1870.Turrets:GetChildren()
end
if p_u_1870:FindFirstChild("PerkMachines") then
v_u_1.zinteract.powerupmachines = p_u_1870.PerkMachines:GetChildren()
end
if p_u_1870:FindFirstChild("Removable") then
v_u_1.zinteract.removables = p_u_1870.Removable:GetChildren()
end
end
end
end)
end
function v_u_1.f_updcz()
-- upvalues: (copy) v_u_1
local v1886, v1887 = pcall(function()
-- upvalues: (ref) v_u_1
if v_u_1.hrp and v_u_1.ceamara then
local v1883
if v_u_1.vf and v_u_1.vf.VehicleArray.Seated == true then
if v_u_1.vf.VehicleArray.CameraMode == "VehicleFPS" then
v_u_1.camerazoom = 0
return
end
if v_u_1.vf.VehicleArray.CameraMode == "Vehicle3PS" and (v_u_1.vf.VehicleArray.Model and v_u_1.vf.VehicleArray.Model:FindFirstChild("CamPartH")) then
v1883 = v_u_1.vf.VehicleArray.Model.CamPartH
else
v1883 = v_u_1.hrp
end
else
if v_u_1.cameramode ~= "3ps" then
v_u_1.camerazoom = 0
return
end
v1883 = v_u_1.hrp
end
local v1884 = (v1883.Position - v_u_1.ceamara.CFrame.Position).magnitude
local v1885 = math.floor(v1884)
v_u_1.camerazoom = v1885 < 5 and 0 or v1885
end
end)
if v1886 == false then
warn("f_updcz Error:", v1887)
end
end
function v_u_1.f_ccp(p1888)
-- upvalues: (copy) v_u_1
if p1888 > 0 then
v_u_1.camerazoom = v_u_1.camerazoom + p1888
if v_u_1.camerazoom > v_u_1.player.CameraMaxZoomDistance then
v_u_1.camerazoom = v_u_1.player.CameraMaxZoomDistance
end
if v_u_1.vf and (v_u_1.vf.VehicleArray.Seated == true and v_u_1.vf.VehicleArray.CameraMode == "VehicleFPS") then
v_u_1.vf.f_cm("Vehicle3PS")
v_u_1.f_updmouse()
_G.f_updml()
return
end
if v_u_1.cameramode == "fps" then
v_u_1.f_cm("3ps")
return
end
elseif p1888 <= 0 and v_u_1.camerazoom > 0 then
v_u_1.camerazoom = v_u_1.camerazoom + p1888
if v_u_1.camerazoom <= 3 then
if v_u_1.vf and (v_u_1.vf.VehicleArray.Seated == true and v_u_1.vf.VehicleArray.CameraMode == "Vehicle3PS") then
v_u_1.vf.f_cm("VehicleFPS")
v_u_1.f_updmouse()
_G.f_updml()
return
end
if v_u_1.cameramode == "3ps" then
v_u_1.f_cm("fps")
end
end
end
end
function v_u_1.f_aa(p1889, p1890)
-- upvalues: (copy) v_u_1
local v1891 = 0.343
local v1892 = 0
local v1893 = 0
if v_u_1.aimassist.Target then
local v1894 = p1890 == "3ps" and 15 or v1891
local v1895, _ = v_u_1.ceamara:WorldToViewportPoint(v_u_1.aimassist.Target.Position)
local v1896 = v_u_1.aimassist.Viewport.X / 2
local v1897 = v_u_1.aimassist.Viewport.Y / 2
local v1898 = v1895 - Vector3.new(v1896, v1897, 0)
local v1899 = v1894 * (v_u_1.ceamara.FieldOfView / 70)
local v1900 = v1898.X / v_u_1.aimassist.Viewport.X
if math.abs(v1900) > 0.005 then
if v1898.X > 0 then
v1892 = v1899 * p1889
elseif v1898.X < 0 then
v1892 = -v1899 * p1889
end
end
local v1901 = v1898.Y / v_u_1.aimassist.Viewport.Y
if math.abs(v1901) > 0.005 then
if v1898.Y > 0 then
v1893 = v1899 * p1889
elseif v1898.Y < 0 then
v1893 = -v1899 * p1889
end
end
if p1890 == "fps" then
v_u_1.cam.camAng = v_u_1.cam.camAng - Vector2.new(v1892, v1893)
return
end
v_u_1.f_shcm(Vector2.new(v1892, v1893))
end
end
workspace.CurrentCamera:GetPropertyChangedSignal("FieldOfView"):Connect(function()
-- upvalues: (copy) v_u_1
local v1902 = v_u_1.ceamara.FieldOfView / v_u_1.aim.FOV
v_u_1.AimSensitivityMultiplier = v1902 > 1 and 1 or (v1902 < 0.1 and 0.1 or v1902)
end)
function v_u_1.f_cang(p1903)
-- upvalues: (copy) v_u_1
local v1904 = (v_u_1.proned == true or v_u_1.proning == true) and 0.5235987755982988 or 1.3962634015954636
if v1904 < p1903.y then
p1903 = Vector2.new(p1903.x, v1904)
elseif p1903.y < -v1904 then
p1903 = Vector2.new(p1903.x, -v1904)
end
v_u_1.cam.camAng = Vector2.new(p1903.x, p1903.y)
end
function v_u_1.f_vc()
-- upvalues: (copy) v_u_1
if v_u_1.vf.VehicleArray.CameraMode == "VehicleFPS" then
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
if v_u_1.key.GamepadPan.Magnitude ~= 0 and v_u_1.vf.VehicleArray.Armed == true then
local v1905 = v_u_1.cam.camAng
local v1906 = Vector2.new
local v1907 = v_u_1.key.GamepadPan.X
local v1908 = math.rad(v1907)
local v1909 = v_u_1.key.GamepadPan.Y
local v1910 = v1905 - v1906(v1908, (math.rad(v1909))) * v_u_1.AimSensitivityMultiplier
v_u_1.f_cang(v1910)
local v1911 = -v_u_1.key.GamepadPan.X * 0.25 * v_u_1.AimSensitivityMultiplier
local v1912 = -v_u_1.key.GamepadPan.Y * 0.25 * v_u_1.AimSensitivityMultiplier
v_u_1.vf.f_updvr(v1911, v1912)
end
v_u_1.ceamara.CFrame = v_u_1.vf.VehicleArray.Model.CamPart.CFrame
v_u_1.ceamara.FieldOfView = v_u_1.vf.Settings.FOV
v_u_1.ceamara.CameraType = Enum.CameraType.Scriptable
v_u_1.player.CameraMode = Enum.CameraMode.LockFirstPerson
else
v_u_1.ceamara.FieldOfView = v_u_1.vf.Settings.FOV
v_u_1.ceamara.CameraSubject = v_u_1.vf.VehicleArray.Model.CamPartH
v_u_1.ceamara.CameraType = Enum.CameraType.Custom
v_u_1.player.CameraMode = Enum.CameraMode.Classic
end
if _G.ostype == "ts" and (v_u_1.player.CameraMode == Enum.CameraMode.LockFirstPerson and v_u_1.RunService:IsStudio() == true) then
v_u_1.player.CameraMode = Enum.CameraMode.Classic
end
end
function v_u_1.f_rs(p1913)
-- upvalues: (copy) v_u_1
local v1914 = v_u_1.ceamara.CFrame
local v1915 = v_u_1.torso.CFrame * v_u_1.Rig.HeadOffset
local v1916 = nil
if v_u_1.cameramode == "3ps" and (_G.ostype == "kb" and v_u_1._stats.Settings.Mode3PS.Value == "Classic") then
v_u_1.neck.C0 = v_u_1.neckCF.C0
if v_u_1.proned == true then
v_u_1.humanoid.CameraOffset = Vector3.new(0, -2, 0)
v_u_1.neck.C1 = v_u_1.neckCF.C1 * CFrame.Angles(v_u_1.Rig.HeadProned, 0, 0)
else
v_u_1.humanoid.CameraOffset = Vector3.new(0, 0, 0)
v_u_1.neck.C1 = v_u_1.neckCF.C1
end
else
local v1917, v1918
if v_u_1.cameramode == "fps" then
v1917 = v1914.Position + v1914.lookVector
v1918 = v1914
elseif v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
v1918 = v_u_1.head.CFrame
v1917 = v_u_1.aimassist.HitPos
else
v1918 = v_u_1.head.CFrame
v1917 = v_u_1.mouse.Hit.p
end
local _ = CFrame.lookAt(v1918.Position, v1917, v_u_1.torso.CFrame.UpVector).LookVector
local v1919
if v_u_1.cameramode == "3ps" and (v_u_1._stats.Settings.Mode3PS.Value == "Following" and _G.ostype == "kb") then
v1919 = v_u_1.mouse.UnitRay.Direction.unit
else
v1919 = (v1914.Position + v1914.LookVector * 1000 - v_u_1.hrp.Position).unit
end
local v1920 = 0
if v_u_1.proned == true or v_u_1.proning == true then
v1916 = v_u_1.f_angd(v_u_1.hrp.CFrame.lookVector, v_u_1.torso.CFrame.lookVector)
if v1916 == v1916 then
v1915 = v1915 * CFrame.Angles(v1916, 0, 0)
v1920 = 60
else
warn("HeadAngle = nan /", v1916)
v1916 = 0
end
end
local v1921 = v_u_1.f_angd(v1915.LookVector, v1919)
if math.deg(v1921) + v1920 <= 80 or v_u_1.cameramode == "fps" then
v_u_1.neck.C0 = v_u_1.torso.CFrame:toObjectSpace(v1915)
if v1916 == nil then
local v1922 = v_u_1.neck
local v1923 = CFrame.Angles
local v1924 = v1919.y
v1922.C1 = v1923(-math.asin(v1924), 0, 0)
v_u_1.humanoid.CameraOffset = Vector3.new(0, 0, 0)
else
local v1925 = math.deg(v1916) / 90
local v1926 = v_u_1.humanoid
local v1927 = v1925 * -2
v1926.CameraOffset = Vector3.new(0, v1927, 0)
local v1928 = v_u_1.neck
local v1929 = CFrame.Angles
local v1930 = v1919.y
v1928.C1 = v1929(-math.asin(v1930), 0, 0)
end
end
if v_u_1.humanoid.Sit == false then
local v1931 = v_u_1.hrp
local v1932 = CFrame.new(v_u_1.hrp.Position)
local v1933 = CFrame.Angles
local v1934 = v1919.X
local v1935 = v1919.Z
v1931.CFrame = v1932 * v1933(0, math.atan2(v1934, v1935) + 3.141592653589793, 0)
end
v_u_1.springs.gunRecoilSpring.t = v_u_1.recoilAnim.Rot
end
if _G.armed == true and (v_u_1.welds[1] and (v_u_1.welds[2] and (v_u_1.RightShoulder and (v_u_1.LeftShoulder and (v_u_1.RightShoulderC0 and (v_u_1.LeftShoulderC0 and v_u_1.Rig.ShoulderAngles)))))) then
local v1936
if v_u_1.sprinting == true then
v1936 = v_u_1.sprinting2 == true
else
v1936 = false
end
local v1937 = v_u_1.welds[1].Part0.CFrame * v_u_1.welds[1].C0 * CFrame.new(-0.35, -1, 0)
local v1938 = v_u_1.welds[2].Part0.CFrame * v_u_1.welds[2].C0 * CFrame.new(0.35, -1, 0)
local v1939 = v_u_1.RightShoulder.Part0.CFrame
local v1940 = v_u_1.LeftShoulder.Part0.CFrame
local v1941 = v1939 * v_u_1.RightShoulderC0 * CFrame.new(0, -0.25, 0)
local v1942 = v1940 * v_u_1.LeftShoulderC0 * CFrame.new(0, -0.25, 0)
if v_u_1.humanoid.RigType == Enum.HumanoidRigType.R6 then
v1941 = CFrame.lookAlong(v1941.Position, v1915.LookVector)
v1942 = CFrame.lookAlong(v1942.Position, v1915.LookVector)
end
if v1916 ~= nil then
v1941 = v1941 * CFrame.Angles(v1916, 0, 0)
v1942 = v1942 * CFrame.Angles(v1916, 0, 0)
end
local v1943 = (v1941.Position - v1937.Position).Magnitude
local v1944 = (v1942.Position - v1938.Position).Magnitude
local v1945 = {
["R"] = -(2 - v1943),
["L"] = -(2 - v1944)
}
if v_u_1.player:GetAttribute("LayeredClothing") == false then
if v1945.R > 0.75 then
v1945.R = 0.75
elseif v1945.R < -1 then
v1945.R = -0.75
end
if v1945.L > 0.75 then
v1945.L = 0.75
elseif v1945.L < -0.75 then
v1945.L = -0.75
end
end
local v1946 = CFrame.lookAt(v1941.Position, v1937.Position, v1937.LookVector)
local v1947
if v1944 > 2 and (v_u_1.reloading == false and v1936 == false) then
local v1948 = v1942:ToObjectSpace(v1938)
local v1949 = v1948.Position.Z
local v1950 = math.abs(v1949)
local v1951 = v1948.Position.X
local v1952 = math.abs(v1951) + v_u_1.recoilAnim.Pos.Z
local v1953 = v1950 ^ 2 + v1952 ^ 2
math.sqrt(v1953)
if v1952 > 0.5 then
local v1954 = v1946 + v1946.LookVector * v1952
v1947 = CFrame.lookAt(v1942.Position, v1954.Position, v1937.LookVector)
else
v1947 = CFrame.lookAt(v1942.Position, v1938.Position, v1938.LookVector)
end
else
v1947 = CFrame.lookAt(v1942.Position, v1938.Position, v1938.LookVector)
end
local v1955 = v1946 + v1946.LookVector * v1945.R
local v1956 = v1947 + v1947.LookVector * v1945.L
local v1957 = v1955 * v_u_1.Rig.ShoulderAngles[1]
local v1958 = v1956 * v_u_1.Rig.ShoulderAngles[2]
v_u_1.RightShoulder.C0 = v_u_1.RightShoulder.C0:lerp(v1939:ToObjectSpace(v1957), 0.5)
v_u_1.LeftShoulder.C0 = v_u_1.LeftShoulder.C0:lerp(v1940:ToObjectSpace(v1958), 0.5)
elseif v_u_1.RightShoulder and (v_u_1.LeftShoulder and (v_u_1.RightShoulderC0 and v_u_1.LeftShoulderC0)) then
v_u_1.RightShoulder.C0 = v_u_1.RightShoulder.C0:lerp(v_u_1.RightShoulderC0, 0.5)
v_u_1.LeftShoulder.C0 = v_u_1.LeftShoulder.C0:lerp(v_u_1.LeftShoulderC0, 0.5)
end
if v_u_1.cameramode == "3ps" and (_G.screentype == "kb" and v_u_1.UserInputService.MouseIconEnabled == false) then
v_u_1.f_updmouse("Visible")
end
if _G.BaseCamera == false and v_u_1.deployed == true then
v_u_1.gui.Deployed.Visible = true
end
if v_u_1.viewmodelT == 1 then
if v_u_1.cameramode == "3ps" or v_u_1.rsaimed == false then
v_u_1.f_mti("orig")
end
elseif v_u_1.rsaimed == true and v_u_1.cameramode == "fps" then
v_u_1.f_mti(1)
end
if v_u_1.cameramode == "fps" then
v_u_1.springs.camRecoilSpring.t = v_u_1.camOffsets.Recoil.Rot
end
if v_u_1.cameramode == "fps" or v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
v_u_1.crosshair.Position = UDim2.new(0.5, 0, 0.5, v_u_1.sttings.topbaroffset)
v_u_1.gui.Hitmarker.Position = UDim2.new(0.5, 0, 0.5, v_u_1.sttings.topbaroffset)
v_u_1.gui.Deployed.Image.Position = UDim2.new(0.5, 0, 0.5, v_u_1.sttings.topbaroffset)
else
v_u_1.crosshair.Position = UDim2.new(0, v_u_1.mouse.X, 0, v_u_1.mouse.Y)
v_u_1.gui.Hitmarker.Position = UDim2.new(0, v_u_1.mouse.X, 0, v_u_1.mouse.Y)
end
local v1959 = v_u_1.springs.gunMomentum
local v1960 = v_u_1.Offset.desiredXOffset
local v1961 = v_u_1.Offset.desiredYOffset
v1959.t = Vector3.new(v1960, v1961, 0)
local v1962 = v_u_1.springs.gunMomentum.p
v_u_1.Offset.currentXOffset = v1962.X / v_u_1.springs.gunMomentumMaxInput
v_u_1.Offset.currentYOffset = v1962.Y / v_u_1.springs.gunMomentumMaxInput
if v_u_1.sprintangleslocked == false then
if v_u_1.gunnaseo == 4 and v_u_1.sprinting ~= false or (v_u_1.reloading ~= false or _G.armed ~= true and v_u_1.sprintanglesoverride ~= true) then
v_u_1.sprintangles[1] = 0
v_u_1.sprintangles[2] = 0
v_u_1.sprintangles[3] = 0
else
v_u_1.f_sprtangles(p1913)
end
end
local v1963, v1964 = v_u_1.f_gacf(p1913)
v_u_1.ftweld.C0 = v1963
v_u_1.ftweld.C1 = v1964
if v_u_1.gametype == "Zombies" then
local v1965 = v_u_1.perk == "Doomslayer" and 1.1 or (v_u_1.perk == "Multitasker" and 1.09 or 1)
if v_u_1.perks_temporary["Goala Cola"].Acquired then
v1965 = v1965 + 0.1
end
if v_u_1.proned == true or (v_u_1.proning == true or v_u_1.vf and (v_u_1.vf.VehicleArray and v_u_1.vf.VehicleArray.Seated == true)) then
v_u_1.humanoid.WalkSpeed = v1965 * 10
v_u_1.humanoid.JumpPower = 0
elseif v_u_1.crouched == true or v_u_1.crouching == true then
v_u_1.humanoid.WalkSpeed = v1965 * 14
v_u_1.humanoid.JumpPower = 0
elseif v_u_1.sprinting == true then
v_u_1.humanoid.WalkSpeed = v1965 * 20
v_u_1.humanoid.JumpPower = 50
elseif v_u_1.downed == true then
v_u_1.humanoid.WalkSpeed = v1965 * 7
v_u_1.humanoid.JumpPower = 0
else
v_u_1.humanoid.WalkSpeed = v1965 * 16
v_u_1.humanoid.JumpPower = 50
end
elseif v_u_1.gametype == "Tycoon" then
if _G.armory == true or _G.BaseCamera == true then
v_u_1.humanoid.WalkSpeed = 0
v_u_1.humanoid.JumpPower = 0
elseif v_u_1.proned == true or (v_u_1.proning == true or v_u_1.vf and (v_u_1.vf.VehicleArray and v_u_1.vf.VehicleArray.Seated == true)) then
v_u_1.humanoid.WalkSpeed = 7
v_u_1.humanoid.JumpPower = 0
elseif v_u_1.crouched == true or v_u_1.crouching == true then
v_u_1.humanoid.WalkSpeed = 10
v_u_1.humanoid.JumpPower = 0
elseif v_u_1.sprinting == true then
v_u_1.humanoid.WalkSpeed = 21
v_u_1.humanoid.JumpPower = 50
else
v_u_1.humanoid.WalkSpeed = 16
v_u_1.humanoid.JumpPower = 50
end
end
if v_u_1._stats.Settings.ValueMessage.Value == true then
if v_u_1.valuemessages.Money.Value > 0 then
v_u_1.valuemessages.Money.Transparency = v_u_1.valuemessages.Money.Transparency < 60 and v_u_1.valuemessages.Money.Transparency + v_u_1.valuemessages.Rate or v_u_1.valuemessages.Money.Transparency
v_u_1.gui.Crosshair.Money.Text = "+$" .. v_u_1.valuemessages.Money.Total
v_u_1.gui.Crosshair.Money.TextStrokeTransparency = 1 - 0.25 * (v_u_1.valuemessages.Money.Transparency / 60)
v_u_1.gui.Crosshair.Money.TextTransparency = 1 - 1 * (v_u_1.valuemessages.Money.Transparency / 60)
else
v_u_1.valuemessages.Money.Transparency = v_u_1.valuemessages.Money.Transparency > 0 and v_u_1.valuemessages.Money.Transparency - v_u_1.valuemessages.Rate or v_u_1.valuemessages.Money.Transparency
v_u_1.gui.Crosshair.Money.TextStrokeTransparency = 1 - 0.25 * (v_u_1.valuemessages.Money.Transparency / 60)
v_u_1.gui.Crosshair.Money.TextTransparency = 1 - 1 * (v_u_1.valuemessages.Money.Transparency / 60)
end
if v_u_1.valuemessages.Points.Value > 0 then
v_u_1.valuemessages.Points.Transparency = v_u_1.valuemessages.Points.Transparency < 60 and v_u_1.valuemessages.Points.Transparency + v_u_1.valuemessages.Rate or v_u_1.valuemessages.Points.Transparency
v_u_1.gui.Crosshair.Points.Text = "+" .. v_u_1.valuemessages.Points.Total
v_u_1.gui.Crosshair.Points.TextStrokeTransparency = 1 - 0.25 * (v_u_1.valuemessages.Points.Transparency / 60)
v_u_1.gui.Crosshair.Points.TextTransparency = 1 - 1 * (v_u_1.valuemessages.Points.Transparency / 60)
else
v_u_1.valuemessages.Points.Transparency = v_u_1.valuemessages.Points.Transparency > 0 and v_u_1.valuemessages.Points.Transparency - v_u_1.valuemessages.Rate or v_u_1.valuemessages.Points.Transparency
v_u_1.gui.Crosshair.Points.TextStrokeTransparency = 1 - 0.25 * (v_u_1.valuemessages.Points.Transparency / 60)
v_u_1.gui.Crosshair.Points.TextTransparency = 1 - 1 * (v_u_1.valuemessages.Points.Transparency / 60)
end
if v_u_1.valuemessages.EXP.Value > 0 then
v_u_1.valuemessages.EXP.Transparency = v_u_1.valuemessages.EXP.Transparency < 60 and v_u_1.valuemessages.EXP.Transparency + v_u_1.valuemessages.Rate or v_u_1.valuemessages.EXP.Transparency
v_u_1.gui.Crosshair.EXP.Text = "+" .. v_u_1.valuemessages.EXP.Total .. " XP"
v_u_1.gui.Crosshair.EXP.TextStrokeTransparency = 1 - 0.25 * (v_u_1.valuemessages.EXP.Transparency / 60)
v_u_1.gui.Crosshair.EXP.TextTransparency = 1 - 1 * (v_u_1.valuemessages.EXP.Transparency / 60)
else
v_u_1.valuemessages.EXP.Transparency = v_u_1.valuemessages.EXP.Transparency > 0 and v_u_1.valuemessages.EXP.Transparency - v_u_1.valuemessages.Rate or v_u_1.valuemessages.EXP.Transparency
v_u_1.gui.Crosshair.EXP.TextStrokeTransparency = 1 - 0.25 * (v_u_1.valuemessages.EXP.Transparency / 60)
v_u_1.gui.Crosshair.EXP.TextTransparency = 1 - 1 * (v_u_1.valuemessages.EXP.Transparency / 60)
end
else
v_u_1.gui.Crosshair.Money.TextStrokeTransparency = 1
v_u_1.gui.Crosshair.Money.TextTransparency = 1
v_u_1.gui.Crosshair.Points.TextStrokeTransparency = 1
v_u_1.gui.Crosshair.Points.TextTransparency = 1
v_u_1.gui.Crosshair.EXP.TextStrokeTransparency = 1
v_u_1.gui.Crosshair.EXP.TextTransparency = 1
end
if v_u_1.firing == false and _G.armed then
v_u_1.f_upspd(false, p1913)
end
local v1966 = v_u_1.aim.n
local _ = math.min(v1966, 1) * 90
if v_u_1.reloading == false or v_u_1.overrideaim ~= "" then
local _ = 1 / p1913
v_u_1.aimdirection = nil
local v1967 = v_u_1.aimed
if v_u_1.gunnaseo == 4 or (v_u_1.module.NoADS ~= nil or (v_u_1.overrideaim ~= "" or (v_u_1.b2 ~= true or (v_u_1.overrideaim == "unaim" or (v_u_1.aim.n >= 1 or (_G.armed ~= true or (v_u_1.sprinting ~= false or (not v_u_1.ammo.Mag or v_u_1.bolting ~= false)))))))) then
if (v_u_1.overrideaim == "unaim" or (v_u_1.b2 == false or _G.armed == false)) and v_u_1.aim.n > 0 then
v_u_1.aiming = true
v_u_1.free = false
v_u_1.aim.n = v_u_1.aim.n - p1913 * v_u_1.sttings.tADS * v_u_1.sttings.ADSModifier
if v_u_1.aim.n <= 0 and v_u_1.aiming == true then
v_u_1.overrideaim = ""
v_u_1.aimed = false
v_u_1.aiming = false
v_u_1.free = true
v_u_1.aim.n = 0
v_u_1.Anim.aimAlpha = 0.5
if v1967 ~= false then
v_u_1.f_updmouse()
_G.f_updml()
end
else
if v_u_1.aim.n > 0.5 then
v_u_1.free = true
if v1967 ~= false then
v_u_1.f_updmouse()
_G.f_updml()
end
end
v_u_1.Anim.aimAlpha = 1 - 0.5 * (1 - v_u_1.aim.n)
end
if v_u_1.t:FindFirstChild("Invisible1") then
v_u_1.t.Invisible1.Transparency = 0
end
if v_u_1.t:FindFirstChild("Invisible2") then
v_u_1.t.Invisible2.Transparency = 0
end
end
else
v_u_1.aiming = true
v_u_1.free = false
v_u_1.aimdirection = "in"
v_u_1.aim.n = v_u_1.aim.n + p1913 * v_u_1.sttings.tADS * v_u_1.sttings.ADSModifier
if v_u_1.aim.n >= 1 then
v_u_1.aimed = true
v_u_1.aiming = false
v_u_1.free = true
v_u_1.aim.n = 1
v_u_1.Anim.aimAlpha = 1
if v1967 ~= true then
v_u_1.f_updmouse("Invisible")
end
if v_u_1.t:FindFirstChild("Invisible1") then
v_u_1.t.Invisible1.Transparency = 1
end
if v_u_1.t:FindFirstChild("Invisible2") then
v_u_1.t.Invisible2.Transparency = 1
end
else
if v_u_1.aim.n > 0.5 then
v_u_1.free = true
if v1967 ~= true then
v_u_1.f_updmouse("Invisible")
end
end
v_u_1.Anim.aimAlpha = 0.5 + 0.5 * v_u_1.aim.n
end
end
if v_u_1.b2 == true and (v_u_1.overrideaim == "" and (v_u_1.gunnaseo ~= 4 and (v_u_1.aim.state == "unaimed" and (v_u_1.aim.n >= 0.7 and _G.armed == true)))) then
v_u_1.aim.state = "aimed"
if (v_u_1.sttings.Attachments and (v_u_1.attachments[1].Optic ~= "" and v_u_1.gunnaseo == 1) or v_u_1.gunnaseo == 5 and v_u_1.module.DefaultOptic ~= nil) and v_u_1.cameramode == "fps" then
if v_u_1.f_cgt(v_u_1.attachments[1].Optic, {
"RS",
"CL",
"BLS",
"PKS-07",
"PSO-1",
"Optic_Cross"
}) == false then
if v_u_1.gui.Deployed.Image:FindFirstChild("Image") then
v_u_1.gui.Deployed.Image.Image.Visible = v_u_1.bolting == false
return
end
elseif v_u_1.rsaimed == false then
v_u_1.f_mti(1)
v_u_1.rsaimed = true
v_u_1.f_mi(1)
v_u_1.f_updsil()
v_u_1.Scope.Visible = true
for v1968 = 1, #v_u_1.bulletstrips2 do
v_u_1.bulletstrips2[v1968].Transparency = 1
end
if v_u_1.t and v_u_1.t:FindFirstChild("Mag") then
local v1969 = v_u_1.t.Mag:GetChildren()
for v1970 = 1, #v1969 do
if v1969[v1970]:IsA("BasePart") then
v1969[v1970].Transparency = 1
end
end
return
end
end
end
elseif (v_u_1.b2 == false or (v_u_1.overrideaim == "unaim" or v_u_1.gunnaseo == 4)) and v_u_1.aim.state == "aimed" or (_G.armed == false or v_u_1.cameramode ~= "fps") then
v_u_1.aim.state = "unaimed"
if v_u_1.sttings.Attachments and v_u_1.attachments[1].Optic ~= "" or v_u_1.gunnaseo == 5 and v_u_1.module.DefaultOptic ~= nil then
if v_u_1.f_cgt(v_u_1.attachments[1].Optic, {
"RS",
"CL",
"BLS",
"PKS-07",
"PSO-1",
"Optic_Cross"
}) == false then
local v1971 = v_u_1.gui.Deployed.Image:GetChildren()
for v1972 = 1, #v1971 do
if v1971[v1972].Name ~= "1" then
v1971[v1972].Visible = false
end
end
if v_u_1.rsaimed == true then
v_u_1.f_mti("orig")
end
if _G.armed == true and v_u_1.cameramode == "fps" then
v_u_1.f_mi(0)
return
end
elseif v_u_1.rsaimed == true then
v_u_1.rsaimed = false
v_u_1.f_mti("orig")
if _G.armed == true and v_u_1.cameramode == "fps" then
v_u_1.f_mi(0)
end
v_u_1.Scope.Visible = false
v_u_1.f_bstrpT()
v_u_1.f_cbv(0)
end
end
end
end
end
v_u_1.proximity = {
["text_interact"] = nil,
["text_hint"] = nil,
["found"] = nil,
["powerupfound"] = nil,
["mysteryboxfound"] = nil,
["mysteryowned"] = nil,
["removablefound"] = nil,
["upgrader"] = nil
}
v_u_1.bart = 0.75
function v_u_1.f_rs3()
-- upvalues: (copy) v_u_1
if v_u_1.deployed == false or v_u_1.downed == true then
return
end
local v1973 = v_u_1.proximity
local v1974 = v_u_1.proximity
local v1975 = v_u_1.proximity
local v1976 = v_u_1.proximity
local v1977 = v_u_1.proximity
local v1978 = v_u_1.proximity
v1973.found = false
v1974.powerupfound = false
v1975.removablefound = false
v1976.upgrader = false
v1977.mysteryowned = false
v1978.text_interact = nil
v_u_1.proximity.player = nil
if v_u_1.downed == false then
local v1979 = game.Players:GetChildren()
for v1980 = 1, #v1979 do
if v1979[v1980] ~= v_u_1.player and (v1979[v1980].Character and (v1979[v1980].Character:FindFirstChild("HumanoidRootPart") and (v1979[v1980].Character:FindFirstChild("Humanoid") and (v1979[v1980].Character.Humanoid.Health <= 5 and (v1979[v1980].Character.HumanoidRootPart.Position - v_u_1.hrp.Position).magnitude <= 10)))) then
v_u_1.proximity.found = true
v_u_1.proximity.player = v1979[v1980]
if v_u_1.perks_temporary["Quick Revive"].Acquired == true then
v_u_1.bart = 2
else
v_u_1.bart = 3
end
break
end
end
end
if not v_u_1.proximity.found then
v_u_1.bart = 0.75
if v_u_1.hrp and (v_u_1.zinteract.barricade and (v_u_1.zinteract.turrets and (v_u_1.zinteract.powerupmachines and (v_u_1.zinteract.removables and workspace.Map:FindFirstChild("Upgrades"))))) then
if (workspace.Map.Upgrades.Upgrader.Glass.Position - v_u_1.hrp.Position).magnitude <= 7 then
if workspace.Map.Upgrades.Upgrader.Green.Transparency == 0 and (workspace.Map.Upgrades.Upgrader.Blue.Transparency == 0 and (workspace.Map.Upgrades.Upgrader.Purple.Transparency == 0 and workspace.Map.Upgrades.Upgrader.Red.Transparency == 0)) then
v_u_1.proximity.upgrader = true
else
v_u_1.proximity.upgrader = true
v_u_1.proximity.text_hint = "Fill all 4 soul spheres to unlock"
end
else
v_u_1.proximity.text_hint = nil
end
if not v_u_1.proximity.upgrader then
for v1981 = 1, #v_u_1.zinteract.barricade do
if v_u_1.zinteract.barricade[v1981]:FindFirstChild("PositionValue") and (v_u_1.zinteract.barricade[v1981].PositionValue.Value - v_u_1.hrp.Position).magnitude <= 7 then
v_u_1.buildtarget.Model = v_u_1.zinteract.barricade[v1981]
v_u_1.buildtarget.Type = "Barricade"
v_u_1.proximity.found = true
break
end
end
if not v_u_1.proximity.found then
for v1982 = 1, #v_u_1.zinteract.turrets do
if v_u_1.zinteract.turrets[v1982]:FindFirstChild("Joint") and (v_u_1.zinteract.turrets[v1982].Joint.Position - v_u_1.hrp.Position).magnitude <= 10 then
v_u_1.buildtarget.Model = v_u_1.zinteract.turrets[v1982]
v_u_1.buildtarget.Type = "Turret"
v_u_1.proximity.found = true
break
end
end
if not v_u_1.proximity.found then
for v1983 = 1, #v_u_1.zinteract.powerupmachines do
if not v_u_1.perks_temporary[v_u_1.zinteract.powerupmachines[v1983].Name].Acquired and (v_u_1.zinteract.powerupmachines[v1983]:FindFirstChild("Source") and (v_u_1.zinteract.powerupmachines[v1983].Source.Position - v_u_1.hrp.Position).magnitude <= 10) then
v_u_1.proximity.powerupfound = true
v_u_1.perkmachine.Name = v_u_1.zinteract.powerupmachines[v1983].Name
end
end
if not v_u_1.proximity.powerupfound then
for v1984 = 1, #v_u_1.zinteract.removables do
if v_u_1.zinteract.removables[v1984]:FindFirstChild("Source") and (v_u_1.zinteract.removables[v1984].Source.Position - v_u_1.hrp.Position).magnitude <= 10 then
v_u_1.proximity.removablefound = v_u_1.zinteract.removables[v1984]
break
end
end
end
end
end
end
end
if workspace.Map:FindFirstChild("Upgrades") and workspace.Map.Upgrades:FindFirstChild("MysteryBox") then
if game.ReplicatedStorage.Matchmaking.Mystery.Player.Value == v_u_1.player.Name and workspace.Map:FindFirstChild("Upgrades") then
v_u_1.proximity.mysteryowned = (workspace.Map.Upgrades.MysteryBox.Source.Position - v_u_1.hrp.Position).magnitude <= 5
elseif game.ReplicatedStorage.Matchmaking.Mystery.Value == "1" and workspace.Map:FindFirstChild("Upgrades") then
v_u_1.proximity.mysteryboxfound = (workspace.Map.Upgrades.MysteryBox.Source.Position - v_u_1.hrp.Position).magnitude <= 5
elseif game.ReplicatedStorage.Matchmaking.Mystery.Value == "0" then
v_u_1.proximity.mysteryboxfound = false
end
end
end
if v_u_1.proximity.found then
if v_u_1.buildtarget.Type == "Turret" then
if v_u_1.buildtarget.Model.Activated.Value == false then
v_u_1.proximity.text_interact = "Activate [" .. v_u_1.key.holdprompt .. "]"
end
elseif v_u_1.buildtarget.Type == "Barricade" then
if v_u_1.buildtarget.Model.Health.Value < 100 then
v_u_1.proximity.text_interact = "Repair [" .. v_u_1.key.holdprompt .. "]"
else
v_u_1.proximity.text_interact = nil
end
end
end
if v_u_1.proximity.player == nil then
if v_u_1.proximity.mysteryowned then
v_u_1.buildtarget.Model = nil
v_u_1.buildtarget.Type = nil
v_u_1.gui.SelectionBox.Adornee = nil
v_u_1.proximity.text_interact = "Select [" .. v_u_1.key.holdprompt .. "]"
v_u_1.proximity.text_hint = nil
elseif v_u_1.proximity.mysteryboxfound then
v_u_1.buildtarget.Model = nil
v_u_1.buildtarget.Type = nil
v_u_1.gui.SelectionBox.Adornee = nil
v_u_1.proximity.text_interact = "Purchase [" .. v_u_1.key.holdprompt .. "]"
v_u_1.proximity.text_hint = nil
v_u_1.gui.Deployed.PriceGui.Visible = true
v_u_1.gui.Deployed.PriceGui.TextLabel1.Text = "Mystery Machine"
v_u_1.gui.Deployed.PriceGui.TextLabel2.Text = "750 points"
v_u_1.gui.Deployed.PriceGui.TextLabel3.Text = "Buy a third gun until respawn"
elseif v_u_1.proximity.removablefound == false then
if v_u_1.proximity.powerupfound then
v_u_1.buildtarget.Model = nil
v_u_1.buildtarget.Type = nil
v_u_1.gui.SelectionBox.Adornee = nil
v_u_1.proximity.text_interact = "Purchase [" .. v_u_1.key.holdprompt .. "]"
v_u_1.proximity.text_hint = nil
v_u_1.gui.Deployed.PriceGui.Visible = true
v_u_1.gui.Deployed.PriceGui.TextLabel1.Text = v_u_1.perkmachine.Name
v_u_1.gui.Deployed.PriceGui.TextLabel2.Text = v_u_1.f_ac(v_u_1.perks_temporary[v_u_1.perkmachine.Name].Price) .. " points"
v_u_1.gui.Deployed.PriceGui.TextLabel3.Text = v_u_1.perks_temporary[v_u_1.perkmachine.Name].Description
elseif v_u_1.proximity.upgrader then
v_u_1.buildtarget.Model = nil
v_u_1.buildtarget.Type = nil
v_u_1.gui.SelectionBox.Adornee = nil
if v_u_1.proximity.text_hint == nil then
v_u_1.proximity.text_interact = "Upgrade " .. v_u_1.mala[v_u_1.gunnaseo] .. " [" .. v_u_1.key.holdprompt .. "]"
v_u_1.proximity.text_hint = nil
v_u_1.gui.Deployed.PriceGui.Visible = true
v_u_1.gui.Deployed.PriceGui.TextLabel1.Text = "Model 115 \'Pack-a-Punch\'"
v_u_1.gui.Deployed.PriceGui.TextLabel2.Text = "4,000 points"
if v_u_1._stats.Loadout.Equipped.Value.Net_Loaded.Value > 1 then
v_u_1.gui.Deployed.PriceGui.TextLabel3.Text = "+50% damage and +100% ammo capacity until respawn"
else
v_u_1.gui.Deployed.PriceGui.TextLabel3.Text = "+50% damage"
end
end
elseif v_u_1.proximity.text_interact ~= "Activate [" .. v_u_1.key.holdprompt .. "]" then
v_u_1.gui.Deployed.PriceGui.Visible = false
end
else
v_u_1.buildtarget.Model = nil
v_u_1.buildtarget.Type = nil
v_u_1.gui.SelectionBox.Adornee = nil
v_u_1.proximity.text_interact = "Remove [" .. v_u_1.key.holdprompt .. "]"
v_u_1.proximity.text_hint = nil
v_u_1.gui.Deployed.PriceGui.Visible = true
v_u_1.gui.Deployed.PriceGui.TextLabel1.Text = v_u_1.proximity.removablefound.Name
v_u_1.gui.Deployed.PriceGui.TextLabel2.Text = "250 points"
v_u_1.gui.Deployed.PriceGui.TextLabel3.Text = "Remove this barrier"
end
else
v_u_1.buildtarget.Model = nil
v_u_1.buildtarget.Type = nil
v_u_1.gui.SelectionBox.Adornee = nil
v_u_1.proximity.text_interact = "Revive [" .. v_u_1.key.holdprompt .. "]"
v_u_1.proximity.text_hint = nil
v_u_1.gui.Deployed.PriceGui.Visible = false
end
if v_u_1.proximity.text_interact then
v_u_1.gui.Deployed.Interact.TextButton.Text = v_u_1.proximity.text_interact
v_u_1.gui.Deployed.Interact.Visible = true
if v_u_1.proximity.text_interact == "Activate [" .. v_u_1.key.holdprompt .. "]" then
v_u_1.gui.Deployed.PriceGui.Visible = true
local v1985 = v_u_1.buildtarget.Model.Name == "Minigun" and 1 or 2
v_u_1.gui.Deployed.PriceGui.TextLabel1.Text = v_u_1.buildtarget.Model.Name
v_u_1.gui.Deployed.PriceGui.TextLabel2.Text = v_u_1.f_ac(v_u_1.buildmodule.Turret[v1985].Price) .. " points"
v_u_1.gui.Deployed.PriceGui.TextLabel3.Text = "Activate turret until ammo depletes"
end
elseif v_u_1.vf and (v_u_1.vf.VehicleArray.Seated == true and v_u_1.key.F == true) then
v_u_1.gui.Deployed.Interact.TextButton.Text = "Exit [" .. v_u_1.key.holdprompt .. "]"
v_u_1.gui.Deployed.Interact.Visible = true
else
v_u_1.gui.Deployed.Interact.Visible = false
end
if v_u_1.proximity.text_hint then
v_u_1.gui.Deployed.Hint.TextLabel.Text = v_u_1.proximity.text_hint
v_u_1.gui.Deployed.Hint.Visible = true
else
v_u_1.gui.Deployed.Hint.Visible = false
end
v_u_1.f_updpg()
end
function v_u_1.f_af(p1986)
-- upvalues: (copy) v_u_1
if v_u_1._stats.Settings.AimAssist.Value == true and _G.ostype ~= "kb" then
local v1987 = false
if v_u_1.aimassist.Target then
if v_u_1.aimassist.Target.Parent then
local v1988 = v_u_1.aimassist.Target.Parent:FindFirstChild("Humanoid")
if v1988 and v1988.Health <= 0 then
v_u_1.aimassist.Target = nil
v_u_1.aimassist.t = 0
end
else
v_u_1.aimassist.Target = nil
v_u_1.aimassist.t = 0
end
end
if v_u_1.ceamara and (v_u_1.aimassist.HitObj and (v_u_1.aimassist.HitObj.Parent and (v_u_1.aimassist.HitObj.Parent.Parent and v_u_1.aimassist.HitObj.Parent.Parent == workspace.Zombies))) then
local v1989 = v_u_1.aimassist.HitObj.Parent:FindFirstChild("Humanoid")
if v1989 then
if v1989.Health > 0 then
local v1990 = nil
if v_u_1.aimassist.HitObj.Name == "Head" then
v1990 = v_u_1.aimassist.HitObj
elseif v_u_1.aimassist.HitObj.Parent:FindFirstChild("UpperTorso") then
v1990 = v_u_1.aimassist.HitObj.Parent.UpperTorso
end
local _, v1991 = v_u_1.ceamara:WorldToScreenPoint(v1990.Position)
if v1991 == true then
v_u_1.aimassist.Target = v1990
v_u_1.aimassist.t = 0
v1987 = true
else
v_u_1.aimassist.Target = nil
v_u_1.aimassist.t = 0
end
else
v_u_1.aimassist.Target = nil
v_u_1.aimassist.t = 0
end
end
end
if v1987 == false and v_u_1.aimassist.Target then
if v_u_1.aimassist.t < 0.5 then
v_u_1.aimassist.t = v_u_1.aimassist.t + p1986
else
v_u_1.aimassist.Target = nil
v_u_1.aimassist.t = 0
end
end
end
if _G.ostype == "ts" and (_G.armed == true and (v_u_1.ammo and (v_u_1.ammo.Mag and (v_u_1.ammo.Stored and (v_u_1.aiming == false and (v_u_1.reloading == false and v_u_1.free == true)))))) then
local _ = v_u_1.ammo.Stored.Value
if v_u_1.ammo.Mag.Value > 0 and (v_u_1._stats.Settings.AutoFire.Value and (v_u_1.module.NoAutoFire == nil and (v_u_1.gunnaseo == 4 or (v_u_1.mala[v_u_1.gunnaseo] == "Medkit" or (v_u_1.mala[v_u_1.gunnaseo] == "First Aid" or v_u_1.sprinting == false))))) and (v_u_1.bolting == false and (v_u_1.mala[v_u_1.gunnaseo] ~= "Medkit" and v_u_1.mala[v_u_1.gunnaseo] ~= "First Aid")) then
if v_u_1.aimassist.HitObj then
local v1992 = v_u_1.aimassist.HitObj.Parent:FindFirstChild("Humanoid") or v_u_1.aimassist.HitObj.Parent.Parent:FindFirstChild("Humanoid")
if not v1992 then
v_u_1.b1 = false
v_u_1.held = false
return
end
local v1993 = game.Players:FindFirstChild(v1992.Parent.Name)
local v1994 = true
if v1993 then
if v_u_1.gametype == "Zombies" then
v1994 = false
elseif v_u_1.gametype == "Tycoon" and v1994 == true then
if game.ReplicatedStorage.Matchmaking.ServerDifficulty.Value == "Peaceful" then
v1994 = false
elseif v_u_1._stats and v_u_1._stats:FindFirstChild("Alliances") then
v1994 = v_u_1._stats.Alliances:FindFirstChild(v1993.Name) == nil
end
end
end
if v1994 ~= true then
v_u_1.b1 = false
v_u_1.held = false
return
end
if v1992.Health <= 0 then
v_u_1.b1 = false
v_u_1.held = false
return
end
if v_u_1.firing == false then
v_u_1.b1 = true
if v_u_1.gunnaseo == 4 then
v_u_1.f_swng()
v_u_1.b1 = false
else
v_u_1.f_b1d(true)
v_u_1.b1 = false
end
end
else
v_u_1.b1 = false
v_u_1.held = false
end
end
end
end
function v_u_1.f_rs4(p1995)
-- upvalues: (copy) v_u_1
if v_u_1.key.F and (v_u_1.gui.Deployed.Interact.Visible and v_u_1.downed == false) then
v_u_1.key.Bar = v_u_1.key.Bar + 1 / (1 / p1995 * v_u_1.bart)
if v_u_1.key.Bar >= 1 then
v_u_1.key.Bar = 1
end
v_u_1.gui.Deployed.Interact.Bar.Visible = true
elseif v_u_1.key.Bar > 0 then
v_u_1.key.Bar = v_u_1.key.Bar - 1 / (1 / p1995 * v_u_1.bart)
if v_u_1.key.Bar <= 0 then
v_u_1.key.Bar = 0
v_u_1.gui.Deployed.Interact.Bar.Visible = true
else
v_u_1.gui.Deployed.Interact.Bar.Visible = false
end
end
v_u_1.gui.Deployed.Interact.Bar.Size = UDim2.new(v_u_1.key.Bar, -4, 1, -4)
end
local v_u_1996 = 1
function v_u_1.f_ls()
-- upvalues: (copy) v_u_1, (ref) v_u_1996
if v_u_1.lasersight and (v_u_1.deployed == true and (v_u_1.t and (v_u_1.t.Parent and (v_u_1.humanoid and (v_u_1.humanoid.Health > 0 and _G.armed == true))))) then
local v1997 = v_u_1.t:FindFirstChild("Dot0")
local v1998 = v_u_1.t:FindFirstChild("Dot")
local v1999 = v_u_1.t:FindFirstChild("Line")
if v1998 then
if _G.armed == true and (v_u_1.aiming == false and (v_u_1.aimed == false and v_u_1.sprinting == false)) then
local v2000 = v1997.CFrame
local v2001 = v2000.Position + v2000.lookVector
local v2002 = CFrame.lookAt(v2000.Position, v2001).lookVector
local v2003 = v_u_1.rcm.Raycast(v2000, v2002, 200, v_u_1.raycastParams)
local v2004 = v2003.Instance
local v2005 = v2003.Position
if v2005 then
local v2006 = (v2000.Position - v2005).magnitude
v1999.Transparency = 0.9
if v2004 then
v1998.Transparency = 0
else
v1998.Transparency = 1
end
if v_u_1996 > 1 then
v_u_1996 = 0
else
v_u_1996 = v_u_1996 + 0.03
end
local v2007 = v1999.Mesh
local v2008 = -v2006 / 2
v2007.Offset = Vector3.new(v2008, 0, 0)
v1998.SourceWeld.C1 = CFrame.new(v2006, 0, 0)
v1999.Mesh.Scale = Vector3.new(v2006, 0.02, 0.02)
else
v1999.Transparency = 1
v1998.Transparency = 1
end
end
v1999.Transparency = 1
v1998.Transparency = 1
end
end
end
function v_u_1.onRenderStep1(p2009)
-- upvalues: (copy) v_u_1
if v_u_1.deployed == true then
local v2010 = v_u_1.ceamara.CFrame
if v_u_1.Aimed_GripCF then
if v_u_1.cameramode == "3ps" then
v_u_1.abweld.C0 = CFrame.new()
else
v_u_1.abweld.C0 = CFrame.new():lerp(v_u_1.Aimed_GripCF, v_u_1.aim.n)
end
end
local v2011 = v_u_1.ceamara
local v2012 = (v_u_1.aim.FOV - v_u_1.aim.dZoomFOV * v_u_1.aim.n) * 10
v2011.FieldOfView = math.floor(v2012) / 10
local v2013 = v_u_1.camOffsets.guiScope.Rot + v_u_1.camOffsets.Reload.Rot + v_u_1.springs.camRecoilSpring.p
if v_u_1.gametype == "Tycoon" and _G.BaseCamera == true then
local v2014 = v_u_1.tf.Tycoon.PlotOrigin * CFrame.new(-v_u_1.tf.Tycoon.X, v_u_1.tf.Tycoon.Y, -v_u_1.tf.Tycoon.Z)
local v2015 = v_u_1.tf.Tycoon.PlotOrigin * CFrame.new(-v_u_1.tf.Tycoon.X + 10, v_u_1.tf.Tycoon.Y, -v_u_1.tf.Tycoon.Z)
if v_u_1.key.GamepadPan.Magnitude ~= 0 then
local v2016 = v_u_1.tf.Tycoon.CamAng
local v2017 = Vector2.new
local v2018 = v_u_1.key.GamepadPan.X
local v2019 = math.rad(v2018)
local v2020 = v_u_1.key.GamepadPan.Y
local v2021 = v2016 - v2017(v2019, (math.rad(v2020))) * 0.5 * v_u_1.AimSensitivityMultiplier
v_u_1.tf.Tycoon.CamAng = Vector2.new(v2021.x, v2021.y > 1.3962634015954636 and 1.3962634015954636 or (v2021.y < -1.3962634015954636 and -1.3962634015954636 or v2021.y))
end
v2010 = CFrame.lookAt(v2015.Position, v2014.Position) * CFrame.Angles(0, v_u_1.tf.Tycoon.CamAng.X, 0) * CFrame.Angles(v_u_1.tf.Tycoon.CamAng.Y, 0, 0)
v_u_1.ceamara.CFrame = v2010
v_u_1.gui.Deployed.Visible = false
if _G.TycoonMenu == "Edit" and (#_G.Base.SelectedModel > 0 and v_u_1.tf.Keys.M1 == true) then
v_u_1.mouse.TargetFilter = v_u_1.tf.TycoonTargetFilter
else
v_u_1.mouse.TargetFilter = workspace.Ignore
end
else
v_u_1.mouse.TargetFilter = workspace.Ignore
if v_u_1.vf and v_u_1.vf.VehicleArray.Seated == true then
if v_u_1.vf.VehicleArray.Armed == true then
if v_u_1.vf.VehicleArray.Rotation1 ~= v_u_1.vf.VehicleArray.Rotation then
v_u_1.vf.VehicleArray.Rotation1 = v_u_1.vf.VehicleArray.Rotation
v_u_1.vf.VehicleArray.Model.HorizontalDrive1.Weld.C0 = CFrame.new(0, 0, 0)
local v2022 = v_u_1.vf.VehicleArray.Model.HorizontalDrive1.Weld
local v2023 = CFrame.new(0, 0, 0)
local v2024 = CFrame.Angles
local v2025 = -v_u_1.vf.VehicleArray.Rotation
v2022.C1 = v2023 * v2024(0, math.rad(v2025), 0)
v_u_1.vf.vgui.Deployed.Scope.Orientation.Turret.Rotation = -v_u_1.vf.VehicleArray.Rotation
end
if v_u_1.vf.VehicleArray.Elevation1 ~= v_u_1.vf.VehicleArray.Elevation then
v_u_1.vf.VehicleArray.Elevation1 = v_u_1.vf.VehicleArray.Elevation
v_u_1.vf.VehicleArray.Model.VerticalDrive1.Weld.C0 = CFrame.new(0, 0, 0)
local v2026 = v_u_1.vf.VehicleArray.Model.VerticalDrive1.Weld
local v2027 = CFrame.new(0, 0, 0)
local v2028 = CFrame.Angles
local v2029 = -v_u_1.vf.VehicleArray.Elevation
v2026.C1 = v2027 * v2028(math.rad(v2029), 0, 0)
end
end
v_u_1.f_vc()
elseif v_u_1.cameramode == "fps" then
if v_u_1.sttings.MouseLocked == true then
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
else
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.Default
end
v_u_1.player.CameraMode = Enum.CameraMode.LockFirstPerson
v_u_1.ceamara.CameraType = Enum.CameraType.Scriptable
v_u_1.humanoid.AutoRotate = false
if v_u_1.key.GamepadPan.Magnitude ~= 0 then
local v2030 = v_u_1.cam.camAng
local v2031 = Vector2.new
local v2032 = v_u_1.key.GamepadPan.X
local v2033 = math.rad(v2032)
local v2034 = v_u_1.key.GamepadPan.Y
local v2035 = v2030 - v2031(v2033, (math.rad(v2034))) * 0.5 * v_u_1.AimSensitivityMultiplier
v_u_1.f_cang(v2035)
end
v_u_1.f_aa(p2009, "fps")
local v2036
if _G.armed == true then
v2036 = v_u_1.head.Position
else
v2036 = (v_u_1.hrp.CFrame * CFrame.new(0, 1.5, 0)).Position
end
local v2037 = CFrame.new(v2036) * CFrame.Angles(0, v_u_1.cam.camAng.X + v2013.X, 0) * CFrame.Angles(v_u_1.cam.camAng.Y + v2013.Y, 0, 0) * CFrame.new(0, 0, v_u_1.camerazoom)
v_u_1.ceamara.CFrame = v2037
elseif v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
v_u_1.player.CameraMode = Enum.CameraMode.LockFirstPerson
if v_u_1.sttings.MouseLocked == true then
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
else
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.Default
end
v_u_1.ceamara.CameraType = Enum.CameraType.Scriptable
v_u_1.humanoid.AutoRotate = false
if v_u_1.hrp then
local v2038 = CFrame.new(v_u_1.hrp.CFrame.Position)
local v2039 = CFrame.Angles
local v2040 = v_u_1.ShoulderCamAng.X
local v2041 = v2038 * v2039(0, math.rad(v2040), 0)
local v2042 = CFrame.Angles
local v2043 = v_u_1.ShoulderCamAng.Y
local v2044 = v2041 * v2042(math.rad(v2043), 0, 0)
local v2045 = v2044:ToWorldSpace(CFrame.new(2, 2, 8))
local v2046 = CFrame.lookAt(v2044.Position, v2045.Position).lookVector
local v2047 = (v2044.Position - v2045.Position).Magnitude
local v2048 = v_u_1.rcm.Raycast(v2044, v2046, v2047, v_u_1.raycastParams3PS)
local v2049 = v2048.Instance
local v2050 = v2048.Position
if v2049 and v2050 then
v2045 = CFrame.new(v2050)
end
local v2051 = v2044:ToWorldSpace(CFrame.new(2, 2, -10000))
v2010 = CFrame.lookAt(v2045.Position, v2051.Position)
v_u_1.ceamara.CFrame = v2010
end
if v_u_1.key.GamepadPan.Magnitude ~= 0 then
local v2052 = v_u_1.cam.camAng
local v2053 = Vector2.new
local v2054 = v_u_1.key.GamepadPan.X
local v2055 = math.rad(v2054)
local v2056 = v_u_1.key.GamepadPan.Y
local v2057 = v2052 - v2053(v2055, (math.rad(v2056))) * 0.5 * v_u_1.AimSensitivityMultiplier
v_u_1.f_cang(v2057)
v_u_1.f_shcm(v_u_1.key.GamepadPan)
end
v_u_1.f_aa(p2009, "3ps")
else
v_u_1.player.CameraMode = Enum.CameraMode.Classic
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.Default
v_u_1.ceamara.CameraType = Enum.CameraType.Custom
v_u_1.humanoid.AutoRotate = true
v_u_1.f_ic()
end
end
v_u_1.ceamara.Focus = v2010
end
end
function v_u_1.onRenderStep2(p2058)
-- upvalues: (copy) v_u_1
v_u_1.dT = p2058
if v_u_1.deployed == true then
v_u_1.f_rs(p2058)
elseif v_u_1.vf and v_u_1.vf.VehicleArray.Seated == true then
v_u_1.f_vc()
elseif v_u_1.humanoid and v_u_1.humanoid.Health <= 0 then
v_u_1.humanoid.WalkSpeed = 0
v_u_1.humanoid.JumpPower = 0
v_u_1.player.CameraMode = Enum.CameraMode.Classic
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.Default
end
if v_u_1.ModelRotation.DesiredX + v_u_1.ModelRotation.DesiredY == 0 and v_u_1.ModelRotation.X + v_u_1.ModelRotation.Y ~= 0 then
if v_u_1.ModelRotation.X < v_u_1.ModelRotation.DesiredX then
v_u_1.ModelRotation.X = v_u_1.ModelRotation.X + 777 * p2058
if v_u_1.ModelRotation.X > 0 then
v_u_1.ModelRotation.X = 0
end
elseif v_u_1.ModelRotation.X > v_u_1.ModelRotation.DesiredX then
v_u_1.ModelRotation.X = v_u_1.ModelRotation.X - 777 * p2058
if v_u_1.ModelRotation.X < 0 then
v_u_1.ModelRotation.X = 0
end
end
if v_u_1.ModelRotation.Y < v_u_1.ModelRotation.DesiredY then
v_u_1.ModelRotation.Y = v_u_1.ModelRotation.Y + 777 * p2058
if v_u_1.ModelRotation.Y > 0 then
v_u_1.ModelRotation.Y = 0
end
elseif v_u_1.ModelRotation.Y > v_u_1.ModelRotation.DesiredY then
v_u_1.ModelRotation.Y = v_u_1.ModelRotation.Y - 777 * p2058
if v_u_1.ModelRotation.Y < 0 then
v_u_1.ModelRotation.Y = 0
end
end
if v_u_1.ModelRotation.X + v_u_1.ModelRotation.Y ~= 0 and (v_u_1.MenuRoom.Model and v_u_1.MenuRoom.Model.PrimaryPart) then
local v2059 = CFrame.Angles
local v2060 = v_u_1.ModelRotation.X
local v2061 = math.rad(v2060)
local v2062 = v_u_1.ModelRotation.Y
local v2063 = v2059(0, v2061, (math.rad(v2062)))
v_u_1.MenuRoom.Model:PivotTo(v_u_1.MenuRoom.PivotCF * v2063)
end
end
v_u_1.f_ls()
if v_u_1.vf then
v_u_1.vf.f_updvh(p2058)
end
local v2064 = v_u_1.ceamara.CFrame
local v2065 = (v2064.Position + v2064.lookVector - v2064.Position).unit
local v2066 = v_u_1.gunnaseo == 4 and (v_u_1.module.range or 2000) or 2000
local v2067 = v_u_1.rcm.Raycast(v2064, v2065, v2066, v_u_1.raycastParams)
local v2068 = v2067.Instance
local v2069 = v2067.Position
v_u_1.aimassist.HitObj = nil
local v2070
if v2068 and v2068.Parent then
v2070 = v2068.Parent:FindFirstChild("Humanoid")
else
v2070 = nil
end
if v2070 and v2070.Health > 0 then
v_u_1.aimassist.HitObj = v2068
elseif v_u_1.cameramode == "3ps" and _G.ostype ~= "kb" then
local v2071 = (v2064.Position + v2064.lookVector - v2064.Position).unit
local v2072 = v_u_1.rcm.Raycast(v2064, v2071, v2066, v_u_1.raycastParams)
local v2073 = v2072.Instance
v2069 = v2072.Position
if v2073 and v2073.Parent then
v2070 = v2073.Parent:FindFirstChild("Humanoid")
end
if v2070 and v2070.Health > 0 then
v_u_1.aimassist.HitObj = v2073
end
end
if v2069 == nil then
warn("HitPos = nil")
end
v_u_1.aimassist.HitPos = v2069
if v_u_1.vf then
v_u_1.vf.aimassist.HitPos = v2069
end
end
function v_u_1.f_q()
-- upvalues: (copy) v_u_1
local v2077, v2078 = pcall(function()
-- upvalues: (ref) v_u_1
if v_u_1.queue.Ready == true and v_u_1.free == true then
v_u_1.queue.Ready = false
local v2074 = v_u_1.queue.List[1]
if v2074 == "Reload" then
local v2075, v2076 = v_u_1.f_r()
if v2075 == true or v2076 == true then
v_u_1.reloading = false
table.remove(v_u_1.queue.List, 1)
end
v_u_1.queue.Ready = true
return
end
if v2074 == "Bolt" then
v_u_1.f_b()
v_u_1.queue.Ready = true
table.remove(v_u_1.queue.List, 1)
return
end
v_u_1.queue.Ready = true
end
end)
if v2077 == false then
v_u_1.queue.Ready = true
warn("RELOAD ERROR:", v2078)
table.remove(v_u_1.queue.List, 1)
v_u_1.free = true
v_u_1.reloading = false
v_u_1.breakreload = false
v_u_1.bolting = false
end
end
function v_u_1.f_cm(p2079, p2080)
-- upvalues: (copy) v_u_1
if v_u_1.readytochangeviewtype == true or p2079 ~= nil then
v_u_1.readytochangeviewtype = false
v_u_1.f_ic()
if p2079 == "fps" or v_u_1.cameramode == "3ps" and p2079 ~= "3ps" then
v_u_1.player.CameraMode = Enum.CameraMode.LockFirstPerson
v_u_1.player.CameraMinZoomDistance = 0.5
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
v_u_1.ceamara.CameraType = Enum.CameraType.Scriptable
v_u_1.ceamara.CameraSubject = nil
v_u_1.humanoid.AutoRotate = false
v_u_1.cameramode = "fps"
_G.cameramode = v_u_1.cameramode
if _G.armed == true then
v_u_1.f_mi(0)
v_u_1.f_updmouse("Visible")
else
v_u_1.f_updmouse("Default")
end
v_u_1.f_ci(1)
v_u_1.camerazoom = 0
if v_u_1.face then
v_u_1.face.Transparency = 1
end
_G.f_updml()
elseif p2079 == "3ps" or v_u_1.cameramode == "fps" then
if v_u_1.aimed == true then
v_u_1.overrideaim = "unaim"
end
v_u_1.b2 = false
v_u_1.cameramode = "3ps"
_G.cameramode = v_u_1.cameramode
if v_u_1.rsaimed == true then
v_u_1.f_ci(0, true)
else
v_u_1.f_ci(0)
end
v_u_1.f_mi(1)
if _G.armed == true then
v_u_1.f_updmouse("Visible")
else
v_u_1.f_updmouse("Default")
end
if v_u_1.cameramode == "3ps" and (_G.ostype ~= "kb" and (v_u_1.humanoid and v_u_1.humanoid.Health > 0)) then
v_u_1.player.CameraMode = Enum.CameraMode.LockFirstPerson
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
v_u_1.ceamara.CameraType = Enum.CameraType.Scriptable
v_u_1.humanoid.AutoRotate = false
else
v_u_1.player.CameraMode = Enum.CameraMode.Classic
v_u_1.UserInputService.MouseBehavior = Enum.MouseBehavior.Default
v_u_1.ceamara.CameraType = Enum.CameraType.Custom
v_u_1.humanoid.AutoRotate = true
end
v_u_1.player.CameraMinZoomDistance = 5
v_u_1.ceamara.CameraSubject = v_u_1.character
v_u_1.camerazoom = 5
if v_u_1.face then
v_u_1.face.Transparency = 0
end
_G.f_updml()
end
if _G.ostype == "ts" and (v_u_1.player.CameraMode == Enum.CameraMode.LockFirstPerson and v_u_1.RunService:IsStudio() == true) then
v_u_1.player.CameraMode = Enum.CameraMode.Classic
end
v_u_1.f_playA()
v_u_1.f_updcz()
v_u_1.readytochangeviewtype = true
end
if p2080 == nil then
if v_u_1.cameramode == "fps" then
v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame2.CameraMode.TextButton.Text = "First person"
elseif v_u_1.cameramode == "3ps" then
v_u_1.gui.Buttons.Menus.Settings.ScrollingFrame2.CameraMode.TextButton.Text = "Third person"
end
v_u_1._stats.Settings.CameraMode.Value = v_u_1.cameramode
v_u_1.f_fe("Setting", "CameraMode", v_u_1.cameramode)
end
end
function _G.f_cm(p2081, p2082)
-- upvalues: (copy) v_u_1
if p2081 ~= v_u_1.cameramode then
v_u_1.f_cm(p2081, p2082)
end
end
function v_u_1.f_si()
-- upvalues: (copy) v_u_1
local v2083 = v_u_1.module.unequipanim
if v_u_1.sttings.Attachments and v_u_1.attachments[1].Grip ~= "" then
v2083 = v_u_1.gunnaseo == 1 and {
v_u_1.module.gripanim[1],
v_u_1.module.gripanim[2],
v_u_1.module.gripanim[3],
v_u_1.module.gripanim[4],
v_u_1.module.gripanim[5],
v_u_1.module.gripanim[6],
v_u_1.module.gripanim[7],
v_u_1.module.gripanim[8]
} or v2083
end
v_u_1.welds[1].C0 = v2083[1]
if v_u_1.PosWeld and v_u_1.PosWeldOffset then
v_u_1.PosWeld.C0 = v2083[1] * v_u_1.PosWeldOffset
end
v_u_1.welds[2].C0 = v2083[2]
if _G.armed == true then
v_u_1.f_mi(0)
end
v_u_1.f_updmouse("Visible")
v_u_1.f_uisGC("", v_u_1.gui.Buttons)
v_u_1.f_hlf2("", v_u_1.gui.Buttons.Menus)
if v_u_1._stats.Settings.CameraMode.Value == "fps" then
v_u_1.f_cm("fps")
else
v_u_1.f_cm("3ps")
end
v_u_1.readytochangeviewtype = true
v_u_1.player.PlayerGui.ScreenGui.MainMenu.Visible = false
end
local v_u_2084 = {}
function v_u_1.f_mpgui(p2085)
-- upvalues: (copy) v_u_1, (copy) v_u_2084
local v2086 = {
{
["Name"] = "DailyReward",
["Title"] = "Daily Login Reward",
["Color"] = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
},
{
["Name"] = "Changelog",
["Title"] = "Update Changelog",
["Color"] = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
},
{
["Name"] = "StarterPack",
["Title"] = "Special Offer",
["Gamepass"] = "Starter Pack",
["Color"] = Color3.new(0.9372549019607843, 0.7215686274509804, 0.2196078431372549)
},
{
["OnlyShowOnRequest"] = true,
["Name"] = "OHGP",
["Title"] = "Overhead Name Customisation",
["Gamepass"] = "Custom Name",
["Color"] = Color3.new(0.9372549019607843, 0.7215686274509804, 0.2196078431372549)
}
}
local v2087 = v_u_1.gametype == "Tycoon" and {
{
["Name"] = "DailyReward",
["Title"] = "Daily Login Reward",
["Color"] = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
},
{
["Name"] = "Changelog",
["Title"] = "Update Changelog",
["Color"] = Color3.new(0.10588235294117647, 0.16470588235294117, 0.20784313725490197)
}
} or v2086
local v2088 = v_u_1.gui.MenuPrompt:GetChildren()
local v2089 = false
for v2090 = 1, #v2088 do
if v2088[v2090].Name ~= "Bar" then
v2088[v2090].Visible = false
end
end
for v2091 = 1, #v2087 do
if (v_u_2084[v2087[v2091].Name] ~= true or p2085 == v2087[v2091].Name) and (v2087[v2091].OnlyShowOnRequest ~= true or p2085 == v2087[v2091].Name) then
for v2092 = 1, #v2088 do
if v2088[v2092].Name ~= "Bar" and v2088[v2092].Name == v2087[v2091].Name then
local v2093 = true
if v2087[v2091].Name == "Changelog" then
if v_u_1._stats.Settings.ChangelogDate.Value ~= "Always" and (v_u_1._stats.Settings.ChangelogDate.Value == v_u_1.changelog.module.Date and p2085 ~= "Changelog") then
v2093 = false
end
if v_u_1.changelog.module.Date == "" then
v2093 = false
end
end
if v2087[v2091].Gamepass and v_u_1.f_chkgp(v2087[v2091].Gamepass) == true then
v2093 = false
end
if v2093 == true then
v2088[v2092].Visible = true
v2089 = true
v_u_2084[v2087[v2091].Name] = true
v_u_1.gui.MenuPrompt.Bar.BackgroundColor3 = v2087[v2091].Color
v_u_1.gui.MenuPrompt.Bar.TextLabel.Text = v2087[v2091].Title
v_u_1.gui.MenuPrompt.Bar.Close.Visible = true
v_u_1.gui.MenuPrompt.Bar.TextLabel.Size = UDim2.new(0.9, v_u_1.gui.MenuPrompt.Bar.TextLabel.Size.X.Offset, v_u_1.gui.MenuPrompt.Bar.TextLabel.Size.Y.Scale, v_u_1.gui.MenuPrompt.Bar.TextLabel.Size.Y.Offset)
if v2087[v2091].Name == "Changelog" then
v_u_1.f_fe("Setting", "ChangelogDate", v_u_1.changelog.module.Date)
end
break
end
end
end
if v2089 == true then
break
end
end
end
if v2089 == false and v_u_1.OpenedShopOnStart == nil then
v_u_1.OpenedShopOnStart = true
end
v_u_1.gui.MenuPrompt.Visible = v2089
end
function _G.f_mpgui(...)
-- upvalues: (copy) v_u_1
v_u_1.f_mpgui(...)
end
function v_u_1.f_updlm(p2094)
-- upvalues: (copy) v_u_1
local v2095 = true
for v2096, _ in pairs(p2094) do
if v_u_1.f_uis(v_u_1.gui.MainMenu.Loadout.Buttons[v2096], "Check") == true then
v2095 = false
break
end
end
if v2095 == false or p2094 == {} then
local v2097 = v_u_1.gui.MainMenu.Loadout.Menu:GetChildren()
for v2098 = 1, #v2097 do
v2097[v2098].Visible = false
end
local v2099 = v_u_1.gui.MainMenu.Loadout.Buttons:GetChildren()
for v2100 = 1, #v2099 do
v_u_1.f_uis(v2099[v2100], "Normal")
end
else
local v2101 = v_u_1.gui.MainMenu.Loadout.Menu:GetChildren()
for v2102 = 1, #v2101 do
if p2094[v2101[v2102].Name] == true then
v2101[v2102].Visible = true
else
v2101[v2102].Visible = false
end
end
if p2094.Melee then
v_u_1.f_gunVP(true, "Melee")
v_u_1.f_wg(v_u_1.mala[4], true, true)
else
if p2094.Primary then
v_u_1.gui.MainMenu.Loadout.Menu.Tiers.Visible = true
v_u_1.gui.MainMenu.Loadout.Menu.TierButtons.Visible = true
v_u_1.f_wg(v_u_1.mala[1], true)
local v2103 = v_u_1.gui.MainMenu.Loadout.Menu.TierButtons:FindFirstChild("Tier " .. v_u_1._stats.TierMax.Value)
if v2103 then
v_u_1.f_uis(v2103, "Normal")
v_u_1.f_acb(v2103)
end
end
v_u_1.f_gunVP(false)
end
v_u_1.upd_acf(false)
v_u_1.gui.MainMenu.Loadout.Menu["Attachment Classes Buttons"].Visible = false
v_u_1.customisation.Section = nil
local v2104 = v_u_1.gui.MainMenu.Loadout.Buttons:GetChildren()
for v2105 = 1, #v2104 do
if p2094[v2104[v2105].Name] == true then
v_u_1.f_uis(v2104[v2105], "Selected")
else
v_u_1.f_uis(v2104[v2105], "Normal")
end
end
end
end
function v_u_1.f_pmp(p2106, p2107)
-- upvalues: (copy) v_u_1
local v2108 = v_u_1.meleeprices[p2106][p2107].Money
local v2109 = v_u_1.meleeprices[p2106][p2107].Gold
local v2110 = v_u_1.gui.Notifications:GetChildren()
for v2111 = 1, #v2110 do
v2110[v2111].Visible = false
end
v_u_1.gui.Notifications.Melee.Visible = true
v_u_1.gui.Notifications.Melee.TextLabel1.Text = p2106 .. ","
v_u_1.gui.Notifications.Melee.TextLabel2.Text = p2107
v_u_1.gui.Notifications.Melee.Weapon.Value = p2106
v_u_1.gui.Notifications.Melee.Skin.Value = p2107
if v2108 then
v_u_1.gui.Notifications.Melee.TextLabel3.Text = "$" .. v_u_1.f_ac(v2108)
v_u_1.gui.Notifications.Melee.TextLabel3.TextColor3 = BrickColor.new("Lime green").Color
elseif v2109 then
v_u_1.gui.Notifications.Melee.TextLabel3.Text = v_u_1.f_ac(v2109) .. " Gold"
v_u_1.gui.Notifications.Melee.TextLabel3.TextColor3 = BrickColor.new("New Yeller").Color
end
v_u_1.f_ugs(v_u_1.gui.Notifications.Melee.Buy)
v_u_1.f_gunVP(true, "Melee")
end
function v_u_1.f_updmf(p2112)
-- upvalues: (copy) v_u_1
local v2113 = v_u_1.gui.MainMenu.Loadout.Menu.Melee.Menus:GetChildren()
for v2114 = 1, #v2113 do
if v2113[v2114].Visible == true then
v2113[v2114].Visible = false
else
v2113[v2114].Visible = v2113[v2114].Name == p2112
end
end
local v2115 = v_u_1.gui.MainMenu.Loadout.Menu.Melee.Bar:GetChildren()
for v2116 = 1, #v2115 do
if v2115[v2116].Name == p2112 and v2115[v2116].BorderSizePixel == 1 then
v2115[v2116].BorderColor3 = Color3.new(1, 0, 0)
v2115[v2116].BorderSizePixel = 3
else
v2115[v2116].BorderColor3 = Color3.new(0, 0, 0)
v2115[v2116].BorderSizePixel = 1
end
end
end
function v_u_1.f_defhlb()
-- upvalues: (copy) v_u_1
for v2117 = 1, #v_u_1.buttons.weaponbuttons do
if v_u_1.buttons.weaponbuttons[v2117].Name == v_u_1.savedmala[1] or v_u_1.buttons.weaponbuttons[v2117].Name == v_u_1.savedmala[2] then
v_u_1.f_uis(v_u_1.buttons.weaponbuttons[v2117], "Selected")
end
end
end
function v_u_1.f_pp(p2118, p2119, p2120)
-- upvalues: (copy) v_u_1
local v2121 = nil
local v2122 = nil
if v_u_1.prices.Weapons[p2118] then
if v_u_1.prices.Weapons[p2118].Money then
v2121 = v_u_1.prices.Weapons[p2118].Money
v2122 = "Money"
elseif v_u_1.prices.Weapons[p2118].Gold then
v2121 = v_u_1.prices.Weapons[p2118].Gold
v2122 = "Gold"
end
elseif v_u_1.prices.Attachments[p2118] then
if v_u_1.prices.Attachments[p2118].Money then
v2121 = v_u_1.prices.Attachments[p2118].Money
v2122 = "Money"
elseif v_u_1.prices.Attachments[p2118].Gold then
v2121 = v_u_1.prices.Attachments[p2118].Gold
v2122 = "Gold"
end
end
local v2123
if v_u_1.weaponclasses[p2118] then
v2123 = v_u_1.weaponclasses[p2118].Type == "Primary" and v_u_1.mala[1]
if not v2123 then
if v_u_1.weaponclasses[p2118].Type == "Secondary" then
v2123 = v_u_1.mala[2]
else
v2123 = false
end
end
else
v2123 = v_u_1.currentweapongui == "Primary" and v_u_1.mala[1]
if not v2123 then
if v_u_1.currentweapongui == "Secondary" then
v2123 = v_u_1.mala[2]
else
v2123 = false
end
end
end
if p2120 and v_u_1.prices.Attachments[p2118] then
v2121 = v_u_1.f_gmp(p2118, v_u_1.weaponclasses[p2120].Tier)
end
if p2119 == "getprice" then
return v2121, v2122
end
if p2119 == "purchase" then
if v_u_1.prices.Weapons[p2118] == nil and v_u_1.prices.Attachments[p2118] == nil then
v_u_1.f_mc("Bottom", 5, "Level up the event battle pass to unlock.")
return
end
local v2124 = v_u_1.gui.Notifications:GetChildren()
for v2125 = 1, #v2124 do
v2124[v2125].Visible = false
end
local v2126 = 0
if v_u_1.weaponclasses[p2118] and (v_u_1.weaponclasses[p2118].Type == "Primary" or (v_u_1.weaponclasses[p2118].Type == "Secondary" or (v_u_1.weaponclasses[p2118].Type == "Tertiary" or (v_u_1.weaponclasses[p2118].Type == "Perk" or v_u_1.weaponclasses[p2118].Type == "Grenade")))) and v_u_1.weaponclasses[p2118].TierName ~= "Event Tier" then
v2126 = v_u_1._stats.Prestige.Value == 1 and 0.15 or (v_u_1._stats.Prestige.Value == 2 and 0.175 or (v_u_1._stats.Prestige.Value == 3 and 0.2 or (v_u_1._stats.Prestige.Value == 4 and 0.25 or (v_u_1._stats.Prestige.Value >= 5 and 0.3 or v2126))))
end
if v2126 == 0 then
v_u_1.gui.Notifications.Buy.TextLabel2.Prestige.Visible = false
else
v_u_1.gui.Notifications.Buy.TextLabel2.Prestige.Visible = true
v_u_1.gui.Notifications.Buy.TextLabel2.Prestige.Text = "-" .. v2126 * 100 .. "% from Prestige " .. v_u_1._stats.Prestige.Value
end
v_u_1.gui.Notifications.Buy.Visible = true
v_u_1.gui.Notifications.Buy.TextLabel2.Target.Value = p2118
local v2127 = v_u_1.gui.Notifications.Buy.TextLabel1
local v2128 = ""
local v2129 = ""
local v2130 = not v_u_1.prices.Weapons[p2118] and v_u_1.prices.Attachments[p2118]
if v2130 then
v2130 = " for " .. v2123 .. ""
end
v2127.Text = v2128 .. p2118 .. v2129 .. v2130
v_u_1.gui.Notifications.Buy.TextLabel2.TextColor3 = BrickColor.new("Lime green").Color
if v_u_1.prices.Weapons[p2118] then
v_u_1.gui.Notifications.Buy.TextLabel2.ParentFolder.Value = p2118
end
if v_u_1.prices.Weapons[p2118] then
if v_u_1.prices.Weapons[p2118].Gold then
if v2121 <= 1 then
v_u_1.gui.Notifications.Buy.TextLabel2.Text = v_u_1.f_ac(v2121) .. " Gold"
else
v_u_1.gui.Notifications.Buy.TextLabel2.Text = v_u_1.f_ac(v2121) .. " Gold"
end
else
local v2131 = v2121 * (1 - v2126)
local v2132 = math.floor(v2131)
v_u_1.gui.Notifications.Buy.TextLabel2.Text = "$" .. v_u_1.f_ac(v2132)
end
end
local v2133 = v_u_1.gui.Notifications.Buy:GetChildren()
local v2134 = {}
for v2135 = 1, #v2133 do
if v2133[v2135].ClassName == "TextLabel" or v2133[v2135].ClassName == "TextButton" then
local v2136 = v2133[v2135]
table.insert(v2134, v2136)
end
end
v_u_1.f_ltfs(v2134)
v_u_1.f_ugs(v_u_1.gui.Notifications.Buy.Buy)
end
end
v_u_1.player.PlayerGui.Loading.TextLabel.Text = "Loading code (10).."
return v_u_1