Jump and TPelse command not working

So I am having problems with the commands Jump Value and TPelse (Me teleports to others)
Idk why (no error message)
I think it’s because there’s similar command/actions like Speed Value and TPme(Others teleport to me)

Anyway here’s the script.

local rs = game:GetService("ReplicatedStorage")
local commandEvent = rs:FindFirstChild('CmdsPipe') or Instance.new("RemoteFunction", rs) commandEvent.Name = 'CmdsPipe'

commandEvent.OnServerInvoke = function(player, command, target, value)
	local output = player:WaitForChild("PlayerGui").Admin2.Commands.Output
	if target then
		if target:lower() == 'me' then
			target = {player}
		elseif target:lower() == 'everyone' or target:lower() == 'all' then
			target = game.Players:GetChildren()
		elseif target:lower() == 'noobs' then
			target = game.Players:GetChildren()
			for _, admin in pairs(game.ReplicatedStorage.Admins:GetChildren()) do
				for pos, plr in pairs(game.Players:GetChildren()) do
					if admin.Name == plr.Name then
						table.remove(target, pos)
					end
				end
			end
		else
			local Tplayer = game.Players:FindFirstChild(target)
			if Tplayer then
				target = {Tplayer}
			else
				print("target not found:", target[1].Name)
				output.Text = "target not found: "..target[1].Name
				return false
			end
		end
		print(player.Name, "executed", command, "on target", target[1].Name)
		output.Text = player.Name.." executed "..command.." command on target "..target[1].Name
	end

	if command then
		local cmd = command:lower()
		if cmd == "kill" then
			for _, v in pairs(target) do
				local char = v.Character
				if char then
					local hum = char:FindFirstChildOfClass("Humanoid")
					if hum then
						hum.Health = 0
					end
				end
			end
			return true
		elseif cmd == "freeze" then
			for _, v in pairs(target) do
				local char = v.Character
				if char then
					local hum = char:FindFirstChildOfClass("Humanoid")
					if hum then
						hum.WalkSpeed = 0
						hum.JumpPower = 0
					end
				end
			end
			return true
		elseif cmd == "unfreeze" then
			for _, v in pairs(target) do
				local char = v.Character
				if char then
					local hum = char:FindFirstChildOfClass("Humanoid")
					if hum then
						hum.WalkSpeed = 16
						hum.JumpPower = 50
					end
				end
			end
			return true
		elseif cmd == "hide" then
			for _, v in pairs(target) do
				local char = v.Character
				if char then
					for _, limb in pairs(char:GetChildren()) do
						if limb:IsA('BasePart') then
							limb.Transparency = 1
							if limb.Name == 'Head' then
								limb.face.Transparency = 1
							end
						elseif limb:IsA('Accessory') then
							limb.Handle.Transparency = 1
						end
					end
				end
			end
			return true
		elseif cmd == "show" then
			for _, v in pairs(target) do
				local char = v.Character
				if char then
					for _, limb in pairs(char:GetChildren()) do
						if limb:IsA('BasePart') and limb.Name ~= 'HumanoidRootPart' then
							limb.Transparency = 0
							if limb.Name == 'Head' then
								limb.face.Transparency = 0
							end
						elseif limb:IsA('Accessory') then
							limb.Handle.Transparency = 0
						end
					end
				end
			end
			return true
		elseif cmd == "speed" then
			local val = tonumber(value)
			if val then
				for _, v in pairs(target) do
					local char = v.Character
					if char then
						local hum = char:FindFirstChildOfClass("Humanoid")
						if hum then
							hum.WalkSpeed = val
						end
					end
				end
			end
			return true
		elseif cmd == "trail" then
			for _, v in pairs(target) do
				local char = v.Character
				if char then
					local trail = char:FindFirstChild('Trail')
					if not trail then
						local newTrail = Instance.new('Trail')
						newTrail.Parent = char
						newTrail.Attachment0 = char.HumanoidRootPart.RootRigAttachment
						newTrail.Attachment1 = char.Head.NeckRigAttachment
						newTrail.Color = ColorSequence.new(Color3.fromRGB(255, 0, 255), Color3.fromRGB(0,255,0))
					else
						trail:Destroy()
					end
				end
			end
			return true
		elseif cmd == "tpme" then
			for _, v in pairs(target) do
				local adminChar = player.Character
				local char = v.Character
				if adminChar and char then
					adminChar.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame
				end
			end
			return true
		else
			return false
		end
	end
		if command then
			local cmd = command:lower()
			if cmd == "tpelse" then
				for _, v in pairs(target) do
					local adminChar = player.Character
					local char = v.Character
					if char and adminChar then
					char.HumanoidRootPart.CFrame = adminChar.HumanoidRootPart.CFrame
					end
				end
			return true
		elseif cmd == "jump" then
			local val = tonumber(value)
			if val then
				for _, v in pairs(target) do
					local char = v.Character
					if char then
						local hum = char:FindFirstChildOfClass("Humanoid")
						if hum then
							hum.JumpPower = val
						end
					end
				end
			end
			return true
		end
	end
end