Weight system issue on Barcurl

I’m having an hard time with my barcurl workout weight system. Basically the weight doesn’t seem to get higher with more rep on my game simulator.

I want to make the weight system work on barcurl and keep the weight moving up?

I tried printing result of my weight system of barcurl on the server side which makes the weight system function for every workout

I tried copy pasting the bench workout logic with no success so far

I tried changing maximum barcurl weight possible which is 250kg at the moment

Here’s the code of my weight system (server)

local weightsEvent = game.ReplicatedStorage.Remotes.AddWeights

local weightsDeadliftProgress = {}
local weightsBenchProgress = {}
local weightsBarCurlProgress = {}
local weightsTurfProgress = {}
local weightsDumbellProgress = {}
local weightsTurf = {}
local numberOf25KGRight = 0
local numberOf20KGRight = 0
local numberOf15KGRight = 0
local numberOf10KGRight = 0
local numberOf5KGRight = 0
local numberOf2_5KGRight = 0
local playerLiftingBar = nil
local deadliftHasBeenUsed = false


weightsEvent.OnServerEvent:Connect(function(player, 
	weightLifted, weightLiftedBarCurl, weightLiftedDumbells, weightLiftedTurf,
	totalWeightLimit, totalWeight, weightSet, number25Kg,
	totalWeightLimitBarCurl, totalWeightBarCurl, weightSetBarCurl, number25KgBarCurl,
	totalWeightLimitDumbell, totalWeightDumbell, weightSetDumbell, number5KgDumbell
)
	playerLiftingBar = game.Workspace:FindFirstChild(tostring(player))
	
	local weightsBench = game.Workspace.WeightsWorkout.WeightsBench:FindFirstChild(player.Name)
	local weightsDeadlift = game.Workspace.WeightsWorkout.WeightsDeadlift:FindFirstChild(player.Name)
	local weightsBarCurl = game.Workspace.WeightsWorkout.WeightsBarCurl:FindFirstChild(player.Name)
	local weightsDumbells = game.Workspace.WeightsWorkout.WeightsDumbells:FindFirstChild(player.Name)
	local weightsTurf = game.Workspace.WeightsWorkout.WeightsTurf:FindFirstChild(player.Name)
	
	local lift = playerLiftingBar:FindFirstChild("lift")
	local deadliftBar = playerLiftingBar:FindFirstChild("DeadliftBar")
	local BarCurl = playerLiftingBar:FindFirstChild("BarCurl")
	local Dumbell1 = playerLiftingBar:FindFirstChild("Dumbell1")
	local Dumbell2 = playerLiftingBar:FindFirstChild("Dumbell2")
	local turf = playerLiftingBar:FindFirstChild("Turf")
	local MuscleMassWorkout = player:WaitForChild("CharStats").MuscleMass.Value
	
	print("BARCURL WEIGHT TABLE : " .. table.concat(weightLiftedBarCurl, ","))
	
	print("TOTAL WEIGHT LIMIT BAR CURL : " .. totalWeightLimitBarCurl)
	print("TOTAL WEIGHT BAR CURL : " .. totalWeightBarCurl)
	print("NUMBER 25KG BAR CURL : " .. number25KgBarCurl)
	
	print("TOTAL WEIGHT LIMIT BENCH : " .. totalWeightLimit)
	print("TOTAL WEIGHT BENCH : " .. totalWeight)
	print("NUMBER 25KG BENCH : " .. number25Kg)

	if BarCurl then
		player:WaitForChild("BarcurlWeights").TotalWeight.Value = totalWeightBarCurl
		player:WaitForChild("BarcurlWeights").TotalWeightLimit.Value = totalWeightLimitBarCurl
		player:WaitForChild("BarcurlWeights").WeightSet.Value = weightSetBarCurl
		player:WaitForChild("BarcurlWeights").Number25Kg.Value = number25KgBarCurl
		
		local weightFolderLeftBarCurl = weightsBarCurl.WeightsLeft
		local weightFolderRightBarCurl = weightsBarCurl.WeightsRight
		weightFolderLeftBarCurl:ClearAllChildren()
		weightFolderRightBarCurl:ClearAllChildren()
		
		local weightsLeftLift = BarCurl:FindFirstChild("WeightsLeft")
		local weightsRightLift = BarCurl:FindFirstChild("WeightsRight")

		if weightsLeftLift or weightsRightLift then
			weightsLeftLift:ClearAllChildren()
			weightsRightLift:ClearAllChildren()
			player.WeightsBarCurl.WeightsLeft:ClearAllChildren()
			player.WeightsBarCurl.WeightsRight:ClearAllChildren()
		end

		weightsBarCurlProgress = weightLiftedBarCurl

		print("WEIGHT LIFTED CURL : " .. table.concat(weightLiftedBarCurl, ","))
		
		addWeights(weightsBarCurlProgress, weightFolderLeftBarCurl, player.WeightsBarCurl.WeightsLeft, playerLiftingBar.BarCurl.BarWeldLeft, CFrame.new(0.01, 0.018, 0.009) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(-0.04, 0.018, 0.009) * CFrame.Angles(0, math.rad(2), 0),  CFrame.new(-0.065, 0.018, 0.009) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(-0.065, 0.018, 0.009) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(-0.115, 0.018, 0.009) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(-0.115, 0.018, 0.009) * CFrame.Angles(0, math.rad(2), 0), -0.11, 0.018, 0.009, -0.075, -0.1, -0.01, -0.065, -0.115)
		addWeights(weightsBarCurlProgress, weightFolderRightBarCurl, player.WeightsBarCurl.WeightsRight, playerLiftingBar.BarCurl.BarWeldRight, CFrame.new(0, 0.015, 0.006) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(0.05, 0.015, 0.006) * CFrame.Angles(0, math.rad(2), 0),  CFrame.new(0.075, 0.015, 0.006) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(0.075, 0.015, 0.006) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(0.125, 0.015, 0.006) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(0.127, 0.015, 0.006) * CFrame.Angles(0, math.rad(2), 0), 0.11, 0.015, 0.006, 0.075, 0.1, 0.01, 0.065, 0.115)
		
		
		player:WaitForChild("WeightsStat").TotalWeight.Value = totalWeight
		player:WaitForChild("WeightsStat").TotalWeightLimit.Value = totalWeightLimit
		player:WaitForChild("WeightsStat").WeightSet.Value = weightSet
		player:WaitForChild("WeightsStat").Number25Kg.Value = number25Kg
		local weightFolderLeftBench = weightsBench.WeightsLeft
		local weightFolderRightBench = weightsBench.WeightsRight
		weightFolderLeftBench:ClearAllChildren()
		weightFolderRightBench:ClearAllChildren()
		player.WeightsBench.WeightsLeft:ClearAllChildren()
		player.WeightsBench.WeightsRight:ClearAllChildren()

		weightsBenchProgress = weightLifted

		addWeightsFolder(weightsBenchProgress, weightFolderLeftBench, player.WeightsBench.WeightsLeft)
		addWeightsFolder(weightsBenchProgress, weightFolderRightBench, player.WeightsBench.WeightsRight)
		
		player:WaitForChild("DumbellsWeights").TotalWeight.Value = totalWeightDumbell
		player:WaitForChild("DumbellsWeights").TotalWeightLimit.Value = totalWeightLimitDumbell
		player:WaitForChild("DumbellsWeights").WeightSet.Value = weightSetDumbell
		player:WaitForChild("DumbellsWeights").Number5Kg.Value = number5KgDumbell

		local weightFolderLeftDumbell1 = weightsDumbells.Dumbell1.WeightsLeft
		local weightFolderRightDumbell1 = weightsDumbells.Dumbell1.WeightsRight
		local weightFolderLeftDumbell2 = weightsDumbells.Dumbell2.WeightsLeft
		local weightFolderRightDumbell2 = weightsDumbells.Dumbell2.WeightsRight


		weightFolderLeftDumbell1:ClearAllChildren()
		weightFolderRightDumbell1:ClearAllChildren()
		weightFolderLeftDumbell2:ClearAllChildren()
		weightFolderRightDumbell2:ClearAllChildren()
		player.WeightsDumbells.Dumbell1.WeightsLeft:ClearAllChildren()
		player.WeightsDumbells.Dumbell1.WeightsRight:ClearAllChildren()
		player.WeightsDumbells.Dumbell2.WeightsLeft:ClearAllChildren()
		player.WeightsDumbells.Dumbell2.WeightsRight:ClearAllChildren()

		weightsDumbellProgress = weightLiftedDumbells

		addWeightsFolder(weightsDumbellProgress, weightFolderLeftDumbell1, player.WeightsDumbells.Dumbell1.WeightsLeft)
		addWeightsFolder(weightsDumbellProgress, weightFolderRightDumbell1, player.WeightsDumbells.Dumbell1.WeightsRight)
		addWeightsFolder(weightsDumbellProgress, weightFolderLeftDumbell2, player.WeightsDumbells.Dumbell2.WeightsLeft)
		addWeightsFolder(weightsDumbellProgress, weightFolderRightDumbell2, player.WeightsDumbells.Dumbell2.WeightsRight)
		

		
	end
	
	if turf then
		player:WaitForChild("TurfWeights").TotalWeight.Value = totalWeight
		player:WaitForChild("TurfWeights").TotalWeightLimit.Value = totalWeightLimit
		player:WaitForChild("TurfWeights").WeightSet.Value = weightSet
		player:WaitForChild("TurfWeights").Number25Kg.Value = number25Kg
		print("TOTAL WEIGHT TURF : " .. totalWeight)
		
		
		
		local weightFolderTurf = weightsTurf.Weights		
		weightFolderTurf:ClearAllChildren()
		
		local weightsTurf = turf:FindFirstChild("Weights")

		if weightsTurf then
			weightsTurf:ClearAllChildren()
			player.WeightsTurf.Weights:ClearAllChildren()
		end
		
		weightsTurf = weightLifted

		addWeights(weightsTurf, weightFolderTurf, player.WeightsTurf.Weights, playerLiftingBar.Turf.MiddleCylinder, CFrame.new(-1.22, 0, 0.04) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(-1.17, 0, 0.04) * CFrame.Angles(0, math.rad(2), 0),  CFrame.new(-1.15, 0, 0.04) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(-1.145, 0, 0.04) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(-1.1, 0, 0.04) * CFrame.Angles(0, math.rad(2), 0), CFrame.new(-1.1, 0, 0.04) * CFrame.Angles(0, math.rad(2), 0), 0.11, 0, 0.0, 0.075, 0.1, 0.12, 0.17, 0.22)

		player:WaitForChild("TurfWeights").TotalWeight.Value = 0
		player:WaitForChild("TurfWeights").TotalWeightLimit.Value = 0
		player:WaitForChild("TurfWeights").WeightSet.Value = 0
		player:WaitForChild("TurfWeights").Number25Kg.Value = 0

	end
end)

Here’s the barcurl workout weight system (client)

local UserInput = game:GetService("UserInputService")
local BicepCurlBarEvent = game.ReplicatedStorage.CharacterAction.BicepCurlBar
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=15729849777"
local humanoid = script.Parent.Humanoid
local YourAnimationTrack = humanoid.Animator:LoadAnimation(animation)
local MAX_WEIGHT_VALUE_POSSIBLE = 25
local MAX_WEIGHT_VALUE_POSSIBLE_BARCURL = 25
local MAX_WEIGHT_VALUE_POSSIBLE_DUMBELL = 5
local STEP_WEIGHT_SMALL_BENCH = 1
local MAX_FIRST_STEP = 2.5
local MAX_WEIGHT_POSSIBLE_BENCH = 500
local MAX_WEIGHT_POSSIBLE = 250
local MAX_WEIGHT_POSSIBLE_DUMBELL = 80
local weightCap = {2.5, 5, 10, 15, 20, 25}


local ReplicatedStorage = game.ReplicatedStorage
local CanBicepCurlBar = true
local weightEvent = ReplicatedStorage.Remotes.AddWeights
local weightEventBarCurl = ReplicatedStorage.Remotes.AddWeights
local event = ReplicatedStorage.Remotes.AddMuscleMass
local ContextService = game:GetService("ContextActionService")
local Currentplayer = nil
local Connection = nil
local AddWeightBarCurl = ReplicatedStorage.WeightEvent.AddWeightBarCurl
local weightsBarCurl = {}
local weightsBench = {}
local weightsDumbells = {}
local weightsTurf = {}
local ClickCounter = game.ReplicatedStorage.Click.ClickerCounter


function WeightSystem(player)	
	local TotalWeightLimitBench = player:WaitForChild("WeightsStat"):WaitForChild("TotalWeightLimit").Value
	local TotalWeightBench = player:WaitForChild("WeightsStat"):WaitForChild("TotalWeight").Value
	local WeightSetBench = player:WaitForChild("WeightsStat"):WaitForChild("WeightSet").Value
	local Number25KgBench = player:WaitForChild("WeightsStat"):WaitForChild("Number25Kg").Value
	
	
	local TotalWeightLimitDumbell = player:WaitForChild("DumbellsWeights"):WaitForChild("TotalWeightLimit").Value
	local TotalWeightDumbell = player:WaitForChild("DumbellsWeights"):WaitForChild("TotalWeight").Value
	local WeightSetDumbell = player:WaitForChild("DumbellsWeights"):WaitForChild("WeightSet").Value
	local Number5KgDumbell = player:WaitForChild("DumbellsWeights"):WaitForChild("Number5Kg").Value

	local TotalWeightLimitBarCurl = player:WaitForChild("BarcurlWeights"):WaitForChild("TotalWeightLimit").Value
	local TotalWeightBarCurl = player:WaitForChild("BarcurlWeights"):WaitForChild("TotalWeight").Value
	local WeightSetBarCurl = player:WaitForChild("BarcurlWeights"):WaitForChild("WeightSet").Value
	local Number25KgBarCurl = player:WaitForChild("BarcurlWeights"):WaitForChild("Number25Kg").Value

	local MuscleMass = player:WaitForChild("CharStats").MuscleMass.Value
	
	if TotalWeightLimitBench < MAX_WEIGHT_POSSIBLE_BENCH then
		if MuscleMass < 50 then
			Number25KgBench = 0
		elseif MuscleMass >= 50 and MuscleMass < 100 then
			Number25KgBench = 1
		elseif MuscleMass >= 100 and MuscleMass < 150 then
			Number25KgBench = 2
		elseif MuscleMass >= 150 and MuscleMass < 200 then
			Number25KgBench = 3
		elseif MuscleMass >= 200 and MuscleMass < 250 then
			Number25KgBench = 4
		elseif MuscleMass >= 250 and MuscleMass < 300 then
			Number25KgBench = 5
		elseif MuscleMass >= 300 and MuscleMass < 350 then
			Number25KgBench = 6
		elseif MuscleMass >= 350 and MuscleMass < 400 then
			Number25KgBench = 7
		elseif MuscleMass >= 400 and MuscleMass < 450 then
			Number25KgBench = 8
		elseif MuscleMass >= 450 and MuscleMass < 500 then
			Number25KgBench = 9
		elseif MuscleMass >= 500 and MuscleMass < 550 then
			Number25KgBench = 10
		elseif MuscleMass >= 550 and MuscleMass < 600 then
			Number25KgBench = 11
		elseif MuscleMass >= 600 and MuscleMass < 650 then
			Number25KgBench = 12
		elseif MuscleMass >= 650 and MuscleMass < 700 then
			Number25KgBench = 13
		elseif MuscleMass >= 700 and MuscleMass < 750 then
			Number25KgBench = 14
		elseif MuscleMass >= 750 and MuscleMass < 800 then
			Number25KgBench = 15
		elseif MuscleMass >= 800 and MuscleMass < 850 then
			Number25KgBench = 16
		elseif MuscleMass >= 850 and MuscleMass < 900 then
			Number25KgBench = 17
		elseif MuscleMass >= 900 and MuscleMass < 950 then
			Number25KgBench = 18
		elseif MuscleMass >= 950 and MuscleMass < 1000 then
			Number25KgBench = 19
		elseif MuscleMass >= 1000 then
			Number25KgBench = 20
		end


		if Number25KgBench > 0 then
			for i = 1, Number25KgBench do
				weightsBench[i] = MAX_WEIGHT_VALUE_POSSIBLE
			end
		end

		if TotalWeightBench < MAX_WEIGHT_VALUE_POSSIBLE then
			if MuscleMass % 50 ~= 0 then
				if MuscleMass % 50 >= 1 and MuscleMass % 50 < 2 then
					TotalWeightBench = 0.5
				end

				if MuscleMass % 50 >= 2 and MuscleMass % 50 < 3 then
					TotalWeightBench = 1.0
				end

				if MuscleMass % 50 >= 3 and MuscleMass % 50 < 4 then
					TotalWeightBench = 1.5
				end

				if MuscleMass % 50 >= 4 and MuscleMass % 50 < 5 then
					TotalWeightBench = 2.0
				end

				if MuscleMass % 50 >= 5 and MuscleMass % 50 < 6 then
					TotalWeightBench = 2.5
				end

				if MuscleMass % 50 >= 6 and MuscleMass % 50 < 7 then
					TotalWeightBench = 3.0
				end

				if MuscleMass % 50 >= 7 and MuscleMass % 50 < 8 then
					TotalWeightBench = 3.5
				end

				if MuscleMass % 50 >= 8 and MuscleMass % 50 < 9 then
					TotalWeightBench = 4.0
				end

				if MuscleMass % 50 >= 9 and MuscleMass % 50 < 10 then
					TotalWeightBench = 4.5
				end

				if MuscleMass % 50 >= 10 and MuscleMass % 50 < 11 then
					TotalWeightBench = 5.0
				end

				if MuscleMass % 50 >= 11 and MuscleMass % 50 < 12 then
					TotalWeightBench = 5.5
				end

				if MuscleMass % 50 >= 12 and MuscleMass % 50 < 13 then
					TotalWeightBench = 6.0
				end

				if MuscleMass % 50 >= 13 and MuscleMass % 50 < 14 then
					TotalWeightBench = 6.5
				end

				if MuscleMass % 50 >= 14 and MuscleMass % 50 < 15 then
					TotalWeightBench = 7.0
				end

				if MuscleMass % 50 >= 15 and MuscleMass % 50 < 16 then
					TotalWeightBench = 7.5
				end

				if MuscleMass % 50 >= 16 and MuscleMass % 50 < 17 then
					TotalWeightBench = 8.0
				end

				if MuscleMass % 50 >= 17 and MuscleMass % 50 < 18 then
					TotalWeightBench = 8.5
				end

				if MuscleMass % 50 >= 18 and MuscleMass % 50 < 19 then
					TotalWeightBench = 9.0
				end

				if MuscleMass % 50 >= 19 and MuscleMass % 50 < 20 then
					TotalWeightBench = 9.5
				end

				if MuscleMass % 50 >= 20 and MuscleMass % 50 < 21 then
					TotalWeightBench = 10.0
				end

				if MuscleMass % 50 >= 21 and MuscleMass % 50 < 22 then
					TotalWeightBench = 10.5
				end

				if MuscleMass % 50 >= 22 and MuscleMass % 50 < 23 then
					TotalWeightBench = 11.0
				end

				if MuscleMass % 50 >= 23 and MuscleMass % 50 < 24 then
					TotalWeightBench = 11.5
				end

				if MuscleMass % 50 >= 24 and MuscleMass % 50 < 25 then
					TotalWeightBench = 12.0
				end

				if MuscleMass % 50 >= 25 and MuscleMass % 50 < 26 then
					TotalWeightBench = 12.5
				end

				if MuscleMass % 50 >= 26 and MuscleMass % 50 < 27 then
					TotalWeightBench = 13.0
				end

				if MuscleMass % 50 >= 27 and MuscleMass % 50 < 28 then
					TotalWeightBench = 13.5
				end

				if MuscleMass % 50 >= 28 and MuscleMass % 50 < 29 then
					TotalWeightBench = 14.0
				end

				if MuscleMass % 50 >= 29 and MuscleMass % 50 < 30 then
					TotalWeightBench = 14.5
				end

				if MuscleMass % 50 >= 30 and MuscleMass % 50 < 31 then
					TotalWeightBench = 15.0
				end

				if MuscleMass % 50 >= 31 and MuscleMass % 50 < 32 then
					TotalWeightBench = 15.5
				end

				if MuscleMass % 50 >= 32 and MuscleMass % 50 < 33 then
					TotalWeightBench = 16.0
				end

				if MuscleMass % 50 >= 33 and MuscleMass % 50 < 34 then
					TotalWeightBench = 16.5
				end

				if MuscleMass % 50 >= 34 and MuscleMass % 50 < 35 then
					TotalWeightBench = 17.0
				end

				if MuscleMass % 50 >= 35 and MuscleMass % 50 < 36 then
					TotalWeightBench = 17.5
				end

				if MuscleMass % 50 >= 36 and MuscleMass % 50 < 37 then
					TotalWeightBench = 18.0
				end

				if MuscleMass % 50 >= 37 and MuscleMass % 50 < 38 then
					TotalWeightBench = 18.5
				end

				if MuscleMass % 50 >= 38 and MuscleMass % 50 < 39 then
					TotalWeightBench = 19.0
				end

				if MuscleMass % 50 >= 39 and MuscleMass % 50 < 40 then
					TotalWeightBench = 19.5
				end

				if MuscleMass % 50 >= 40 and MuscleMass % 50 < 41 then
					TotalWeightBench = 20.0
				end

				if MuscleMass % 50 >= 41 and MuscleMass % 50 < 42 then
					TotalWeightBench = 20.5
				end

				if MuscleMass % 50 >= 42 and MuscleMass % 50 < 43 then
					TotalWeightBench = 21.0
				end

				if MuscleMass % 50 >= 43 and MuscleMass % 50 < 44 then
					TotalWeightBench = 21.5
				end

				if MuscleMass % 50 >= 44 and MuscleMass % 50 < 45 then
					TotalWeightBench = 22.0
				end

				if MuscleMass % 50 >= 45 and MuscleMass % 50 < 46 then
					TotalWeightBench = 22.5
				end

				if MuscleMass % 50 >= 46 and MuscleMass % 50 < 47 then
					TotalWeightBench = 23.0
				end

				if MuscleMass % 50 >= 47 and MuscleMass % 50 < 48 then
					TotalWeightBench = 23.5
				end

				if MuscleMass % 50 >= 48 and MuscleMass % 50 < 49 then
					TotalWeightBench = 24.0
				end

				if MuscleMass % 50 >= 49 and MuscleMass % 50 < 50 then
					TotalWeightBench = 24.5
				end
			else
				TotalWeightBench = 0
			end

			TotalWeightLimitBench = (Number25KgBench * MAX_WEIGHT_VALUE_POSSIBLE) + TotalWeightBench

			if TotalWeightBench <= weightCap[1] then
				weightsBench[Number25KgBench + 1] = TotalWeightBench
				weightsBench[Number25KgBench + 2] = nil
				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
			end

			if TotalWeightBench >= weightCap[1] and TotalWeightBench < weightCap[2] then

				weightsBench[Number25KgBench + 1] = weightCap[1]

				if TotalWeightBench - 2.5 == 0 then
					weightsBench[Number25KgBench + 2] = nil
				else
					weightsBench[Number25KgBench + 2] = TotalWeightBench - 2.5
				end


				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBench >= weightCap[2] and TotalWeightBench < 7.5 then

				weightsBench[Number25KgBench + 1] = weightCap[2]

				if TotalWeightBench - 5.0 == 0 then
					weightsBench[Number25KgBench + 2] = nil
				else
					weightsBench[Number25KgBench + 2] = TotalWeightBench - 5.0
				end

				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBench >= 7.5 and TotalWeightBench < weightCap[3] then
				weightsBench[Number25KgBench + 1] = weightCap[2]
				weightsBench[Number25KgBench + 2] = weightCap[1]

				if TotalWeightBench - 7.5 == 0 then
					weightsBench[Number25KgBench + 3] = nil
				else
					weightsBench[Number25KgBench + 3] = TotalWeightBench - 7.5
				end

				--weights[player:WaitForChild("WeightsStat"):WaitForChild("Number25Kg").Value + 3] = math.abs(player:WaitForChild("WeightsStat"):WaitForChild("WeightSet").Value - 5.0)
				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBench >= weightCap[3] and TotalWeightBench < 12.5 then
				weightsBench[Number25KgBench + 1] = weightCap[3]

				if TotalWeightBench - 10 == 0 then
					weightsBench[Number25KgBench + 2] = nil
				else
					weightsBench[Number25KgBench + 2] = TotalWeightBench - 10
				end

				weightsBench[Number25KgBench + 3] = nil
				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBench >= 12.5 and TotalWeightBench < weightCap[4] then
				weightsBench[Number25KgBench + 1] = weightCap[3]
				weightsBench[Number25KgBench + 2] = weightCap[1]

				if TotalWeightBench - 12.5 == 0 then
					weightsBench[Number25KgBench + 3] = nil
				else
					weightsBench[Number25KgBench + 3] = TotalWeightBench - 12.5
				end

				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
			end

			if TotalWeightBench >= weightCap[4] and TotalWeightBench < 17.5 then
				weightsBench[Number25KgBench + 1] = weightCap[4]

				if TotalWeightBench - 15.0 == 0 then
					weightsBench[Number25KgBench + 2] = nil
				else
					weightsBench[Number25KgBench + 2] = TotalWeightBench - 15.0
				end

				weightsBench[Number25KgBench + 3] = nil
				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBench >= 17.5 and TotalWeightBench < weightCap[5] then
				weightsBench[Number25KgBench + 1] = weightCap[4]
				weightsBench[Number25KgBench + 2] = weightCap[1]

				if TotalWeightBench - 17.5 == 0 then
					weightsBench[Number25KgBench + 3] = nil
				else
					weightsBench[Number25KgBench + 3] = TotalWeightBench - 17.5
				end

				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
			end

			if TotalWeightBench >= weightCap[5] and TotalWeightBench < 22.5 then
				weightsBench[Number25KgBench + 1] = weightCap[5]

				if TotalWeightBench - 20.0 == 0 then
					weightsBench[Number25KgBench + 2] = nil
				else
					weightsBench[Number25KgBench + 2] = TotalWeightBench - 20
				end

				weightsBench[Number25KgBench + 3] = nil
				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBench >= 22.5 and TotalWeightBench < weightCap[6] then
				weightsBench[Number25KgBench + 1] = weightCap[5]
				weightsBench[Number25KgBench + 2] = weightCap[1]

				if TotalWeightBench - 22.5 == 0 then
					weightsBench[Number25KgBench + 3] = nil
				else
					weightsBench[Number25KgBench + 3] = TotalWeightBench - 22.5
				end

				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end
		else
			weightsBench[Number25KgBench + 1] = TotalWeightBench
			weightsBench[Number25KgBench + 2] = nil
			weightsBench[Number25KgBench + 3] = nil
			TotalWeightBench = 0



			for i = Number25KgBench + 1, #weightsBench do
				weightsBench[i] = nil
			end

			weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
		end
	end
		
	print("TOTAL WEIGHT LIMIT DUMBELL : " .. TotalWeightLimitDumbell)
	
	if TotalWeightLimitDumbell < MAX_WEIGHT_POSSIBLE_DUMBELL then
		if MuscleMass < 125 then
			Number5KgDumbell = 0
		elseif MuscleMass >= 125 and MuscleMass < 250 then
			Number5KgDumbell = 1
		elseif MuscleMass >= 250 and MuscleMass < 375 then
			Number5KgDumbell = 2
		elseif MuscleMass >= 375 and MuscleMass < 500 then
			Number5KgDumbell = 3
		elseif MuscleMass >= 500 and MuscleMass < 625 then
			Number5KgDumbell = 4
		elseif MuscleMass >= 625 and MuscleMass < 750 then
			Number5KgDumbell = 5
		elseif MuscleMass >= 750 and MuscleMass < 875 then
			Number5KgDumbell = 6
		elseif MuscleMass >= 875 and MuscleMass < 1000 then
			Number5KgDumbell = 7
		elseif MuscleMass >= 1000 then
			Number5KgDumbell = 8

		end
		
		if Number5KgDumbell > 0 then
			for i = 1, Number5KgDumbell do
				weightsDumbells[i] = MAX_WEIGHT_VALUE_POSSIBLE_DUMBELL
			end
		end
		 	 
		TotalWeightLimitDumbell = (Number5KgDumbell * MAX_WEIGHT_VALUE_POSSIBLE_DUMBELL) + TotalWeightDumbell
		print("TOTAL WEIGHT LIMIT DUMBELL : " .. TotalWeightLimitDumbell)
		
		
		
		

		if TotalWeightDumbell < MAX_WEIGHT_VALUE_POSSIBLE_DUMBELL then
			if MuscleMass % 125 ~= 0 then
				if MuscleMass % 125 < 12 then
					TotalWeightDumbell = 0
				end

				if MuscleMass % 125 >= 12 and MuscleMass % 125 < 25 then
					TotalWeightDumbell = 0.5
				end

				if MuscleMass % 125 >= 25 and MuscleMass % 125 < 37 then
					TotalWeightDumbell = 1
				end

				if MuscleMass % 125 >= 37 and MuscleMass % 125 < 50 then
					TotalWeightDumbell = 1.5
				end

				if MuscleMass % 125 >= 50 and MuscleMass % 125 < 62 then
					TotalWeightDumbell = 2
				end

				if MuscleMass % 125 >= 62 and MuscleMass % 125 < 75 then
					TotalWeightDumbell = 2.5
				end

				if MuscleMass % 125 >= 75 and MuscleMass % 125 < 87 then
					TotalWeightDumbell = 3
				end

				if MuscleMass % 125 >= 87 and MuscleMass % 125 < 100 then
					TotalWeightDumbell = 3.5
				end

				if MuscleMass % 125 >= 100 and MuscleMass % 125 < 112 then
					TotalWeightDumbell = 4
				end

				if MuscleMass % 125 >= 112 then
					TotalWeightDumbell = 4.5
				end
			else
				TotalWeightDumbell = 5
			end
		
			if TotalWeightDumbell <= weightCap[1] then
				weightsDumbells[Number5KgDumbell + 1] = TotalWeightDumbell
				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
			end

			if TotalWeightDumbell > weightCap[1] and TotalWeightDumbell < weightCap[2] then

				weightsDumbells[Number5KgDumbell + 1] = weightCap[1]
				weightsDumbells[Number5KgDumbell + 2] = TotalWeightDumbell - 2.5
				weightEvent:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
			end

			

		end
		
		print("TOTAL WEIGHT DUMBELL IS : " .. TotalWeightDumbell)
	end
	
	if TotalWeightLimitBarCurl < MAX_WEIGHT_POSSIBLE then
		if MuscleMass < 100 then
			Number25KgBarCurl = 0
		elseif MuscleMass >= 100 and MuscleMass < 200 then
			Number25KgBarCurl = 1
		elseif MuscleMass >= 200 and MuscleMass < 300 then
			Number25KgBarCurl = 2
		elseif MuscleMass >= 300 and MuscleMass < 400 then
			Number25KgBarCurl = 3
		elseif MuscleMass >= 400 and MuscleMass < 500 then
			Number25KgBarCurl = 4
		elseif MuscleMass >= 500 and MuscleMass < 600 then
			Number25KgBarCurl = 5
		elseif MuscleMass >= 600 and MuscleMass < 700 then
			Number25KgBarCurl = 6
		elseif MuscleMass >= 700 and MuscleMass < 800 then
			Number25KgBarCurl = 7
		elseif MuscleMass >= 800 and MuscleMass < 900 then
			Number25KgBarCurl = 8
		elseif MuscleMass >= 900 and MuscleMass < 1000 then
			Number25KgBarCurl = 9
		elseif MuscleMass >= 1000 then
			Number25KgBarCurl = 10
		end

		if Number25KgBarCurl > 0 then
			for i = 1, Number25KgBarCurl do
				weightsBarCurl[i] = MAX_WEIGHT_VALUE_POSSIBLE_BARCURL
			end
		end

		print("TOTAL WEIGHT LIMIT BARCURL : " .. TotalWeightLimitBarCurl)

		if TotalWeightBarCurl < MAX_WEIGHT_VALUE_POSSIBLE_BARCURL then
			if MuscleMass % 100 ~= 0 then
				if MuscleMass % 100 >= 2 and MuscleMass % 100 < 4 then
					TotalWeightBarCurl = 0.5
				end

				if MuscleMass % 100 >= 4 and MuscleMass % 100 < 6 then
					TotalWeightBarCurl = 1.0
				end

				if MuscleMass % 100 >= 6 and MuscleMass % 100 < 8 then
					TotalWeightBarCurl = 1.5
				end

				if MuscleMass % 100 >= 8 and MuscleMass % 100 < 10 then
					TotalWeightBarCurl = 2.0
				end

				if MuscleMass % 100 >= 10 and MuscleMass % 100 < 12 then
					TotalWeightBarCurl = 2.5
				end

				if MuscleMass % 100 >= 12 and MuscleMass % 100 < 14 then
					TotalWeightBarCurl = 3.0
				end

				if MuscleMass % 100 >= 14 and MuscleMass % 100 < 16 then
					TotalWeightBarCurl = 3.5
				end

				if MuscleMass % 100 >= 16 and MuscleMass % 100 < 18 then
					TotalWeightBarCurl = 4.0
				end

				if MuscleMass % 100 >= 18 and MuscleMass % 100 < 20 then
					TotalWeightBarCurl = 4.5
				end

				if MuscleMass % 100 >= 20 and MuscleMass % 100 < 22 then
					TotalWeightBarCurl = 5.0
				end

				if MuscleMass % 100 >= 22 and MuscleMass % 100 < 24 then
					TotalWeightBarCurl = 5.5
				end

				if MuscleMass % 100 >= 24 and MuscleMass % 100 < 26 then
					TotalWeightBarCurl = 6.0
				end

				if MuscleMass % 100 >= 26 and MuscleMass % 100 < 28 then
					TotalWeightBarCurl = 6.5
				end

				if MuscleMass % 100 >= 28 and MuscleMass % 100 < 30 then
					TotalWeightBarCurl = 7.0
				end

				if MuscleMass % 100 >= 30 and MuscleMass % 100 < 32 then
					TotalWeightBarCurl = 7.5
				end

				if MuscleMass % 100 >= 32 and MuscleMass % 100 < 34 then
					TotalWeightBarCurl = 8.0
				end

				if MuscleMass % 100 >= 34 and MuscleMass % 100 < 36 then
					TotalWeightBarCurl = 8.5
				end

				if MuscleMass % 100 >= 36 and MuscleMass % 100 < 38 then
					TotalWeightBarCurl = 9.0
				end

				if MuscleMass % 100 >= 38 and MuscleMass % 100 < 40 then
					TotalWeightBarCurl = 9.5
				end

				if MuscleMass % 100 >= 40 and MuscleMass % 100 < 42 then
					TotalWeightBarCurl = 10.0
				end

				if MuscleMass % 100 >= 42 and MuscleMass % 100 < 44 then
					TotalWeightBarCurl = 10.5
				end

				if MuscleMass % 100 >= 44 and MuscleMass % 100 < 46 then
					TotalWeightBarCurl = 11.0
				end

				if MuscleMass % 100 >= 46 and MuscleMass % 100 < 48 then
					TotalWeightBarCurl = 11.5
				end

				if MuscleMass % 100 >= 48 and MuscleMass % 100 < 50 then
					TotalWeightBarCurl = 12.0
				end

				if MuscleMass % 100 >= 50 and MuscleMass % 100 < 52 then
					TotalWeightBarCurl = 12.5
				end

				if MuscleMass % 100 >= 52 and MuscleMass % 100 < 54 then
					TotalWeightBarCurl = 13.0
				end

				if MuscleMass % 100 >= 54 and MuscleMass % 100 < 56 then
					TotalWeightBarCurl = 13.5
				end

				if MuscleMass % 100 >= 56 and MuscleMass % 100 < 58 then
					TotalWeightBarCurl = 14.0
				end

				if MuscleMass % 100 >= 58 and MuscleMass % 100 < 60 then
					TotalWeightBarCurl = 14.5
				end

				if MuscleMass % 100 >= 60 and MuscleMass % 100 < 62 then
					TotalWeightBarCurl = 15.0
				end

				if MuscleMass % 100 >= 62 and MuscleMass % 100 < 64 then
					TotalWeightBarCurl = 15.5
				end

				if MuscleMass % 100 >= 64 and MuscleMass % 100 < 66 then
					TotalWeightBarCurl = 16.0
				end

				if MuscleMass % 100 >= 66 and MuscleMass % 100 < 68 then
					TotalWeightBarCurl = 16.5
				end

				if MuscleMass % 100 >= 68 and MuscleMass % 100 < 70 then
					TotalWeightBarCurl = 17.0
				end

				if MuscleMass % 100 >= 70 and MuscleMass % 100 < 72 then
					TotalWeightBarCurl = 17.5
				end

				if MuscleMass % 100 >= 72 and MuscleMass % 100 < 74 then
					TotalWeightBarCurl = 18.0
				end

				if MuscleMass % 100 >= 74 and MuscleMass % 100 < 76 then
					TotalWeightBarCurl = 18.5
				end

				if MuscleMass % 100 >= 76 and MuscleMass % 100 < 78 then
					TotalWeightBarCurl = 19.0
				end

				if MuscleMass % 100 >= 78 and MuscleMass % 100 < 80 then
					TotalWeightBarCurl = 19.5
				end

				if MuscleMass % 100 >= 80 and MuscleMass % 100 < 82 then
					TotalWeightBarCurl = 20.0
				end

				if MuscleMass % 100 >= 82 and MuscleMass % 100 < 84 then
					TotalWeightBarCurl = 20.5
				end

				if MuscleMass % 100 >= 84 and MuscleMass % 100 < 86 then
					TotalWeightBarCurl = 21.0
				end

				if MuscleMass % 100 >= 86 and MuscleMass % 100 < 88 then
					TotalWeightBarCurl = 21.5
				end

				if MuscleMass % 100 >= 88 and MuscleMass % 100 < 90 then
					TotalWeightBarCurl = 22.0
				end

				if MuscleMass % 100 >= 90 and MuscleMass % 100 < 92 then
					TotalWeightBarCurl = 22.5
				end

				if MuscleMass % 100 >= 92 and MuscleMass % 100 < 94 then
					TotalWeightBarCurl = 23.0
				end

				if MuscleMass % 100 >= 94 and MuscleMass % 100 < 96 then
					TotalWeightBarCurl = 23.5
				end

				if MuscleMass % 100 >= 96 and MuscleMass % 100 < 98 then
					TotalWeightBarCurl = 24.0
				end

				if MuscleMass % 100 >= 98 and MuscleMass % 100 < 100 then
					TotalWeightBarCurl = 24.5
				end
			else
				TotalWeightBarCurl = 0
			end

			TotalWeightBarCurl = (Number25KgBarCurl * MAX_WEIGHT_VALUE_POSSIBLE) + TotalWeightBarCurl

			if TotalWeightBarCurl <= weightCap[1] then
				weightsBarCurl[Number25KgBarCurl + 1] = TotalWeightBarCurl
				weightsBarCurl[Number25KgBarCurl + 2] = nil
				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
			end

			if TotalWeightBarCurl >= weightCap[1] and TotalWeightBarCurl < weightCap[2] then

				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[1]

				if TotalWeightBarCurl - 2.5 == 0 then
					weightsBarCurl[Number25KgBarCurl + 2] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 2] = TotalWeightBarCurl - 2.5
				end


				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBarCurl >= weightCap[2] and TotalWeightBarCurl < 7.5 then

				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[2]

				if TotalWeightBarCurl - 5.0 == 0 then
					weightsBarCurl[Number25KgBarCurl + 2] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 2] = TotalWeightBarCurl - 5.0
				end

				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBarCurl >= 7.5 and TotalWeightBarCurl < weightCap[3] then
				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[2]
				weightsBarCurl[Number25KgBarCurl + 2] = weightCap[1]

				if TotalWeightBarCurl - 7.5 == 0 then
					weightsBarCurl[Number25KgBarCurl + 3] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 3] = TotalWeightBarCurl - 7.5
				end

				--weights[player:WaitForChild("WeightsStat"):WaitForChild("Number25Kg").Value + 3] = math.abs(player:WaitForChild("WeightsStat"):WaitForChild("WeightSet").Value - 5.0)
				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBarCurl >= weightCap[3] and TotalWeightBarCurl < 12.5 then
				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[3]

				if TotalWeightBarCurl - 10 == 0 then
					weightsBarCurl[Number25KgBarCurl + 2] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 2] = TotalWeightBarCurl - 10
				end

				weightsBarCurl[Number25KgBarCurl + 3] = nil
				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBarCurl >= 12.5 and TotalWeightBarCurl < weightCap[4] then
				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[3]
				weightsBarCurl[Number25KgBarCurl + 2] = weightCap[1]

				if TotalWeightBarCurl - 12.5 == 0 then
					weightsBarCurl[Number25KgBarCurl + 3] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 3] = TotalWeightBarCurl - 12.5
				end

				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
			end

			if TotalWeightBarCurl >= weightCap[4] and TotalWeightBarCurl < 17.5 then
				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[4]

				if TotalWeightBarCurl - 15.0 == 0 then
					weightsBarCurl[Number25KgBarCurl + 2] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 2] = TotalWeightBarCurl - 15.0
				end

				weightsBarCurl[Number25KgBarCurl + 3] = nil
				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBarCurl >= 17.5 and TotalWeightBarCurl < weightCap[5] then
				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[4]
				weightsBarCurl[Number25KgBarCurl + 2] = weightCap[1]

				if TotalWeightBarCurl - 17.5 == 0 then
					weightsBarCurl[Number25KgBarCurl + 3] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 3] = TotalWeightBarCurl - 17.5
				end

				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
			end

			if TotalWeightBarCurl >= weightCap[5] and TotalWeightBarCurl < 22.5 then
				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[5]

				if TotalWeightBarCurl - 20.0 == 0 then
					weightsBarCurl[Number25KgBarCurl + 2] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 2] = TotalWeightBarCurl - 20
				end

				weightsBarCurl[Number25KgBarCurl + 3] = nil
				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end

			if TotalWeightBarCurl >= 22.5 and TotalWeightBarCurl < weightCap[6] then
				weightsBarCurl[Number25KgBarCurl + 1] = weightCap[5]
				weightsBarCurl[Number25KgBarCurl + 2] = weightCap[1]

				if TotalWeightBarCurl - 22.5 == 0 then
					weightsBarCurl[Number25KgBarCurl + 3] = nil
				else
					weightsBarCurl[Number25KgBarCurl + 3] = TotalWeightBarCurl - 22.5
				end

				weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)

			end
		else
			weightsBarCurl[Number25KgBarCurl + 1] = TotalWeightBarCurl
			weightsBarCurl[Number25KgBarCurl + 2] = nil
			weightsBarCurl[Number25KgBarCurl + 3] = nil
			TotalWeightBarCurl = 0



			for i = Number25KgBarCurl + 1, #weightsBarCurl do
				weightsBarCurl[i] = nil
			end

			weightEventBarCurl:FireServer(weightsBench, weightsBarCurl, weightsDumbells, weightsTurf, TotalWeightLimitBench, TotalWeightBench, WeightSetBench, Number25KgBench, TotalWeightLimitBarCurl, TotalWeightBarCurl, WeightSetBarCurl, Number25KgBarCurl, TotalWeightLimitDumbell, TotalWeightDumbell, WeightSetDumbell, Number5KgDumbell)
		end




	end
	
	
	
	

end

Connection = BicepCurlBarEvent.OnClientEvent:Connect(function(player)
	Currentplayer = player
	UserInput.InputBegan:Connect(function(input)
		
		if input.UserInputType == Enum.UserInputType.MouseButton1 or (Enum.UserInputType.Touch and UserInput.TouchEnabled) then
			if CanBicepCurlBar == true then
				CanBicepCurlBar = false
				--WeightSystem()

				ClickCounter:FireServer(player)
				--WeightSystem(player)
				YourAnimationTrack:Play()
				YourAnimationTrack.Priority = Enum.AnimationPriority.Action2
				--wait(YourAnimationTrack.Length)

				CanBicepCurlBar = true
			end

		end
	end)
end)

AddWeightBarCurl.OnClientEvent:Connect(function(player)
	WeightSystem(player)
	print("ADD WEIGHT BAR CURL")
end)

System doesn’t follow the barcurl weight system and it only display 25kg sets after the first 25kg has been passed and doesn’t display other weights

2 Likes